ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LABVIEW SERIAL MODBUS

I am attempting to read Modbus holding registers (10000 to 10150). While I can view the data successfully in a Modbus application, I keep encountering error 56 in LabVIEW.

0 Kudos
Message 1 of 15
(1,809 Views)

@asadmehmood wrote:

I am attempting to read Modbus holding registers (10000 to 10150). While I can view the data successfully in a Modbus application, I keep encountering error 56 in LabVIEW.


Are you using both applications at the same time? 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 2 of 15
(1,770 Views)

Error 56 is a timeout error, so check your serial settings and your physical connections to the device.

 

Also make sure the Modbus application is not still open and has released the Com port.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 15
(1,768 Views)

Double check the address numbers wouldn't you use address number 10000 ? 

0 Kudos
Message 4 of 15
(1,757 Views)

I have closed all the applications, but I am unsure if I am writing the address correctly. I'm not sure if the error is due to the address or something else.

0 Kudos
Message 5 of 15
(1,755 Views)

I tried 10000 but still i got the same error

0 Kudos
Message 6 of 15
(1,754 Views)

Have you tried serial type RTU? 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 15
(1,747 Views)

have you tried without loop ? 

0 Kudos
Message 8 of 15
(1,713 Views)

@asadmehmood wrote:

I am attempting to read Modbus holding registers (10000 to 10150).


Are these values in decimal or hexadecimal?

0 Kudos
Message 9 of 15
(1,688 Views)

In decimal

0 Kudos
Message 10 of 15
(1,657 Views)