EasyManuals Logo

Omron Sysmac NY-series User Manual

Omron Sysmac NY-series
744 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #521 background imageLoading...
Page #521 background image
Switches[1].CamSwitchMode :=_eMC_SWITCH_MODE#_mcPositionBased;
Switches[2].TrackNumber := UINT#0;
Switches[2].FirstOnPosition := LREAL#4000.0;
Switches[2].LastOnPosition := LREAL#1000.0;
Switches[2].AxisDirection :=_eMC_DIRECTION#_mcNoDirection;
Switches[2].CamSwitchMode :=_eMC_SWITCH_MODE#_mcPositionBased;
Switches[3].TrackNumber := UINT#1;
Switches[3].FirstOnPosition := LREAL#3000.0;
Switches[3].Duration := T#1350ms;
Switches[3].AxisDirection :=_eMC_DIRECTION#_mcNoDirection;
Switches[3].CamSwitchMode :=_eMC_SWITCH_MODE#_mcTimeBased;
//InitFlag is changed to TRUE after input parameters are set.
InitFlag:=TRUE;
END_IF;
//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
Pwr_En:=TRUE;
ELSE
Pwr_En:=FALSE;
END_IF;
//If a minor fault level error occurs for axis 1, the error handler for the device
(FaultHandler) is executed.
//Program the FaultHandler according to the device.
IF MC_Axis000.MFaultLvl.Active=TRUE THEN
FaultHandler();
END_IF;
//If the Servo is ON and home is not defined, the Home instruction is executed.
IF (Pwr_Status=TRUE) THEN
Hm_Ex:=TRUE;
END_IF;
//After home is defined, MC_MoveVelocity is executed.
IF MC_Axis000.Details.Homed=TRUE AND Hm_D=TRUE THEN
Vel_Ex:=TRUE;
END_IF;
//MC_Power
PWR(
Axis := MC_Axis000,
3 Axis Command Instructions
3-433
NY-series Motion Control Instructions Reference Manual (W561)
MC_DigitalCamSwitch
3
Sample Programming

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron Sysmac NY-series and is the answer not in the manual?

Omron Sysmac NY-series Specifications

General IconGeneral
BrandOmron
ModelSysmac NY-series
CategoryControl Unit
LanguageEnglish

Related product manuals