From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modbus

Dear NI,

                    I am using Modbus- MB vi's, i trying to read a value from my device . my device has a baud rate : 19200, slave address: 2, and charformat: 8E1.

 

i cant able read the value using this vi's..... i tested with Modtest software. from that i defined all the above parameters and i used Holding registers to read the data, and given Register address is 40001.

 

Help me to read the data using Labview.....

 

send me the example program...

 

Regards,
Balaji DP
0 Kudos
Message 1 of 3
(2,402 Views)

There are already examples in the Modbus library.

 

It would be easier if you posted your code with whatever parameters you are using saved as defaults in the controls.

 

What value did you put in the starting address field?  For a 40,001 register, you should have a 0 in the field.

0 Kudos
Message 2 of 3
(2,391 Views)
Sending the Modbus command using LabVIEW is pretty trivial, you can use the Advanded Serial Write/Read Shipping example to do it (assuming you sending it out over your serial port).  It sounds to me like you are having trouble sending the correct command or generating the correct CRC-16.  For either of these you will probably need to either read the manual or contact customer support for the device you are trying to talk to.
0 Kudos
Message 3 of 3
(2,390 Views)