g code table.pdf

38
G-Code Table Inscription z Function is available in standard. z Function is available in standard, activated mode per default. z/- Function is available for some machines. - Function is not available. o Function is available in option. M/S M = Modal : Function remains enabled until replaced by another function of same group. S = Sequential : Function remains enabled in segment only. x Spindle number (0 to 99). Functions G Machines Code Definition DECO Micro / DECO Sigma MultiDECO MultiAlpha / MultiSigma M/S G00 Non-productive fast speed linear interpolation. z z - - S G01 Linear interpolation. z z z z S G02 Circular interpolation cw. z z z z S G03 Circular interpolation ccw. z z z z S G04 Dwell [s] at 100% of override. z z z z S G13 Loop start z - z - S BEGINLOOP Loop start z z z - S G17 Main work plane (X, Y) or (X, C) z z z z M G18 Main work plane (Z, X)] z z z z M G19 Main work plane (Y, Z) or (C, Z) z z z z M G26 Circular chamfer link, L = radius z o z z S Code Definition DECO Micro / DECO Sigma MultiDECO MultiAlpha / MultiSigma M/S G27 Linear chamfer link, L = length z o z z S Page 1 of 38 G-Code Table 4/30/2013 file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Upload: manishchaturvedi6

Post on 12-Nov-2014

923 views

Category:

Documents


60 download

DESCRIPTION

G code table.

TRANSCRIPT

Page 1: G code table.pdf

G-Code Table

Inscription Function is available in standard. Function is available in standard, activated mode per default.

/- Function is available for some machines. - Function is not available. o Function is available in option.

M/S M = Modal : Function remains enabled until replaced by another function of same group.

S = Sequential : Function remains enabled in segment only. x Spindle number (0 to 99).

Functions G Machines

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

G00 Non-productive fast speed linear interpolation.

- - S

G01 Linear interpolation. S

G02 Circular interpolation cw. S

G03 Circular interpolation ccw. S

G04 Dwell [s] at 100% of override. S

G13 Loop start - - S

BEGINLOOP Loop start - S

G17 Main work plane (X, Y) or (X, C) M

G18 Main work plane (Z, X)] M

G19 Main work plane (Y, Z) or (C, Z) M

G26 Circular chamfer link, L = radius o S

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

G27 Linear chamfer link, L = length o S

Page 1 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 2: G code table.pdf

G28 Referencing S

G33 Threading, constant lead - S

G34 Threading, increasing lead - S

G35 Threading, decreasing lead. - S

G40 Cancel tool compensation. M

G41 Tool compensation, left. M

G42 Tool compensation, right. M

G52 Cancel all zero offsets (datum shifts). - M

G53 Cancel all additional zero offsets (datum shifts) programmed over G54 and G55

- M

Code Définition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

G54 Additional zero offset (datum shift) against current coordinate system.

- M

G54 Zero offset (datum shift) against Machine Zero.

- - - M

G55 Additional zero offset against initial coordinate system (Part Zero). Cancels G54.

- M

G55 Zero offset (datum shift) against Machine Zero.

- - - M

G56 Zero offset (datum shift) against Machine Zero.

M

G57 Zero offset (datum shift) against Machine Zero.

- - - M

G58 Save all zero offsets (datum shifts) and reset them for the axes concerned to cut with respect to Machine Zero

- M

G58 Zero offset (datum shift) against Machine Zero.

- - - M

G59 Restore all zero offsets (datum shifts) saved over last G58 (also for the axes concerned)

- M

G59 Zero offset (datum shift) against Machine Zero.

- - - M

Code Définition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

Page 2 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 3: G code table.pdf

G61 Contouring with exact stop mode between segments. (G61=G190)

M

G64 Linked contouring mode.

(G64=G191)

M

G68 Cancel G69. - M

G69 Calculate 360 module for rotary axis. - M

G70 Inch data input (not for tools). - M

G71 Metric data input (not for tools). - M

G81 Linear extension for tool compensation.

- M

G82 Circular extension for tool compensation.

- M

G83 Swap axes for main plane of interpolation. (Axis 1, Axis 3).

- M

G84 Swap axes for main plane of interpolation. (Axis 3, Axis 2).

- M

Code Définition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

G85 Reestablish main plane as specified in Operation Line (Axis 1, Axis 2). Cancel G83 or G84.

- M

G90 Absolute dimension. M

G91 Incremental dimension. M

G92 Maximum spindle-speed limit /- M

G94 Asynchronous feedrate [mm/min] M

G95 Synchronous feedrate [mm/rev] M

G96 Constant cutt-off speed [m/min]. /- M

G97 Cancel G96. /- S

G98 Asynchronous feedrate [mm/min], (G98 = G94)

- - M

G99 Synchronous feedrate [mm/rev], (G99 = G95).

- - M

Code Definition DECO Micro /

DECO MultiDECO MultiAlpha /

MultiSigma M/S

Page 3 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 4: G code table.pdf

Sigma

(G1) G100 Rapid Traverse (unproductive motion).

S

(G2) G100 Rapid Traverse (unproductive motion).

- S

(G3) G100 Rapid Traverse (unproductive motion).

- S

Gx07.1 Cylindrical Interpolation. - o - - S

Gx12.1 Polar coordinates interpolation. Switch to rotary C-axis.

o o - - M

Gx13.1 Cancel Gx12.1 o o - - M

G113 Loop End - - S

ENDLOOP Loop End. ( = G113) - - S

G117 Cancel of orthogonal mode. - - - S

G130 Threading header. - S

G131 Threading footer. - S

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

Gx50 Cancel polygoning mode. (Gx51). - S

Gx51 Sx-Spindle On for polygoning. - M

G190 Exact stop (between segments). (G190=G61)

M

G191 Continuous contouring. (G191=G64) M

G217 Activation of orthogonal mode. - - - M

G314 Circular interpolation for arcs > 180°: Path > π for G02/G03.

S

G900 Initialize spindles with settings specified in the Part.

- S

G900 Storage of part global variables. - - - S

G901 Initialize sequences. - - S

G901 Machine-number transfer to CNC. - - S

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

Page 4 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 5: G code table.pdf

G902 Spindles on for indexing. - - - S

G903 Tool Indexing Macro (in G2/G3 circular interpolation).

- - - S

G903 Tool Indexing Macro (in G2/G3 circular interpolation).

- - /- S

G905 Stop Spindles. - - - S

G906 Spindles on for pre-heating. - - - S

G910 Check Global Variables. Initial cut. - - S

G910 Check Global Variables. Initial cut. - - S

G911 Compute Zero Offset vs. Part Length. - - - S

G911 Compute Zero Offset vs. Part Length. - - S

G912 Feed a new part. - - S

G912 Counter-spindle clearance of the machining area at the end of the cycle.

- - /- S

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

G913 End of bar cycles. - - S

G913 Deceleration of the main spindle for feeding.

- - S

G914 Feed spindle (#3002) and Face new bar to insert it into guidebush.

- - - S

G914 Material feed cycle after for new bar facing.

- - /- - S

G915 Computes additional Z3-axis zero offset (G54) to find Part zero, according to Z1-axis position.

/- - - - S

G916 Additional zero offset (G54) in Z4 for Intermediate Part Pickoff.

- - - S

G917

G917

Polygon milling with an attachment mounted in T25.

/- - - - S

G917 Machining cycle of non-orthogonal axes.

- - /- S

G918 Tapping & Tapping-Off on Frontwork Units.

- - - S

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

Page 5 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 6: G code table.pdf

G919 Long Turning, Infeeding and Drilling with Chip Breaking.

- - S

G920 Check Global Variables. - - - S

G920 Check of global variables. - - /- S

G921 Compute Zero Point offset for backworking

- - S

G921 Compute Zero Point offset for backworking

- - S

G922 Clear Pickoff Spindle. /- - - - S

G922 Compute Zero Offset and positions for backworking and part pickoff. Spindle N°2.

- - /- /- S

G923

G923

Part pickoff from the counter-spindle /- - - - S

G923 Part pickoff from the counter-spindle - /- - - S

G923 Part pickoff / drop off cycle with manipulator arm.

- - /- - S

G923 Part pickoff / drop off cycle with manipulator arm. - - - S

Code Definition DECO

Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma M/S

G924 Part pickoff with the counter-spindle - - - S

G924 Part pickoff / drop off cycle with manipulator arm.

- - /- - S

G924 Part pickoff / drop off cycle with manipulator arm.

- - - S

G926 Part pickoff / drop off cycle with manipulator arm.

- - - S

G928 Drilling speed of S3 motor. - - - M

G933 Single point threading cycle - S

G940 Long Parts Machining :

Check global part variables

- - - S

G941 Long Parts Machining :

Compute origin offset vs part-length.

- - - S

G942 Long Parts Machining :

Feed-in new part.

- - - S

G952 Turning macro for polygons and/or o - - - S

Page 6 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 7: G code table.pdf

G00 / G100 G00, G100 Non-productive fast speed linear interpolation.

Description Optimizes unproductive motions.

At first the system determines the highest possible traversing rate between the axis start and end points. If however the axis reaches its end point too soon, it will have to stand by for action. If so, the system recomputes the rate down, which brings the axis to its end point a little later, i.e. right before it is required to move into action again.

Syntax (G0 or G00)

G0 X Y Z T

or G0 X Y Z ,A T (DECO-Sigma)

G100 X Y Z T

Description of the Parameters

X Y Z : Coordinates of the linear segment final point, with axis number.

,A : Angle from start point to final point. See G01.

T : Calls a new tool geometry and a new tool corrector.

Use

eccentrics.

Code Definition DECO Micro /

DECO Sigma

MultiDECO MultiAlpha / MultiSigma

M/S

G957 Milling for inclined pins. o - - - S

G960 Thread milling on an inclined axis, for thread whirling or milling.

o - - - S

G977 Pecking cycle i.e. drilling / chip evacuation cycle.

o S

G978 Machining of threads with tool S

G980 Tool measurement with automatic correction (Sensing).

- - o - S

Page 7 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 8: G code table.pdf

The function G0 or G100 must be used with caution during a locking. It is possible that the position of the axes during their movement may not be respected when one of the two axes is moved at fast speed while the other is in the machining phase.

Examples

G0 X1=26 Z1=54 T12

G01 G100 X3=26 Z3=54 T12

Note: The sign =, and axis-number, appears automatically, in TB-DECO.

G01 G1 or G01 Linear Interpolation

Syntax

G1 X Y Z Q F T

or G01 X Y Z ,A ,C ,R F T (DECO-Sigma)

Description of Parameters

X Y Z : Coordinates of the linear segment final point, with axis number.

,A : Angle, in degrees, from start point to final point. (Requires purchase of machine option 7620).

,C : Chamfer (Starting point, Intersection point, End point) (Requires purchase of machine option 7620).

Q : Angle, in degrees, from start point to final point.

,R : Radius on the edge (Requires purchase of machine option 7620).

F : Cut-off speed. The advance speed can be programmed in two different ways:

G94 : asynchronous advance in mm (or inches) per minute.

G95 : synchronous advance in mm (or inches) per revolution.

Mode G95 is used by default if nothing is specified in the program.

T : Calls a new tool geometry and a new tool corrector.

Page 8 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 9: G code table.pdf

Examples G01 X1=1.1 Z1=-2.2 F0.1 T12

G01 X1=10 Q135 G100

Note: The sign =, and axis-number, appears automatically, in TB-DECO.

G1 X1=5 Q30 G100

G1 X1=5 Q-60 G100

Examples for DECO-Sigma and MultiAlpha Note:

The two programmed segments do not have to be perpendicular or linear, but they must have an intersection point. In order to execute the chamfer or radius, a segment must be programmed on the next command line.

Parameter C

G01 X1=0 Z1=0 F0.1 T12

G01 X1=5 Z-1=1 ,C0.5

G01 Z1=-6

The chamfer angle is the average of the angle between the both interpolations.

Parameter R

Page 9 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 10: G code table.pdf

G02 / G03 G02 or G2 Circular Interpolation CW.

G03 or G3 Circular Interpolation CCW.

Syntax

G02 X Y Z R F T

G03 X Y Z R F T

Description of the Parameters

X, Y, Z : Coordinates of the circular segment final point.

x : Axis-number.

R : Circle arc radius (the center cannot be programmed).

F : Cut-off speed on circle arc.

T : Calls a new tool geometry and a new tool corrector.

Examples

G01 X1=0 Z1=0 F0.1 T12

G01 X1=5 Z1=-1 ,R0.5

G01 Z1=-6

Page 10 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 11: G code table.pdf

G02 X1=4 Z1=-4 R2 F0.1

G03 X1=4 Z1=-4 R2 F0.1

G02 (or G03) X4 Z-4 R2 F0.1

Note: The sign =, and axis-number, appears automatically, in TB-DECO.

G04 G4 or G04 Dwell Idle time [s] at 100% override.

Syntax G04 X

Parameter X : Idle time in seconds (independent of the axis override).

Sample

G04 X0.4

G13 / G113 / BEGINLOOP / ENDLOOP BEGINLOOP Loop Start.

ENDLOOP Loop End.

Or (DECO & MultiDECO only)

G13 Loop Start.

G113 Loop End.

Syntax

BEGINLOOP

ENDLOOP

Or

G13

Page 11 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 12: G code table.pdf

G113

G130 / G131 G130 Threading Header

G131 Threading Footer

Syntax

G130 B= N=

G131

G130 The G130 macro uses the parameters B and N These two parameters are optional.

Description of parameter B :

Parameter B is used to define on which spindle the combing is performed.

The threading spindle number is defined in the No Broche field of the machine's database. Example for Deco 13 :

Spindle N°1 = S1

Spindle N°2 = S2

Spindle N°3 = S4

Spindle N°4 = S5

Parameter B Number of the threading spindle B0 Spindle N° 1 B1 Spindle N° 2 B2 Spindle N° 3 B3 Spindle N° 4

Page 12 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 13: G code table.pdf

Note : B0 is the default parameter, which corresponds to a combing with spindle S1.

Description of parameter N :

Parameter N indicates the number of axes used for the combing. Three axes maximum may be used.

Note : N2 is the default parameter, which corresponds to a combing with 2 axes.

G17 / G18* / G19 Sphere of application The functions G17, G18 and G19 are used to change the main work plane.

It does not involve exchanges of the main axis (G83, G84, G85).

G17 plane (X, Y) or plane (X, C)

G18 plane (Z, X)] – (default plane for Micro and Sigma machines).

G19 plane (Y, Z) or plane (C, Z)

Syntax G17

Page 13 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 14: G code table.pdf

G18

G19

Description The switch depends on the axes present in the line of operations.

This means that three axes are necessary (X, Y, Z) or (X, C, Z – ISO-Fanuc programming) to be able to use these functions, and that the three axes use the same channel. Otherwise the operation in question is done in G85 mode.

Notes :

C-Axis : Rotary axis (Spindle).

To select or define a main axis, see Help for TB-DECO use : \5 Program Window \ 2 Operation lines \ Extension of resources.

Plane (X, Y, Z)

Plane (X, C, Z)

G26 and G27Chamfer G26 Joint. G27 Chamfer.

Page 14 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 15: G code table.pdf

Domain of use Cancellation of cutting stops. Change of the slope or coupling between two segments.

For Micro and Sigma machines, these functions are in option.

Syntax G26 L E (DECO, MultiDECO, MultiSigma)

G26 L (Micro, Sigma)

L = Fillet Radius (facultative)

E = Tool path velocity for chamfer expressed in active units (facultative)

G27 L E (DECO, MultiDECO, MultiSigma)

G27 L (Micro, Sigma)

L = Chamfer Length for positive value (facultative)

L-= Chamfer Length / 1.414 for negative value (facultative)

E = Tool path velocity for chamfer expressed in active units (facultative)

Description These functions are used to link two non-parallel segments/stops, by another segment or circle arc.

It is not possible to link 2 segments of 2 different operations by a chamfer.

Note :

Settings programmed under L are saved for G26 and G27 separately. L-Parameter is facultative and unless you specify it, G26/G27 will take over its last own setting entered. If none was entered, G26 will take over the default setting from Default Radius Box and G27 from ChamferLength Box in the Global section of the machine database.

The last setting entered with E is saved and remains identical for G26 and G27. E-Parameter is facultative and unless you specify it, G26/G27 will take its last own setting entered. If none was entered, G26/G27 will take the last velocity setting entered for the segments.

The chamfer is perpendicular to the bisecting line of the angle formed by the two chamfer-linked segments.

Page 15 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 16: G code table.pdf

Example

G28 G28 Referencing

Syntax G28 X Y Z

X Y Z : Concerned axe(s).

G91 G94 G81

T11

G1 Z1=-1 F1000 G26 L1.2 E50

G1 X1=1 Z1=-1.5 G27 L-0.5 E100

G1 X1=2 G26 L0.3

G1 Z1=-2 G27 (Correspond to G27 L2 E50

G1 X1=-2 G26 (Correspond to G26 L0.3 E50

G1 Z1=-1

Examples

DECO DECO Sigma MultiAlpha MultiDECOG28 X1

G4 X0.8

G28 Z1 Y1

G4 X5

G28 X1

G28 Z1 Y1

G28 X12

G28 Z12

G28 X2

G4 X3

G28 Z22

G4 X3 G28 X2 Y2 G28 X4 G28 X13 G28 X1

Page 16 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 17: G code table.pdf

G314 G314 Circular Interpolation for Arcs > 180°

Path > ¶ for G02/G03

G4 X3 G28Y4 G28 Z13 G4 X3

G28 Z21

G4 X3

Note :

G28 runs always at 100% feedrate.

DECO, MultiDECO :

G28 is used only when the actual position of the axis is unknown.

A dwell must be programmed after G28 block to let the axis return to its reference point, before to command the next movement.

Sigma, MultiAlpha :

On ISO-programming machines, G28 is interpreted as follows :

For example, G28 X12 is converted into G91 G28 X12=0 G90 in the CNC (*.dnc file). Warning!

DECO, MultiDECO :

Make absolutely sure to enter G28 in the INIT program only, because only here the actual position of the axis is unknown.

DECO, MultiDECO, MultiAlpha :

Collision risk : If none axis is specified, all axes in the Operations-line, returns at the same time to their reference position!

In the other programs (first of all Main Program Nr.2), use System Variables #24, #25, #26 to reference the axes. (See Description of System Variables).

Sigma :

If none axis is specified, the G28 command is ignored.

Example for single-spindles Example for multi-spindles G02 X2=3 Z2=5 R1 G314 G02 X2=3 Z12=5 R1 G314

Page 17 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 18: G code table.pdf

G33 G33 Threading, constant lead

G33 indicates a single synchronized threading cut with synchronized spindle.

F = Thread Lead [mm/rev]

Feedrate is equal to the programmed lead [mm/rev]. Contouring Functions G1, G2 and G3 with G100 can be used with G33.

Example :

G130 N3

G01 X2=-3 F0.2

G33 G01 X2=-2 F1 T12

G34 G34 Threading, increasing lead

L = Increase [mm/rev] of Initial Lead F

G2 G314 G3 G314

Example for single-spindles Example for multi-spindles ...

G34 L0.2 G01 Z1=-4 F1

G34 L0.1 G01 X1=2 F1

....

...

G34 L0.2 G01 Z12=-4 F1

G34 L0.1 G01 X2=2 F1

....

Page 18 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 19: G code table.pdf

G35 G35 Threading, decreasing lead

L = Decrease [mm/rev] of Initial Lead F

G40* / G41 / G42 G40 Cancel Tool Compensation.

G41 Tool Compensation, Left.

G42 Tool Compensation, Right.

Operation Line’s Slave Axis cannot be programmed in this mode.

Syntax

G40

G41

G42

Note : By default, the G40 mode is used at each beginning of operation.

G52 / G53

Example for single-spindles Example for multi-spindles ...

G35 L0.2 G01 Z1=-4 F1

G35 L0.1 G01 X1=2 F1

...

..

G35 L0.2 G01 Z12=-4 F1

G35 L0.1 G01 X2=2 F1

...

Page 19 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 20: G code table.pdf

G52 Cancel All Zero Offsets (datum shifts)

Coordinate system begins at Machine Zero and is again valid for the axis / axes concerned.

G53 Cancel All Additional Zero 0ffsets (datum shifts) programmed over G54 and G55.

Display Zero Offsets

G54 G54 Additional Zero Offset (datum shift) against current coordinate system.

This offset is additional for the axes concerned.

Note : For DECO-Sigma, the G54 / G55 / G57 / G58 / G59 functions correspond to G56.

Example

G54 X3=5.15 Z3=3.2

G54 Z1=16

Display Zero Offsets

G55 G55 Additional Zero Offset against initial coordinate system (Part Zero).

G55 cancels G54.

Note : For DECO-Sigma, the G54 / G55 / G57 / G58 / G59 functions correspond to G56.

Example

G55 X3=5.15 Z3=3.2

G55 Z1=16

Examples

G52 (enabled for all axes)

G52 X1 Z1 (enabled for X1 and Z1 only)

G52 X1 (enabled for X1 only) G53 (enabled for all Op. Line’s axes)

G53 X2 Z1 (enabled for X2 and Z1 only)

Page 20 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 21: G code table.pdf

Display Zero Offsets

G56 G56 Zero Offset (datum shift) Against Machine Zero

The initial G56 settings at each program start are those entered in Part Manager.

Note : For DECO Sigma, the G54 / G55 / G57 / G58 / G59 functions correspond to G56.

Example

G56 X3=5.15 Z3=3.2

G56 Z1=16

Display Zero Offsets

G58 G58 Save All Zero Offsets (datum shifts) and reset them for the axes concerned to cut with respect to Machine Zero.

Note : For DECO-Sigma, the G54 / G55 / G57 / G58 / G59 functions correspond to G56.

Example

G58 (enabled for all Op. Line’s axes)

G58 X2 Z1 (enabled for X2 and Z1 only)

Display Zero Offsets

G59 G59 Restore All Zero Offsets (datum shifts) saved over last G58 for the axes concerned.

Note : For DECO-Sigma, the G54 / G55 / G57 / G58 / G59 functions correspond to G56.

Page 21 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 22: G code table.pdf

Example

G59 (enabled for all Op. Line’s axes)

G59 X2 Z1 (enabled for X2 and Z1 only)

Display Zero Offsets

G61* / G64 G61 Exact stop mode between segments. (Mode by default for DECO, MultiDECO, MultiAlpha, MultiSigma Machines).

G64 Linked contouring mode. (Mode by default for Micro and Sigma Machines).

Note: G190/G191 is identical to G61/G64.

Syntax

G61

G64

Examples

G90 G94 G61

G68 G70 G64

G68* / G69 G68 Cancel G69

G69 Calculate 360 Modulo for Rotary Axis. Angular programming value is reduced to 1 revolution (360°).

Syntax

G68 G70

G69 G70

G70 / G71*

Page 22 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 23: G code table.pdf

G70 Inch Data Input : Input data are interpreted in inch [Inch].

G71 Metric Data Input : Input data are interpreted in metric units [mm].

Syntax G70

G71

Description Distinguish two different cases :

1. Inch / Metric Machine (i.e. you can program in inch or metric). This setting is made by TORNOS when the machine is commissioned based on what the customer wants.

2. Default Inch / Metric Programming

The programming units set on the CNC will be the ones used for:

entering and displaying the tool geometries and correctors,

display of axis positions and spindle speeds,

running of the program by the CNC.

The functions G70 and G71 are used to change the units used in the part program or a part of the part program.

You can select either of these cases in the machine database over the Interface icon and check boxes.

For Inch Machine (IsMachInch()), the number of decimal points for the data edited in the Edit Global Variables and in the Fixation Correction dialog boxes passes from 3 to 4.

Note :

Tool Catalogue retains 4 decimal points in both cases.

This function is a pay option (N°7610).

Metric Machine [mm]

If not specified in the program, the programming mode in millimetres is used.

The G70 code is used to create a program in inches.

The G71 code is used to cancel the inch programming mode and return to millimetres.

Inch Machine [Inch]

If not specified in the program, the programming mode in inches is used.

The G71 code is used to create a program in millimetres.

The G70 code is used to cancel the millimetre programming mode and return to inches.

Page 23 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 24: G code table.pdf

With the inch machine setup, the tool catalogue data, the fixation offsets and the global variables are processed in inch.

The default header of operations is already in inch for the code entry in inches. Data can be input with 5 decimal points.

Use The following configurations are available :

1. INCH Machine & INCH Programming

1. Tool presetter in inch and plane in inch

2. to configurate in Machine Database over the Interface icon and check boxes :

3. .....

4. [MACROCODE]

5. Header=G82 G85 G90 G95 G190 G68 G70

6. Footer=G82 G85 G90 G95 G190 G68 G70

7. ......

2. INCH Machine & METRIC Programming

1. Tool presetter in inch and plane in metric

2. to configurate in Machine Database over the Interface icon and check boxes :

3. .....

4. [MACROCODE]

5. Header=G82 G85 G90 G95 G190 G68 G71

6. Footer=G82 G85 G90 G95 G190 G68 G70

7. ......

3. METRIC Machine & METRIC Programming

1. Tool presetter in metric and plane in metric

2. to configurate in Machine Database over the Interface icon and check boxes :

3. .....

4. [MACROCODE]

5. Header=G82 G85 G90 G95 G190 G68 G71

6. Footer=G82 G85 G90 G95 G190 G68 G71

7. ......

4. METRIC Machine & INCH Programming

1. Tool presetter in metric and plane in inch

Page 24 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 25: G code table.pdf

2. to configurate in Machine Database over the Interface icon and check boxes :

3. .....

4. [MACROCODE]

5. Header=G82 G85 G90 G95 G190 G68 G70

6. Footer=G82 G85 G90 G95 G190 G68 G71

7. ......

All figures in the machine database (File *.MD) are always in metric units (including Tool Support settings).

G81 / G82* G81 Linear Extension for Tool Compensation

G81 specifies a linear tool path on changing direction.

G81 must be enabled before G41 or G42.

G82 Circular Extension for Tool Compensation

G82 specifies a circular tool path on changing direction.

G71 and G70 Compared G71 (metric) G70 (inch)

Asynchronous feedrates [mm/min]

Limits 0..12000

[inch/min]

Limits 0..472

Synchronous feedrates [mm/rev] [inch/rev]

Positioning [mm] [inch]

Data format xxxxx.xxxx xxxx.xxxxx

Page 25 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 26: G code table.pdf

Syntax

G42 G81

G42 G82

G83 / G84 / G85* G83 Permute Axes for Main Plane of Interpolation : Axis 1, Axis 3.

G84 Permute Axes for Main Plane of Interpolation : Axis 3, Axis 2.

G85 Reestablish Main Plane as specified in Operation Line. (Cancel G83 or G84). Default mode for each new operation (DECO, MultiDECO and MultiAlpha machines).

Note: These function doesnt exist for Micro and Sigma machines.

Syntax G83

G84

G85

Description By default (G85) on Comb-Gang 1 :

Z1 is Main Axis 1.

X1 is Main Axis 2.

Page 26 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 27: G code table.pdf

Example

G90* / G91 G90 Absolute Dimension

G91 Incremental Dimension

Syntax Absolute programming : G90 G94 G190

Relative programming : G91 G94 G190

G900 DECO, MultiDECO, MultiAlpha

G900 Initialize Spindles with Settings Specified in the Part

G900 turns all spindles ON with settings specified in Part Manager.

Operation Line with G900 does not affect starting the spindles.

The starting of spindles is not affected by the position of the Operation Line where G900 programmed is.

Micro, Sigma

Cycle of parts global variables storage

Y1 is Secondary Axis (3). By default (G85) on Comb-Gang 2 :

Z1 is Main Axis 1.

X2 is Main Axis 2.

Y2 is Secondary Axis (3).

Page 27 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 28: G code table.pdf

G901 DECO and MultiDECO

G901 Initialize Sequences

G901 places commands necessary to realize program sequences.

G901 is always indispensable when the part has at least two programs.

Preferably put G901 at the program start i.e. in its initialization.

Micro, Sigma and MultiAlpha

G901 Machine-number transfer to CNC and Axes-check, in reference position.

G92 G92 limits the maximum spindle speed.

Sphere of application This function is applied to the use of the G96 function.

Description G92 limits the maximum spindle speed to a value less than that of the machine database.

Note This function is used before the G96 function, if it is necessary to limit the maximum spindle speed.

Use Syntax:

G92 Sxxxx

S: Maximum authorised speed in turn/min of the spindle in G96 mode. This speed must be less than the machine

Page 28 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 29: G code table.pdf

database value. If the value is negative, the maximum speed in Mx04 is used. S is automatically displayed after entering G92. (xxxx is the numeric value of this speed).

The maximum spindle speed S is automatically limited to the one contained in the machine database. If it is exceeded, a message is displayed, then the speed is reduced to the value contained in the machine database.

G94 / G95 G94 Asynchronous Feedrate [mm/min]

G95 Synchronous Feedrate [mm/rev]. Default Mode.

Note :

G98 = G94

G99 = G95 (Default Mode).

Syntax G94 (or G98)

G95 (or G99)

Samples

G90 G94 G190

G90 G95 G190

Use For the PNC-DECO control all axes are independent of each other: For this reason spindle speeds are in no way related to feedrates.

Feedrates [mm/rev] are controlled according to the programmed spindle speeds and converted then to [mm/min].

The programmed feedrate [mm/rev] is real on the machine only when the spindle and axis overrides are identical, usually 100% by default.

Feedrate [mm/rev] is disregarded when :

overriding axis feedrate only, i.e. axis feedrate changes while spindle speed does not.

overriding spindle speed only, i.e. spindle speed changes while axis feedrate does not.

To avoid problems with relating spindle speeds to the calculation of feedrates [mm/rev], set up the program as follows :

S1 in Operation Line of Comb-Gang 1

S2 in Operation Line of Comb-Gang 2

S3 in Operation Line of Frontwork Gang

S4 in Operation Line of Backwork Gangs

Page 29 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 30: G code table.pdf

COMPUTING FEEDRATE [mm/rev] in G95

If no spindle speed is programmed in the operation, the last speed entered in Operation Line will be taken for the feedrate calculation. The calculated feedrate is correct.

Spindle speed change in the operation. The programmed spindle speed is related to the axes in Operation Line. The feedrate calculation is correct.

S1-spindle speed change. The programmed spindle speed is related to the axes in Operation Line. The feedrate calculation is correct.

S3-spindle speed change. The programmed spindle speed is not related to the axes in Operation Line. The feedrate calculation is incorrect. S3 speed will be at 10000 rpm but the feedrate will be calculated with 5000 rpm.

Spindle state BEFORE operation. Operation. Spindle state AFTER operation. Comb-Gang 1 : X1 Y1 Z1 S1 M103 S5000

M203 S5000

M303 S5000

M403 S5000

No spindle speed entered M103 S5000

M203 S5000

M303 S5000

M403 S5000

Spindle state BEFORE operation. Operation Spindle state AFTER operation. Comb-Gang 1 : X1 Y1 Z1 S1 M103 S5000

M203 S5000

M303 S5000

M403 S5000

Spindle speed entered.

M103 S10000

G1...

M103 S10000

M203 S5000

M303 S5000

M403 S5000

Spindle state BEFORE operation. 2 simultaneous operations Spindle state AFTER operation Comb-Gang 1 : X1 Y1 Z1 S1 M103 S5000

M203 S5000

M303 S5000

M403 S5000

Spindle speed entered .

M103 S10000

M303 S10000

G1...

M103 S10000

M203 S5000

M303 S10000

M403 S5000 Frontwork Gang : X3 Z3 S3 M103 S5000

M203 S5000

M303 S5000

M403 S5000

No spindle speed entered.

G1...

M103 S10000

M203 S5000

M303 S10000

M403 S5000

Page 30 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 31: G code table.pdf

G96 / G97 G96 Constant cut-off speed [m/min].

G97 (or Mxyy) Cancel G96

Sphere of application To obtain optimum cutting conditions when turning, a different rotation speed is needed for each diameter variation. The constant cut-off speed function effects this calculation automatically.

When cutting off or facing large diameters, this function is used to decrease the required machining time and to have a regular surface finish and better quality.

Syntax G96 Sxxxx P1=cc

S: The constant cut-off speed in [m/min or feet/min]. If the value is negative, the spindle turns in Mx04. S is automatically displayed after entering G96.

P1: Axe where the G96 function is to be applied. This parameter is optional. If it is not programmed, axis X of the operation line is selected by default.

(For example: If you want to apply G96 on axis Y of Chaser 1, write P1=Y1).

Description The “constant speed function” changes the spindle rotation speed based on the position of axis X, in order to obtain optimal cut-off conditions.

Each time the axis is moved, the function G96 recalculates the spindle rotation speed based on the desired constant cut-off speed, and the new position of the axis.

The feed of the axis segment is recalculated based on this new spindle speed.

Use The G96 function can be used various times on the same spindle, only the first G96 requires the speed parameter S, the user can delete it for the subsequent G96 functions. TB-DECO will then take the value S by default, which is specified in the previous G96 function, associated to the same spindle.

Note If the feed is programmed in [mm/turn] (G95), it is recalculated with each variation of the spindle speed.

If the feed is programmed in [mm/m] in (G94), it is fixed and only the spindle speed can vary.

The operation line must contain a direction X-axis or the axis specified by the parameter P1 of G96. If this is not the case, the code G96 is ignored and a warning is displayed.

If the line contains various axes with the same name (xx or yy) and the parameter P1 has not been set, then an alarm is generated.

Page 31 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 32: G code table.pdf

Cancel : G97 or Mxyy G97 or Mxyy (Sxxxx). cancels the G96 function

Syntax 1

G97 Sxxxx

S: New spindle speed in [turn/min.] This parameter is optional. If it is not present, the spindle speed remains the one calculated in G96.

S is not automatically displayed after entering G97.

Syntax 2

Mx03 Sxxxx, Mx04 Sxxxx, or Mx05

X : Spindle number.

03 : Clockwise rotation, 04 : Anti-clockwise rotation, 05 spindle stop.

S: New spindle speed in [turn/min]. (xxxx is the numeric value of this speed).

Note:

The G96 mode remains enabled as long as G97 or a spindle speed-up function has not been enabled, even if the operation is changed.

The operation line containing G96 determines which spindle and axis are used (X by default, if P1 is not specified). 

If G96 is programmed in an operation of chaser 2 (line Z1 X2 Y2 and spindle S1), the spindle S1 becomes dependent on axis X2.

Samples

In order to cut off the material after RESET, with a constant cut-off speed in the INIT program when running the G910 macro, it is sufficient to change the operation for the macro G910 as follows :

Initial cut-off mode with speed programmed in the “Initial spindles speed” window

Initial cut-off mode with constant cut-off speed

DECO Micro / Sigma MultiAlpha MultiDECO G900

G901

M8

G4 X5

G910

G900 (Save global variables)

G28 X1 (Back to Ref. X1)

M8

M103 S#3008

G910

G910

(M800 P. . . Cancel Ref.-check)

G4 X5

G910

Page 32 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 33: G code table.pdf

Note for DECO [a] : To delete G900, add a line with the code G96 S… before the call of G910

Constant cut-off speed in normal work operation

G92 S6000 (Limitation of turning speed S1, during constant cutt-off speed.)

G1 X1=#2032 G100 (#2032 = #3001 + Safety)

G96 S120 (Activation of Constant Cut-off speed: 120 m/min.)

G1 X1=2 F0.02

G1 X1=-0.5 F0.01

G97 S#2033 (Cancel G96 and return to initial speed of spindles (S1), for loop at end of cycle.)

Model for MultiAlpha

Linked operations preset with G96 are available in Comment mode They are located in:

Initial cut-off

In the INITIAL CUT-OFF program line, just disable the Comment mode in these preset operations.

DECO Micro / Sigma MultiAlpha MultiDECO G92 S5000

G96 S120

G901

M8

G4 X5

G910

(G97 or G97 S2000 or M103 S2000)

G900 (Save global variables)

G92 S5000

G96 S120

G28 X1 (Back to Ref. X1)

M8

G910

M103 S#3008 (or G97 S#3008)

G96 S120

G910

(G97 or G97 S2000 or M1803 S2000)

(See also Model for MultiAlpha)

(M800 P. . . Cancel Ref.-check)

G4 X5

G96 S120

G910

(G97 or G97 S2000 or M103 S2000)

Page 33 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 34: G code table.pdf

Main Program, final Cut-off

For the final cut-off (positions 7+8), just disable and enable the Comment mode in the preset operations and the classical final cut-off operation, respectively.

Final cut-off without G96

Final cut-off with G96

Gx12.1 / Gx13.1 Gx12.1 Polar coordinates interpolation, switch Spindle (Sx) to rotary axis (Cx).

Equivalent to G17 + Mx98 D-1 (select plane (X, C) + Polar coordinates interpolation, switch S to rotary axis (C).

Gx13.1 Cancel Gx12.1.

Equivalent to Mx99 + G18 (cancel Mx98 + select plane (Z, X))

Syntax

Description of Parameters x : Axis number.

For example:

G112.1 (or G17 M198 D-1)

Gx12.1

Gx13.1

or G17 Mx98 D-1

Mx99 G18

Mono

Page 34 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 35: G code table.pdf

...

G113.1 (or M199 G18)

Gx50 Gx50 Cancel Polygoning with Sx-Spindle enabled by Gx51.

Warning!

Gx50 : Not available for MultiDECO Machines.

G250 : available for DECO 7/10, 10a, 13, 13a, 20/26, 20a/26a only.

G350 : available for DECO 7/10, 13b only.

G550 : available for DECO 7/10a (0019-V4, 0017-V3), 13, 13a only.

Syntax

Gx50

x : Spindle number.

Gx51 Gx51, Sx-Spindle On for Polygoning

Polygoning Spindle Sx with Reference Spindle S1.

Warning!

Gx51 : Not available for MultiDECO Machines.

G251 : available for DECO 7/10, 10a, 13, 13a, 20/26, 20a/26a only.

G351 : available for DECO 7/10, 13b only.

G551 : available for DECO 7/10a (0019-V4, 0017-V3), 13, 13a only.

Syntax Machines DECO, Sigma, MultiAlpha : TB-DECO

Page 35 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 36: G code table.pdf

Gx51 R Q

x : Spindle-number.

R : Polygoning ratio, Number of polygon faces/ Number of attachment teeth.

Q : Value of desired angular shift based on a reference machining (value calculated following a measurement taken after the first polygoning).

Machines Micro, Sigma, MultiAlpha : ISO

Gx51 P Q R

x : Spindle number.

P, Q : Polygoning Ratio Q/P (P= number of teeth, Q= number of faces )

R : Value of desired angular shift based on a reference machining.

Note:

No angular shift is possible on Micro Machines.

Gx51 is cancelled with Gx50. For versions up to TB-DECO V6, cancellation can be done with Mx03 or Mx05, but this is not recommended b y TORNOS

Use Polygoning Tool T must be turned on BEFORE the Program block Gx51.

The direction of the spindle rotation get inverted for:

An angular shift with negative value and different from 0: (Q<0) for TB-DECO

A Polygoning Ratio with negative: (P<0 or Q<0) for ISO.

Polygoning Phase

If you need an angular shift in relation to another machining operation, apply the following rule :

Multiply Angular Shift [°] by Polygoning Ratio in Variable R of Gx51.

Example:

TB-DECO

Polygon with 4 faces, 2 teeth attachment: ratio R = 4/2 => R = 2. Spindle S2.

Code : G251 R2 Q0

Part Measurement Error : 10°

Angular Shift to enter : 10° * 2 = 20°

Resulting code : G251 R2 Q20

ISO-Machines

Polygon with 4 faces, 2 teeth attachment, Q = 4, P = 2 : ratio = 4/2. Spindle S2.

Code : G251 P2 Q4 R0

Page 36 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 37: G code table.pdf

Part Measurement Error : 10°

Angular Shift to enter : 10° * 2 = 20°

Resulting code : G251 P2 Q4 R20

G & M Function Groups with Processing Order Numbers Each G-function belongs to a group numbered 1 to 10. Group Numbers represent the order in which particular functions will be processed in a program line.

Functions are processed in the following order :

Group 1 : System Commands

Group 2 : Modal G-Functions

Group 3 : Spindle Rotation Commands

Group 4 : Polygoning Spindle Commands

Group 5 : Spindle Commands for Phase Adjustment

Group 6 : Spindle Oriented-Stop Commands

Group 7 : Spindle ON/OFF Commands

Group 8 : Header/ Footer Threading Commands

Group 9 : Threading Commands

Group 10 : Axis Commands

Group 11 : Basic M-Commands

Group 12 : Additional M-Commands

Group 13 : Machine Cycles

Note : Tool call to be entered either in a separate block or together with a function of Group 10.

Zero Offsets for G-Functions DECO, MultiDECO, MultiAlpha and MultiSigma Machines

Page 37 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm

Page 38: G code table.pdf

DECO Sigma Machines

Description of G-functions concerned : G52, G53, G54, G55, G56, G58 and G59

Page 38 of 38G-Code Table

4/30/2013file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm