Home › G-codes › Siemens 840D 828D › SCALE
SCALE Programmable scaling
Siemens 840D 828D G-code · Mill and lathe
Scales the axes by the given factors. SCALE replaces the programmable frame. ASCALE adds to the current one.
Format
SCALE X Y Z
Addresses
| Address | What it does |
|---|---|
X Y Z | Scale factor for each axis |
How it works
Modal until the next frame command. SCALE with no values clears the programmable frame.
Example program
G54
L50 ; ORIGINAL SIZE
SCALE X2 Y2 ; DOUBLE SIZE
L50 ; SAME CONTOUR TWICE AS LARGE
…
L50 ; ORIGINAL SIZE
SCALE X2 Y2 ; DOUBLE SIZE
L50 ; SAME CONTOUR TWICE AS LARGE
…
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.
- Use the same factor in both plane axes when the contour has arcs.
- Scaling does not change tool radius or tool length.
Related codes
TRANS · MIRROR
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 SCALE in the app All Siemens 840D 828D G-codes