Logic Machine Forum
Modbus FC code - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Modbus FC code (/showthread.php?tid=1675)



Modbus FC code - Domoticatorino - 24.10.2018

Hi,
I am communicating to a Wago PLC 750/881 in Modbus TCP/IP. In the profile I use this following register:

{"name":"Proportional","bus_datatype":"14","datatype":"float32","type":"inputregister","address":13535,"writable":"true"}

I can read value of the PLC but when I try to write to PLC nothing happen. I am thinking about "inputregister" which is FC04 code.

Probably I have to write to Wago using FC06 code but in the profile which type I have to use?

Thanks.


RE: Modbus FC code - Daniel - 25.10.2018

Hi
Change type to register
BR


RE: Modbus FC code - Domoticatorino - 25.10.2018

Hi, I changed it to register but there is something strange.
I mean that variable was read (value was 100) but after a while value has gone to 0 but without writing.
Strange behaviour.

What do you think?


RE: Modbus FC code - Daniel - 25.10.2018

(25.10.2018, 19:12)Domoticatorino Wrote: Hi, I changed it to register but there is something strange.
I mean that variable was read (value was 100) but after a while value has gone to 0 but without writing.
Strange behaviour.

What do you think?

Log this object and check where from this value came from. It doesn't need to be modbus. 
Are you able to check the value on your plc?


RE: Modbus FC code - Domoticatorino - 26.10.2018

Hi, how can log this value? The only way is logging it on knx bus. Do you mean it?
I can check variable on plc side and in fact it has been not modified.


RE: Modbus FC code - Daniel - 26.10.2018

Just tick LOG and then in Object log when a value is received it will tell you the source.