DIN 66025 Fundamentals
Structure of a DIN 66025 program
The DIN 66025 program consists of individual motion blocks. The block number is located at the beginning of each block.
['%' <Programmname>] <Satz>{<Satz>}
N<block number> G<expression> <G code words>
N<block number> <G code words>
(theG<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
Path from two lines and an arc, followed by a subroutine call
% MyProgram N10 G01 X100 Y100 E100 F100 E-200 N20 G01 Z40 F20 N30 G03 X-100 R200 F100 N40 SubPrg{5}
Syntax
['%' <program name>] | Header optional Starts with %, followed by the program name separated by a Space or Tab |
<block> | The block is processed word by word from right to left. |
/ | Step Suppression If a block starts with / and the command is selected, then the block is not executed. |
N<block number> | The block number is used as a marker for defining jump targets. Example: |
G<expression> | Travel Command
|
<G code word> | Uppercase and lowercase is ignored. G code word
|
<expression> | See: Expressions |
() | Comment
Note: Comments can be redefined by means of the |
Interpolation between two consecutive blocks | The velocity when transitioning two adjacent objects is determined by the following rules:
|
Travel commands and corresponding path elements
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 I/J/K vector to the plane | |
| Switch to 3D by activating 3D mode in the X/Y plane | |
| Switch to 3D by activating 3D mode in the Z/X plane | |
| Switch to 3D by activating 3D mode in the Y/Z plane | |
| 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 ( |
G code word recognition
| 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 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 P |
| Configuration of the modulo axes If Modes |
| Target position of the additional linear axis Q |
|
|
| S profile for linear axes Positive: Switch on Negative: Switch off Axis
|
| Command-specific parameter |
| Target position of the additional linear axis U |
| Target position of the additional linear axis V |
| Target position of the additional linear axis W |
| X-coordinate of the target position |
| Y-coordinate of the target position |
| Z-coordinate of the target position |