10-23
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
Axis
:= MC_Axis000,
Enable := Pwr_En,
Status
=> Pwr_Status,
Busy
=> Pwr_Bsy,
Error
=> Pwr_Err,
ErrorID => Pwr_ErrID
);
//MC_Home
HM(
Axis
:= MC_Axis000,
Execute
:= Hm_Ex,
Done
=> Hm_D,
Busy
=> Hm_Bsy,
CommandAborted
=> Hm_Ca,
Error
=> Hm_Err,
ErrorID
=> Hm_ErrID
);
//MC_MoveAbsolute
MV_ABS(
Axis
:= MC_Axis000,
Execute
:= Mv_Abs_Ex,
Position
:= Mv_Abs_Pos,
Velocity
:= Mv_Abs_Vel,
Acceleration
:= Mv_Abs_Acc,
Deceleration
:= Mv_Abs_Dec,
Direction
:= Mv_Abs_Dir,
Done
=> Mv_Abs_D,
Busy
=> Mv_Abs_Bsy,
Active
=> Mv_Abs_Act,
CommandAborted
=> Mv_Abs_Ca,
Error
=> Mv_Abs_Err,
ErrorID
=> Mv_Abs_ErrID
);
//MC_Stop
STP(
Axis
:= MC_Axis000,
Execute
:= Stp_Ex,
Deceleration
:= Stp_Dec,
Done
=> Stp_D,
Busy
=> Stp_Bsy,
Active
=> Stp_Act,
CommandAborted
=> Stp_Ca,
Error
=> Stp_Err,
ErrorID
=> Stp_ErrID
);
//MC_ImmediateStop
IMD_STP(
Axis
:= MC_Axis000,
Execute
:= Imd_Stp_Ex,
StopMode
:= Imd_Stp_SM,
Done
=> Imd_Stp_D,
Busy
=> Imd_Stp_Bsy,
CommandAborted
=> Imd_Stp_Ca,
Error
=> Imd_Stp_Err,
ErrorID
=> Imd_Stp_ErrID
);
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...