Function Description

The ADDR function is used to convert a character string into an address that can be used directly by communication functions.

The additional parameters EN and ENO can be configured.

FBD Representation

Representation:

LD Representation

Representation:

IL Representation

Representation:

LD Addr_String
ADDR
ST Addr_Array

ST Representation

Representation:

Addr_Array := ADDR(Addr_String);

Parameter Description

The following table describes the input parameters:

Parameter

Type

Comment

IN

STRING

Character string-type variable representing the device address on a bus or network.

Examples: ‘{5.6}SYS’, ‘{1.2}0.4.5.2’

The following table describes the output parameters:

Parameter

Type

Comment

OUT

ADDR_TYPE

or

ARRAY [0..5] OF INT

Array of 6 integers representing the Addr_String address.

Addr_Array may be used directly as the first input parameter of the communication EFs.