At a Glance

Use MBP_MSTR operation 16 to close a Modbus TCP/IP connection on the network.

NOTE: This operation is not available on Modbus Plus ports (embedded port on CPU or NOM modules).

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 and DATABUF output pins define the operation.

  • EN and ENO can be configured as additional parameters.

Control Block

The format of the CONTROL block is described below:

Register

Function

Description

CONTROL[1]

Operation

16 = close connection

CONTROL[2]

Error status

Indicates detected error status (read only)

CONTROL[3]

(not used)

CONTROL[4]

(not used)

CONTROL[5]

Routing Register

High byte = Ethernet communication module slot

Low byte = MBP on Ethernet transporter (MET) mapping index (also known as Unit ID)

CONTROL[6]

IP Address

Byte 4 of the IP address (MSB)

CONTROL[7]

Byte 3 of the IP address

CONTROL[8]

Byte 2 of the IP address

CONTROL[9]

Byte 1 of the IP address (LSB)