ST_CamSwitch

 

ST_CamSwitch - General Information

Overview

Type:

data structure

Available as of:

1.0.5.0

Versions:

current version

Description

Structure for parameters of a switch of an MC_DigitalCamSwitch, which are managed in the MC_Cam_Switch_Ref structure

Structure Elements

Variable

Data type

Description

xEnable

BOOL

TRUE: The switch is enabled.

uiTrackNumber

UINT

The number of the track to which the switch is allocated

lrOnPosition

LREAL

The position of the axis at which the switch switches on the output

lrOffPosition

LREAL

The position of the axis at which the switch switches off the output.

Only valid if uiMode = 0

timDuration

TIME

The time after which the switch switches off the output

Only valid if uiMode = 1

uiDirection

UINT

0: The output is switched independently from the motion direction of the axis.

1: The output is switched only if the axis at the switch position rotates in positive direction.

2: The output is switched only if the axis at the switch position rotates in negative direction.

uiMode

UINT

0: Position mode

The output is switched on if lrOnPosition and switched off if lrOffPosition.

1: Time mode

The output is switched on only if lrOnPosition and switched off again after the period timDuration.