AX-Series Motion Controller Instructions Manual Chapter 2
155
blocks.
2. MC_CAMSWITCH_REF: Structure (STRUCT)
Name Function Data Type
Setting Value
NoOfSwitches
Specify the number of
switches.
BYTE Positive or 0(0)
CamSwitchPtr
Points to the first element of
the MC_CAMSWITCH_TR
array
POINTER TO
MC_CAMSWITCH_TR*
POINTER TO
MC_CAMSWITCH_TR(0)
*Note: MC_CAMSWITCH_TR: Structure (STRUCT)
Name Function Data Type
Setting Value
(Default Value)
TrackNumber
Specify the track for the operation of
INT Positive, negative, or 0 (0)
FirstOnPosition Switch ON when the axis passes. LREAL
POINTER TO
MC_CAMSWITCH_TR(0)
LastOnPosition Switch OFF when the axis passes. LREAL Positive, negative, or 0 (0)
AxisDirection
The switch is active only when the
axis is moving in the specified
INT Positive, negative, or 0 (0)
CamSwitchMode Switch mode INT Positive, negative, or 0 (0)
Duration How long the switch is on. TIME Positive or 0(0)
3. MC_TRACK_TR: Stucture(STRUCT).
Name Function Data Type
Setting Value
OnCompensation
Compensation time with which the
switch is turned on. (Unit: Sec.)
LREAL
Positive, negative, or 0 (0)
OffCompensation
Compensation time with which the
switch is turned off. (Unit: Sec.)
LREAL
Positive, negative, or 0 (0)
Positive, negative, or 0 (0)
Function
EnableMask is a 32 bits of bool type parameter, used to enable different tracks. With the concept of the least significant
bit representing the first track, the input value will be 16#FFFFFFFB to disable the third track.
MC_CAMSWITCH_REF defines switches for digital cam. NoOfSwitches calculates the number of switching positions.
CamSwitchPtr is a pointer on an array of type MC_CAMSWITCH_TR.