Home › G-codes › Siemens 840D 828D › ATRANS
ATRANS Programmable zero offset, additive
Siemens 840D 828D G-code · Mill and lathe
Adds an offset to the current programmable frame. Earlier TRANS, ROT and other frame parts stay active.
Format
ATRANS X Y Z
Addresses
| Address | What it does |
|---|---|
X Y Z | Offset values to add |
How it works
Modal until the next frame command.
Example program
TRANS X10 Y10 ; FIRST OFFSET
L20 ; FIRST POCKET
ATRANS X30 ; 30 MORE IN X
L20 ; SECOND POCKET
…
L20 ; FIRST POCKET
ATRANS X30 ; 30 MORE IN X
L20 ; SECOND POCKET
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Write frame commands in a block of their own.
- ATRANS after ROT shifts along the rotated axes.
Related codes
Every G-code for Siemens 840D 828D 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 ATRANS in the app All Siemens 840D 828D G-codes