Output Description

../_images/0c3653d0616826bb0a3313904cf97dfd

DONE (done)

Data type: BOOL

Output DONE indicates the processing of the Function Block. If DONE = FALSE, the Function Block is not processed due to EN = FALSE and all outputs are set to 0.

For that reason, the other outputs always have to be considered together with output DONE. All other outputs are only valid, if DONE = TRUE.

DONE is set to TRUE for one cycle. For that reason, the output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERR (error)

Data type: BOOL

Output ERR indicates whether an error occurred during block processing. This output always has to be considered together with output DONE. If DONE = TRUE and ERR = TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERNO (error number)

Data type: WORD

Output ERNO provides an error identifier, if an invalid value was applied to an input or if an error occurred during request processing. ERNO always has to be considered together with the outputs DONE and ERR. The value output at ERNO is only valid, if DONE is TRUE and ERR is TRUE.

The encoding of the error messages output at ERNO is explained in a separate table Error Messages of the ACS Drives Function Block Libraries(see, error messages): Error Messages of the Function Block Libraries

ERNO1 (error number 1)

Data type: WORD, Default value: 0, Range: ³0

Reserved output.

ERNO2 (error number 2)

Data type: WORD, Default value: 0, Range: ³0

Reserved output.

Calling of ACS_PN_READ_N_PRM_DPV1 in ST

dwAcsPnReadNPrmDpv1_DATA:= ADR (AcsPbPnPrmDpv1DataType)
ACS_PN_READ_N_PRM_DPV1 (EN \ \ \ \ \ \ \ \ := xAcsPnReadNPrmDpv1_EN,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SLOT \ \ \ \ \ \ := byAcsPnReadNPrmDpv1_SLOT,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DEV_NAME \ \ := byAcsPnReadNPrmDpv1_DEV_NAME,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DRIVE_TYPE := iAcsPnReadNPrmDpv1_DRIVE_TYPE,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NVAR \ \ \ \ \ \ := byAcsPnReadNPrmDpv1_NVAR,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DATA \ \ \ \ \ \ := dwAcsPnReadNPrmDpv1_DATA);

xAcsPnReadNPrmDpv1_DONE \ := ACS_PN_READ_N_PRM_DPV1.DONE;
xAcsPnReadNPrmDpv1_ERR \ \ := ACS_PN_READ_N_PRM_DPV1.ERR;
wAcsPnReadNPrmDpv1_ERNO \ := ACS_PN_READ_N_PRM_DPV1.ERNO;
wAcsPnReadNPrmDpv1_ERNO1 := ACS_PN_READ_N_PRM_DPV1.ERNO1;
wAcsPnReadNPrmDpv1_ERNO2 := ACS_PN_READ_N_PRM_DPV1.ERNO2;