CURERRSTATUS
(Statement)
[RC7 Version 2.2 or later]

Returns the current error status. (Exclusive to supervisory tasks)

CURERRSTATUS

This function returns whether an error is currently occurring (1) or not (0).

PROGRAM TSR1
|
|
-----------
|
|
INITWAITERR
|
'Initialize WAITERROR data.
|
-----------
|
|
·
|
|
·
|
|
·
|
|
WHILE 1
|
'Start of loop
|
-----------
|
|
I1 = WAITERROR
|
'Detect an occurrence of error.
|
I2 = CURERRSTATUS
|
'Get current error status.
|
-----------
|
|
WEND
|
'End of loop
|
-----------
|
|
END
|
|