2 Instruction Descriptions
2-636
NJ-series Instructions Reference Manual (W502)
ResetECError
The ResetECError instruction resets a Controller error in the EtherCAT Master Function Module.
Only common variables are used.
The ResetECError instruction resets Controller errors in the EtherCAT Master Function Module.
The following figure shows a programming example.
• The error may not be reset immediately after you execute this instruction. Use the GetECError
instruction to confirm that the errors were reset.
• An error occurs in the following case. Error will change to TRUE.
• This instruction is executed again while processing to clear a Controller error from the EtherCAT
Master Function Module is in progress.
Refer to the sample programming that is provided for the ResetMCError instruction (page 2-630).
Instruction Name FB/FUN Graphic expression ST expression
ResetECError Reset EtherCAT
Controller Error
FB ResetECError_instance(
Execute, Done, Busy, Error,
ErrorID);
Variables
Function
Related System-defined Variables
Name Meaning Data type Description
_EC_ErrSta Built-in EtherCAT Error WORD Contains a summary of the errors in the
EtherCAT Master Function Module.
Refer to the NJ-series CPU Unit Built-in
EtherCAT Port User’s Manual (Cat. No.
W505) for details.
Precautions for Correct Use
Sample Programming
ResetECError
ResetECError_instance
Execute Done
Busy
Error
ErrorID
ResetECError_instance(A, abc, def, ghi, jkl);
LD ST
A
def
ghi
jkl
abc
ResetECError
ResetECError_instance
Execute Done
Busy
Error
ErrorID