FBD Representation

Representation:

LD Representation

Representation:

IL Representation

Representation:

LD Address
OUT_IN_MBUS AD, MC, RL, DB, AB, MDA, RT, AC, DO, ERR, ST

ST Representation

Representation:

OUT_IN_MBUS(AD, MC, RL, DB, AB, MDA, RT, AC, DO, ERR, ST);

Parameter Description

The following array describes the input parameters:

Parameter

Type

Comment

ADDR

ADDR_TYPE

Information on the address of the communication port of the slave device.

This address must be in the following form: ADDR(’r.m.c.SYS’).

Abbreviations Used: r = rack, m = module slot, c = channel.

MBUSCMD

ARRAY [1.. 4] OF INT

Modbus array definition

RETRYLMT

INT

Number of attempts to send a message made by the block

DATABITS

BOOL

Modbus Messages to send in ASCII mode (DATABITS =0) or RTU mode (DATABITS=1).

RESPTOUT

INT

Block wait time.

ABORT

BOOL

DFB cancel bit.

The following array describes the input/output parameter:

Parameter

Type

Comment

MASTERDATAAREA

ARRAY [x.. y] OF INT

Data area of the master PLC

NOTE: In order to read one of the last 8 bits of the memory it is necessary to read all the last 8, otherwise the function sends back an error status report. Then it possible to extract the bit needed.
NOTE: The input/output parameter uses a dynamic array, you must in this case check in Control Expert Allow dynamic arrays [ANY_ARRAY_XXX] under tool > project option > language extension.

The following array describes the output parameters (read only):

Parameter

Type

Comment

RETRY

INT

The value displayed indicates the current number of attempts made by the block.

ACTIVE

BOOL

The value 1 indicates that an operation is in progress.

DONE

BOOL

The value 1 indicates that the operation is completed.

ERROR

BOOL

The value 1 indicates that an error has occurred.

STATUS

INT

The value displays a status code generated by the block.