G10 Programmable data input
Fadal G-code · Mill
Writes or reads fixture offsets, tool offsets and the R0 to R9 parameters from the program. L picks the table and P picks the number.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G10 L P [X] [Y] [Z] [R]
Addresses
| Address | What it does |
|---|---|
L2 | Fixture offset table |
L10 L12 | Tool length and tool diameter tables |
L13 L14 L15 | Read a fixture, length or diameter value into R0 |
L100 to L109 | Set parameter R0 to R9 |
P | Offset number or value |
How it works
Non modal.
Example program
N1 G0 G40 G49 G80 G90 G17 (FORMAT 2 SAFE START)
N2 G10 L2 P2 X-10. Y-5. Z0. (SET FIXTURE OFFSET 2)
N3 G10 L14 P2 (R0 NOW HOLDS LENGTH OF OFFSET 2)
N4 E2 (USE FIXTURE OFFSET 2)
N2 G10 L2 P2 X-10. Y-5. Z0. (SET FIXTURE OFFSET 2)
N3 G10 L14 P2 (R0 NOW HOLDS LENGTH OF OFFSET 2)
N4 E2 (USE FIXTURE OFFSET 2)
Example is in inch. Check offsets and clearances first.
Watch out for
- G10 L14 P2 puts the length of offset 2 into R0, so a macro or fixed subroutine can use it.
- A wrong L number writes the wrong table. Prove it out with the offset page open.
Related codes
G10 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Programmable data input, offsets |
| Haas NGC | Programmable offset setting |
| Mazak (EIA) | Program data setting, offsets |
| Okuma OSP | Cancel coordinate shift and rotation |
| Mitsubishi M70 M80 | Program data input for offsets |
| Brother Speedio | Programmable data input |
| Heidenhain TNC (ISO) | Rapid straight line, polar |
| Fagor 8055 8065 | Mirror image cancel |
| Mach3 Mach4 | Set offsets from the program |
| Centroid CNC12 Acorn | Set parameter or offset from program |
| Hurco WinMax (NC) | Data setting, offsets by program |
Every G-code for Fadal in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G10 in the app All Fadal G-codes