I am new to using Node-RED and the Omron FINS addon and have issues with connecting to an Omron NX102-9000 PLC that is on the same network as my Node-RED machine.
The IP addresses are as below:
PLC - 10.1.2.31
Node-RED - 10.1.2.26
What is the subnet mask on both the PLC and the computer running Node-RED?
Is Node-RED running in docker or on the OS or ???
If you install node-red-node-ping can you ping the PLC from node-red?
Are you plugged into the correct port of the NX?
Recommendation: Align the last digit of IP addresses with the Node Number (e.g. if the PLC IP ends in .26, the node-number would ideally be 26, same for the computer
Have you setup routing tables (as in PLC routing table, not network switching/routing)?
Which port have you plugged into?
IIRC, only 1 port (the main EIP enabled) port supports FINS (its been a few years since I have touched an Omron NX 1xx - I no longer have access to PLCs to test - if you have a spare, I would happily receive it and test it for you)
Is the windows firewall disabled?
Have you added any AT addresses in the TAGs?
Next steps: I would start with using a class C network (255.255.255.0) and setting the conversion method to Auto or Combined.
Will have to read up on the FINS routing tables as never used them before.
Using Class C network might be a bit difficult at the moment as I don't spend much time in the office where the PLC/Server is at the moment and can only access them via a site to site VPN. Both of the devices are next to each other though on the same network and connected to the same switch.
Will check the routing tables and restarting the PLC and report back.
Lastly I have tried setting the remote network table in Sysmac and have two different networks for the PLC and the PC running Node-RED but nothing helped.
One thing i note - auto connect is disabled. Any reason? Are you commanding the node to connect as described in the built in help? I would recommend until you get up and running to leave "Auto Connect ` checked. FYI, in Node-RED, whenever you change a setting on a node, it is completely destroyed and re-created (i.e. connection is re-established with the new parameters you enter)
Did you check computer firewall?
Can you run wireshark to confirm packets are being sent?
Can you attach a debug (set to show complete msg) to the output of your FINS Read node. Also, add a catch node that is aimed at the FINS Read node & link that to a debug node (also set to show complete msg). Capture the full msg and post in a reply.
How to capture debug data for posting
There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.
Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.
How to post well formatted code/json etc
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)
```
code goes here
```
You can edit and correct your post by clicking the pencil icon.