CNC Machinist Calculator Ultra

Home › G-codes › Siemens 840D 828D › TRANS

TRANS Programmable zero offset, absolute

Siemens 840D 828D 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

AddressWhat it does
X Y ZOffset 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

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

ATRANS · ROT · G54

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 TRANS in the app All Siemens 840D 828D G-codes

App Store Google Play