-

Yt_AX_CamSwitchRef

The Yt_AX_TrackRef data type is used in conjunction with Y_AX_DigitalCamSwitch .

Yt_AX_CamSwitchRef: STRUCT

Element Data Type Description Usage
MasterType INT 0 = Infinite/Rotary
1 = Finite/Linear

MachineCycle LREAL This number should match the setting that is defined in the attached "Motion Axis" configuration
LastSwitch INT To limit the evaluation of the array
Switch Yt_AX_CamSwitchArray

Yt_AX_CamSwitchStruct: STRUCT

Element Data Type Description Usage
TrackNumber INT A reference to the track number to which this switch is to be applied. the PLS block will support up to 32 tracks. There is no limit to how many switches can be assigned to a single track except for the maximum of 256 switches.
FirstOnPosition LREAL Lower boundary where the switch is ON.
LastOnPosition LREAL Upper boundary where the switch is ON. If LastOnPosition < FirstOnPosition, then the switch should be OFF between the positions (inverse cam switch)
AxisDirection INT The direction of the master for which this switch applies. 0 = Both Pos and Neg; 1,2 = (future implementation)
CamSwitchMode INT Position vs Time-Based output. 0 = Position; 1= Time
Duration DINT Duration of the switch. If CamSwitchMode = 0 (Position) AND Duration <> 0.0, this Duration will serve as a Maximum ON time for the switch. A setting of 0.0 means infinite time. If CamSwitchMode = 1, this duration will serve as the ON time of the switch once FirstOnPosition has been reached. A setting of 0.0 will result in a block error.
Distance LREAL

Yt_AX_CamSwitchArray: ARRAY

Array Name
Data Type
Range
Description
Usage
Yt_AX_CamSwitchArray Yt_AX_CamSwitchStruct 0..255 Supporting structure for CAMSWITCH_REF



 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.