Modbus TCP Control Interface
Name |
Type |
Data Type |
Availability |
Comments |
DataAddr |
Property |
Long |
R/W at Design and Run Time |
Modbus address of the first register to read or write. |
DataQty |
Property |
Integer |
R/W at Design and Run Time |
Limited to the allowed number of items based on the type of operation
(e.g. 125 for read registers) |
NodeAddr |
Property |
Integer |
R/W at Design and Run Time |
Limited to values between 1 and 247 |
HostName |
Property |
String |
R/W at Design and Run Time |
Can be either an IP Address or the Name |
MsgTimeout |
Property |
Long |
R/W at Design and Run Time |
How long to wait for a response. |
Busy |
Function |
Boolean |
R/O at Run Time. Not Available
at Design Time. |
|
Status |
Property |
Integer |
R/O at Run Time Not Available at Design Time |
Contains result of the last communication attempt. (Same as the
argument of the TransactionDone Event below) |
DataElement(index%) |
Property |
Integer Return Value as well as an integer argument |
R/W at Run Time. Not Available at Design Time. |
Access to the array of data to send or that has been received |
TransactionDone( status%) |
Event |
Integer Argument Result |
Run Time |
Occurs when a read or write is complete or has failed. Result argument indicates success/failure |
Action( invokeIndex%) |
Sub |
|
|
InvokeIndex = 0 initiates a read. InvokeIndex = 1 initiates a write. |