Logic Machine Forum
Siemens Logo modbus - 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: Siemens Logo modbus (/showthread.php?tid=3239)



Siemens Logo modbus - thomasoppida - 20.03.2021

Hi,

Can you please help me with the creation of the json line for reading a value from a flag in a Siemens Logo plc?
So far I have tried this line with no success:
{ "name":  "Analog verdi 2 CO2 verdi ventilasjon", "bus_datatype": "float16", "type": "register", "datatype": "int16", "address": 40529,"readable": "true", "writable": "true"},
I have read that I maybe need to do swap on this!? As I read in the documentation of the Logo I can see that this parameter I am trying to extract is a "word"
My modbus poll is attached and I want to read the address 530 highlighted:
Can somebody state the obvious? I have been trying for hours now..

Kind regards Thomas


RE: Siemens Logo modbus - khalil - 20.03.2021

(20.03.2021, 19:10)thomasoppida Wrote: Hi,

Can you please help me with the creation of the json line for reading a value from a flag in a Siemens Logo plc?
So far I have tried this line with no success:
{ "name":  "Analog verdi 2 CO2 verdi ventilasjon", "bus_datatype": "float16", "type": "register", "datatype": "int16", "address": 40529,"readable": "true", "writable": "true"},
I have read that I maybe need to do swap on this!? As I read in the documentation of the Logo I can see that this parameter I am trying to extract is a "word"
My modbus poll is attached and I want to read the address 530 highlighted:
Can somebody state the obvious? I have been trying for hours now..

Kind regards Thomas

You have to shift the address by -1 
See the logo modbus profile in this link 
https://forum.logicmachine.net/showthread.php?tid=3200&highlight=Siemens


RE: Siemens Logo modbus - admin - 21.03.2021

Have you tried using "read test" feature and reading 529 and 530, not 40529 and 40530?


RE: Siemens Logo modbus - thomasoppida - 21.03.2021

(21.03.2021, 09:30)admin Wrote: Have you tried using "read test" feature and reading 529 and 530, not 40529 and 40530?

I connect to the Logo through tcp, but modified the profile I was using and this worked. Thank you very much :-)


RE: Siemens Logo modbus - thomasoppida - 21.03.2021

Hi,

Thanks for all the help. Adding the modbus profile I have ended up with. 
Based off the work of user epps 

Kind regards
Thomas