Axis commands
Axis designations are configurable and must be taken from the configuration-specific description [1]-5. When decoded, the notation is case-sensitive (uppercase/lowercase).
The following axis designations are available:
- Individual address letters: {A, B, C, U, V, W, X, Y, Z, Q}
- After programming an axis designation consisting of only one address letter, a space is required between the position value and the next character in order not to cause any mix-up when the equals sign is assigned afterwards.
Example
The axis designations "X" and "X50P1" exist in the NC channel and axis "X" should be moved to position "50".
X50P1=7 | (ERROR) | X50P1 axis moves to position 7. |
X50 P1=7 | (RIGHT) | X axis moves to position 50. |
- Strings (e.g. X_SCHLITTEN, X1, Y22, Z_ACHSE)
- The first character of the string must correspond to one of the reserved address letters (see above). Other characters may include the numerals 0 - 9. The string length of the axis designation may not exceed the maximum possible length (fixed), otherwise an error message is output.
To avoid confusion, an equals sign must be placed in front of the position statement after all axis designations consisting of more than one character.
This is necessary especially for axis designations ending with one of the numerals 0 - 9.
Notice
An equals sign must follow axis identifiers that contain more than one character.
X1 = <int, double, expr> | Examples: |
| X1 = 100.0 |
| X22 = 0,001 |
| X_SCHLITTEN = SIN [30] |
| Z_ACHSE = SQRT [2]/2 |
The following declarations also apply:
- All axis identifiers must be specified in the channel parameter block [1]-5.
- An axis designation must always be followed by a numerical value or expression:
X <int, double, expr> | Examples: |
| X 100.0 |
| Y 0.001 |
| Z SIN [30] |
| A SQRT [2]/2 |
| B 4 * R1/R2 |
Programing Example
Axis commands
;Axis identifiers used:
;Y, Y50, Y_ACHSE_SCHL_1, Z7
N010 G01 F1500
N020 Y50 = 51 ;Axis Y50 to position 51
N030 Y52 ;Axis Y to position 52
N040 Y50 Z7 = 54 ;Axis Y to position 50 and
;Axis Z7 to position 54
N050 Y 70 Z7 = 55 ;Axis Y to position 70 and
;Axis Z7 to position 55
N060 Y = 71 Z7 = 56 ;Axis Y to position 71 and
;Axis Z7 to position 56
N070 Y[2+3] ;Axis Y to position 5
N080 Y50 = [4*3] ;Axis Y50 to position 12
N090 Y_ACHSE_SCHL_1 = 23 ;Axis Y_ACHSE_SCHL_1 to
;Position 23
N100 Y50 = P1 ;Axis Y50 to position P1
N110 M30
This programming manual uses the common designations X, Y, Z for the three linear axes of a Cartesian system and A and B for two further path axes.