\n\n
\n \n \n \n {{el.text}}\n \n
\n
\n\n\n\n","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":210,"y":360,"wires":[[]]},{"id":"6f5a2122.1f3448","type":"comment","z":"40d33793.7558d8","name":"HMI - Picture Box","info":"","x":120,"y":320,"wires":[]},{"id":"fcd8702c.5ee98","type":"comment","z":"40d33793.7558d8","name":"read real values from PLC","info":"","x":150,"y":40,"wires":[]},{"id":"3095523e.c04016","type":"function","z":"40d33793.7558d8","name":"place Item setpoint","func":"// real value\nmsg.topic = \"HBW_hz_axis_W\"\n\nmsg.top = 320\nmsg.left = 100\nmsg.url = \"url(http://192.168.0.5:1880/images/HBW.png) center/contain no-repeat\";\n\nmsg.text = msg.payload.hz_axis_targetpos\n\nif (msg.payload.hz_axis_posreached === true)\n { \n msg.state = 1 \n msg.color = '#5a5' \n }\nelse\n {\n msg.state = 0\n msg.color = '#a55' \n }\n\n\n\nreturn {\n \"topic\": (msg.topic),\n \"url\" : (msg.url),\n \"payload\": {\n \"icon\":\"label\",\n \"top\": (msg.top),\n \"left\":(msg.left),\n \"color\":(msg.color),\n \"state\": (msg.state),\n \"text\": (\"hor. setpoint: \" + msg.text)\n\n }\n\n};\n","outputs":1,"noerr":0,"x":550,"y":200,"wires":[["8158f94b.ad1eb8"]]},{"id":"ef0d76c0.9bac4","type":"debug","z":"40d33793.7558d8","name":"Read HBW Pos.","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":580,"y":480,"wires":[]},{"id":"392670.07d5199","type":"function","z":"40d33793.7558d8","name":"place Item actual Value","func":"// actual value\nmsg.topic = \"HBW_vert_axis_X\"\n\nmsg.top = 70\nmsg.left = 270\nmsg.url = \"url(http://192.168.0.5:1880/images/HBW.png) center/contain no-repeat\";\n\nif (msg.payload.vert_axis_posreached === true)\n { \n msg.state = 1 \n msg.color = '#5a5' \n }\nelse\n {\n msg.state = 0\n msg.color = '#a55' \n }\n\n//msg.payload.hz_axis_posreached === true ? msg.state = 1 : msg.state = 0\n\n\nmsg.text = msg.payload.vert_axis_actpos\n\n\nreturn {\n \"topic\": (msg.topic),\n \"url\" : (msg.url),\n \"payload\": {\n \"icon\":\"label\",\n \"top\": (msg.top),\n \"left\":(msg.left),\n \"color\":(msg.color),\n \"state\": (msg.state),\n \"text\": (\"vert. act. Pos.: \" + msg.text)\n\n }\n\n};\n","outputs":1,"noerr":0,"x":570,"y":260,"wires":[["8158f94b.ad1eb8"]]},{"id":"585eaba.0a1bfd4","type":"function","z":"40d33793.7558d8","name":"place Item setpoint","func":"// real value\nmsg.topic = \"HBW_vert_axis_W\"\n\nmsg.top = 90\nmsg.left = 270\nmsg.url = \"url(http://192.168.0.5:1880/images/HBW.png) center/contain no-repeat\";\n\nmsg.text = msg.payload.vert_axis_targetpos\n\nif (msg.payload.vert_axis_posreached === true)\n { \n msg.state = 1 \n msg.color = '#5a5' \n }\nelse\n {\n msg.state = 0\n msg.color = '#a55' \n }\n\nreturn {\n \"topic\": (msg.topic),\n \"url\" : (msg.url),\n \"payload\": {\n \"icon\":\"label\",\n \"top\": (msg.top),\n \"left\":(msg.left),\n \"color\":(msg.color),\n \"state\": (msg.state),\n \"text\": (\"vert. setpoint: \" + msg.text)\n\n }\n\n};\n","outputs":1,"noerr":0,"x":550,"y":300,"wires":[["8158f94b.ad1eb8"]]},{"id":"796bcf22.7b51a","type":"OPCUA-IIoT-Inject","z":"40d33793.7558d8","injectType":"inject","payloadType":"num","topic":"","repeat":"","crontab":"","once":true,"startDelay":"10","name":"Init","payload":"","addressSpaceItems":[],"x":110,"y":480,"wires":[["b793ab10.b3a828"]]},{"id":"64c49f07.3e14c8","type":"function","z":"40d33793.7558d8","name":"declare values","func":"var wert = msg.payload\n\nmsg.nodetype = \"inject\";\nmsg.injectType = \"write\";\n\nmsg.addressSpaceItems = [\n {\"nodeId\":'ns=3;s=\"gtyp_HBW\".\"di_PosBelt_Horizontal\"',\n \"datatypeName\":'Int32'},\n ]\n\nmsg.valuesToWrite = [wert];\n\nreturn msg;","outputs":1,"noerr":0,"x":960,"y":540,"wires":[["4877dca2.924d1c"]]},{"id":"4877dca2.924d1c","type":"OPCUA-IIoT-Write","z":"40d33793.7558d8","connector":"74a7d84.2350d28","name":"","justValue":true,"showStatusActivities":false,"showErrors":true,"x":1130,"y":540,"wires":[["60fa7383.0e42e4"]]},{"id":"60fa7383.0e42e4","type":"OPCUA-IIoT-Response","z":"40d33793.7558d8","name":"","compressStructure":false,"showStatusActivities":false,"showErrors":false,"activateUnsetFilter":false,"activateFilters":false,"negateFilter":false,"filters":[],"x":1290,"y":540,"wires":[[]]},{"id":"1cf34a00.49e556","type":"function","z":"40d33793.7558d8","name":"declare values","func":"var wert = msg.payload\n\nmsg.nodetype = \"inject\";\nmsg.injectType = \"write\";\n\nmsg.addressSpaceItems = [\n {\"nodeId\":'ns=3;s=\"gtyp_HBW\".\"di_PosBelt_Vertical\"',\n \"datatypeName\":'Int32'},\n ]\n\nmsg.valuesToWrite = [wert];\n\nreturn msg;","outputs":1,"noerr":0,"x":960,"y":600,"wires":[["ed9bc869.8af17"]]},{"id":"ed9bc869.8af17","type":"OPCUA-IIoT-Write","z":"40d33793.7558d8","connector":"74a7d84.2350d28","name":"","justValue":true,"showStatusActivities":false,"showErrors":true,"x":1130,"y":600,"wires":[["8b2161fb.e9d6f8"]]},{"id":"8b2161fb.e9d6f8","type":"OPCUA-IIoT-Response","z":"40d33793.7558d8","name":"","compressStructure":false,"showStatusActivities":false,"showErrors":false,"activateUnsetFilter":false,"activateFilters":false,"negateFilter":false,"filters":[],"x":1290,"y":600,"wires":[[]]},{"id":"1582d77c.dedc81","type":"comment","z":"40d33793.7558d8","name":"HMI - Positions","info":"","x":120,"y":440,"wires":[]},{"id":"9175e6d9.13dd48","type":"function","z":"40d33793.7558d8","name":"declare values","func":"var wert = msg.payload\n\nmsg.nodetype = \"inject\";\nmsg.injectType = \"write\";\n\nmsg.addressSpaceItems = [\n {\"nodeId\":'ns=3;s=\"gtyp_HBW\".\"Rack_Pos\"[0,0].\"di_PosRack_Horizontal\"',\n \"datatypeName\":'Int32'},\n ]\n\nmsg.valuesToWrite = [wert];\n\nreturn msg;","outputs":1,"noerr":0,"x":960,"y":860,"wires":[["fea464cb.5396b8"]]},{"id":"fea464cb.5396b8","type":"OPCUA-IIoT-Write","z":"40d33793.7558d8","connector":"74a7d84.2350d28","name":"","justValue":true,"showStatusActivities":false,"showErrors":true,"x":1130,"y":860,"wires":[["9eb98e.7b45de7"]]},{"id":"9eb98e.7b45de7","type":"OPCUA-IIoT-Response","z":"40d33793.7558d8","name":"","compressStructure":false,"showStatusActivities":false,"showErrors":false,"activateUnsetFilter":false,"activateFilters":false,"negateFilter":false,"filters":[],"x":1290,"y":860,"wires":[[]]},{"id":"f175b82e.fe3c58","type":"function","z":"40d33793.7558d8","name":"declare values","func":"var wert = msg.payload\n\nmsg.nodetype = \"inject\";\nmsg.injectType = \"write\";\n\nmsg.addressSpaceItems = [\n {\"nodeId\":'ns=3;s=\"gtyp_HBW\".\"Rack_Pos\"[0,0].\"di_PosRack_Vertical\"',\n \"datatypeName\":'Int32'},\n ]\n\nmsg.valuesToWrite = [wert];\n\nreturn msg;","outputs":1,"noerr":0,"x":960,"y":920,"wires":[["be9d8a7a.03353"]]},{"id":"be9d8a7a.03353","type":"OPCUA-IIoT-Write","z":"40d33793.7558d8","connector":"74a7d84.2350d28","name":"","justValue":true,"showStatusActivities":false,"showErrors":true,"x":1130,"y":920,"wires":[["3536f0ea.2c34d"]]},{"id":"3536f0ea.2c34d","type":"OPCUA-IIoT-Response","z":"40d33793.7558d8","name":"","compressStructure":false,"showStatusActivities":false,"showErrors":false,"activateUnsetFilter":false,"activateFilters":false,"negateFilter":false,"filters":[],"x":1290,"y":920,"wires":[[]]},{"id":"62e451c4.63d2f","type":"file","z":"bcaa3a6a.3bdbe8","name":"ConfigData.csv","filename":".node-red/pub/CSV/ConfigData.csv","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":1120,"y":80,"wires":[[]]},{"id":"598108f7.a32b4","type":"csv","z":"bcaa3a6a.3bdbe8","name":"","sep":",","hdrin":true,"hdrout":true,"multi":"one","ret":"\\r\\n","temp":"Version_Index, HBW_di_PosBelt_Horizontal, HBW_di_PosBelt_Vertical, HBW_di_PosBelt_Offset_Vertical, HBW_di_PosRack_Offset_Vertical, HBW_di_PosRack_A1_Horizontal, HBW_di_PosRack_A1_Vertical, HBW_di_PosRack_B2_Horizontal, HBW_di_PosRack_B2_Vertical, HBW_di_PosRack_C3_Horizontal, HBW_di_PosRack_C3_Vertical, VGR_di_Pos_Color_horizontal, VGR_di_Pos_Color_vertical, VGR_di_Pos_Color_rotate, VGR_di_Pos_DSI_horizontal, VGR_di_Pos_DSI_Collect_vertical, VGR_di_Pos_DSI_Discard_vertical, VGR_di_Pos_DSI_rotate, VGR_di_Offset_Pos_DSI_NFC_vertical, VGR_di_Pos_DSO_horizontal, VGR_di_Pos_DSO_Collect_vertical, VGR_di_Pos_DSO_Discard_vertical, VGR_di_Pos_DSO_rotate, VGR_di_Offset_Pos_DSO_vertical, VGR_di_Pos_HBW_horizontal, VGR_di_Pos_HBW_Collect_vertical, VGR_di_Pos_HBW_Discard_vertical, VGR_di_Pos_HBW_rotate, VGR_di_Offset_Pos_HBW_horizontal, VGR_di_Offset_Pos_HBW_vertical, VGR_di_Pos_MPO_horizontal, VGR_di_Pos_MPO_vertical, VGR_di_Pos_MPO_rotate, VGR_di_Offset_Pos_MPO_vertical, VGR_di_Pos_NFC_horizontal, VGR_di_Pos_NFC_vertical, VGR_di_Pos_NFC_rotate, VGR_di_Pos_NiO_horizontal, VGR_di_Pos_NiO_vertical, VGR_di_Pos_NiO_rotate, VGR_di_Pos_SLD_Blue_horizontal, VGR_di_Pos_SLD_Blue_vertical, VGR_di_Pos_SLD_Blue_rotate, VGR_di_Pos_SLD_Red_horizontal, VGR_di_Pos_SLD_Red_vertical, VGR_di_Pos_SLD_Red_rotate, VGR_di_Pos_SLD_White_horizontal, VGR_di_Pos_SLD_White_vertical, VGR_di_Pos_SLD_White_rotate, SSC_di_PosCentre_Horizontal, SSC_di_PosCentre_Vertical, SSC_di_PosHBW_Horizontal, SSC_di_PosHBW_Vertical, SSC_w_Threshold_Red_Blue, SSC_w_Threshold_White_Red, SLD_w_Threshold_Red_Blue, SLD_w_Threshold_White_Red, SLD_i_CounterValue_Blue, SLD_i_CounterValue_Red, SLD_i_CounterValue_White","skip":0,"strings":true,"x":950,"y":80,"wires":[["62e451c4.63d2f"]]},{"id":"d7e62043.7ba3d","type":"http in","z":"bcaa3a6a.3bdbe8","name":"downloads","url":"/downloads","method":"get","upload":false,"swaggerDoc":"","x":120,"y":140,"wires":[["bbbc5437.d371c8"]]},{"id":"1bdac880.bfc6d8","type":"http response","z":"bcaa3a6a.3bdbe8","name":"response","statusCode":"200","headers":{"content-type":"text/plain"},"x":440,"y":140,"wires":[]},{"id":"bbbc5437.d371c8","type":"ui_template","z":"bcaa3a6a.3bdbe8","group":"6bec7372.842fa4","name":"","order":3,"width":6,"height":1,"format":"