94 Programming Commands
ERR Miscellaneous Command
ACTION: Returns the MX controller error/warning number for this task.
PROGRAM SYNTAX: ERR=error number,severity
ERR - used in an expression
REMARKS: If an error occurs while the program is running, the program jumps to
label ERROR_HANDLER if it is present, otherwise it ends. The fault
LED blinks the ERROR code or WARNING code.
If an error or warning has occurred, the axis which caused the error can
be obtained by issuing an ERRAXIS command.
The predefined error codes are:
1 Axis +Limit Input activated while moving in the + direction.
2 Axis -Limit Input activated while moving in the - direction.
3 Axis Soft Limit exceeded while moving in the + direction.
4 Axis Soft Limit exceeded while moving in the - direction.
5 Closed Loop Correction attempts exceeded.
6 Position Error exceeded during motion.
7 Distance after Movereg Trigger is insufficient to decelerate.
8 Motion was attempted when the Drive is not ready.
9 Servo axis motion attempted with the Drive disabled.
10 Program Area out of memory
26 Excessive Duty Cycle Shutdown (IXT error)
27-99 User defined
Notes: The error trap is only enabled if the error code is 0. This
can be accomplished by programming an ERR=0 statement in the
ERROR_HANDLER routine. The error code is set to 0 when the
program is started by a RUN command or auto started on power
on.
The predefined Warning codes are:
11 Command axis is not in task group.
12 Analog I/O selected is out of range.
13 BCD selected is out of range.
14 Expansion Input selected is out of range.
15 Expansion Output selected is out of range.
16 Digital Input selected is out of range.
17 Digital Output selected is out of range.
18 LOG command argument is zero or negative
19 SQRT command argument is negative.
20 NVR element is out of range.
21 READ command is out of data arguments.
22 MAXSPD command is out of range.
23 Motion occurring at program end.
24 RS232 Configuration Error.
25 Servo Parameter is out of range.
ERR - used in an expression
Returns the last task error/warning number.
Comentarios a estos manuales