10 Sample Programming
10-24
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
Ladder Diagram
StartPg
Lock0
MC_Axis000.DrvStatus.Ready
PWR1
Error
Axis Axis
Enable Status
Busy
MC_Power
ErrorID
Lock0
MC_Axis000
Pwr1_Status
Pwr1_Bsy
Pwr1_Err
Pwr1_ErrID
FaultHandlerMC_Axis000.MFaultLvl.Active
FaultHandlerEN
HM1
Axis Axis
Execute
Error
ErrorID
CommandAborted
MC_Home
Done
Busy
MC_Axis000
Pwr1_Status
Hm1_D
Hm1_Bsy
Hm1_Ca
Hm1_Err
Hm1_ErrID
MC_Axis000.Details.Homed
StartPg
Lock1
MC_Axis001.DrvStatus.Ready
PWR2
Error
Axis Axis
Enable Status
Busy
MC_Power
ErrorID
Lock1
MC_Axis001
Pwr2_Status
Pwr2_Bsy
Pwr2_Err
Pwr2_ErrID
MC_Axis001.MFaultLvl.Active
MC_Group000.MFaultLvl.Active
HM2
Axis Axis
Execute
Error
ErrorID
CommandAborted
MC_Home
Done
Busy
MC_Axis001
Pwr2_Status
Hm2_D
Hm2_Bsy
Hm2_Ca
Hm2_Err
Hm2_ErrID
MC_Axis001.Details.Homed
If the Servo Drive for axis 0 is ready, turn ON the Servo for axis 0.
Check if the Servo Drive for axis 0 is ready when StartPg is TRUE.
If a minor fault level error occurs for the axes group, the error handler for the device (FaultHandler) is executed.
Program the FaultHandler according to the device.
If the Servo is ON for axis 0 and home is not defined, the MC_Home instruction is executed.
Check if the Servo Drive for axis 1 is ready when StartPg is TRUE.
If the Servo Drive for axis 1 is ready, turn ON the Servo for axis 1.
If the Servo is ON for axis 1 and home is not defined, the MC_Home instruction is executed.