MC_CAMSWITCH_REF

Reference to a digital cam switch.

Name Type Meaning
Enable BOOL Enables this switch.
TrackNumber DINT The index of the track. Indexes are zero-based.
FirstOnPosition LREAL The position from which the switch is on.
LastOnPosition LREAL The position from which the switch is off.
AxisDirection DINT

The direction of an axis. The default value is zero. If you select zero or two, the switch is active only when the axis is moving in the specified direction.

Both: 0, Positive: 1, Negative: 2.

CamSwitchMode MC_CamSwitchMode

The cam switch is controlled by axis' positions or time. The default value is zero. If choosing Position, you need to set FirstOnPosition and LastOnPosition; if choosing Time, you need to set FirstOnPosition and Duration.

Position: 0, Time: 1.

Duration LREAL How long the switch is on. This property is available when CamSwitchMode is Time. Unit: second.