Академический Документы
Профессиональный Документы
Культура Документы
Page 1 of 38
G-Code Table
Inscription
z z z/o
M/S x
Function is available in standard. Function is available in standard, activated mode per default. Function is available for some machines. Function is not available. Function is available in option. M = Modal : Function remains enabled until replaced by another function of same group. S = Sequential : Function remains enabled in segment only. Spindle number (0 to 99).
Functions G Micro / Code G00 G01 G02 G03 G04 G13 Definition Non-productive fast speed linear interpolation. Linear interpolation. Circular interpolation cw. Circular interpolation ccw. Dwell [s] at 100% of override. Loop start DECO z z z z z z z z z z z DECO Sigma z z z z z z z z z
o
Machines
MultiDECO z z z z z z z z z z
MultiAlpha / MultiSigma z z z z z z z z
M/S S S S S S S S M M M S
BEGINLOOP Loop start G17 G18 G19 G26 Main work plane (X, Y) or (X, C) Main work plane (Z, X)] Main work plane (Y, Z) or (C, Z) Circular chamfer link, L = radius
Micro / Code G27 Definition Linear chamfer link, L = length DECO z DECO Sigma
o
MultiDECO z
MultiAlpha / MultiSigma z
M/S S
4/30/2013
G-Code Table
Page 2 of 38
Referencing Threading, constant lead Threading, increasing lead Threading, decreasing lead. Cancel tool compensation. Tool compensation, left. Tool compensation, right. Cancel all zero offsets (datum shifts). Cancel all additional zero offsets (datum shifts) programmed over G54 and G55
z z z z z z z z z
z z z z -
z z z z z z z z z
z z z z z z z z z
S S S S M M M M M
Micro / Code G54 G54 G55 Dfinition Additional zero offset (datum shift) against current coordinate system. Zero offset (datum shift) against Machine Zero. Additional zero offset against initial coordinate system (Part Zero). Cancels G54. Zero offset (datum shift) against Machine Zero. Zero offset (datum shift) against Machine Zero. Zero offset (datum shift) against Machine Zero. Save all zero offsets (datum shifts) and reset them for the axes concerned to cut with respect to Machine Zero Zero offset (datum shift) against Machine Zero. Restore all zero offsets (datum shifts) saved over last G58 (also for the axes concerned) Zero offset (datum shift) against Machine Zero. DECO z z DECO Sigma z MultiDECO z z MultiAlpha / MultiSigma z z M/S M M M
z z
z z z -
z z
z z
M M M M
G58 G59
z -
M M
G59
z Micro /
Code
Dfinition
DECO
DECO Sigma
MultiDECO
MultiAlpha / MultiSigma
M/S
4/30/2013
G-Code Table
Page 3 of 38
G61 G64
Contouring with exact stop mode between segments. (G61=G190) Linked contouring mode. (G64=G191)
z z
z z
z z
z z
M M
Cancel G69. Calculate 360 module for rotary axis. Inch data input (not for tools). Metric data input (not for tools). Linear extension for tool compensation. Circular extension for tool compensation. Swap axes for main plane of interpolation. (Axis 1, Axis 3). Swap axes for main plane of interpolation. (Axis 3, Axis 2).
z z z z z z z z
Micro /
z z z z z z z z
z z z z z z z z
M M M M M M M M
Code G85
Dfinition Reestablish main plane as specified in Operation Line (Axis 1, Axis 2). Cancel G83 or G84. Absolute dimension. Incremental dimension. Maximum spindle-speed limit Asynchronous feedrate [mm/min] Synchronous feedrate [mm/rev] Constant cutt-off speed [m/min]. Cancel G96. Asynchronous feedrate [mm/min], (G98 = G94) Synchronous feedrate [mm/rev], (G99 = G95). Definition
DECO z
DECO Sigma -
MultiDECO z
MultiAlpha / MultiSigma z
M/S M
z z z z z z z z z
z z z z z z z -
z z z z z z z -
M M M M M M S M M
Code
DECO DECO
MultiDECO
MultiAlpha / MultiSigma
M/S
4/30/2013
G-Code Table
Page 4 of 38
Sigma (G1) G100 (G2) G100 (G3) G100 Gx07.1 Gx12.1 Gx13.1 G113 ENDLOOP G117 G130 G131 Rapid Traverse (unproductive motion). Rapid Traverse (unproductive motion). Rapid Traverse (unproductive motion). Cylindrical Interpolation. Polar coordinates interpolation. Switch to rotary C-axis. Cancel Gx12.1 Loop End Loop End. ( = G113) Cancel of orthogonal mode. Threading header. Threading footer. z z z o
z o o
z z z z z z
z z z z z z
S S S S M M S S S S S
z z z z
z Micro /
Code Gx50 Gx51 G190 G191 G217 G314 G900 G900 G901 G901
Definition Cancel polygoning mode. (Gx51). Sx-Spindle On for polygoning. Exact stop (between segments). (G190=G61) Continuous contouring. (G191=G64) Activation of orthogonal mode. Circular interpolation for arcs > 180: Path > for G02/G03. Initialize spindles with settings specified in the Part. Storage of part global variables. Initialize sequences. Machine-number transfer to CNC.
DECO z z z z z z z -
MultiDECO z z z z z -
MultiAlpha / MultiSigma z z z z z z z z
M/S S M M M M S S S S S
Code
Definition
DECO
DECO Sigma
MultiDECO
MultiAlpha / MultiSigma
M/S
4/30/2013
G-Code Table
Page 5 of 38
G902 G903 G903 G905 G906 G910 G910 G911 G911 G912 G912
Spindles on for indexing. Tool Indexing Macro (in G2/G3 circular interpolation). Tool Indexing Macro (in G2/G3 circular interpolation). Stop Spindles. Spindles on for pre-heating. Check Global Variables. Initial cut. Check Global Variables. Initial cut. Compute Zero Offset vs. Part Length. Compute Zero Offset vs. Part Length. Feed a new part. Counter-spindle clearance of the machining area at the end of the cycle.
z z z z -
z z -
z/z z z/-
z z z z z z z
S S S S S S S S S S S
Micro / Code G913 G913 G914 G914 G915 Definition End of bar cycles. Deceleration of the main spindle for feeding. Feed spindle (#3002) and Face new bar to insert it into guidebush. Material feed cycle after for new bar facing. Computes additional Z3-axis zero offset (G54) to find Part zero, according to Z1-axis position. Additional zero offset (G54) in Z4 for Intermediate Part Pickoff. Polygon milling with an attachment mounted in T25. Machining cycle of non-orthogonal axes. Tapping & Tapping-Off on Frontwork Units. DECO z z z/DECO Sigma z MultiDECO z z/MultiAlpha / MultiSigma z M/S S S S S S
z z/-
S S
Micro /
z/z
z -
S S
Code
Definition
DECO
DECO Sigma
MultiDECO
MultiAlpha / MultiSigma
M/S
4/30/2013
G-Code Table
Page 6 of 38
Long Turning, Infeeding and Drilling with Chip Breaking. Check Global Variables. Check of global variables. Compute Zero Point offset for backworking Compute Zero Point offset for backworking Clear Pickoff Spindle. Compute Zero Offset and positions for backworking and part pickoff. Spindle N2. Part pickoff from the counter-spindle
z z z/-
z -
z z/z z/-
z z z z/-
S S S S S S S
z/-
Part pickoff from the counter-spindle Part pickoff / drop off cycle with manipulator arm. Part pickoff / drop off cycle with manipulator arm.
z/-
z/-
S S
G923
Micro /
Definition Part pickoff with the counter-spindle Part pickoff / drop off cycle with manipulator arm. Part pickoff / drop off cycle with manipulator arm. Part pickoff / drop off cycle with manipulator arm. Drilling speed of S3 motor. Single point threading cycle Long Parts Machining : Check global part variables
DECO z z
DECO Sigma z -
MultiDECO z/z z -
MultiAlpha / MultiSigma z z z -
M/S S S S S M S S
G941
G942
G952
4/30/2013
G-Code Table
Page 7 of 38
eccentrics. Code Definition DECO Micro / DECO Sigma G957 G960 G977 G978 G980 Milling for inclined pins. Thread milling on an inclined axis, for thread whirling or milling. Pecking cycle i.e. drilling / chip evacuation cycle. Machining of threads with tool Tool measurement with automatic correction (Sensing).
o o
MultiDECO
MultiAlpha / MultiSigma
M/S
S S S S S
z -
z -
z
o
z -
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)
z
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
4/30/2013
G-Code Table
Page 8 of 38
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
z
G01
G1 or G01 Linear Interpolation
Syntax
z
G1 X Y Z Q F T or G01 X Y Z ,A ,C ,R F T (DECO-Sigma)
Description of Parameters
z
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.
z
4/30/2013
G-Code Table
Page 9 of 38
Examples
G01 X1=1.1 Z1=-2.2 F0.1 T12 G01 X1=10 Q135 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
z
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
4/30/2013
G-Code Table
Page 10 of 38
G01 X1=0 Z1=0 F0.1 T12 G01 X1=5 Z1=-1 ,R0.5 G01 Z1=-6
G02 / G03
G02 or G2 Circular Interpolation CW. G03 or G3 Circular Interpolation CCW.
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
4/30/2013
G-Code Table
Page 11 of 38
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
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).
Or (DECO & MultiDECO only) G13 Loop Start. G113 Loop End.
Syntax
z
BEGINLOOP ENDLOOP
Or
z
G13
4/30/2013
G-Code Table
Page 12 of 38
G113
G130 / G131
G130 Threading Header G131 Threading Footer
Syntax
z
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. Parameter B B0 B1 B2 B3 Number of the threading spindle Spindle N 1 Spindle N 2 Spindle N 3 Spindle N 4
The threading spindle number is defined in the No Broche field of the machine's database. Example for Deco 13 :
z
4/30/2013
G-Code Table
Page 13 of 38
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 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
z
G17
4/30/2013
G-Code Table
Page 14 of 38
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)
4/30/2013
G-Code Table
Page 15 of 38
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
z
L = Fillet Radius (facultative) E = Tool path velocity for chamfer expressed in active units (facultative)
z
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 :
z
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.
4/30/2013
G-Code Table
Page 16 of 38
Example 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
G28
G28 Referencing
Syntax
G28 X Y Z X Y Z : Concerned axe(s).
Examples DECO G28 X1 G4 X0.8 G28 Z1 Y1 G4 X5 G28 X2 Y2 G28 X4 DECO Sigma MultiAlpha MultiDECO G28 X1 G28 X12 G28 X2 G28 Z1 Y1 G28 Z12 G4 X3 G28 Z22 G4 X3 G28 X1
G28 X13
4/30/2013
G-Code Table
Page 17 of 38
G4 X3
G28Y4
G28 Z13
G4 X3 G28 Z21 G4 X3
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.
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).
G314
G314 Circular Interpolation for Arcs > 180 Path > for G02/G03 Example for single-spindles G02 X2=3 Z2=5 R1 G314 Example for multi-spindles G02 X2=3 Z12=5 R1 G314
4/30/2013
G-Code Table
Page 18 of 38
G2 G314
G3 G314
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 Example for single-spindles ... G34 L0.2 G01 Z1=-4 F1 G34 L0.1 G01 X1=2 F1 .... Example for multi-spindles ... G34 L0.2 G01 Z12=-4 F1 G34 L0.1 G01 X2=2 F1 ....
4/30/2013
G-Code Table
Page 19 of 38
G35
G35 Threading, decreasing lead L = Decrease [mm/rev] of Initial Lead F Example for single-spindles ... G35 L0.2 G01 Z1=-4 F1 G35 L0.1 G01 X1=2 F1 ... Example for multi-spindles .. G35 L0.2 G01 Z12=-4 F1 G35 L0.1 G01 X2=2 F1 ...
Syntax
z
G52 / G53
file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm 4/30/2013
G-Code Table
Page 20 of 38
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. 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. Lines axes) G53 X2 Z1 (enabled for X2 and Z1 only) 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.
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.
4/30/2013
G-Code Table
Page 21 of 38
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.
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. Lines axes) G58 X2 Z1 (enabled for X2 and Z1 only)
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.
4/30/2013
G-Code Table
Page 22 of 38
Example G59 (enabled for all Op. Lines axes) G59 X2 Z1 (enabled for X2 and Z1 only)
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).
Syntax
z
G61 G64
Examples
z
G68* / G69
G68 Cancel G69 G69 Calculate 360 Modulo for Rotary Axis. Angular programming value is reduced to 1 revolution (360).
G70 / G71*
file://C:\Documents and Settings\user\Local Settings\Temp\~hhC3B8.htm 4/30/2013
G-Code Table
Page 23 of 38
G70 Inch Data Input : Input data are interpreted in inch [Inch]. G71 Metric Data Input : Input data are interpreted in metric units [mm].
Syntax
z
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:
z
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 (N7610).
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.
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.
4/30/2013
G-Code Table
Page 24 of 38
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
4/30/2013
G-Code Table
Page 25 of 38
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).
G71 and G70 Compared
Asynchronous feedrates
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.
4/30/2013
G-Code Table
Page 26 of 38
Syntax
z
Note: These function doesnt exist for Micro and Sigma machines.
Syntax
z
Description
By default (G85) on Comb-Gang 1 :
z
4/30/2013
G-Code Table
Page 27 of 38
Example
G90* / G91
G90 Absolute Dimension G91 Incremental Dimension
Syntax
z
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.
4/30/2013
G-Code Table
Page 28 of 38
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
z
S: Maximum authorised speed in turn/min of the spindle in G96 mode. This speed must be less than the machine
4/30/2013
G-Code Table
Page 29 of 38
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).
z
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
z
Samples
z
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 :
z
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 :
z
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
4/30/2013
G-Code Table
Page 30 of 38
Spindle state AFTER operation. M103 S5000 M203 S5000 M303 S5000 M403 S5000
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 state BEFORE operation. M103 S5000 M203 S5000 M303 S5000 M403 S5000
z
Spindle state AFTER operation. M103 S10000 M203 S5000 M303 S5000 M403 S5000
Spindle speed change in the operation. The programmed spindle speed is related to the axes in Operation Line. The feedrate calculation is correct.
Spindle state BEFORE operation. M103 S5000 M203 S5000 M303 S5000 M403 S5000 M103 S5000 M203 S5000 M303 S5000 M403 S5000
z
2 simultaneous operations Comb-Gang 1 : X1 Y1 Z1 S1 Spindle speed entered . M103 S10000 M303 S10000 G1... Frontwork Gang : X3 Z3 S3 No spindle speed entered. G1...
Spindle state AFTER operation M103 S10000 M203 S5000 M303 S10000 M403 S5000 M103 S10000 M203 S5000 M303 S10000 M403 S5000
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.
4/30/2013
G-Code Table
Page 31 of 38
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
z
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.
z
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.
4/30/2013
G-Code Table
Page 32 of 38
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.
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 DECO Micro / Sigma MultiAlpha MultiDECO
G900 G900 (Save global variables) G901 G28 X1 (Back to Ref. X1) M8 M8 G910 (M800 P. . . Cancel Ref.-check) G4 X5 G910
4/30/2013
G-Code Table
Page 33 of 38
Note for DECO [a] : To delete G900, add a line with the code G96 S before the call of G910
DECO
Micro / Sigma
MultiAlpha
MultiDECO
G901 M8 G4 X5 G910
G4 X5 (G97 or G97 S2000 or M1803 G96 S120 S2000) G910 (G97 or G97 S2000 or M103 S2000) (See also Model for MultiAlpha)
(G97 or G97 S2000 or M103 G910 S2000) M103 S#3008 (or G97 S#3008)
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.)
Initial cut-off In the INITIAL CUT-OFF program line, just disable the Comment mode in these preset operations.
4/30/2013
G-Code Table
Page 34 of 38
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.
Mono
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
z
Gx12.1 Gx13.1
or
Description of Parameters
x : Axis number.
4/30/2013
G-Code Table
Page 35 of 38
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.
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
4/30/2013
G-Code Table
Page 36 of 38
Gx51 R Q
z
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).
Gx51 P Q R
z
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
z
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 :
z
Example:
TB-DECO
Polygon with 4 faces, 2 teeth attachment: ratio R = 4/2 => R = 2. Spindle S2.
z
Code : G251 R2 Q0 Part Measurement Error : 10 Angular Shift to enter : 10 * 2 = 20 Resulting code : G251 R2 Q20
ISO-Machines
Code : G251 P2 Q4 R0
4/30/2013
G-Code Table
Page 37 of 38
Part Measurement Error : 10 Angular Shift to enter : 10 * 2 = 20 Resulting code : G251 P2 Q4 R20
4/30/2013
G-Code Table
Page 38 of 38
Description of G-functions concerned : G52, G53, G54, G55, G56, G58 and G59
4/30/2013