Data type: camswitch_struct, Data type declaration, Camswitch_struct – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 406

PLCopen Toolbox: DataTypes
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
393
Data Type: CAMSWITCH_STRUCT
. Used by the
Data Type Declaration
TYPE
CAMSWITCH_STRUCT:STRUCT
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 = Positive Only (future); 2 = Negative Only (future)
ONLY 0 should be implemented at this time. *)
CamSwitchMode:INT;
(* Position vs Time-Based output. 0 = Position. 1 = Time. *)
Duration:DINT;
(* The 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 (Time), this duration will
serve as the ON time of the switch once FirstOnPosition has been reached.