LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 66 : Read an output of LOGO! using

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.. 

ericmateovisan_0-1604838647482.png

this is my VI:

ericmateovisan_1-1604839462322.png

and this is LOGO! plc setting in LogoComfort8.2 software:

 

ericmateovisan_2-1604839514500.png

 

Can anybody help me with this ?

Thanks in advance

best Regards, Eric 

 

 

 

0 Kudos
Message 1 of 3
(1,325 Views)

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.

 

Message 2 of 3
(1,303 Views)

Thank you   

 

I've changed the unit ID using the property node : 

 

 

ericmateovisan_0-1604899866460.png

 

but I get the same error 66 at the read coils error

 

 

 

 

 

0 Kudos
Message 3 of 3
(1,259 Views)