Programming examples
Programming Example
Soft gantry coupling
# monitoring limits of the axis parameter data record of Y2 apply.
Parallel machining of workpieces with a symmetrical or scaled contour can also be programmed by an extended syntax of the #SET AX LINK command. Position differences are not monitored in these modes (mirroring or scaling).
#SET AX LINK [ <coupling_group>, [ <slave>=<master>,<nominator>, <denominator> ] {, [ <slave>=<master>,<numerator>, <denominator> ] } ] or alternatively #AX LINK [NBR] [ <coupling_group>, [ <slave>=<master>,<numerator>, <denominator>] {, [<slave>=<master>,<numerator>, <denominator> ] } ] |
<coupling_group> | Number of the coupling group 1 ... [Max. number of coupling groups(1) -1] , positive integer. |
<Slave> | Designation or logical axis number of the slave axis of the coupling pair i |
<Master> | Designation or logical axis number of the master axis of the coupling pair i Max. number of coupling pairs (2) |
NBR | Evaluation can be changed from logical axes names to axes numbers with the logic switch NBR. The axis couplings must then be defined with logical axis numbers. The axes need not be present in NC channel. Their availability in NC channel is checked only at activation of the coupling group! |
<numerator>, <denominator> | Integers are used to calculate a coupling factor between:
|
Notice | |
coupling factors unequal to -1 or 1 that have a scaling effect are not permitted. A warning is output and the coupling factor is assigned the value 1 (default coupling). |
Programming Example
Soft gantry: Mirror and default coupling
Syntax, selecting and deselecting a gantry coupling
A (gantry) coupling group can be activated and deactivated with the following NC commands:
#ENABLE AX LINK [ <coupling_group> ] or #ENABLE AX LINK (Coupling group 0, defined in the channel parameter list) or alternatively #AX LINK ON [ <coupling_group> ] or #AX LINK ON (Coupling group 0, defined in the channel parameter list) |
#DISABLE AX LINK [ <cooupling_group> ] or #DISABLE AX LINK (Deselect the last activated coupling group) or alternatively #AX LINK OFF [ <coupling_group> ] or #AX LINK OFF (Deselect the last activated coupling group)
#AX LINK OFF ALL (Deselect all active coupling groups) |
Handling and operating principle
- No coupling group is active after start-up in the initial position of the NC kernel. Activation of axis coupling begins with programming in the NC program and ends, if not cancelled, when the program ends (M30, M02). If active axis couplings are to remain effective for the next program (program global), a specific channel parameter P-CHAN-00105 must be set.
- Several coupling groups can be activated simultaneously.
- Unassigned coupling groups cannot be activated. A coupling group is considered assigned if at least one valid master-slave coupling pair was defined.
- The NC command must be a single instruction in the NC block.
- The number of the coupling group can also be programmed via mathematical expressions.
- WRK must not be selected when synchronous operation is selected or cancelled.
- Manual mode with parallel interpolation (G201) may not be active for the slave axes when synchronous mode is selected
- Positions of slave axes may not be addressed in the NC program when synchronous mode is active.
Programming Example
Tool change and subroutine for contour machining
Axis designations used: | Master axis system X, Y, Z, C |
| Slave axis system Y_S, Z_S, C_S |