EasyManuals Logo

Omron NX701-1 User Manual

Omron NX701-1
448 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #353 background imageLoading...
Page #353 background image
10-47
10 Sample Programming
NJ/NX-series CPU Unit Motion Control User’s Manual (W507)
10-2 Basic Programming
Samples
10
10-2-12 Changing the Cam Table by Re-execution of an Instruction
Hm1_Bsy
Hm1_Ca
Hm1_Err
Hm1_ErrID
Hm1_D
Done
Error
CommandAborted
Axis
Busy
ErrorID
Execute
HM1
MC_Home
Axis
MC_Axis000
Pwr1_Status MC_Axis000.Details.Homed
Hm2_Bsy
Hm2_Ca
Hm2_Err
Hm2_ErrID
Hm2_D
Done
Error
CommandAborted
Axis
Busy
ErrorID
Execute
HM2
MC_Home
Axis
MC_Axis001
Pwr2_Status MC_Axis001.Details.Homed
Mv_Abs_Act
Mv_Abs_Ca
Mv_Abs_Err
Mv_Abs_ErrID
Mv_Abs_D
Done
Error
CommandAborted
Axis
Active
ErrorID
Execute
MV_ABS
MC_MoveAbsolute
Axis
MC_Axis000
Hm1_D
Mv_Abs_Bsy
BusyPosition
LREAL#10000.0
Acceleration
LREAL#2000.0
Jerk
Velocity
LREAL#2000.0
Deceleration
LREAL#2000.0
Direction
_eMC_DIRECTION#_mcPositiveDirection
BufferMode
1
2
3
4
5
6
7
IF MC_Axis000.Cmd.Pos<=LREAL#5000.0 THEN
CamTable0:=BOOL#TRUE;
CamTable1:=BOOL#FALSE;
ELSE
CamTable0:=BOOL#FALSE;
CamTable1:=BOOL#TRUE;
END_IF;
CamTable0 SkipCamTable0
Mv_Abs_Act CamTable0 Camin_InCam0 Lock3
If homing is completed for axis 0, absolute positioning is executed.
If the command position for axis 0 is 5000 or less, CamTable0 is changed to TRUE and CamTable1 is changed to FALSE.
If it is over 5000, CamTable0 is changed to FALSE and CamTable1 is changed to TRUE.
If CamTable0 is TRUE during absolute positioning, then the instance that uses CamProfile0
for the cam table is executed.
If InCam is TRUE, then Execute is changed to FALSE.
If the Servo is ON for axis 0 and home is not defined, the MC_Home instruction is executed.
If the Servo is ON for axis 1 and home is not defined, the MC_Home instruction is executed.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX701-1 and is the answer not in the manual?

Omron NX701-1 Specifications

General IconGeneral
BrandOmron
ModelNX701-1
CategoryController
LanguageEnglish

Related product manuals