The DIN 66025 program consists of individual motion blocks. The block number is located at the beginning of each block.
['%' <program name>]
<block>{<block>}
The blocks can be structured as follows:
N<block number> G<expression> <G code words>
N<block number> <G code words>
(the G<expression>
of the previous block apply)
N<block number> M<expression> <G code words>
N<block number> <subroutine name> ( <ActualParamList> )
Additional block structures for subroutines:
SUBPROGRAM <name> {<FormalParamList>} <RESTORE_OPT>
N<block number> RETURN
END_SUBPROGRAM
['%' <program name>] |
Header Optional
Starts with |
|
The block is processed word by word from right to left. |
|
Step suppression If a block starts with |
N<block number> |
The block number is used as a marker for defining jump targets.
Example: |
|
Travel command
|
|
G code word
|
|
See 'Expressions' chapter |
|
Comment
Note: Comments can be redefined by means of the input |
Interpolation between two consecutive blocks |
The velocity when transitioning two adjacent objects is determined by the following rules:
|
See also
Travel Command |
Description |
Path element |
---|---|---|
|
Direct movement without tool operation; linear motion |
|
|
Linear movement with tool operation |
|
|
Circular segment or circle, clockwise |
|
|
Circular segment or circle, counterclockwise |
|
|
Dwell time |
|
|
Point of a 2D cardinal spline |
|
|
Parabola |
|
|
Elliptical arc or ellipse, clockwise |
|
|
Elliptical arc or ellipse, counterclockwise |
|
|
Point of a 3D cardinal spline |
|
|
Switch to 2D |
|
|
Switch to 3D by activating 3D mode with the normal vector |
|
|
Switch to 3D by activating 3D mode in |
|
|
Switch to 3D by activating 3D mode in |
|
|
Switch to 3D by activating 3D mode in |
|
|
Conditional jump to |
|
|
Write value |
|
|
Increment variable |
|
|
End of tool radius compensation |
|
|
Start of tool radius compensation, left of travel direction |
|
|
Start of tool radius compensation, right of travel direction |
|
|
Start of tool length compensation. |
|
|
End of angle rounding/smoothing |
|
|
Start of angle smoothing |
|
|
Start of angle rounding |
|
|
Ends the coordinate transformation and resets the decoder coordinate system to the original position (= machine coordinate system). |
|
|
Absolute transformation of the coordinates. |
|
|
Relative transformation of the coordinates. |
|
|
Sets the current orientation, position, and scaling of the DCS is set as a reference point. |
|
|
End of loop suppression |
|
|
Start of loop suppression |
|
|
End of smoothing additional axes. (see |
|
|
Start of smoothing additional axes. (see |
|
|
Timing synchronization with the interpolator |
|
|
The coordinates ( |
|
|
The coordinates ( |
|
|
Positioning by jump |
|
|
The axis midpoints ( |
|
|
The axis midpoints ( |
|
Target position of the additional spline axis. For a coordinate transformation in the decoder coordinates system, the word contains an angle. |
|
|
|
|
|
|
|
Maximum path acceleration/deceleration in [u/sec2]. Value > 0: acceleration; value < 0: deceleration |
|
Path acceleration/deceleration for |
|
Individual acceleration/deceleration (>0/<0) of the specified additional axis
Additional axes are
If this G code is used, then the path processing block |
|
Velocity (in [u/sec]). "Feed" |
|
Velocity for |
|
Individual velocity of specified additional axis <axis>.
Additional axes are
If this G code is used, then the path processing block |
|
Path condition |
|
Switch point (H function). Positive: Switch on. Negative: Switch off. |
|
|
|
|
|
|
|
|
|
Additional option for machinery; also M function |
|
|
|
Target position of the additional linear axis |
|
Configuration of the modulo axes.
If |
|
Target position of the additional linear axis |
|
|
|
S profile for linear axes. Positive: Switch on. Negative: Switch off. Axis
|
|
Command-specific parameter |
|
Target position of the additional linear axis |
|
Target position of the additional linear axis |
|
Target position of the additional linear axis |
|
X-coordinate of the target position |
|
Y-coordinate of the target position |
|
Z-coordinate of the target position |