LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus TCP/ip Error 56

Hi Everybody

 

I am creating a labview program to read some registers of a module via modbus tcp/ip.

the configuration of that module is:

ip:192.168.0.10

id:0

Port:502

 

I wrote program like below:

01.png

 

02.png

 

but i receive Error 56.

I really need your help in order to finish this program.Labview version is 2018.

 

Sincerely yours,

Ahmad

0 Kudos
Message 1 of 20
(4,639 Views)

Error 56 is the error you get when there's no reply at all from your device.  As in, it might be turned off or unplugged or just dead.

 

Check to see if you can ping your device from the command line.  Make sure the device isn't off or locked up (turn it off and back on again, maybe).  If you have 3rd party software that can communicate with the device, try that.  

0 Kudos
Message 2 of 20
(4,624 Views)

Thanks a lot my friend for your guide.

There is no dis-connectivity in the system or cables.

I have another software in my computer which is named modbuspoll.

When i run it with below specification it connects and receive data from module immediately.

So i am surprised what would be the problem.

I will be so happy to help me.

 

poll1.png

 

poll2.png

 

poll3.png

 

 

Regards

0 Kudos
Message 3 of 20
(4,603 Views)

Please check read coil subvi. It seems coil start address is different caused. Subvi add 630000 as start address. Try to use holding regiester or other function vi to test.

0 Kudos
Message 4 of 20
(4,597 Views)

Hi,

 

The Unit ID is set to '0' This is the slave address. Set to '0' indicates a Broadcast. No slave will answer to that.

Better set it to '1'

 

Kees

0 Kudos
Message 5 of 20
(4,587 Views)

Hi my friend,

 

The ID of module is fixed at "0".

I can not change it.

by the way i can connect it by modbus poll software without any problem.

0 Kudos
Message 6 of 20
(4,571 Views)

Hello

Thanks a lot my friend.I double clicked subvi but address is as an input for that which will be fed through my main vi program.

So i really dont know from where this 630000 is coming.

0 Kudos
Message 7 of 20
(4,568 Views)

When i am trying to read register value of a module via Ethernet by labview,should i use modbus master or modbus slave in my program?

0 Kudos
Message 8 of 20
(4,566 Views)

Exactly whenever i enable Highlight execution bulb i can see that the modbus master initializes and "no error" passes to the next stage.But error will be generated when modbus master reading coils activates.

but i don't know ehere is the problem.

Even i was in doubt about my eset internet security program but even by disabling that program nothing changed.

Please guide me how can i solve this problem.

 

best regards

0 Kudos
Message 9 of 20
(4,562 Views)

Did you try it with unit ID set to '1' ??

0 Kudos
Message 10 of 20
(4,550 Views)