Examples
Coupling specifications are to be defined for the axis with logical axis number 8 and axis designator Y2:
Example 1
desc[1].AxisNumber:= 1
desc[1].CouplingMode:= HLI_AXIS_COUPLING_DIRECT
desc[2].AxisNumber:= 0
desc[2].CouplingMode:= HLI_AXIS_COUPLING_INACTIVE
The axis moves in synchronicity with the axis with logical axis number 1. Since no coupling specification is defined for logical axis number 8, axis Y2 cannot be moved by the NC program.
Since coupling mode HLI_AXIS_COUPLING_FRACT is not used, the elements FractNumerator and FractDenominator need not be assigned in the coupling specification desc[1].
The coupling specification desc[2] indicates the end of the list of coupling specifications.
Example 2
desc[1].AxisNumber:= 1
desc[1].CouplingMode:= HLI_AXIS_COUPLING_DIRECT
desc[2].AxisNumber:= 8
desc[2].CouplingMode:= HLI_AXIS_COUPLING_DIRECT
desc[3].AxisNumber:= 0
desc[3].CouplingMode:= HLI_AXIS_COUPLING_INACTIVE
The axis Y2 can now also be moved by the NC program when the coupling specification desc[2] is added.
Since coupling mode HLI_AXIS_COUPLING_FRACT is not used there, the elements FractNumerator and FractDenominator need not be assigned in coupling specifications desc[1] and desc[2] .
The coupling specification desc[3] indicates the end of the list of coupling specifications.
Example 3
A coupling specification with coupling factor –5/9 is to be defined for the axis with logical axis number 8 and axis designator Y2. Axis Y2 is also to be programmable in the NC program:
desc[1].AxisNumber:= 8
desc[1].CouplingMode:= HLI_AXIS_COUPLING_DIRECT
desc[2].AxisNumber:= 1
desc[2].CouplingMode:= HLI_AXIS_COUPLING_FRACT
desc[2].FractNumerator:= -5
desc[2].FractDenominator:= 9
desc[3].AxisNumber:= 0
desc[3].CouplingMode:= HLI_AXIS_COUPLING_INACTIVE
Since coupling mode HLI_AXIS_COUPLING_FRACT is not used, the elements FractNumerator and FractDenominator need not be assigned in the coupling specification desc[1].
The coupling specification desc[3] indicates the end of the list of coupling specifications.