11-08-2020 06:48 AM
Hi everyone!
Im quite new to modbus communication in LabVIEW. I've made a program in which I try to make connection with a LOGO! Siemens PLC.
I've used from a simple tutorial on NI site, and changed it a little bit. when I run the program I get error 66..
this is my VI:
and this is LOGO! plc setting in LogoComfort8.2 software:
Can anybody help me with this ?
Thanks in advance
best Regards, Eric
11-08-2020 07:44 AM - edited 11-08-2020 07:44 AM
Your second picture shows the device is at Unit ID 255. The yellow modbus library (and the purple) for some reason doesn't expose the setting of the unit ID when you are creating the master. I think it defaults to 1.
What you need to do is set the unit ID by putting down a property node after you create the master and write a constant of 255 to the Unit ID property.
11-08-2020 11:26 PM - edited 11-08-2020 11:33 PM
Thank you RavensFan for your reply
I've changed the unit ID using the property node :
but I get the same error 66 at the read coils error