Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Function
The GetECError instruction gets the highest level status and highest level event code of the current
communications port errors or master errors in the EtherCAT Master Function Module and outputs
them to Level and Code. If there are currently no communications port errors or master errors, the value
of error flag Out is FALSE. If there is more than one Controller error at the highest event level, the value
of Code is the event code for the Controller error that occurred first.
The following figure shows a programming example.
LD
EN
Related System-defined Variables
Name
_EC_ErrSta
*1
_EC_PortErr
*1
_EC_MstrErr
_EC_SlavErr
*1 The GetECError instruction gets the errors that are shown by _EC_PortErr (Communications Port Error) and
_EC_MstrErr (Master Error).
*2 Refer to the NJ-series CPU Unit Built-in EtherCAT Port User's Manual (Cat. No. W505) for details.
Sample Programming
Refer to the sample programming that is provided for the ResetMCError instruction (page 2-630).
2-638
abc
GetECError
def
Level
Code
ghi
Meaning
Built-in EtherCAT Error
Communications Port
Error
Master Error
Slave Error
ST
abc:=GetECError(def, ghi);
Data type
WORD
Contains a summary of the errors in the
EtherCAT Master Function Module.
WORD
Contains a summary of the EtherCAT mas-
ter communications port errors.
WORD
Contains a summary of the EtherCAT mas-
ter errors and the slave errors detected by
the EtherCAT master.
WORD
Contains a summary of the overall EtherCAT
slave error status.

NJ-series Instructions Reference Manual (W502)

Description
*2
*2
*2
*2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents