Omron NY532-1500 User Manual page 356

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
If the Servo is ON for axis 1 and home is not defined, the MC_Home instruction is executed.
Pwr1_Status MC_Axis001.Details.Homed
If WriteCamData is TRUE and a cam table file is not being saved, the values in the cam data variable are changed.
The displacements for phases from 0° to 180° are multiplied by 2 and the displacements for phases from 181° to 360°
are multiplied by 0.5. When the changes to the displacements are completed, WriteDone is changed to TRUE.
WriteCamdata _MC_COM.Status.CamTableBusy
If the changes to the cam data variable are completed, SaveCamtable is TRUE, and a cam table file save operation
is not in progress, Sv_Cam_Ex is changed to TRUE.
1
IF (WriteDone=TRUE) AND (SaveCamtable=TRUE) AND (_MC_COM.Status.CamTableBusy=FALSE) THEN
2
Sv_Cam_Ex := TRUE;
3
END_IF;
If Sv_Ca_TimeUp is TRUE, Sv_Cam_Ex is changed to FALSE.
If Sv_Cam_Ex changes to FALSE, Sv_Ca_TimeUp changes to FALSE and Sv_Cam_Ex changes to TRUE.
The MC_SaveCamTable instruction is executed again.
Sv_Cam_Ex
Sv_Ca_TimeUp
If Sv_Cam_Ex changes to TRUE, the MC_SaveCamTable instruction is executed.
Sv_Cam_Ex
CamProfile0
If Sv_Ca_CountUp is FALSE, a Cannot Execute Save Cam Table error occurs and Sv_Cam_Disable is changed to TRUE.
Sv_Ca_CountUp
Sv_Cam_Ca
10-80
MC_Axis001
Axis
Execute
1
FOR Index := UINT#0 TO UINT#360 DO
2
IF Index<UINT#180 THEN
3
CamProfile0[INDEX].Distance:=CamProfile0[Index].Distance*REAL#2.0;
4
ELSE
5
CamProfile0[INDEX].Distance:=CamProfile0[Index].Distance*REAL#0.5;
6
END_IF;
7
END_FOR;
8
WriteDone:=TRUE;
9
WriteCamData:=FALSE;
SV_CAM
MC_SaveCamTable
CamTable
CamTable
Execute
Done
Busy
CommandAborted
Error
ErrorID
NY-series Industrial Panel PC / Industrial Box PC Motion Control User's Manual (W559)
HM2
MC_Home
Axis
Done
Hm2_Bsy
Busy
Hm2_Ca
CommandAborted
Hm2_Err
Error
Hm2_ErrID
ErrorID
Sv_Cam_Ex
Sv_Cam_D
Sv_Cam_Bsy
Sv_Cam_Ca
Sv_Cam_Err
Sv_Cam_ErrID
Sv_Cam_Disable
Hm2_D

Advertisement

Table of Contents
loading

Table of Contents