I have a problem, to connect a Beckhoff TwinCat2 Windows runtime with Openhab by using Modbus TCP.
Has onyone done it and can halp me?
What I have done is, to Install the ModbusTCP Server and add some Global Variables in Beckhoff:
xMB0 AT %MX0.0 : BOOL;
At the modbus.cfg I have addet the following lines:
poll=300
tcp.slave1.connection=192.168.2.101:502:60:0:0:3:100
tcp.slave1.id=1
tcp.slave1.start=0
tcp.slave1.length=1
tcp.slave1.type=coil
And I have the following items Configuration:
Switch TestitemSPS1 “Test1” (gModbus) {modbus=“slave1:0”}
With this configuration nothing will happen. Have I done anything wrong?