LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I/O Server TCP Modbus Slave: Problem reading holding register using a Master instance

Hi!

 

I'm having problems reading holdin registers from a I/O server TCP Modbus Slave.

I have created the I/O server following these steps:

 

1- I create the Modbus Slave I/O Server

 

Keplovic_0-1583316700534.png

 

2- I choose the holding register I want to write (400001)

Keplovic_1-1583316919456.png

 

3- I bind this holding register to a shared variable (It's called "Error") because I want to have the value of this shared variable in the modbus server.

 

Keplovic_2-1583317085437.png

 

4- I write in the shared variable (the one named Error) and I can check in the NI Distributed System Manager that the holding register (400001) has the same value than the shared variable.

 

Keplovic_3-1583317556878.png

 

5- I try to read this holding register creating an instance of a TCP Master and I get only 0s instead of the value stored in register 400001

    I use the following configuration:

    -   Port 502

    -   IP: "localhost"

    -   Starting addresss 0

   

Am I missing something? Anyone know what's going on?

Thanks in advance.

 
 
 

 

0 Kudos
Message 1 of 1
(1,792 Views)