Sending Commands via TCP into OMRON Code Reader F430

Hi!

Good day everyone.

Sorry I am so new in using Node-RED this is because one of my client is using Node-REd ever since but unfortunately we have challenges on sending commands into Code Reader Device (specifically OMRON F430 Series) via TCP connection.

for reference this will be the commands I am trying to send:

JOBLOAD
Loads a job from slot n or from memory.

Command Format
JOBLOAD -slot=SettingValue -r
or
JOBLOAD -mem -r
• Specify -slot or -mem.
• Insert a space between the command and the parameters.
• Insert a space between each parameter.
• Add a delimiter to the end of the command or parameter.
• No space is required between the parameter and the delimiter.

https://www.fa.omron.com.cn/data_pdf/mnu/z444-e-02_f430-f_f420-f.pdf?id=3789

Almost all of the commands did not work for me except the TRIGGER Command.
This trigger command send a trigger to the F430 for sensor capture.

All of the commands already tested via hyper terminal and it all works fine.

I am now thinking what was missing on my sample nodes.

Hope somebody can help me. Thanks in advance!

Do you maybe need to add a \n or \r character to the end of the command as an [enter] to get it to send correctly ?

1 Like

Hi,
I actually have the sensor so I made a few tries. This is working for me.

Let me know.

[{"id":"c23e4166ed60556b","type":"tab","label":"Omron F430","disabled":false,"info":"","env":[]},{"id":"eaed6e0511b67869","type":"inject","z":"c23e4166ed60556b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"TRIGGER","payloadType":"str","x":180,"y":100,"wires":[["1c97fb190c520922"]]},{"id":"e78e12eef0218cbb","type":"tcp request","z":"c23e4166ed60556b","name":"","server":"192.168.188.2","port":"49211","out":"char","ret":"buffer","splitc":"\\n","newline":"","tls":"","x":450,"y":420,"wires":[["cbcd6232ba6c1d8e"]]},{"id":"cbcd6232ba6c1d8e","type":"debug","z":"c23e4166ed60556b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":420,"wires":[]},{"id":"664052bda1eb13b8","type":"inject","z":"c23e4166ed60556b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"INFO","payloadType":"str","x":170,"y":140,"wires":[["1c97fb190c520922"]]},{"id":"5fb1c2343cf11a90","type":"function","z":"c23e4166ed60556b","name":"append CR","func":"msg.payload = msg.payload + \"\\r\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":420,"wires":[["e78e12eef0218cbb"]]},{"id":"4d05e86baa9c803d","type":"link in","z":"c23e4166ed60556b","name":"","links":["1c97fb190c520922"],"x":125,"y":420,"wires":[["5fb1c2343cf11a90"]]},{"id":"1c97fb190c520922","type":"link out","z":"c23e4166ed60556b","name":"","mode":"link","links":["4d05e86baa9c803d"],"x":445,"y":200,"wires":[]},{"id":"d8b0151144f8aaef","type":"inject","z":"c23e4166ed60556b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"HELP","payloadType":"str","x":170,"y":180,"wires":[["1c97fb190c520922"]]},{"id":"3fb6b1bcacfb53b0","type":"inject","z":"c23e4166ed60556b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ONLINE","payloadType":"str","x":180,"y":220,"wires":[["1c97fb190c520922"]]},{"id":"198be708d88c6781","type":"inject","z":"c23e4166ed60556b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"OFFLINE","payloadType":"str","x":180,"y":260,"wires":[["1c97fb190c520922"]]},{"id":"eeb99f159ffa292d","type":"inject","z":"c23e4166ed60556b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"MEMINFO","payloadType":"str","x":180,"y":300,"wires":[["1c97fb190c520922"]]}]
2 Likes

Thank you! It works for me too.
This will help me a lot.

I will try now the other commands. Thanks again.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.