The Modbus Class in GPL supports master access to MODBUS/TCP slave devices connected to the local Ethernet network. MODBUS/TCP is an "open" de facto standard protocol that is widely used in the industrial manufacturing environment to communicate between intelligent devices. It has been implemented by hundreds of vendors on thousands of different products to communicate digital and analog I/O and register data between devices.
Table 19-66 briefly summarizes the properties and methods for this Class, which are described in greater detail in the following sections.
Modbus Class Member | Type | Description |
---|---|---|
New Modbus |
Constructor Method |
Creates an object for a MODBUS connection and specifies the IP address. |
Method |
Closes any connections associated with this object. |
|
Method |
Reads one or more outputs. |
|
Method |
Reads the device ID strings. |
|
Method |
Reads one or more inputs. |
|
Method |
Reads one or more holding registers. |
|
Method |
Reads one or more input registers. |
|
Get/Set Property |
Gets or sets the timeout, in milliseconds, that this connection will wait for a reply before throwing an exception. |
|
Method |
Writes multiple outputs. |
|
Method |
Writes multiple holding registers. |
|
Method |
Writes a single output. |
|
Method |
Writes a single holding register. |