Monitoring For Instruction Errors - Omron NJ501-1400 User Manual

Machine automation controller nj series cpu unit motion control
Hide thumbs Also See for NJ501-1400:
Table of Contents

Advertisement

10 Sample Programming

10-2-5 Monitoring for Instruction Errors

In this sample, further processing is not performed if there is an error when the MC_Power (Power
Servo) instruction is executed. Whether further processing is possible is indicated by the UpgOn vari-
able.
Samples are provided for both ladder diagram and ST programming.
Main Variables Used in the Programming Samples
Variable name
MC_Axis000
Pwr_Status
Pwr_Bsy
StartPg
UpgOn
Ladder Diagram
When StartPg is TRUE, the status of process data communications is checked to see if communications
are active and normal.
StartPg
_EC_PDSlavTbl[MC_Axis000.Cfg.NodeAddress] _EC_CommErrTbl[MC_Axis000.Cfg.NodeAddress
The Servo for axis 0 is turned ON if process data communications are active and normal.
Lock
A check is made to see if any errors occurred when MC_Power was executed before execution of further processing.
Pwr_Status
Pwr_Bsy
10-16
Data type
Default
_sAXIS_REF
---
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
PWR
MC_Power
MC_Axis000
Axis
Enable
NJ-series CPU Unit Motion Control User's Manual (W507)
Comment
This is the Axis Variable for axis 0.
This variable is assigned to the Status output
variable from the PWR instance of the
MC_Power instruction. It is TRUE when the
Servo is ON.
This variable is assigned to the Busy output
variable from the PWR instance of the
MC_Power instruction. It is TRUE when the
Servo is ON.
When StartPg is TRUE, the Servo is turned ON
if EtherCAT process data communications are
active and normal.
TRUE if further program execution is performed.
Axis
Status
Busy
Pwr_Bsy
Error
Pwr_Err
ErrorID
Pwr_ErrID
Lock
Pwr_Status
UpgOn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1500

Table of Contents