Chapter 10 CPU Function
10.3.5 Failure Diagnosis Function for the External Device
It is the function to detect the failure of the external device connected to the motion controller to realize stoppage of the
system and warning easily. Through this function, you can detect the external device’s failure without complex
programming and can monitor the failure position without special devices (XG5000, etc.) or programs.
You can use the failure diagnosis function for the external devices as below.
(1) Failure types of external devices
• The failures of external devices are divided into the two types; failure (error) detected by combination of user
programs and special relay (F area) requires stoppage of the motion controller operation; minor failure
(warning) that continues the motion controller’s operation and displays the detection status only.
(2) Flag to detect failures of external devices
The following flag types are used to diagnose failures of external devices.
%FW1282 - _ANC_ERR
external device’s
Input the error code of user-
defined serious failure of external
%FW1283 - _ANC_WAR
external device’s
Input the error code of user-
defined minor failure of external
- %FX70 _ANNUM_ER
detection of external
serious error
It is On when the external device’s
serious failure occurs.
- %FX134 _ANNUM_WAR
detection of external
slight error
It is On when the external device’s
minor failure occurs.
- %FX20482 _CHK_ANC_ERR
Request detection of
It is the command flag asking to
detect the external device’s
- %FX20483 _CHK_ANC_WAR
external slight error
It is the command flag asking to
detect the external device’s minor
(3) How to detect the external device’s serious failures
The following programming is used to detect the external device’s serious failures.
(a) Save the error code that can be distinguished by external device’s serious failures in %FW1282
(_ANC_ERR) through the MOVE command as below. (Input the values excluding 0)
(b) In case the external device’s serious failures occur, %FX20482(_CHK_ANC_ERR)flag will be On.
(c) When the main task program is completed, the motion controller checks whether %FX20482
(_CHK_ANC_ERR) is ON and detects serious failures.
(d) If the external device’s serious failures occur, the motion controller will be in error status and will stop the
operation. Then, %FX70 (_ANNUM_ER) is ON and %FX20482(_CHK_ANC_ERR) flag is automatically Off.
All outputs works based on IO parameter’s emergency output settings.
(e) When failures occur, through XG5000, a user can figure out the causes of failures by monitoring %FW1282
(_ANC_ERR) flag.