Technical data

Programming
CPU 317T: Technology Functions
A5E00251798-03
5-13
5.6 Errors and warnings at the axes & external encoders
technology DB
Errors or warnings occurring at the technology object while the command is being
executed are indicated at the technology DB. This also applies when inconsistent
or illogical dynamic values were passed.
The following error indications are defined at the technology DB for axes and
external encoders:
The Statusword.Error variable
This variable is TRUE if at least one error has occurred. Based on the ErrorID,
the error can be evaluated at the ErrorID or ErrorBuffer[0..2] variables.
The Statusword.Errorstop variable
The axis is being stopped / was stopped due to an error; the technology object
may be disabled.
When the Statusword.Errorstop and Statusword.Error variables are TRUE, the
error can be analyzed in ErrorID or ErrorBuffer[0..2].
The ErrorID variable
The ErrorID variable indicates the most recent error (ErrorID = 8xxx) or
warning (ErrorID = 00xx) message of the technology object.
The value of this variable is deleted by acknowledging it with MC_Reset
(Restart = FALSE).
The ErrorBuffer[0..2] variable
The ErrorBuffer[0..2] variable array is used to store the first three errors or
warnings (since the last acknowledgment). The first error is written to ARRAY
element 1, the second to ARRAY element 2, etc.
The value in this variable is deleted by acknowledging it with MC_Reset
(Restart = FALSE).
The ErrorStatus.xxx variable
The ErrorStatus.xxx variable is used to indicate specific axis errors as bit
information (note the comments in the technology DB).
Acknowledging warnings
Warnings at the (ErrorID = 00xx) technology DB may, but do not need to be
acknowledged with MC_Reset.
However, note the data volume in the ErrorBuffer[0..2] variable array. You can
keep the ErrorBuffer[0..2] variable array clear for any incoming error messages by
acknowledging the errors in due time.
Acknowledging errors
To acknowledge all errors, first eliminate their cause, and then acknowledge with
MC_Reset (Restart = FALSE). The technology object can then be enabled again
by means of the MC_Power technology function.
!
Caution
Several unacknowledged errors may cause the CPU to go into STOP.