Technical data
Programming
CPU 317T: Technology Functions
A5E00251798-03
5-11
5.4 Errors and warnings at the technology function
The technology functions indicate any errors at the binary result bit (BRB) of the
status word and at the ErrorID output parameter. The Error status bit is only set if
an error preventing the execution of the command is detected immediately at the
time this command is accepted.
Error evaluation with the BRB bit
The BRB bit value is 0 if an error has occurred during the execution of the
technology function. The example below shows how you can evaluate the BRB bit
in your user program:
The BIB bit changes to 0 value if an error occurs. Output Q 16.0 is assigned the
value TRUE.
Note
The output parameter values may be invalid if the BRB bit
indicates an error during
the execution of the technology function.
Hence, you should first evaluate the BRB bit after you have called the technology
function. Next, check the ErrorID output parameter.
Warnings and errors at output parameter ErrorID
The ErrorID output parameter indicates an error (ErrorID = 8xxx) if the technology
function was unable to initiate the command. A warning indication at the technology
function (ErrorID = 00xx) is also associated with the command initiation.
When the technology function indicates an error, you need to call it either with
appropriate parameters, or at a different point of time (provided the function is
allowed.)
It is neither required, nor is it possible to acknowledge the errors or warnings. The
error is cleared by resetting the Enable and Execute parameters.
Output parameter CommandAborted
If execution of the current command was aborted either by another command or as
a result of error, output parameter CommandAborted reports an error status. If
ErrorStatus of the technology DB does not indicate an error, the command was
aborted by a successive command. An error at the integrated technology is
indicated at ErrorStatus and has led to the abortion of job execution.