At a Glance
Use MBP_MSTR
operation 16 to close a Modbus TCP/IP connection
on the network.
Block Operation
The MBP_MSTR block can send requests and receive responses up to 253 bytes long. For block operation, refer to the block description:
When the ENABLE input pin is turned ON, operation 15 begins.
If the ABORT input pin is turned ON or if the ENABLE input pin is turned OFF, the operation ends.
The
ACTIVE
output pin is ON during the operation.The
ERROR
output pin turns ON if the operation aborts without success.The
SUCCESS
output pin turns ON if the operation completes with success.The
CONTROL
andDATABUF
output pins define the operation.EN
andENO
can be configured as additional parameters.
Control Block
The format of the CONTROL block is described below:
Register |
Function |
Description |
---|---|---|
|
Operation |
16 = close connection |
|
Error status |
Indicates detected error status (read only) |
|
(not used) |
– |
|
(not used) |
– |
|
Routing Register |
High byte = Ethernet communication module slot |
Low byte = MBP on Ethernet transporter (MET) mapping index (also known as Unit ID) |
||
|
IP Address |
Byte 4 of the IP address (MSB) |
|
Byte 3 of the IP address |
|
|
Byte 2 of the IP address |
|
|
Byte 1 of the IP address (LSB) |