-

AR_MGT

Type Function block
Description The function block is used to start or stop Profinet application relations (AR) out of the running application program. The action to be performed is specified with the CMD input. The function block is executed by REQ = TRUE.

The application relation (AR) is identified by the station name defined on the 'Settings' editor of the Profinet device selected in the PLANT.

If the function block has been executed successfully, the DONE output is set to TRUE. The STATUS output indicates the current state of the internal state machine of the function block and the RESULT output displays the current state of the AR.

If an error occurs during execution of the function block, ERROR is set to TRUE. The corresponding error code is indicated at the STATUS output.
Notes 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 function block instances activated at the same time is limited by the maximum number of ARs for the controller.
Parameters Inputs

REQ

CMD

Input/Output

STAT_NAME

Outputs

DONE

BUSY

ERROR

STATUS

RESULT
Error codes Error codes at the STATUS output