Home › G-codes › Siemens 840D 828D › AROT
AROT Programmable rotation, additive
Siemens 840D 828D G-code · Mill and lathe
Adds a rotation to the current programmable frame. Earlier TRANS and ROT stay active, so it rotates around the shifted zero.
Format
AROT RPL= or AROT 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.
Example program
TRANS X50 Y50 ; ZERO TO CENTER
L40 ; FIRST SLOT
AROT RPL=90 ; ROTATE 90 MORE
L40 ; SECOND SLOT
…
L40 ; FIRST SLOT
AROT RPL=90 ; ROTATE 90 MORE
L40 ; SECOND SLOT
…
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.
- Repeat AROT in a loop to machine features on a bolt circle.
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 AROT in the app All Siemens 840D 828D G-codes