Codes For NUM CNC

You might also like

You are on page 1of 22

ISO Programming

5 ISO Programming
5.1 G Functions, M Functions and other Functions - Main summary tables 1
5.1.1 G Functions - Main summary table

The functions initialized at power on are identified by «*».


Click on Gxx to give the detailed information. 2
The "Syntax" indications in the table are given for Milling application only.
Please refer to the detailed Gxx information to give the "Syntax" on Turning application.

3
G00 Linear interpolation at high speed
Syntax:
N.. [G90/G91] G00 [R±] X.. Y.. Z..

4
Cancellation:
G01/G02/G03
Z X
Y
X Z

G01
5
*Linear interpolation at programmed feed rate
Syntax:
N.. [G90/G91] G01 [R±] X.. Y.. Z.. [F..]
Cancellation:
G00/G02/G03

6
Z X
Y
X Z

G02 Clockwise circular interpolation at


programmed feed rate I-K

7
Syntax (XY plane):
N.. [G17] [G90/G91] G02 X.. Y.. I..J.. or R.. [F..] R
R
Cancellation: J
G00/G01/G03 Z I X
Y
X Z

G03 Counterclockwise circular interpolation at


programmed feed rate
8
Syntax (XY plane): I R
N.. [G17] [G90/G91] G03 X.. Y.. I..J.. or R.. [F..]

9
Cancellation: J R I-K
G00/G01/G02 Z X
Y
X Z

G04 G04: Programmable dwell


Syntax:
N.. G04 F..
60
Cancellation:
End of block 45 15

30

G05 Programming a movement on the inclined axis


Syntax:
N.. [G90/G91] [G00/G01] G05 X..
Cancellation:
End of block

Flexium Programming Manual - M00018EN-03 67


G06 Spline curve execution command
Syntax:
N.. G06 NC..
Cancellation
End of block

G07 Initial tool positioning before machining along an inclined axis


Syntax:
N.. [G90] [G00/G01] G07 X.. Z..
Cancellation
End of block

G09 Deceleration at end of block before


continuation on next block Programmed
With G09
point reached
Syntax: εp with G09 εp
N.. G09 [G00/G01/G02/G03] X.. Y.. Z.. [F..]
Cancellation
End of block Without G09
Without G09

G10 Interruptible block


Syntax:
N.. [G40] [G04] [G00/G01/G02/G03] X.. Y.. Z.. G10 [:n] [+X.. or F..] [@n < > Value] N.. [+ Number] [EF..]
Cancellation:
End of block

G12 Overspeed by handwheel


Syntax: Fe
ed
N.. [G01/G02/G03] G12 X.. Y.. Z.. [F..] [$0 ...]
ed
Fe
Cancellation:
End of block

G16 *Definition of the tool axis orientation with R+ Q+


addresses P, Q, R P+

Syntax:
N.. G16 P±/Q±/R± P- Z
Y P+

Cancellation: X X

G16 P±/Q±/R±. R+

Q- Z

R-

G17 *XY plane selection Z


Syntax:
N.. G17
Cancellation:
G18/G19
XY

X G 17 Y

G18 ZX plane selection


Z
Syntax:
N.. G18
Cancellation: 18
G
G17/G19 ZX

X Y

68 Flexium Programming Manual - M00018EN-03


ISO Programming

G19 YZ plane selection


Syntax:
N.. G19
Z
1
G
19
Cancellation: YZ
G17/G18

2
X Y

G20 *Programming in polar coordinates (X, Z, C)


Syntax:

3
N.. [G40] G20 [G00/G01] [X.. Z.. C..] [F..]
Cancellation:
G21 and G22

G21 Programming in cartesian coordinates (X, Y, Z)


X
Syntax:
N.. [G40] G21 [G00/G01] [G41/G42] [X.. Y.. Z..]
[G94 F..]
C
4
Cancellation:
G20 and G22

G22 Programming in cylindrical coordinates (X, Y, Z) 5


Syntax:
N.. [G40] G22 [G00/G01] [G41/G42] [X.. Y.. Z..]
[G94 F..] Z

6
C
Cancellation:
G20 and G21

G23 Circular interpolation defined by three points


Syntax: (XY plane)
N.. [G17] [G90/G91] G23 X.. Y.. I.. J.. [F..] 7
Cancellation:
End of block

G29 Tridimentional tool correction with 3 or 5 axes

8
I
Z P Z o J
Syntax: n Q
R
K
N.. [D..] [G01] G29 X.. Y.. Z.. P.. Q.. R.. n
P
[I.. J.. K..] [A.. /B.. /C..] Q
R
Cancellation:
G40/G41/G42 Z Z

9
Y X Y X

G31 Thread chasing cycle


Chaser
Syntax (XY plane):
N.. [G17] [M03/M04] [S..] G31 [X.. Y..] Z
Z.. [ER..] [EH..] K.. P.. [F..] [EF..] [EC..]
Work K

OP
Cancellation:
G80 to G89 P

Flexium Programming Manual - M00018EN-03 69


G33 Constant lead thread cutting
Syntax: K
N.. G33 X.. Z.. K.. [EA..] [EB..] P.. [Q..] [R..] [F..] [S..]

P
XZ

Cancellation:
End of block Q
X R

G38 Sequenced thread cutting Pitch

Syntax:
N.. G38 X.. Z.. K..

Pitch
Cancellation:
G00/G01/G02/G03
X

G38+ Resume Thread Cutting


Syntax: K
G38+ J<delta_posX> EC<posB_appris> K<pas> Z
Z<Xfin> J

Cancellation:
X
End of block

G39+ Rigid Tap Removal


Syntax:
G39+ M3/4 S... K... Z... / OP
Cancellation:
End of block

G40 *Radius offset cancel


Tool path Tool centre
Syntax:
N.. [G00/G01] G40 X.. Y.. Z..
Cancellation:
G29/G41/G42
Y X
Tool centre
Theoretical
X Z cutting point

G41 Left radius offset Tool path

Syntax (XY plane):


N.. [G17] [D..] [G00/G01/G02/G03] G41 X.. Y.. Profile
R

to be Tool path
Cancellation: LEFT direction of machined
(correction)
G29/G40/G42 R
the correction)
(direction of

Y X
LEFT

X Z

G42 Right radius offset


the correction)
(direction of

Tool path
RIGHT

Syntax (XY plane):


N.. [G17] [D..] [G00/G01/G02/G03] G42 X.. Y..
Profile
Cancellation: to be
machined
RIGHT

G29/G40/G41 direction of
( correction )
Tool path

R
Y R
X

X Z Profile to be machined

70 Flexium Programming Manual - M00018EN-03


ISO Programming

G43
1
Tridimensional tool correction with cylindrical tool
Syntax:
N.. [D..] [G01] G43 X.. Y.. Z.. P.. Q.. R..[I.. J.. K..] [A.. / B.. / C..]
Cancellation:
G40

G45 Simple pocket cycle


Syntax: EB
EX
2
N.. G45 X.. Y.. Z.. [ER..] EX.. EY.. [EB..] EB

P.. Q.. [I..] [J..] [EG2/EG3] EP.. EQ.. EI.. EJ.. EX


EX
Cancellation:

3
EB
End of block Y

EY
EB

EY
X

G48 Spline curve interpolation


Syntax:
N.. G48 NC.. H.. /N.. N..
Cancellation: 4
End of block

G49 Spline curve deletion


Syntax:
N.. G49 NC.. 5
Cancellation:
End of block

G51 Mirror function


Syntax:
N.. G51 X- Y- Z-
G51 X –
6
Cancellation:
OP
G51 X- Y- Z- cancelled by G51 X+ Y+ Z+ G51 X–Y

7
G51 Y –

G52 Programming movements in absolute


X
dimensions with reference to the Programmed point OM
measurement origin Z

8
G52 . . .
Syntax:
52
N.. [G40] [G90] [G00/G01] G52 X.. Y.. Z.. A.. B.. G

C.. [F..] Z Y

Cancellation: X
OM
End of block Programmed point

G53 Cancellation of shifts DAT1 and DAT2


Syntax:
9
N.. G53
Cancellation:
G54

G54 *Enabling of shifts DAT1 and DAT2


Syntax:
N.. G54
Cancellation:
G53

Flexium Programming Manual - M00018EN-03 71


G59 Program origin offset Offset Offset
OP1 OP1
Syntax:
N.. [G90/G91] G59 X.. Y.. Z.. U.. V.. W.. A.. B.. C..
G59
[I.. J.. K..] 59
G
Cancellation: Z Y X
Cancelled by different G59 X.. Y.. Z..
OP X OP Z
Origin Program

G63 Roughing cycle with groove (EZ) XZ Programmed


blank
Syntax:
N.. G63 N.. N.. X.. Z.. EX.. / EZ.. P.. / R.. EA.. /
EU.. EW.. [EB..] [EC..] [ER..] [Q..] [EQ..] [EF..]
Cancellation: X

End of block Finished


ER
profile

G64 Turn/Face roughing cycle K


Programmed
Syntax: blank

N.. G64 N.. N.. [I.. K..] P.. / R..


N.. BLANK DEFINITION
Cancellation:

I
G80 X
Finished profile

G65 Groove roughing cycle N..


Syntax:
N.. G65 N.. N.. X.. / Z.. [I.. K..] [EA..] P.. / R.. [Q..] K
N..
[EF..]
Cancellation: X
End of block I Finished
profile

G66 Plunging cycle


Syntax:
N.. G66 D.. X.. Z.. [EA..] P.. / R.. [EF..] D1 D2

Cancellation:
End of block XZ

X R

G70 Inch data input


Syntax:
N.. G70
)
Cancellation: ( inch
G71 G70
Inches

Pouces 1 2

G71 *Metric data input


Syntax:
N.. G71
)
Cancellation: ( mm
G70 G71

mm
10 0,2 m 20 30 40
mm

72 Flexium Programming Manual - M00018EN-03


ISO Programming

1
G73 *Scaling factor cancel
Syntax:
N.. [G40] G73
Cancellation:
G74

G74 Scaling factor enable


Syntax:
2
N.. [G40] G74
Cancellation: Reduce Enlarge
G73 Z

3
Y

G75 Emergency retraction subroutine declaration


Part program
Syntax: PLC

4
%30
N.. G75 N.. N10 G75 N300
N..
Cancellation: N.. Emergency
N.. retract
Cancelled by G75 N0 or different G75 N.. N . . M02 activation area

N300
N.. Emergency
N.. retract
subroutine

G76 Transfer of the current values of L and E parameters into the part program 5
Syntax:
N.. G76 [H..] [N.. N..]
Cancellation :

6
End of block

G76+/- ISO program or block creation/deletion


The syntax specific to each function is described below
Cancellation :
End of block

G76+ Program creation 7


Syntax: %350
...
N.. G76+ H..
PROGRAM AREA IN RAM
N110
N120 G76+ H123.1
N130 %233 ...
Note. %45 ...

8
...
%345 ...

G76+ H<bin> is used to create binary files. %123.1 ...

Detailed information can be found in the Flexium


Extended Programming manual M00020.

G76- Program deletion


Syntax:
9
%1050
... PROGRAM AREA IN RAM
N.. G76- H.. N190
N200 G76- H10.1
N210 %459 ...
... %423 ...
%336 ...
%10.1 ...

G77 Unconditional branch to a subroutine or


sequence of blocks with return Main program
%10
Syntax: N..
N..
N.. G77 [H..] [N.. N..] [S..] N . . G77 . . .
N.. Subroutine
Cancellation : N..
%
End of block N..
N..
N..

Flexium Programming Manual - M00018EN-03 73


G77 -i Call of the subroutine return block
Syntax:
N.. G77 -i
Cancellation :
End of block

G78 Channel synchronisation with markers


Syntax:
Please refer to example on page 409.
N.. G78 Q.. Pj.i Pk.l ....
Cancellation :
Other G78
End of program

G79 Conditional or unconditional jump to a


sequence without return Current program
%100
Syntax: N..
N.. G79 [L../E.. > = < Number] N.. N..
N . . G79 N350
Cancellation : N..
N..
End of block N350
N..
N..

G79 +/- Temporary suspension of next block preparation in a sequence with movements
Syntax (XY plane)
N.. [G00/G01/G02/G03] X.. Y.. Z.. G79 +/- X.. /F..
Cancellation :
End of block

G80 *Machining cycle cancel


Syntax:
N.. G80
Cancellation:
G31/G81-G89

G81 Drilling/centre drilling cycle


Syntax (XY plane):
N.. [G17] G81 [X.. Y..] Z.. [ER..] [EH..] [F..] Z
X
OP
Cancellation: OP Z
G31/G80/G82-G89

G82 Counterboring cycle


Syntax (XY plane):
N.. [G17] G82 [X.. Y..] Z.. [ER..] [EH..] EF.. [F..] Z
OP X
Cancellation: OP
Z
G31/G80/G81/G83-G89

G83 Peck drilling cycle


Syntax (XY plane):
N.. [G17] G83 [X.. Y..] Z.. [ER..] [EH..] Z

[P..]/[ES..] [Q..] [EP..] [F..] [EF..]


OP
Cancellation: X
Z
G31/G80-G82, G84-G89 OP

74 Flexium Programming Manual - M00018EN-03


ISO Programming

G84 Tapping cycle


Syntax (XY plane):
N.. [G17] G84 [X.. Y..] Z.. [ER..] [EH..] EF.. [F..]
1
Z
Cancellation: OP X

G31/G80-G83, G85-G89 OP Z

2
G84 Rigid tapping cycle
Syntax (XY Plane):

3
N.. [G17] [M03/M04] [M04-M05] G84 [X.. Y..]
Z
Z.. [ER..] [EH..] K.. [EK..]
Cancellation OP
X
G31/G80-G83, G85-G89 X/Z

OP

G85 Reaming cycle 4


Syntax (XY plane):
N.. [G17] G85 [X.. Y..] Z.. [ER..] [EH..] [F..] [EF..]
Z
Cancellation: OP
X

5
G31/G80/G81-G84, G86-G89 Z
OP

G86 Boring cycle with indexed stop and clearance


at hole bottom
Syntax (XY plane):
N.. [G17] G86 [X.. Y..] Z.. [ER..] [EH..] [EC..]
Z 6
[EA..] [EP..] [F..] OP

Cancellation:
Y
G31/G80-G85, G87-G89

G87 Drilling cycle with chip breaking


OP X

7
Syntax (XY plane):
N.. [G17] G87 [X.. Y..] Z.. [ER..] [EH..] Z

[P..]/[ES..] [Q..] [EP..] [EF..] [F..]


Cancellation:
G31/G80-G86, G88/G89
OP
X
Z 8
OP

9
G88 Boring and facing cycle
Syntax (XY plane):
N.. [G17] G88 [X.. Y..] Z.. [ER..] [EH..] [F..]
Cancellation: Z
G31/G80-G87/G89
OP

G89 Boring cycle with Dwell at the Bottom of the


hole
Syntax (XY plane):
Z
N.. [G17] G89 [X.. Y..] Z.. [ER..] [EH..] [EF..] [F..] OP
X
Cancellation: Z
OP
G31/G80-G88

Flexium Programming Manual - M00018EN-03 75


G90 *Absolute dimensions with respect to the
program origin X
Y
Z
Syntax:
N.. G90 X.. Y.. Z.. A.. B.. C.. X
Y
Z
Cancellation:
G91

OP

G91 Incremental dimensions with respect to the


start of the block X
Y
Syntax: Z X
Y
N.. G91 X.. Y.. Z.. A.. B.. C.. Z
Cancellation:
G90

OP

G92 Program origin preset


Current point Current point
Syntax: Z
N.. G92 X.. Y.. Z.. Y
X
G92 . . G92 . .
Cancellation: X
OP1 OP1 Z
End of block Z
X
Y
X
OP0 OP0 Z

G92 S.. Spindle Speed Limiting D


N

N.. G92 S..


Cancellation:
Cancelled by G92 S0 or G92 with different S.
Vc

N constant
Vcst
Vc variable

G92 R.. Programming the tangential feed rate


Syntax:
N.. G92 R..
F..
.R
Cancellation: M
in

Cancelled by G92 R0 or by different G92 R


ini

F..
Rm

Tangential
feed rate

G92 Setting feed rate per axis


Syntax:
G92F... <list of axes>
Cancellation:
G92 F... or M02
mm/min
Z
Y
X

G93 Feed rate in inverted of time (V/L) Z


Syntax:
N.. G93 F.. G01 X.. Y.. Z.. A.. B.. C..
F V/D
Cancellation: X
G94/G95 Y

is
C ax
Z
Y X

76 Flexium Programming Manual - M00018EN-03


ISO Programming

1
G94 *Feed rate expressed in millimetres, inches or
degrees per minute
in
Syntax: mm/m
N.. G94 F.. G01/G02/G03 X.. Y.. Z.. A.. B.. C..
F (mm/min)
Cancellation: X
G93/G95

2
Z
Y Z
X

G95 Feed rate expressed in millimetres or inches


per revolution

3
Syntax: F

N.. G95 F.. G01/G02/G03 X.. Y.. Z..


X
mm/rev
Cancellation:
G93/G94 Z

mm/rev

G96 Constant surface speed is expressed in


meters per minute
4
N eases
Syntax: decr
X
N.. G96 [X..] S.. N s
ase
incre
Cancellation:
G94 5
G97 *Spindle speed Control (RPM)

6
Syntax: S
N.. G97 S.. [M03/M04]
Cancellation:
G96 (combined machine)

7
S

G98 Definition of the Start X for Interpolation on the X..


C Axis
Syntax: C-

8
N.. G98 X.. X

Cancellation:
End of block C+

9
G104 Tridimensional curve smoothing
Xf Yf Zf

General syntax:
N.. X. . Y.. Z.. (first point on the curve) Xe Ye Ze

N.. [G01] G104 X..Y.. Z.. [F..] Xd Yd Zd

[Intermediate points on the curve]


Xb Yb Zb
N..G80 X.. Y.. Z.. (last point on the curve) Xc Yc Zc
Xa Ya Za
Cancellation:
G80

G153 to Functions reserved for measuring cycles


G159 These functions are parameterised by the machine builder.
Please refer to the measuring cycles documentation.

Flexium Programming Manual - M00018EN-03 77


G199 Programmed homing
Syntax:
G199 <list of axes to home>
Cancellation:
End of block

Remark
This function is parameterised by the machine builder. Refer to the machine user's documentation.

G997 Enabling and execution of all functions stored in state G999


Syntax:
N.. G997
Cancellation:
G998/G999

G998 Enabling of execution of the blocks and part of the functions processed in state G999
Syntax:
N.. G998
Cancellation:
G997/G999

G999 Suspension of execution and forcing of block concatenation


Syntax:
N.. G999
Cancellation:
G997/G998

78 Flexium Programming Manual - M00018EN-03


ISO Programming

5.1.2 M Functions - Main summary table


1
The functions initialized at power on are identified by «*».
The miscellaneous functions listed in the table are decoded functions. Several decoded M functions
can be programmed in the same block, e.g. N.. S100 M03 M40 M08.
Click on Mxx to give the detailed information.
The "Syntax" indications in the table are given for Milling application only.
2
Please refer to the detailed Mxx informations to give the "Syntax" on Turning application.

M Subroutine Branch by M Function


3
Current program
N.. M.. %50
N..
N..

4
N..
N . . M55 Subroutine
N.. %255
N.. N..
N..
N..

5
M00 Program stop
Program
Syntax:
N.. [G40] M00 [$0 ...] %25
N..
Cancellation: N..
N . .M00
Action on the machine panel CYCLE key N..
N..

6
M01 Optional stop
M01
Program
Syntax:
N.. [G40] M01 [$0 ...]

7
%12
N..
Cancellation: N..
N..
Action on the machine panel CYCLE key N . . M01
N..

M02 End of program


Syntax:
8
%50
N.. M02 N..
N..
N..
N..
N . . M02
9
M03 Spindle clockwise rotation
Syntax:
N.. M03
Cancellation:
M04/M05/M00/M19
M03

M03

Flexium Programming Manual - M00018EN-03 79


M04 Spindle counterclockwise rotation
Syntax:
N.. M04 M04

Cancellation:
M03/M05/M00/M19

M04

M05 *Spindle off


Syntax:
N.. M05
Cancellation:
M03/M04

M06 Tool change


Syntax: T..
N.. T.. [D..] M06 [ $0.. / (...)]
M06
Cancellation: M06
M function report (CRM).

T.. T.. T..

M07 Coolant 2 on
Syntax:
N.. M07
Cancellation: M08
M09.
M07 M08 M07

M08 Coolant 1 on See figure above.


Syntax:
N.. M08
Cancellation:
M09

M09 *Coolant off


Syntax:
N.. M09
2
Cancellation: 1
M07/M08
1
2

M10 Clamp
Syntax:
N.. [G00/G01/ G02/ G03] M10 X.. Y.. Z.. A.. B..C..
Cancellation:
M11

M11 Unclamp
Syntax:
N.. M11
Cancellation:
M10

80 Flexium Programming Manual - M00018EN-03


ISO Programming

1
M12 Programmed feed stop M12
Syntax:
FEED STOP
N.. M12 [$0...]
Cancellation:
Press CYCLE on the machine panel

2
M19 Indexed Spindle Stop
Fixed indexing point
Syntax:

3
N.. [S..] [M03/M04] EC±.. M19
Cancellation:
M03/M04/M05. dle
Spin
axis
Indexing

M40/
M41/
Spindle speed ranges
Syntax:
4
M42/ N.. [S..] [ M03/M04] M40 to M45
M43/ Cancellation:
Cancel one another

5
M44/
M45

M48 *Spindle speed and feed rate potentiometer


100% 100%
enable
Syntax:

6
N.. M48
Cancellation:
M49

Spindle speed Feed rate

M49 Spindle speed and feed rate potentiometer


enable inhibit
See figure above.
7
Syntax:
N.. M49
Cancellation:

8
M48

M61 Release the current spindle in the channel


Syntax:
N.. M61
Cancellation:

M64/
M62-M65

Control of spindles 1 to 4 (*M64)


9
M65/ Syntax:
M62/ N.. [S..] M62/M63/M64/M65 [M40-M45] M03/M04
M63 Cancellation:
Cancel one another

M66/ Spindle 1 to 4 measurement (*M66)


M67/ Syntax:
M68/ N.. [S..] M66/M67/M68/M69
M69 Cancellation:
Cancel one another.

Flexium Programming Manual - M00018EN-03 81


M997 Forced block consecutive execution Program
Syntax: %30
N.. M997 N..
N..
Cancellation: N70 M997
N80
M998/M999/M02. N90
Forcing N100
N..

M998 *Reactivation of MDI mode and subroutine calls by the automatic control function
Syntax:
N.. M998
Cancellation:
M997/M999

M999 Programmed cancellation of MDI mode and subroutine calls by the automatic control function
Syntax:
N.. M999
Cancellation:
M997/M998/M02

82 Flexium Programming Manual - M00018EN-03


ISO Programming

5.1.3 Other Functions - Main summary table


1
D.. Tool Offset activation Z Turret
reference
X
Syntax:

2
X

N.. [G17] [G16 R+] D.. [G40/G41/G42] X.. Y.. Z.. Spindle
datum Z

Dimension X + . .
Cancellation:

Length L . .
D0 , M02 or new tool offset
Tool tip
radius @...
Dimension
Radius R . . Radius R . . Z+..

DAT3 Milling Table offset


Ro
3
tar
ya

xis
(A
X OP0

,
B, C
Y
Z

)
4
DAT3 X
Y
Z
DAT3
Op
Part zero point

EA.. Angle element of a line

EA-
X or Y X or Z

EA+
5
EA+
EA-
Y X
X or Z
X X or Y Z

6
EB+ Fillet between two interpolations
Syntax: EB
EB
N.. G01/G02/G03 X.. Y.. I.. J.. / R.. [F..] EB+.. [EF..]
Cancellation:
End of block EB
EB
7
Y

X (Z)

EB- Chamfer between two linear


interpolations
EB
8
=

Syntax:
=

N.. G01 X.. Y.. [F..] EB-.. [EF..] EB

Cancellation: EB
=

9
End of block Y X
=

EB
X Z

ED.. Programmed angular offset


Y
Syntax:
N.. [G90/G91] ED.. ED . .

Cancellation:
Programming of a new value, M02, reset. OP X

Flexium Programming Manual - M00018EN-03 83


EF Feed rate specific to fillets EB+ and
chamfers EB-.

00

F0
F1
EF80

.1
EF0.08
Syntax: EF100
F150
N.. Interpolation EB+.. / EB-.. EF.. EB +
EB +
F0.2 EF0.1
EB – EB –
Cancellation:

F200

F0.3
Programming of a new value, M02, reset. Y X

X Z

EG.. Programmed acceleration reduction


Syntax:
N.. EG..
Cancellation:
Programming of a new value, M02, reset.

EG . .

ES Secant element

Line/circle Line / Circle


ES ES
ES ES
Y X

Line/line Line / Line


X Z

ET Tangent element

Line/circle Line / Circle


ET ET

Y X
ET ET
Circle/circle Circle / Circle
X Z

E+/E- Discriminant

∞ ∞ E+
E+ EA
(D)
E- (D) E-
Y X
EA
X Z

I.. J.. Coordinates of the centre of a circle


K..

Y X
I-J IK
X Z

M.. Subroutine branch by M function


Current program
Syntax:
%50
N.. M.. N..
N..
N..
N . . M55 Subroutine
N.. %255
N.. N..
N..
N..

84 Flexium Programming Manual - M00018EN-03


ISO Programming

R..
1
Radius of a circle

R
R
Y X

2
X Z

X../Y.., Coordinates of the end point of a line


Z.. or

3
X.. Y.., XY
X or Y
XZ
X or Z
Z..
Y X

X Z

$0 Message Transmission to the display


Syntax:
Program

%56
4
N..
N.. EG.. $0 Message
N..
Cancellation:
Programming end program, M02, reset. Message

5
/ Block skip
Program

6
Syntax:
%50
/ N.. (Contents unimportant) N..
N..
/N . .
/N . .
/N . .
N..

Flexium Programming Manual - M00018EN-03 85


5.1.4 Word Format - Main summary table
The formats of the axis words specified in the table are expressed as follows:
- For linear axes: 5 digits to the left and 3 to the right of the decimal point are allowed when the
internal system unit (see chapter 3.1) is µm.
- For rotary axes: 3 digits to the left and 4 to the right of the decimal point are allowed when the
internal system unit is 0.0001 degree.

For instance, for linear axes: if the system is set to 0.1µ (internal unit), the formats are expressed
with 4 decimal digits; for the X axis, the format is X+044.
For instance, for rotary axes: if the system is set to 0.001 degree (internal unit), the formats are
expressed with 3 decimal digits; for the B axis, the format is B+033.
For the words related to the machining feed rate with no assigned formats (F.., EF..), refer to the
machine manufacturer’s manual for the maximum and minimum feed rates (maximum 8 digits and
decimal point).

Format Description
%051 Program number (1 to 99999.9)
N05 Sequence number (1 to 2147483647)
G02 Preparatory functions (0 to 99)
G03 Preparatory functions (100 to 250 and 997 to 999)
H05 Subroutine number (with G77, G76 and G48)
X+053 Movement on the X axis. In a cycle, end point on the machining axis (.. plane)
Y+053 Movement on the Y axis. In a cycle, end point on the machining axis (.. plane)
Z+053 Movement on the Z axis. In a cycle, end point on the machining axis (.. plane)

I+053 For circular/helical interpolation (G02, G03), centre of the circle and pitch of the helix
J+053 With programmed origin offset (G59), centre of rotation and angular offset (ED)
K+053 For thread chasing cycle (G31), thread pitch = I, J or K depending on the interpolation plane

I053 For pocket cycle (G45), axial finishing pass


J053 For pocket cycle (G45), lateral finishing pass
K053 For leadscrew tapping cycle (G84), tap pitch

U+053 Movement on the U axis


V+053 Movement on the V axis
W+053 Movement on the W axis
A+034 Movement on the A axis
B+034 Movement on the B axis
C+034 Movement on the C axis
E+/E- For profile geometry programming (PGP), discriminant
EA+033 For profile geometry programming (PGP), line angle
EA+033 In a boring cycle with indexed spindle stop (G86), angle between EC.. and tool cutting edge
EA+033 In polar programming, angle of the line

EB+053 For contour definition and PGP, radius or fillet between two interpolations
EB-053 For contour definition and PGP, chamfer between two linear interpolations
EB053 For profile Geometry Programming (PGP), chamfer between 2 lines

EC+033 For spindle indexing (M19), indexing angle


EC+033 For thread chasing cycle (G31), tool orientation in the hole bottom
EC+033 For boring cycles (G86), indexing position

ED+034 Programmed angular offset


EF022 For cycles (G82, G84, G87, G89 or G31), dwell time
EF.. In a reaming cycle (G85), retraction rate
EF.. Feed rate specific to fillets (EB+) or chamfers (EB-)
EF.. Maximum feed rate after an interrpt (G10)

EG01 Pocket cutting direction (EG02: clockwise; EG03: counterclockwise)

86 Flexium Programming Manual - M00018EN-03


ISO Programming

1
EG03 For interpolation, acceleration modulation
EH+053 In (G8x) cycles, dimension of the impact plane on the machining axis
EI+053 In polar programming, length of the line (start/circle center)
EI.. In a pocket cycle (G45), axial finishing feed rate

2
EJ.. In a pocket cycle (G45), lateral finishing feed rate
EK01 For rigid tapping cycle (G84), retraction/penetration speed ratio
ES+/ES- For profile geometry programming (PGP), secant element
ET+/ET- For profile geometry programming (PGP), tangent element

EP053

3
In a boring cycle with indexed spindle stop (G86), lateral backoff in hole bottom
EP053 In a peck drilling cycle (G83), backoff clearance after each peck
EP053 In a drilling cycle with chip breaking (G87), backoff between two infeeds
EP.. In a pocket cycle (G45), axial roughing feed rate

EQ053 For pocket cycle (G45), lateral roughing feed rate


ER+053
ES02
In cycles, infeed or retraction dimension on the machining axis
In cycles G83 and G87, number of infeeds at constant value
4
EX+053 In polar programming, angle of the line (start/end)
EX053 For pocket cycle (G45), dimension along X (or U)

EY053
EZ053
For pocket cycle (G45), dimension along Y (or V)
For pocket cycle (G45), dimension along Z (or W)
5
P+053 For thread chasing cycles (G31), withdrawal of tool
P+043 For 3D correction (G29), X component of the normal vector
P053 For cycle (G83 or G87), value of the first penetration

6
P043 For pocket cycles (G45), axial roughing path
P041 With axis channel synchronisation (G78), wait for a marker
P+ / P- Tool axis orientation (G16), along X (or U)

Q+053 For cycles (G83 or G87), value of the last penetration


Q+043 For correction in space (G29), Y component of the normal vector

7
Q043 For pocket cycle (G45), lateral roughing pass
Q04 With channel synchronisation (G78), declaration of a marker
Q+ / Q- Tool axis orientation (G16), along Y or V

R+053 For circular/helical interpolation (G02, G03), radius of the circle


R053 For tangential feed rate programming (G92), value of the curve radius

8
R+043 For space correction (G29), Z component of the normal vector
R+ / R- For linear interpolation (G00, G01), positioning at programmed distance
R+ / R- Tool axis orientation (G16), along Z or W

F.. Feed rate in mm/min and degrees/min (G94)


F.. Feed rate in inches/min (G94)
F..
F..
F..
Feed rate in mm/rev (G95)
Feed rate in V/L (G93)
Feed rate in inches/revolution (G95)
9
F022 Dwell in seconds (G04)
F01 For thread chasing cycles (G31), number of threads (1 to 9)

M02 Miscellaneous functions 0 to 99


M03 Miscellaneous functions 100 to 899

NC04 For spline curve interpolation (with G06, G48, G49), curve number (1 to 9999)
S05 or Spindle rotation speed in rpm (G97)
S032
S02 In a subroutine branch (G77), number of subroutine iterations (1 to 99)

T08 Tool number (0 to 99999999)


D03 Correction number (0 to 255)
L03 Program variables L (0 to 19, 100 to 199 and 900 to 959)
E5 External parameters E

Flexium Programming Manual - M00018EN-03 87


5.2 Programming with Reference to Diameter or Radius

The part program and certain data related to


machining along the X (or U) axis are directly affected
by whether programming is with reference to diameter X
or radius.
Point a
Programming with reference to diameter or radius is
selected by the machine builder.

Xa
In both cases, certain functions are always expressed

Xa
with respect to diameter and others with respect to
OP
radius.

5.2.1 System Programmed with Reference to Diameter


Programmed values expressed with reference to diameter:
• values programmed in absolute dimensions (G90): coordinates of a movement along X.. and
position I.. of the centre of a circle,
• value of the starting diameter with constant surface speed (G96),
• value programmed with function G98.

Programmed values expressed with reference to radius:


• values programmed in incremental dimensions (G91): value of a movement along X.. and
position I.. of the centre of a circle,
• circle radius with circular interpolation (R),
• fillet or chamfer (EB+, EB-),
• pass depth for roughing cycle (P or R),
• machining allowance for roughing cycles (I or K), (ER),
• positioning clearance for roughing cycle (Q),
• minimum depth of cut for roughing cycle (EQ),
• thread depth (P) and last pass for thread cutting (Q),
• pass depth for drilling cycle (P and Q),
• offsets programmed with functions G59 and G52.

Tool dimensions:
• Entry of values with respect to radius.

Dynamic tool corrections:


• Entry of values with respect to diameter, but display of radial change on the «context "Tools"»
page.

Value of offset DAT2:


• Entry of the value with reference to radius.

Movements related to the manual controls:


• Movements on the X axis with reference to radius, but display with reference to diameter on the
«context "production"» page.

5.2.2 System Programmed with Reference to Radius


Values expressed with reference to radius:
• All the programmed movements applied to the X axis and all the values entered related to
machining along X.

Values expressed with reference to diameter:


• Only the dynamic tool corrections on X are entered with reference to diameter.

88 Flexium Programming Manual - M00018EN-03

You might also like