CNC Machinist Calculator Ultra

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

AC Absolute or incremental value for one axis

Siemens 840D 828D G-code · Mill and lathe

AC() makes one coordinate absolute while G91 stays active. IC() makes one coordinate incremental while G90 stays active. Both also work for arc center values.

Format

X=AC(value) or X=IC(value)

Addresses

AddressWhat it does
X=AC()Absolute value for this axis, this block only
X=IC()Incremental value for this axis, this block only
I=AC()Absolute arc center

How it works

Non modal. Only the coordinate written with it is affected.

Example program

G90 G0 X0 Y0 ; ABSOLUTE
G1 X=IC(10) Y20 F300 ; X MOVES 10 MORE, Y GOES TO 20
G91 G1 X5 Z=AC(-2) ; X INCREMENTAL, Z ABSOLUTE
G90 ; BACK TO ABSOLUTE

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G90 · G91 · G2

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

App Store Google Play