Home › G-codes › Siemens 840D 828D › ROT
ROT Programmable rotation, absolute
Siemens 840D 828D G-code · Mill and lathe
Rotates the coordinate system. RPL= rotates in the active plane. X Y Z values rotate around those axes. ROT replaces the programmable frame.
Format
ROT RPL= or ROT X Y Z
Addresses
| Address | What it does |
|---|---|
RPL= | Rotation angle in degrees in the active plane |
X Y Z | Rotation in degrees around each axis |
How it works
Modal until the next frame command. ROT with no values clears the programmable frame.
Example program
G17 G54
TRANS X50 Y50 ; ZERO TO PART CENTER
AROT RPL=30 ; ROTATE 30 DEGREES
L30 ; MACHINE ROTATED FEATURE
…
TRANS X50 Y50 ; ZERO TO PART CENTER
AROT RPL=30 ; ROTATE 30 DEGREES
L30 ; MACHINE ROTATED FEATURE
…
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.
- ROT clears an earlier TRANS. Use TRANS then AROT to rotate around a shifted zero.
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 ROT in the app All Siemens 840D 828D G-codes