Examples
Precondition for all examples below: Coupling specifications are to be defined for the axis with logical axis number 8 and axis designator Y2:
Example
Example 1: Axis Y2 cannot be moved by the NC program.
desc[0].ax_nr:= 1
desc[0].mode:= HLI_AXIS_COUPLING_DIRECT
desc[1].ax_nr:= 0
desc[1].mode:= 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 fract_num and fract_denom need not be defined in the coupling specification desc[0] .
The coupling specification desc[1] indicates the end of the list of coupling specifications.
Example
Example 2: Axis Y2 is moved by the NC program.
desc[0].ax_nr:= 1
desc[0].mode:= HLI_AXIS_COUPLING_DIRECT
desc[1].ax_nr:= 8
desc[1].mode:= HLI_AXIS_COUPLING_DIRECT
desc[2].ax_nr:= 0
desc[2].mode:= HLI_AXIS_COUPLING_INACTIVE
The axis Y2 can now also be moved by the NC program when the coupling specification desc[1] is added.
Since coupling mode HLI_AXIS_COUPLING_FRACT is not used here, the elements fract_num and fract_denom need not be defined in the coupling specifications desc[0] and desc[1].
The coupling specification desc[2] indicates the end of the list of coupling specifications.
Example
Example 3: Axis Y2 with coupling factor
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[0].ax_nr:= 8
desc[0].mode:= HLI_AXIS_COUPLING_DIRECT
desc[1].ax_nr:= 1
desc[1].mode:= HLI_AXIS_COUPLING_FRACT
desc[1].fract_num:= -5
desc[1].fract_denom:= 9
desc[2].ax_nr:= 0
desc[2].mode:= HLI_AXIS_COUPLING_INACTIVE
Since coupling mode HLI_AXIS_COUPLING_FRACT is not used, the elements fract_num and fract_denom need not be defined in the coupling specification desc[0] .
The coupling specification desc[2] indicates the end of the list of coupling specifications.