Home › G-codes › Siemens 808D › SPOS
SPOS Spindle positioning
Siemens 808D G-code · Mill and lathe
Turns the spindle to a set angle and holds it there in position control. Used before rigid tapping, for oriented stops and before C axis work on a lathe. The block ends when the spindle is in position.
Format
SPOS= or SPOS=ACP() or SPOS=ACN() or SPOS=IC() or SPOS=DC()
Addresses
| Address | What it does |
|---|---|
SPOS= | Angle in degrees, 0 to under 360 |
ACP() ACN() | Absolute angle, approached in plus or minus direction |
IC() | Incremental angle. The sign sets the direction. |
DC() | Absolute angle, shortest way |
How it works
The spindle stays in position control until the next M3, M4 or M5.
Example program
S800 M3 ; SPINDLE RUNNING
G0 X10 Y10 Z5 ; ABOVE HOLE
SPOS=0 ; SPINDLE TO POSITION CONTROL AT 0 DEGREES
G331 Z-25 K0.8 S600 ; RIGID TAP, 0.8 MM PITCH
…
G0 X10 Y10 Z5 ; ABOVE HOLE
SPOS=0 ; SPINDLE TO POSITION CONTROL AT 0 DEGREES
G331 Z-25 K0.8 S600 ; RIGID TAP, 0.8 MM PITCH
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The spindle must be built for position control.
- From M3 or M4 the spindle keeps its direction until it reaches the angle. From standstill it takes the shortest way.
- SPOS can share a block with axis moves. The block ends when both are done.
Related codes
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 SPOS in the app All Siemens 808D G-codes