Section2 Functions
NS series Macro Reference
RETURN
Terminates Macro program
Applicable versions
Format
Function
Return Value
Example
RSTALARMCNT
Applicable versions
Format
Function
Return Value
Example
System version 2 or higher
RETURN(S)
If the value of "S" is "0", terminate macro program and continue to process for
functional object. If a value is set other than "0", terminate program and stop
processing for functional object.
None
RETURN(0); 'terminate macro and continue to process
RETURN(1); 'terminate macro and stop processing
Clears the number of occurrence of Alarm/Event
System version 2 or higher
RSTALARMCNT(S)
When the value of "S" is 0, clear the number of occurrence of alarm. When the
value of "s" is 1, clear the number of occurrence of event.
0: Completed normally
-1: None
RSTALARMCNT(0);
'clear the number of occurrence of alarm
RSTALARMCNT(1);
'clear the number of occurrence of event
28