At a Glance

The following array shows details on the variables used:

Variable

Type

Definition

Start_4

BOOL

Function start bit

Step_4

INT

Function step

Error_4

INT

Function error code

MngtPrint_4

ARRAY[0..4] of INT

Array of the communication parameters for the INPUT_CHAR block

MngtInput_4

ARRAY[0..4] of INT

Array of the communication parameters for the block PRINT_CHAR

ReqString_4

STRING

Character string to modem command

AnsString_4

STRING

Character string from modem answer

Out_In_Mbus_4

OUT_IN_MBUS

Instance of the OUT_IN_MBUS block

Adr_4

INT

Communication port of the slave PLC

MbusCmd_4[1]

INT

Modbus function code

MbusCmd_4[2]

INT

Quantity of data to read

MbusCmd_4[3]

INT

Modbus address of the slave PLC

MbusCmd_4[4]

INT

Start of the data area from the slave to read

RetryLmt_4

INT

Number of attempts

DataBits_4

INT

Transmission mode (1 for RTU and 0 for ASCII)

RespTout_4

INT

Timeout

Retry_4

INT

Number of attempts made by the block

Active_4

BOOL

The value 1 indicates that the operation was successful.

Done_4

BOOL

The value 1 indicates that the operation was successful.

Flag_Error_4

BOOL

The value 1 indicates that an error has occurred or that the current operation has terminated

Status_4

INT

Status code generated by the block