![background image](http://html1.mh-extra.com/html/omron/nj501-1300/nj501-1300_user-manual_742205277.webp)
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
);
Содержание NJ501-1300
Страница 12: ...Sections in this Manual 10 NJ series CPU Unit Motion Control User s Manual W507...
Страница 18: ...16 NJ series CPU Unit Motion Control User s Manual W507 CONTENTS...
Страница 22: ...Read and Understand this Manual 20 NJ series CPU Unit Motion Control User s Manual W507...
Страница 34: ...Revision History 32 NJ series CPU Unit Motion Control User s Manual W507...
Страница 44: ...1 Introduction to the Motion Control Function Module 1 10 NJ series CPU Unit Motion Control User s Manual W507...
Страница 58: ...2 Motion Control Configuration and Principles 2 14 NJ series CPU Unit Motion Control User s Manual W507...
Страница 86: ...3 Configuring Axes and Axes Groups 3 28 NJ series CPU Unit Motion Control User s Manual W507...
Страница 98: ...4 Checking Wiring from the Sysmac Studio 4 12 NJ series CPU Unit Motion Control User s Manual W507...
Страница 122: ...5 Motion Control Parameters 5 24 NJ series CPU Unit Motion Control User s Manual W507...
Страница 158: ...6 Motion Control Programming 6 36 NJ series CPU Unit Motion Control User s Manual W507...
Страница 166: ...7 Manual Operation 7 8 NJ series CPU Unit Motion Control User s Manual W507...
Страница 182: ...8 Homing 8 16 NJ series CPU Unit Motion Control User s Manual W507...
Страница 346: ...10 Sample Programming 10 92 NJ series CPU Unit Motion Control User s Manual W507...
Страница 422: ...Appendices A 18 NJ series CPU Unit Motion Control User s Manual W507...
Страница 423: ...Index 1 NJ series CPU Unit Motion Control User s Manual W507 I Index...
Страница 430: ...Index 8 NJ series CPU Unit Motion Control User s Manual W507 Index...