10-2-5 Monitoring For Instruction Errors - Omron NX701-1 User Manual

Machine automation controller nj/nx-series cpu unit
Hide thumbs Also See for NX701-1:
Table of Contents

Advertisement

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
Check if the Servo Drive is ready when StartPg is TRUE.
StartPg
If the Servo Drive is ready, turn ON the Servo for axis 0.
Lock0
A check is made to see if any errors occurred when MC_Power was executed before execution of further processing.
Pwr_Status
Pwr_Bsy
NJ/NX-series CPU Unit Motion Control User's Manual (W507)
Data type
_sAXIS_REF
BOOL
BOOL
BOOL
BOOL
MC_Axis000.DrvStatus.Ready
MC_Axis000
10 Sample Programming
Default
---
This is the Axis Variable for axis 0.
FALSE
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.
FALSE
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.
FALSE
When StartPg is TRUE, the Servo is turned ON
if EtherCAT process data communications are
active and normal.
FALSE
TRUE if further program execution is performed.
PWR
MC_Power
Axis
Axis
Enable
Status
Busy
Error
ErrorID
Comment
Lock0
Pwr_Status
Pwr_Bsy
Pwr_Err
Pwr_ErrID
UpgOn
10-15
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nx102-1Nx102-90Nj501Nj301-1Nx1p2-1Nx1p2-90 ... Show all

Table of Contents