G10: Programmable Data Input
G10 code is used to modify tool length and workpiece origin settings. The values provided in the command are stored permanently. In milling and turning models, it is used differently for tool offset adjustments. The general structure of the code is as follows.
|
Format: |
G10 L_ P_ |
L: Data group to be adjusted
1: Adjusting tool offset values
2: Adjusting workpiece origin offset values
3: Technology block selection in laser machines
4: Introducing the workpiece size to the system
P: The sequence number of the data to be adjusted
The given axis values are considered as absolute or incremental according to the G90 and G91 commands in the milling model. In the lathe model, X/Y/Z/A/B/C commands are considered as absolute or incremental based on the G90 and G91 commands, while U/V/W commands are always interpreted as incremental.
Tool Length Adjustment (Milling)
|
Format: |
G10 L1 P_ R_ |
P: The sequence number of the data to be adjusted
1~100: Adjusts the tool length compensation value
101~200: Adjusts the tool radius compensation value
201~300: Adjusts the tool length compensation wear values
301~400: Adjusts the tool radius compensation wear values
R: The value to be assigned to the area specified by the P code
Tool Length Adjustment (Lathe)
|
Format: |
G10 L1 P___ X(U)_ Y(V)_ Z(W)_ Q_ R_ |
P: The sequence number of the data to be adjusted
1~50: Adjusts the geometry offset values
51~100: Adjusts the geometry offset values
X: Adjusts the X-axis geometry offset value (Absolute or Incremental)
U: Adjusts the X-axis geometry offset value (Incremental)
Y: Adjusts the Y-axis geometry offset value (Absolute or Incremental)
V: Adjusts the Y-axis geometry offset value (Incremental)
Z: Adjusts the Z-axis geometry offset value (Absolute or Incremental)
W: Adjusts the Y-axis geometry offset value (Absolute or Incremental)
Q: Adjusts the tool type
R: Adjusts the tool radius value (Incremental)
Only one of the X and U codes should be written.
Only one of the Y and V codes should be written.
Only one of the Z and W codes should be written.
Adjusting Workpiece Offset Values (Milling)
|
Format: |
G10 L2 P_ X_ Y_ Z_ A/B/C_ U/V/W_ |
P: The sequence number of the data to be adjusted
0: Adjusts the G92 (All offsets) values
1: Adjusts the G54 values
2: Adjusts the G55 values
3: Adjusts the G56 values
4: Adjusts the G57 values
5: Adjusts the G58 values
6: Adjusts the G59 values
7: Adjusts the G59.1 values
8: Adjusts the G59.2 values
9: Adjusts the G59.3 values
10: Adjusts the G59.4 values
X: Adjusts the X axis value of the offset group specified by the P code
Y: Adjusts the Y axis value of the offset group specified by the P code
Z: Adjusts the Z axis value of the offset group specified by the P code
A/B/C: Adjusts the A/B/C axis value of the offset group specified by the P code
U/V/W: Adjusts the U/V/W axis value of the offset group specified by the P code
Adjusting Workpiece Offset Values (Lathe)
|
Format: |
G10 L2 P_ X(U)_ Y(V)_ Z(W)_ A/B/C_ |
P: The sequence number of the data to be adjusted
0: Adjusts the G92 (All offsets) values
1: Adjusts the G54 values
2: Adjusts the G55 values
3: Adjusts the G56 values
4: Adjusts the G57 values
5: Adjusts the G58 values
6: Adjusts the G59 values
7: Adjusts the G59.1 values
8: Adjusts the G59.2 values
9: Adjusts the G59.3 values
10: Adjusts the G59.4 values
X: Adjusts the X axis value of the offset group specified by the P code(Absolute or Incremental)
U: Adjusts the X axis value of the offset group specified by the P code(Incremental)
Y: Adjusts the X axis value of the offset group specified by the P code(Absolute or Incremental)
V: Adjusts the Y axis value of the offset group specified by the P code(Incremental)
Z: Adjusts the Z axis value of the offset group specified by the P code(Absolute or Incremental)
W: Adjusts the Z axis value of the offset group specified by the P code(Incremental)
A/B/C: Adjusts the A/B/C axis value of the offset group specified by the P code
Only one of the X or U codes should be written.
Only one of the Y or V codes should be written.
Only one of the Z or W codes should be written.
Technology block selection in laser machines
|
Format: |
G10 L3 P_ |
P: The sequence number of the selected technology block
A total of 10 technology blocks are reserved for use in laser cutting machines. The value written next to the P code should be between 0 and 9. P0 code selects the first technology block.
Introducing the workpiece size to the system
|
Format: |
G10 L4 X_ Y_ Z_ |
X: The X dimension of the workpiece
Y: The Y dimension of the workpiece
Z: The Z dimension of the workpiece
