![background image](http://html1.mh-extra.com/html/omron/nj501-1300/nj501-1300_user-manual_742205268.webp)
10 Sample Programming
10-14
NJ-series CPU Unit Motion Control User’s Manual (W507)
//MC_Power1
PWR1(
Axis
:= MC_Axis000,
Enable := Pwr1_En,
Status
=> Pwr1_Status,
Busy
=> Pwr1_Bsy,
Error
=> Pwr1_Err,
ErrorID => Pwr1_ErrID
);
//MC_Power2
PWR2(
Axis
:= MC_Axis001,
Enable := Pwr2_En,
Status
=> Pwr2_Status,
Busy
=> Pwr2_Bsy,
Error
=> Pwr2_Err,
ErrorID => Pwr2_ErrID
);
// MC_Home1
HM1(
Axis
:= MC_Axis000,
Execute
:= Hm1_Ex,
Done
=> Hm1_D,
Busy
=> Hm1_Bsy,
CommandAborted
=> Hm1_Ca,
Error
=> Hm1_Err,
ErrorID
=> Hm1_ErrID
);
// MC_Home2
HM2(
Axis
:= MC_Axis001,
Execute
:= Hm2_Ex,
Done
=> Hm2_D,
Busy
=> Hm2_Bsy,
CommandAborted
=> Hm2_Ca,
Error
=> Hm2_Err,
ErrorID
=> Hm2_ErrID
);
//MC_GroupEnable
GRP_EN(
AxesGroup
:= MC_Group000,
Execute
:= Grp_En_Ex,
Done
=> Grp_En_D,
Busy
=> Grp_En_Bsy,
CommandAborted
=> Grp_En_Ca,
Error
=> Grp_En_Err,
ErrorID
=> Grp_En_ErrID
);
//MC_GroupDisable
GRP_DIS(
AxesGroup
:= MC_Group000,
Execute
:= Grp_Dis_Ex,
Done
=> Grp_Dis_D,
Busy
=> Grp_Dis_Bsy,
CommandAborted
=> Grp_Dis_Ca,
Error
=> Grp_Dis_Err,
ErrorID
=> Grp_Dis_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...