Output DescriptionΒΆ

../_images/e89b321e5c2ac6920a331390693f1e04

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 of Error Messages (see, error messages): Error Messages of the Function Block Libraries

BUSY (busy)

Data type: BOOL

Output BUSY is not used at the moment.

Calling of ACS_PB_WRITE_PRM_DPV0 in ST

AcsPBWritePrmDpv0 (EN \ \ \ \ \ \ \ := xAcsPBWritePrmDpv0_En,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ PRM_NUM \ \ \ := wAcsPBWritePrmDpv0_PrmNum,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ VALUE \ \ \ \ \ := diAcsPBWritePrmDpv0_Value,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DRIVE_DATA := AcsPBWritePrmDpv0_DriveData);

xAcsPBWritePrmDpv0_Done\ \ := AcsPBWritePrmDpv0.DONE;
xAcsPBWritePrmDpv0_Err\ \ \ := AcsPBWritePrmDpv0.ERR;
wAcsPBWritePrmDpv0_Erno \ := AcsPBWritePrmDpv0.ERNO;
xAcsPBWritePrmDpv0_Busy\ \ := AcsPBWritePrmDpv0.BUSY;