[ { "id": "c79466b449c08c96", "type": "tab", "label": "Printer", "disabled": false, "info": "", "env": [] }, { "id": "335468cdd688d290", "type": "ctrlx-config-subscription", "device": "8d3f145974191583", "name": "ctrlX", "publishIntervalMs": "250" }, { "id": "8d3f145974191583", "type": "ctrlx-config", "name": "ctrlX CORE", "hostname": "localhost", "debug": false }, { "id": "956ee913fca45323", "type": "tcp out", "z": "c79466b449c08c96", "d": true, "name": "Printer", "host": "192.168.1.52", "port": "9100", "beserver": "client", "base64": false, "end": false, "tls": "", "x": 1330, "y": 760, "wires": [] }, { "id": "4f772f0846ffb1aa", "type": "ctrlx-datalayer-subscribe", "z": "c79466b449c08c96", "subscription": "335468cdd688d290", "path": "plc/app/Application/sym/Printer/PrintCommand", "name": "", "x": 350, "y": 760, "wires": [ [ "df20cb120b7e7983" ] ] }, { "id": "b8eed850c0cca7ca", "type": "ctrlx-datalayer-request", "z": "c79466b449c08c96", "device": "8d3f145974191583", "method": "READ", "path": "plc/app/Application/sym/Printer/PrintText", "payloadFormat": "value", "name": "", "x": 980, "y": 760, "wires": [ [ "956ee913fca45323", "f0bec85d7f2fa84d", "582fc925d510f132" ] ] }, { "id": "f0bec85d7f2fa84d", "type": "debug", "z": "c79466b449c08c96", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1360, "y": 680, "wires": [] }, { "id": "df20cb120b7e7983", "type": "switch", "z": "c79466b449c08c96", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "str" }, { "t": "gt", "v": "0", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 670, "y": 760, "wires": [ [], [ "b8eed850c0cca7ca" ] ] }, { "id": "3c17bbc059bcbaa9", "type": "ctrlx-datalayer-request", "z": "c79466b449c08c96", "device": "8d3f145974191583", "method": "WRITE", "path": "plc/app/Application/sym/Printer/PrintCommand", "payloadFormat": "value_type", "name": "", "x": 1240, "y": 860, "wires": [ [] ] }, { "id": "582fc925d510f132", "type": "function", "z": "c79466b449c08c96", "name": "function 1", "func": "msg.payload = {type: 'bool8', value : false};\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 920, "y": 860, "wires": [ [ "3c17bbc059bcbaa9" ] ] } ]