SETERR
(Statement)
[Version 1.98 or later]
Saves a specified error code into an integer variable area (to be used as a ring buffer).
SETERR <Error code>
This statement saves an error code specified by <Error code> into an integer variable area declared by the error code saving feature, and counts up the pointer address by one.
The error code saving feature should be configured beforehand (refer to Section 1.3).
Be careful with some commands or teach pendant operation that may change integer variable areas declared by the error code saving feature.
PROGRAM PRO1
|
|
------------
|
|
SETERR 100
|
'Save error code "100" into the ring buffer.
|
------------
|
|
END
|
|