LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read float number of holding registers from instrument via Modbus

I use the LabVIEW and the Real Time Module 2014.

I have established an RS485 connection between the cRIO-9035 (Full Duplex RS485) and an instrument (Half Duplex RS485).

In the project explorer of LabVIEW, I right click on the NI-cRIO-9035 (Device Target) -> New -> I/O Server -> Modbus.

In the window that appears I set the same parameters for the serial communication like the parameters of the instrument.

I right click on the Modbus I/O Server -> Create Bound Variables.

In the window that appears I expand the modbus server under the target device and I select the range 400001-465535.

I set the Data Item equal to 402015. This means that I want to read the read/write register 2015.

I do the same for the 2016 and 2017 in order to read the date (DD MM YYYY).

I deploy the Library and I open the NI Distributed System Manager and I can see successfully the date next to the registers that I am reading.

 

Now I want to read the floating value of a sensor's indication (The sensor is connected to the instrument and its indication is displayed correctly on the instrument's screen).

This value is stored in 2 registers starting from the register 2600, according to the manual of the manufacturer.

I create a new Bound Variable, but I don't know how I can read 2 consecutive registers and which range I should choose.

I tried to set the Data Item equal to 402600-402601, by choosing the read/write command, I tried the F302600, by chossing the Read Float command and the AF302600L1, by choosing the Read Array Float command. None of them works.

 

What should I do to read registers with floating numbers ?

 

I attach the screensots that show Modbus Library and the Bound Variables.

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