Omron NX701-1 User Manual page 356

Machine automation controller nj/nx-series cpu unit
Hide thumbs Also See for NX701-1:
Table of Contents

Advertisement

10 Sample Programming
Hm2_Ex:=TRUE;
END_IF;
// If homing is completed for axis 0, absolute positioning is executed.
IF Hm1_D=TRUE THEN
Mv_Abs_Ex := TRUE;
END_IF;
// If the command position for axis 0 is 5000 or less, CamTable0 is changed to TRUE and CamTable1 is changed to
FALSE.
// If it exceeds 5000, CamTable0 is changed to FALSE and CamTable1 is changed to TRUE.
IF MC_Axis000.Cmd.Pos<=LREAL#5000.0 THEN
CamTable0
CamTable1
ELSE
CamTable0
CamTable1
END_IF;
// If CamTable0 is TRUE during absolute positioning,
// then the instance that uses CamProfile0 for the cam table is executed.
// If InCam is TRUE, Execute is changed to FALSE.
IF (Mv_Abs_Act=TRUE)
AND (CamTable0=TRUE)
AND (Camin_InCam0=FALSE) THEN
Camin_Ex
ELSE
Camin_Ex
END_IF;
// If CamTable1 is TRUE during absolute positioning,
// then the instance that uses CamProfile1 for the cam table is executed.
IF (Mv_Abs_Act=TRUE)
AND (CamTable1=TRUE) THEN
Camin_Ex
END_IF;
//MC_Camin
IF CamTable0=TRUE THEN
CAMIN(
10-50
:=BOOL#TRUE;
:=BOOL#FALSE;
:=BOOL#FALSE;
:=BOOL#TRUE;
:= TRUE;
:= FALSE;
:= TRUE;
Master
:= MC_Axis000,
Slave
:= MC_Axis001,
CamTable
:= CamProfile0,
Execute
:= Camin_Ex,
Periodic
:= Camin_EM,
StartMode
:= Camin_StMode,
StartPosition
:= Camin_StPos,
MasterStartDistance
:= Camin_MStDis,
MasterScaling
:= Camin_MSc,
SlaveScaling
:= Camin_SSc,
MasterOffset
:= Camin_MO,
SlaveOffset
:= Camin_SO,
ReferenceType
:= Camin_RT,
Direction
:= Camin_Dir,
InCam
=> Camin_InCam0,
InSync
=> Camin_InSync,
EndOfProfile
=> Camin_EOP,
Index
=> Camin_Index,
Busy
=> Camin_Bsy,
Active
=> Camin_Act,
CommandAborted
=> Camin_Ca,
NJ/NX-series CPU Unit Motion Control User's Manual (W507)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nx102-1Nx102-90Nj501Nj301-1Nx1p2-1Nx1p2-90 ... Show all

Table of Contents