Modbus Master VIs

Owning Palette: Modbus VIs

Requires: DSC Module or Real-Time Module. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Modbus Master VIs to create Modbus masters and to perform read and write operations on Modbus slaves.

Palette ObjectDescription
CloseCloses and destroys a Modbus master instance.
Create Master InstanceCreates a serial or TCP Modbus master instance. You must manually select the polymorphic instance to use.
Mask Write Holding RegisterWrites values to one or more bits of a holding register.
Property NodeSets or writes properties for a Modbus master instance. Use this node to set the read operation timeout, write operation timeout, or both timeouts on a Modbus slave and to set the identification of a Modbus slave.
Read CoilsReads values from contiguous coils. The maximum number of coils this VI can read is 2,000.
Read Discrete InputsReads values from contiguous discrete inputs. The maximum number of discrete inputs this VI can read is 2,000.
Read Holding RegistersReads values from contiguous holding registers. The maximum number of holding registers this VI can read is 125.
Read Input RegistersReads values from contiguous input registers. The maximum number of input registers this VI can read is 125.
Write and Read Multiple Holding RegistersWrites and reads values to and from contiguous holding registers. This VI performs the write operation before the read operation. The maximum number of holding registers this VI can write is 121. The maximum number of holding registers this VI can read is 125.
Write Multiple CoilsWrites values to contiguous coils. The maximum number of coils this VI can write is 1,968.
Write Multiple Holding RegistersWrites values to contiguous holding registers. The maximum number of holding registers this VI can write is 123.
Write Single CoilWrites a value to a single coil.
Write Single Holding RegisterWrites a value to a single holding register.


SubpaletteDescription
Utilities VIsUse the Utilities VIs to read the identification and exception status of a Modbus slave, to set read and write operation timeouts on a Modbus slave, and to set the identification of a Modbus slave.

WAS THIS ARTICLE HELPFUL?

Not Helpful