Omron NX701-1 User Manual page 389

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

Advertisement

IF (Pwr2_Status=TRUE)
AND (MC_Axis001.Details.Homed=FALSE) THEN
Hm2_Ex:=TRUE;
END_IF;
// 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 of 0° to 180° are multiplied by 2 and the displacements for phases of 181° to 360°
are multiplied by 0.5.
// When the changes are completed, WriteDone is changed to TRUE.
IF (WriteCamdata=TRUE)
AND (_MC_COM.Status.CamTableBusy=FALSE) THEN
FOR Index := UINT#0 TO UINT#360 DO
END_FOR;
WriteDone:=TRUE;
WriteCamdata:=FALSE;
END_IF;
// If homing is completed for axis 0, velocity control is executed.
IF Hm1_D=TRUE THEN
Vel_Ex:=TRUE;
END_IF;
// If the changes to the cam data variable are completed, SaveCamtable is TRUE, and a cam table file save opera-
tion is not in progress,
// Sv_Cam_Ex is changed to TRUE.
// If Sv_Cam_Ex is TRUE, the MC_SaveCamTable instruction is executed.
IF (WriteDone=TRUE)
AND (SaveCamtable=TRUE)
AND (_MC_COM.Status.CamTableBusy=FALSE) THEN
Sv_Cam_Ex := TRUE;
END_IF;
// If Sv_Ca_TimeUp is TRUE, Sv_Cam_Ex is changed to FALSE.
// If Sv_Cam_Ex is FALSE, Sv_Ca_TimeUp changes to FALSE and Sv_Cam_Ex changes to TRUE.
// The MC_SaveCamTable instruction is executed again.
IF (Sv_Cam_Ex=TRUE)
AND (Sv_Ca_TimeUp=FALSE) THEN
Sv_Cam_Ex := TRUE;
ELSE
Sv_Cam_Ex := FALSE;
END_IF;
// If Sv_Ca_CountUp is FALSE and a Cannot Execute Save Cam Table error occurs,
// Sv_Cam_Disable is changed to TRUE.
IF (Sv_Ca_CountUP=FALSE)
AND (Sv_Cam_Ca=TRUE) THEN
Sv_Cam_Disable := TRUE;
ELSE
Sv_Cam_Disable := FALSE;
END_IF;
// One second after the Cannot Execute Save Cam Table error occurs, Sv_Ca_TimeUp is changed to TRUE.
// If Sv_Ca_TimeUp changes to TRUE, Sv_Cam_Ex is changed to FALSE.
Sv_Ca_TON(
In
NJ/NX-series CPU Unit Motion Control User's Manual (W507)
IF Index<UINT#180 THEN
CamProfile0[Index].Distance:=CamProfile0[Index].Distance*REAL#2.0;
ELSE
CamProfile0[Index].Distance:=CamProfile0[Index].Distance*REAL#0.5;
END_IF;
:= Sv_Cam_Disable ,
10 Sample Programming
10
10-83

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents