2-615
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
System Control Instructions
2
ResetAlarm
ResetAlarm
The ResetAlarm instruction resets a user-defined error.
The ResetAlarm instruction resets the user-defined error specified by event code Code. An event is
then recorded in the user-defined event log to show that a specific user-defined error was reset. The
event code for this event is 65533 and the level is user information.
If the value of Code is 0, all current user-defined errors are reset. An event is then recorded in the user-
defined event log to show that all user-defined errors were reset. The event code for this event is 65534
and the level is user information.
The following figure shows a programming example. A user-defined error for event code 101 is reset.
Instruction Name FB/FUN Graphic expression ST expression
ResetAlarm Reset User-defined
Error
FUN ResetAlarm(Code);
Variables
Name Meaning I/O Description Valid range Unit Default
Code Event code Input Event code of user-defined
error to reset
16#0:Reset all application
errors.
Depends on data type.
--- 1
Out Return
value
Output Always TRUE TRUE only
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Code OK
Out OK
Function
(@)ResetAlarm
EN ENO
Code Out
ResetAlarm(UINT#101);
LD
UINT#101
ST
ResetAlarm
EN ENO
Code