10-21
10 Sample Programming
NJ-series CPU Unit Motion Control User’s Manual (W507)
10-2 Basic Pr
o
g
ram
m
in
g
Samples
10
10-2-7 Stop
ping Ax
es dur
ing Single-axis Oper
atio
n
FaultHandler
MC_Axis000.MFaultLvl.Active
FaultHandler
EN
HM
Axis
Axis
Execute
Error
ErrorID
CommandAborted
MC_Home
Done
Busy
MC_Axis000
Pwr_Status
Hm_D
Hm_Bsy
Hm_Ca
Hm_Err
Hm_ErrID
MC_Axis000.Details.Homed
BufferMode
MV_ABS
Deceleration
Active
Axis
Axis
Execute
Done
Position
Busy
Acceleration
Error
Jerk
Direction
MC_MoveAbsolute
Velocity
CommandAborted
ErrorID
MC_Axis000
Hm_D
_eMC_DIRECTION#_mcPositiveDirection
LREAL#10000.0
LREAL#500.0
LREAL#500.0
LREAL#500.0
Mv_Abs_Bsy
Mv_Abs_Act
Mv_Abs_Ca
Mv_Abs_Err
Mv_Abs_ErrID
Mv_Abs_D
BufferMode
STP
Deceleration
Active
Axis
Axis
Execute
Done
Busy
Error
Jerk
MC_Stop
CommandAborted
ErrorID
MC_Axis000
StopOn
LREAL#5000.0
Stp_Bsy
Stp_Act
Stp_Ca
Stp_Err
Stp_ErrID
Stp_D
IMD_STP
StopMode
Axis
Axis
Execute
Done
Busy
Error
MC_ImmediateStop
CommandAborted
ErrorID
MC_Axis000
Stp_Err
_eMC_STOP_MODE#_mcFreeRunStop
Imd_Stp_Bsy
Imd_Stp_Ca
Imd_Stp_Err
Imd_Stp_ErrID
Imd_Stp_D
Stp_Ca
If the
Error
or
CommandAborted
output variable from the MC_Stop instruction changes to TRUE,
the MC_ImmediateStop instruction is executed to stop immediately.
If a minor fault level error occurs for axis 0, 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 for axis 0.
After homing is completed for axis 0, the MC_MoveAbsolute (Absolute Positioning) instruction is executed.
If
StopOn
is TRUE, the MC_Stop instruction is executed.
Summary of Contents for NJ501-1300
Page 12: ...Sections in this Manual 10 NJ series CPU Unit Motion Control User s Manual W507...
Page 18: ...16 NJ series CPU Unit Motion Control User s Manual W507 CONTENTS...
Page 22: ...Read and Understand this Manual 20 NJ series CPU Unit Motion Control User s Manual W507...
Page 34: ...Revision History 32 NJ series CPU Unit Motion Control User s Manual W507...
Page 86: ...3 Configuring Axes and Axes Groups 3 28 NJ series CPU Unit Motion Control User s Manual W507...
Page 122: ...5 Motion Control Parameters 5 24 NJ series CPU Unit Motion Control User s Manual W507...
Page 158: ...6 Motion Control Programming 6 36 NJ series CPU Unit Motion Control User s Manual W507...
Page 166: ...7 Manual Operation 7 8 NJ series CPU Unit Motion Control User s Manual W507...
Page 182: ...8 Homing 8 16 NJ series CPU Unit Motion Control User s Manual W507...
Page 346: ...10 Sample Programming 10 92 NJ series CPU Unit Motion Control User s Manual W507...
Page 422: ...Appendices A 18 NJ series CPU Unit Motion Control User s Manual W507...
Page 423: ...Index 1 NJ series CPU Unit Motion Control User s Manual W507 I Index...
Page 430: ...Index 8 NJ series CPU Unit Motion Control User s Manual W507 Index...