Output Description

../_images/93c175af61694c640a3313902f612d99

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_WRITE_N_PRM_DPV1 in ST

dwAcsPnWriteNPrmDpv1_DATA:= ADR (AcsPbPnPrmDpv1DataType)
ACS_PN_WRITE_N_PRM_DPV1 (EN \ \ \ \ \ \ \ \ := xAcsPnWriteNPrmDpv1_EN,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SLOT \ \ \ \ \ \ := byAcsPnWriteNPrmDpv1_SLOT,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DEV_NAME \ \ := byAcsPnWriteNPrmDpv1_DEV_NAME,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DRIVE_TYPE := iAcsPnWriteNPrmDpv1_DRIVE_TYPE,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NVAR \ \ \ \ \ \ := byAcsPnWriteNPrmDpv1_NVAR,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DATA \ \ \ \ \ \ := dwAcsPnWriteNPrmDpv1_DATA);

xAcsPnWriteNPrmDpv1_DONE \ := ACS_PN_WRITE_N_PRM_DPV1.DONE;
xAcsPnWriteNPrmDpv1_ERR \ \ := ACS_PN_WRITE_N_PRM_DPV1.ERR;
wAcsPnWriteNPrmDpv1_ERNO \ := ACS_PN_WRITE_N_PRM_DPV1.ERNO;
wAcsPnWriteNPrmDpv1_ERNO1 := ACS_PN_WRITE_N_PRM_DPV1.ERNO1;
wAcsPnWriteNPrmDpv1_ERNO2 := ACS_PN_WRITE_N_PRM_DPV1.ERNO2;