2-619
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
System Control Instructions
2
ResetPLCError
ResetPLCError
The ResetPLCError instruction resets errors in the PLC Function Module.
Only common variables are used.
The ResetPLCError instruction resets errors in the PLC Function Module.
The following figure shows a programming example.
The error may not be reset immediately after you execute this instruction. Use the GetPLCError instruc-
tion to confirm that the errors were reset.
The ResetPLCError instruction is executed when the value of Tr ig ge r changes to TRUE. Normal end
processing is performed if execution of the ResetPLCError instruction ends normally (i.e., if the value of
Done is TRUE). Error end processing is performed if execution ends in an error (i.e., if the value of Error
is TRUE).
Instruction Name FB/FUN Graphic expression ST expression
ResetPLCError Reset PLC Control-
ler Error
FB ResetPLCError(Execute,
Done, Busy, Error, ErrorID);
Variables
Function
Related System-defined Variables
Name Meaning Data type Description
_PLC_ErrSta Error Status of PLC
Function Module
WORD Contains the error status of the PLC Func-
tion Module,
Refer to the NJ-series CPU Unit Software
User's Manual (Cat. No. W501) for details.
Precautions for Correct Use
Sample Programming
ResetPLCError
ResetPLCError_instance
Execute Done
Busy
Error
ErrorID
ResetPLCError_instance(A, abc, def, ghi, jkl);
LD
ST
ResetPLCError
ResetPLCError_instance
A
def
ghi
jkl
abc
Execute Done
Busy
Error
ErrorID