Name Data type Default Comment
CamProperty0 _sMC_CAM_PROP-
ER
TY
--- This is the cam property variable.
CamNode0 ARRAY[0..3] OF
_sMC_CAM_NODE
--- This is the cam node variable.
_MC_COM.Status.GenerateCamBusy BOOL --- This is a system-defined variable
for motion control. It is TRUE
while the cam table creation is in
progress.
Timing Charts
WriteCamDefinition
WriteCamDefinitionDone
360000
_MC_COM.Status.GenerateCamBusy
Gene_D
Gene_EPI
Gene_Exe
CamIn_InCam
CamIn_Exe
CamIn_Bsy
CamIn_Act
Gene_Bsy
Gene_Ca
Gene_Err
CamIn_Ca
CamIn_Err
Command current position for master axis (axis 1)
Command current position for slave axis (axis 2)
Sample Programming
//If StartPg is TRUE and the Servo Drive is ready, the Servo for axis 1 is turned O
N.
//If the Servo Drive is not ready, the Servo is turned OFF.
IF (StartPg=TRUE)
AND (MC_Axis000.DrvStatus.Ready=TRUE) THEN
Pwr1_En:=TRUE;
5 Common Command Instructions
5-41
NY-series Motion Control Instructions Reference Manual (W561)
MC_GenerateCamTable
5
Sample Programming