10-29-2017 10:03 PM
Does anyone have a labview example code on how to read a slave device holding register using Labview Serial port connection. Labview will be my master and it will read slave device holding register through its serial port. I could not see any example on the labview Help section and I am in need of an example to use as my starting point. Any help is well appreciated.
10-29-2017
10:37 PM
- last edited on
04-01-2024
03:25 PM
by
Content Cleaner
10-29-2017 10:58 PM
If you need to use Modbus RTU master then use the function in the image attached.
Tips:
Connect Create master(New serial master)->Read holding register(or)write holding register->shutdown vi.
Before run VI set baurd rate, parity, unit ID & com port in create master vi
Set the holding register address in Read holding register vi
10-30-2017
02:32 AM
- last edited on
04-01-2024
03:26 PM
by
Content Cleaner
@RavensFan wrote:
Download the Modbus library. They have examples in there.
There are two other Modbus APIs available:
Modbus Master by Plasmionique Inc.
LabVIEW Modbus API
All come with examples.
If you happen to own the RT- or DSC-module you'll will find yet another Modbus-API integrated in your palette.
Regards, Jens