I’m currently playing around with the modbus binding, I’ve got a working setup (meaning i write values to the NOVRAM memory of my PLC) but the setup trows an error when polling for data:
tcp.wago750.connection=192.168.1.16:502:60:0:0:3:100
tcp.wago750.type=coil
tcp.wago750.start=12288
tcp.wago750.valuetype=bit tcp.wago750.length=0 (i get an error code 3 when setting this to 8)
I don’t really know what’s causing this error (any input?). At the moment however I don’t require the modbus binding to poll for data. Is there any way I can configure openhab2 not to poll? In the PaperUI I can see that i’m using modbus binding v1.10.0. Let me know if any more information is required from my end.
EDIT: I don’t know if the connection errors are causing this but not all Modbus commands are getting trough to my PLC. I’m using the following item configuration:
So to test this any further I made some modifications (using articla from Ssalonen above, thanks rossko57!); idecided to use try to use the modbus polling instead of MQTT to update the state of the switch.
Notes: the WAGO 750-881 novram memory starts at address 12288 (start = 512 + 11776 offset), in the examples above the logic works using node-red with modbus to test to setup.
In both attempts the ON function works but the OFF functions doesn’t do anything, am I doing anything wrong? anyone any input on how to troubleshoot this?
I installed the modbus slave cmd tool from modbus to troubleshoot. When NodeRed performs the write operation to register 12288 and 12289 there’s no difference then the write’s executed by OpenHab. Yet with NodeRed the register set to 1 in my PLC on the OFF trigger while OpenHab doesn’t… Any way I can enable some extra tracing or something to see what’s going wrong?