Omron NY532-1500 User Manual page 360

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-1500:
Table of Contents

Advertisement

10 Sample Programming
PT
Q
);
// Sv_Ca_CountLoad is changed to TRUE for one period when the cam table is saved.
// If Sv_Ca_CountLoad changes to TRUE, the retry counter is reset.
R_TRIG1(SaveCamtable, Sv_Ca_CountLoad);
// If a Cannot Execute Save Cam Table error occurs three times, Sv_Ca_CountUP is changed to TRUE.
// If Sv_Ca_CountUP changes to TRUE, Sv_Cam_Disable is changed to FALSE.
// Retry processing for the MC_SaveCamTable instruction is completed.
Sv_Ca_CTD(
CD
LOAD
PV
Q
);
// If the changes to the cam data variable and saving the cam table are completed and axis 0 is at the target
velocity, the cam operation is executed.
IF (Vel_InVel=TRUE)
AND (WriteDone=TRUE)
AND (Sv_Cam_D=TRUE) THEN
Camin_Ex:=TRUE;
END_IF;
//MC_SaveCamTable
SV_CAM(
CamTable
Execute
Done
Busy
CommandAborted
Error
ErrorID
);
CAMIN(
Master
Slave
CamTable
Execute
Periodic
StartMode
StartPosition
MasterStartDistance
MasterScaling
SlaveScaling
MasterOffset
SlaveOffset
ReferenceType
Direction
InCam
InSync
EndOfProfile
Index
Busy
Active
CommandAborted
Error
ErrorID
);
10-84
:= T#1s ,
=> Sv_Ca_TimeUp
:= Sv_Cam_Disable ,
:= Sv_Ca_CountLoad ,
:= INT#3 ,
=> Sv_Ca_CountUP
:=CamProfile0,
:= Sv_Cam_Ex,
=> Sv_Cam_D,
=> Sv_Cam_Bsy,
=> Sv_Cam_Ca,
=> Sv_Cam_Err,
=> Sv_Cam_ErrID
:= MC_Axis000,
:= MC_Axis001,
:= CamProfile0,
:= Camin_Ex,
:= Camin_Em,
:= Camin_Sm,
:= Camin_Sp,
:= Camin_Msd,
:= Camin_Ms,
:= Camin_Ss,
:= Camin_Mo,
:= Camin_So,
:= Camin_Rt,
:= Camin_Dir,
=> Camin_InCam,
=> Camin_InSync,
=> Camin_Eop,
=> Camin_Index,
=> Camin_Bsy,
=> Camin_Act,
=> Camin_Ca,
=> Camin_Err,
=> Camin_ErrID
NY-series Industrial Panel PC / Industrial Box PC Motion Control User's Manual (W559)

Advertisement

Table of Contents
loading

Table of Contents