Sample Programming
StartPg
Lock1
MC_Axis
000.DrvStatus.Ready
Lock2
MC_Axis001.DrvStatus.Ready
If StartPg is TRUE, check that the Servo Drives for each axis are ready.
PWR1
Erro
r
Axis Axis
Enable Status
Busy
MC_Power
ErrorID
Lock1
MC_Axis000
Pw
r1_Status
Pwr1_Bsy
Pwr1_Err
Pwr1_ErrID
If the Servo Drives are ready, the Servos are turned ON for each axis.
PWR2
Erro
r
Axis Axis
Enable Status
Busy
MC_Power
ErrorID
Lock2
MC_Axis001
Pw
r2_Status
Pwr2_Bsy
Pwr2_Err
Pwr2_ErrID
FaultHandler
MC_Axis0
00.MFaultLvl.Active
FaultHandler
EN
MC_Axis001.MFaultLvl.Active
If a minor fault level error occurs for the axis composition, the error handler for the device (FaultHandler) is
executed.
Program the FaultHandler according to the device.
HM1
Axis
Axis
Execute
Error
ErrorID
CommandAborted
MC_Home
Done
Busy
MC_Axis000
Pw
r1_Status
Hm1_D
Hm1_Bsy
Hm1_Ca
Hm1_Err
Hm1_ErrID
MC_Axis000.Details.Homed
If the Servo is ON for axis 1 and home is not defined, the Home instruction is executed.
3 Axis Command Instructions
3-131
NY-series Motion Control Instructions Reference Manual (W561)
MC_MoveFeed
3
Sample Programming