GETERR (Function) [Version 1.98 or later]


Gets the error code from the ring buffer declared by the error code saving feature.


GETERR(<Expression>)


This function reads out the error code from the ring buffer declared by the error code saving feature.
To read out the latest error code, set "0" in the argument.



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.
If the error code saving feature has not been configured, this function reads out the error code from the regular error log area.


PROGRAM PRO1
------------
I1 = GETERR(0)
'Get the latest error code from the ring buffer.
------------
END


Top