So one TD410 will be master and the other will be slave.
TD410 as Slave Modbus TCP-IP:
Refer to example 6 here:
https://forum.pixsys.net/viewtopic.php? ... 6603#p6603
TD410 as Master Modbus TCP-IP:
- On the resources/Ethernet section enable flag on "Modbus TCP master"
- Right mouse click on "ethernet", "Add"
- Select "Generic Modbus", a device called "Generic_Modbus_1" will appear under Ethernet
- Select "Generic_Modbus_1" and fill in the "IP address" leaving the rest as default
- Right mouse click on "Generic_Modbus_1, "Add"
- Select the Modbus function you need. Please use "FC-03" to read registers, "FC-06" to write a single register, "FC-16" to write a series of consecutive registers (optimized communication).
Example for reading registers:
- "General" tab: fill in the register address you want to read at "Start address"
FC03_Master_TCP_1.JPG
- "Holding Reg" tab: in the "Label" field", Assign the PLC variable where the value will be store (internal master PLC variable)
FC03_Master_TCP_2.JPG
So the value will be read in the "start address" from the slave and stored in the "label" variable of the master.
If you need to read more than one variables, in the "Holding Reg" tab you can press "ADD" button and insert the new destination variable. Keep in mind that in this case the variables must be consecutive of the "Start address" declared. If you need to read a non consecutive register, you need to make a right mouse click on "Generic_Modbus_1, "Add", "FC-03" etc like described above.
The writing way is similar, you just need to know if you need to write a single register (so use "FC-06" Modbus function) or some consecutive registers (so use "FC-16" Modbus function).