Output DescriptionΒΆ

../_images/93ce4ad85c17cc0d0a3313906edaf317

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 = TRUE indicates, that the read job requested by the Function Block is being processed.

VALUE (value)

Data type: DINT

Parameter value of the READ parameter

Calling of ACS_PB_READ_PRM_DPV0 in ST

AcsPBReadPrmDpv0 \ (EN \ \ \ \ \ \ \ := xAcsPBReadPrmDpv0_En,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ PRM_NUM \ \ \ := wAcsPBReadPrmDpv0_PrmNum,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DRIVE_DATA := AcsPBReadPrmDpv0_DriveData);

xAcsPBReadPrmDpv0_Done\ \ \ := AcsPBReadPrmDpv0.DONE;
xAcsPBReadPrmDpv0_Err\ \ \ \ := AcsPBReadPrmDpv0.ERR;
xAcsPBReadPrmDpv0_Busy\ \ \ := AcsPBReadPrmDpv0.BUSY;
diAcsPBReadPrmDpv0_Value\ := AcsPBReadPrmDpv0.VALUE;