-

ADDRESS_TO_ID

TypeFunction block
DescriptionThe function block is used to convert the information on an Application Relation (AR) defined in the Profinet address structure ADDR into a unique ID. The block is executed by REQ = TRUE.

The Profinet address ADDR addresses a Profinet AR. It is a structure with defined arrangement of the individual elements of the structure.

If an error occurs during execution of the function block, ERROR is set to TRUE. The STATUS output indicates the error code.
Notes
  • Valid output parameters will be first available when the ID output is unequal to 0. This also applies for changed input parameters. The process can last possibly several program cycles.
  • Function blocks of this type have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.

    The maximum allowed number of these function block instances activated at the same time is limited by the maximum number of ARs for the controller.

ParametersInput

REQ

Input/Output

ADDR

Outputs

DONE

BUSY

ERROR

STATUS

ID
Error codes Error codes at the STATUS output