Output DescriptionΒΆ

../_images/7547e17848beed650a33139001d33a81

DONE (done)

Data type: BOOL

Output DONE indicates the state of the job processing. After completing or aborting the processing (due to an error), 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 the chapter Error Messages: Error Messages of the Function Block Libraries

BUSY (busy)

Data type: BOOL

Output BUSY indicates whenever there is a communication action performed.

ONLINE (online)

Data type: BOOL

After the first time input EN is set to TRUE and at least one read job and one write job is performed successfully, output ONLINE is set to TRUE.

Output ONLINE is reset to FALSE after a rising edge of EN or if an error occurs while reading the status information or writing the Control Word and Reference Values.

Function Call in ST

ACSComModRTUGen\ (EN\ \ \ \ \ \ \ \ := xACSComModRTUGen_EN,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ COM\ \ \ \ \ \ \ \ := byACSComModRTUGen_COM,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SLAVE\ \ \ \ \ \ := byACSComModRTUGen_SLAVE,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ TIMEOUT\ \ \ \ := wACSComModRTUGen_TIMEOUT,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ LINE_TOKEN\ := tsLineToken,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SLAVE_DATA\ := tsSlaveData);
 \  \  \
xACSComModRTUGen_DONE\ \ \ := ACSComModRTUGen.DONE;
xACSComModRTUGen_ERR\ \ \ \ := ACSComModRTUGen.ERR;
wACSComModRTUGen_ERNO\ \ \ := ACSComModRTUGen.ERNO;
xACSComModRTUGen_BUSY\ \ \ := ACSComModRTUGen.BUSY;
xACSComModRTUGen_ONLINE\ := ACSComModRTUGen.ONLINE;