IP Address: 192.168.1.6

IP Address set on pc: 192.168.1.10

Subnet Mask: 255.255.252.0


Links to Beckhoff website:

EK900: https://www.beckhoff.com/en-us/products/i-o/ethercat-terminals/ekxxxx-bus-coupler/ek9000.html

EL5042: https://www.beckhoff.com/en-us/products/i-o/ethercat-terminals/el5xxx-position-measurement/el5042.html



Modbus:


Using ModBusPoll (app):


Using Modpoll (cmd lines):

Switching encoder to the second terminal:


Lines of Codes that work: