Yaskawa MotionWorks IEC Toolboxes User Manual
Page 494

PLCopen Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
481
If the cam-like lobes of multiple switches intersect with each other for a single track the net effect would be an
OR-ing of the switches.
Example1 SW1: on at 10, off at 50, SW2: on at 20, off at 30; net effect on at 10 off at 50.
Example2 SW1: on at 10, off at 50, SW2: on at 40, off at 60; net effect on at 10 off at 60.
Operation
On the rising edge of Enable, the input data will be checked against restrictions. The busy output will remain on
until at least 1 track is enabled and the FB is controlling the outputs, then the InOperation bit will be set and the
busy bit reset.
While the Enable is on, the EnableMask value will be read each scan and effect the output control.
On the falling edge of Enable, all outputs will be reset (turn off), and the InOperation, Busy, and Error bits will
be reset. ErrorID output will be set to 0.
Input Data that is read only on rising edge of Enable
CAMSWITCH_STRUCT[].TrackNumber
CAMSWITCH_STRUCT[].AxisDirection
CAMSWITCH_STRUCT[].CamSwitchMode
AXIS_REF
CAMSWITCH_REF.MasterType
CAMSWITCH_REF.MachineCycle
CAMSWITCH_REF.LastSwitch
Input Data that is read continuously while Enabled
CAMSWITCH_STRUCT[].FirstOnPosition
CAMSWITCH_STRUCT[].LastOnPosition
CAMSWITCH_STRUCT[].Duration
CAMSWITCH_STRUCT[].FirstOnPosition
TRACK_STRUCT[].OnCompensationScaler
TRACK_STRUCT[].OffCompensationScaler
Enable
EnableMask