Home › G-codes › Siemens 808D › TRANS
TRANS Programmable zero offset, absolute
Siemens 808D G-code · Mill and lathe
Shifts the zero point by the given values on top of the work offset. TRANS replaces the whole programmable frame, so earlier ROT, SCALE and MIRROR are cleared.
Format
TRANS X Y Z
Addresses
| Address | What it does |
|---|---|
X Y Z | Offset values in each axis |
How it works
Modal until the next frame command. TRANS with no values clears the programmable frame.
Example program
G54 ; PART ZERO
TRANS X50 Y20 ; ZERO SHIFTED TO SECOND PART
L10 ; RUN PART PROGRAM
TRANS ; CLEAR PROGRAMMABLE FRAME
TRANS X50 Y20 ; ZERO SHIFTED TO SECOND PART
L10 ; RUN PART PROGRAM
TRANS ; CLEAR PROGRAMMABLE FRAME
Example is in inch. Check offsets and clearances first.
Watch out for
- Write frame commands in a block of their own.
- Use ATRANS to add to an existing offset instead of replacing it.
- TRANS with no axes clears TRANS, ROT, SCALE and MIRROR.
Related codes
TRANS on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Siemens 840D 828D | Programmable zero offset, absolute |
Every G-code for Siemens 808D 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 TRANS in the app All Siemens 808D G-codes