Programming Manual-DeCO13a En
Programming Manual-DeCO13a En
Version 4.32
DECO 13 mm
ATTENTION ! 300482 E
Before handling the machine, read first
the information contained in the leaflet
entitled “SAFETY REGULATIONS”
TORNOS−BECHLER S.A.
CH−2740 MOUTIER / Suisse
1999 Printed in Switzerland Internet: http://www.tornos.ch
This manual is based on the information available at the moment of its publication. Although the very
best has been done in order to have the contents as precise as possible, it does not pretend to cover
all details of the hardware and software, nor to anticipate every contingency.
TORNOS−BECHLER S.A. give no guarantee nor assume any responsibility for the exactitude and
the sufficiency of the information contained in this manual.
The contents of the manual remain the property of TORNOS−BECHLER S.A. who reserve the right
to modify, complete or correct it at any time.
The risks of misinterpretation of the contents of this manual can be considerably reduced, if the user
follows the training courses proposed by TORNOS−BECHLER S.A.
1. INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. TOOL GEOMETRICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.1 AXIS TRAVEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.2 ZERO DATUM SYMBOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.3 5-AXIS KINEMATICS FOR 20 MM-DECO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.4 COMB-GANGS 1 & 2 (X1Y1 & X2Y2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.5 COMB-GANG 2 (X2Y2) WITH POWERED TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.6 FRONTWORK GANG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.7 AXIAL BACKWORK GANG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.8 RADIAL BACKWORK GANG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.9 TOOL LINE & OPERATION LAYOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3. G-FUNCTIONS (PREPARATORY) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
3.1 G-CODE TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
3.1.1 Function Groups With Processing Order Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3.2 DESCRIPTION OF G-FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4. M-FUNCTIONS (MISCELLANEOUS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
4.1 M-CODE TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
4.2 DESCRIPTION OF M-FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.3 DO ALLOCATION ON OPTIONAL SOCKETS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.4 RECAP OF LOGICAL FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.5 SAMPLE PROGRAMMING FOR ADDITIONAL DRILL SENSOR . . . . . . . . . . . . . . . . . 13
4.6 INTERPOLATION IN POLAR COORDINATES (TRANSMIT FUNCTION) . . . . . . . . . . 14
5. T-FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
5.1 SPECIFY TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
5.1.1 Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
5.1.2 What Is T0 For ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
5.1.3 QUADRANTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
5.2 CIRCULAR INTERPOLATION INDEXING OF TOOLS ON X1Y1 COMB-GANG . . . . 4
5.2.1 Y+ Indexing on X1Y1 Comb-Gang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5.2.2 Y− Indexing on X1Y1 Comb-Gang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5.3 CIRCULAR INTERPOLATION INDEXING OF TOOLS ON X2Y2 COMB-GANG . . . . 5
5.3.1 Y+ Indexing on X2Y2 Comb-Gang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.3.2 Y− Indexing on X2Y2 Comb-Gang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.4 INDEXING FRONTWORK GANG TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
5.5 INDEXING BACKWORK GANG TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
300482 E − 07/99 3
TORNOS
PROGRAMMING − DECO 13
BECHLER
6. MACROS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
6.1 MACRO APPLICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
6.1.1 Auxiliary Program INIT.PGM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
6.1.2 Main Program PIECE.PGM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
6.1.3 Auxiliary Program END_BAR.PGM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.1.4 Auxiliary Program NEW_BAR.PGM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2 DIVERSE MACROS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.2.1 G903-Macro: Index Gang Tooling On Comb-Gangs 1 & 2 . . . . . . . . . . . . . . . . . . . . . . . 7
6.2.2 G904-Macro: Cutoff At Constant Cutting Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.2.3 G915-Macro: Zero Offset In Z3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6.2.4 G916-Macro: Zero Offset In Z4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6.2.5 G933-Macro: Single-Point Threading Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.2.6 G977-Macro: Pecking Cycle (Drilling & Chip Clearing) . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.3 FEEDING SEQUENCES FOR VARIOUS BARFEEDERS . . . . . . . . . . . . . . . . . . . . . . . . 22
6.3.1 End-of-Bar For Mechanical Or Hydraulic Feed Tube . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.3.2 End-of-Bar For Robobar SSF-226
Or Similar Barfeeder With Bar Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.4 EXTENDED PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.4.1 Extension of ISO Programming For Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.4.2 Pre-Specified Library of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.5 EXTENDED PROGRAMMING :
CLASSIFICATION OF FUNCTIONS BY TYPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.5.1 String Processing Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.5.2 Input / Output & Move Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.5.3 System Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.5.4 Mathematical & Decoding Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.6 EXTENDED PROGRAMMING :
LIBRARY FUNCTIONS ALPHABETICALLY LISTED & EXPLAINED . . . . . . . . . . . . . . 26
7. VARIABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
7.1 TYPES OF VARIABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
7.2 GENERAL DESCRIPTION OF VARIABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
7.2.1 System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
7.2.2 Auxiliary System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
7.2.3 System String Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
7.2.4 Local Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
7.2.5 Global Program Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
7.2.6 Global Part Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4 300482 E − 07/99
TORNOS
PROGRAMMING − DECO 13
BECHLER
8. SAMPLES OF PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
8.1 SAMPLE 001: FACE WITH ALLOWANCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
8.2 SAMPLE 002: THREAD WITH MACRO G933 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
8.3 SAMPLE 003: APPLICATION OF INTERLINKED-AXES (Z1Z3 & Z1Z4) . . . . . . . . . . 4
8.4 SAMPLE 004: MACHINE SEVERAL PARTS PER CHUCKING . . . . . . . . . . . . . . . . . . 8
8.5 SAMPLE 005: PROGRAMMING C-AXIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
8.6 SAMPLE 006: APPLICATION OF Z1Z4 INTERLINKED-AXES (1) . . . . . . . . . . . . . . . 12
8.7 SAMPLE 007: APPLICATION OF Z1Z4 INTERLINKED-AXES (2) . . . . . . . . . . . . . . . 15
8.8 SAMPLE 008: FORM MILLING WITH CUTTER COMPENSATION . . . . . . . . . . . . . . . 19
8.9 SAMPLE 010: LONG PART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
8.10 SAMPLE PART EX_V4_10.PCE (10 AXES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
8.11 SAMPLE KEYWAY CONTOURING WITH CUTTER COMPENSATION . . . . . . . . . . . . 56
8.12 SAMPLE GROOVING WITH CUTTER COMPENSATION . . . . . . . . . . . . . . . . . . . . . . . . 57
8.13 SAMPLE THREADING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
300482 E − 07/99 5
TORNOS
PROGRAMMING − DECO 13
BECHLER
6 300482 E − 07/99
TORNOS
PROGRAMMING − DECO 13 BECHLER
1. INTRODUCTION
DECO 2000 belongs to a new generation of automatics with a sliding headstock. It replaces
the cam-controlled machine, improves ergonomics and reduces setup time. DECO 2000 com-
bines the productivity of the cam-controlled machine with all the advantages of the numerical
control.
The specific feature of the PNC-DECO control (parallel numerical control) is its capacity to man-
age all machine axes simultaneously. Each axis follows its own path in synchronization with all
the others.
Starting from the part drawing, you will program the part by means of the dedicated TB-DECO
software running on MicrosoftWindows. You can simulate part machining with the SIM-
DECO simulation software. Then you will download your program into the machine over the
DNC-DECO communication software.
A new part is usually programmed from a basic part model. This model comprises, according
to the mechanical configuration of the machine, a basic operation schedule. Each machine con-
figuration has its own model of basic part. These basic part models, particularly useful for creat-
ing a new program, will be copied on your hard disk at the installation of TB-DECO.
This document gives you all information required to produce a part program and is complemen-
tary to the TB-DECO SOFTWARE SYSTEM MANAGEMENT manual for DECO 2000.
The operator training courses on DECO 2000 provide the trainees with the competence and
self-assurance adequate for the programming and for the best possible application of the
DECO 2000 potential.
AXIS TRAVEL
AXIS Lower limit Upper limit Reference Travel
X1 −14 mm (∅) 56 mm (∅) 56 mm (∅) 35 mm
X2 −14 mm (∅) 56 mm (∅) 56 mm (∅) 35 mm
Y1 −3 mm 155 mm 0 mm 158 mm
Y2 −3 mm 155 mm 0 mm 158 mm
Z1 0 mm 255 mm 0 mm 255 mm
X3 −144 mm (∅) 230 mm (∅) −144 mm (∅) 187 mm
Z3 −160 mm 0 mm 0 mm 160 mm
X4 −310 mm (∅) 6 mm (∅) 0 mm (∅) 158 mm
Y4 −1 mm 299 mm 296 mm 300 mm
Z4 0 mm 160 mm 160 mm 160 mm
2.3 KINEMATICS
Z1(− 25)
X1(+)
Dowel pin
62
X1(−)
X1(+)
28
X1(−) +
Z1(+) Z1(−)
−
X2(+)
Z1(−28/−35)
Dowel pin
62
X2(−)
28
+
Z1(+) Z1(−)
−
X3(+)
Z3 (−180)
X3(−)
X3(−)
Z3(−) Z3(+)
X4(+)
185
Z4 (+80)
X4(−)
Z4(+) Z4(−)
120
X4(+)
62
−
Z4 (+28/35)
diam 50
X4(−)
Z4 (+53/60)
Z4(+) Z4(−)
Cutting Oil :
Date : Name : T43
X3
Z3
FRONTWORK GANG
T31 X4
Z4
T32 BACKWORK GANG
T51
T33
T52
T34
T53
X1 X2
Z1 Z1
COMB-GANG 1 COMB-GANG 2
T11 T21
T12 T22
T13 T23
T14 T24
T15 T25
Operation Layout
L
G26 L.... E....
L = Fillet Radius (facultative)
E = Tool path velocity for chamfer expressed in active units (facultative)
L
L = Chamfer Length for positive value (facultative)
L− L− = Chamfer Length / 1.414 for negative value (facultative)
E = Tool path velocity for chamfer expressed in active units (facultative)
Notes : Settings entered under L are saved for G26 and G27 separately.
Parameter L is facultative and when omitted, G26/G27 will take its last
setting entered in G26/G27.
If no settings are given under L, G26 will take the default settings from
Default Radius Box and G27 from ChamferLength Box in the Global
section of the machine database.
The last setting entered under E is saved and remains identical for G26
and G27.
RESTRICTIONS : Make absolutely sure to enter G28 in the INIT program only because
only here the actual position of the axis is unknown.
In the other programs (first of all Main Program No. 02), use System
Variables #24, #25, #26 to reference the axes (see the description of
System Variables, Para. 7.2.1).
Example :
G52 Z3
G1 Z3=#24 X3=#25 G100 T0
CANCEL ALL ZERO OFFSETS,
REFERENCE 1st MASTER AXIS (Z3) OVER #24 and 2nd (X3) OVER #25.
ZERO OFFSETS
Xm X X X X
Zm Z Z Z Z
G52 Cancel All Zero Offsets (datum shifts). Coordinate system begins at Machine
Zero and is again valid for the axis / axes concerned.
G52 (enabled for all axes)
G52 X1 Z1 (enabled for X1 and Z1 only)
G52 X1 (enabled for X1 only)
G53 Cancel All Additional Zero Offsets (datum shifts) entered over G54 and
G55. Saved Org2 is deleted for the axes concerned.
G53 (enabled for all axes of Operation Line)
G53 X2 Z1 (enabled for X2 and Z1 only)
G54 Additional Zero Offset (datum shift) against current coordinate system. This
offset is additional for the axes concerned. The offset value is added to Org2.
G54 X3=5.15 Z3=3.2
G54 Z1=16
G55 Additional Zero Offset Against Initial Coordinate System (Part Zero).
G55 cancels G54. Changes offset value of Org2.
G55 X3=5.15 Z3=3.2
G55 Z1=16
G56 Zero offset (datum shift) against Machine Zero. The initial G56 settings at
each program start are those entered in Part Manager.
G56 X3=5.15 Z3=3.2
G56 Z1=16
G58 Save All Zero Offsets (datum shifts) and reset them for the axes concerned
to cut with respect to Machine Zero.
G58 saves Org1 and Org2 before deleting them.
G58 (enabled for all axes of Operation Line)
G58 X2 Z1 (enabled for X2 and Z1 only)
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.
CONFIGURATIONS
(1) INCH Machine and INCH Programming
INCH tool presetter and INCH plane
to configurate in Machine Database
over the Interface icon and check boxes :
.....
[MACROCODE]
Header=G82 G85 G90 G95 G190 G68 G70
Footer=G82 G85 G90 G95 G190 G68 G70
AXES PERMUTATION
G83 Permute Axes for Main Plane of Interpolation
On Comb-Gang 1 : Z1 is Master Axis 1 (by default)
X1 is Master Axis 2 (by default)
Y1 is Slave Axis (by default)
On Comb-Gang 2 : Z1 is Master Axis 1 (by default)
X2 is Master Axis 2 (by default)
Y2 is Slave Axis (by default)
Operation Line of three axes has two Master Axes and one Slave Axis.
G18 plane (for G02/G03) is specified by two Master Axes of the operation line.
G83 permutes Slave Axis with Master Axis 2 to provide two different axes for
G18 plane.
G83
G84 Permute Axes for Main Plane of Interpolation
Function identical with G83. G84 permutes Slave Axis with Master Axis 1.
G84
G85* Reestablish Main Plane as Specified in Operation Line.
Cancel G83 or G84
G85
G2 G314
G3 G314
Grp
Code Function Notes M/S Resp.
No.
(DO1921)
M1 Program stop, facultative 11 M No
Enter in a separate block
M2 Program stop, unconditional with reset (DO1922) 11 M No
M8 Coolant On (DO1904) 11 M No
M9 Coolant Off (DO1905) 11 M No
M10 Close spindle collet (DO1901) 12 M Yes
M11 Open spindle collet (DO1900) 12 M Yes
End-of-Part signal.
M20 (DO1923) 11 S No
Increments Part Count(er).
M32 Tool breakage check on Sensor 1 (DO1942) 12 S No
M33 Part presence check on Sensor 1 (DO1943) 12 S No
M34 Tool breakage check on Sensor 2 (DO1944) 12 S No
M35 Part presence check on Sensor 2 (DO1945) 12 S No
M36 Tool breakage check on Sensor 3 (DO1946) 12 S No
M37 Part presence check on Sensor 3 (DO1947) 12 S No
M45 HP pump On (option) (DO1950) 12 S Yes
M46 HP pump Off (option) (DO1951) 12 S Yes
M60 Load a new bar (DO1927) 11 S No
M82 Barfeed thrust On (DO1931) 12 S No
M83 Barfeed thrust Off (DO1932) 12 S No
M84 Advance pickoff spindle ejector (DO1954) 12 S Yes
M85 Retract pickoff spindle ejector (DO1955) 12 S Yes
M101 Program stop at End-of-Table (DO1920) 11 S No
(DO1700 if 4 spindles)
M103 S1-spindle On, cw 7 S No
Disregards W-Parameter.
(DO1700 if 4 spindles)
M104 S1-spindle On, ccw 7 S No
Disregards W-Parameter.
(DO1700 if 4 spindles)
M105 S1-spindle Off 7 M No
Disregards W-Parameter.
M110 Close pickoff spindle collet (DO1903) 12 S Yes
M111 Open pickoff spindle collet (DO1902) 12 S Yes
M118 S1-spindle synchro phase Disregards W-Parameter. 5 M No
M119 Oriented S1-spindle stop Disregards W-Parameter. 6 M No
(DO1702 if 4 spindles)
M305 S3-spindle Off 7 M No
Disregards W-Parameter.
(DO1703 if 4 spindles)
M403 S4-spindle On, cw 7 S No
Disregards W-Parameter.
(DO1703 if 4 spindles)
M404 S4-spindle On, ccw 7 M No
Disregards W-Parameter.
(DO1703 if 4 spindles)
M405 S4-spindle Off 7 M No
Disregards W-Parameter.
M418 S4-spindle synchro phase Disregards W-Parameter. 5 M No
M419 Oriented S4-spindle stop Disregards W-Parameter. 6 M No
M498 Switch S4-spindle to rotary axis Disregards W-Parameter. 3 M No
M499 Reset S4-spindle On. Cancel M498 Disregards W-Parameter. 3 M No
(DO1704) &
M503 S5-spindle On, cw (DO1710−DO1724) 7 M No
Disregards W-Parameter.
(DO1704 if 4 spindles)
M504 S5-spindle On, ccw 7 M No
Disregards W-Parameter.
(DO1704) &
M505 S5-spindle Off (DO1710−DO1724) 7 M No
Disregards W-Parameter.
M603 S6-spindle On, cw 7 S No
M604 S6-spindle On, ccw 7 S No
M605 S6-spindle Off 7 M No
M800 DO setting 11 S Yes
Enter in a separate block
M801 Enforce new path creation 1 S No
and with no parameters.
M811 Enable Output 1 on Optional Socket 1 (Y4.6) (DO1763/DO1765) 11 M Yes
M812 Disable Output 1 on Optional Socket 1 (Y4.6) (DO1763/DO1765) 11 M Yes
M813 Enable Output 2 on Optional Socket 1 (Y4.4) (DO1764/DO1766) 11 M Yes
M814 Disable Output 2 on Optional Socket 1 (Y4.4) (DO1764/DO1766) 11 M Yes
Generate 100 ms impulse to enable
M815 Socket 1 check. Check is over as soon as (DO 1754) 11 S No
code processing starts.
M821 Enable Output 1 on Optional Socket 2 (Y4.2) (DO1783/DO1785) 11 M Yes
M822 Disable Output 1 on Optional Socket 2 (Y4.2) (DO1783/DO1785) 11 M Yes
M823 Enable Output 2 on Optional Socket 2 (Y4.0) (DO1784/DO1786) 11 S Yes
M824 Disable Output 2 on Optional Socket 2 (Y4.0) (DO1784/DO1786) 11 S Yes
Explanations :
Grp No. Function Group No. (see also Para. 3.1.1)
M modal : Function remains active until replaced by another function of
same group.
S sequential : Function remains active in segment only.
Resp. response : All functions with the (anticipated) response-enabling Yes in the table
above can be accompanied by Parameter D specifying (Anticipated)
Response Time [ms] of a particular item independently of the over-
ride.
LP long part
Notes : All M functions are executed DURING the block :
Enter M-function in the next block if you want it to be executed AFTER the block.
No block interpretation time is necessary for PNC-DECO and all synchros are pos-
sible !
1 segment = 1 M-function.
All M functions can be accompanied by W-Parameter to shift the segment in time [ms]
at 100% override.
But for all spindle functions, W-Parameter is disregarded !
Examples of application :
M11 Classical programming.
M10 W100 Function is delayed by 100 ms at 100% override.
M10 D10=300 M10-function enable will respond in 300 ms.
M11 W150 D11=250 M11-function will be enabled in150 ms (acc. to feedrate override)
after entering, but also including 250 ms response time (independently
of feedrate override).
M1 W50 M1-function is delayed by 50 ms against the value entered.
S1 Main Spindle
j Note : Before you enter the stop, assume the spindle speed as given, e.g. S9000.
ISO Code for operation :
M103 S0 Zero speed
G4 X1.35 Dwell to let spindle reach zero speed
G1 G100 Z1=.3
G1 G100 X2=0 M119 Q0 0° indexing
G4 X.4 Dwell between two indexings
G1 G94 Z1=−4.5 F500
G1 G100 Z1=.3
M119 Q90 90° indexing
G4 X.4
G1 Z1=−4.5 F400
G1 G100 G95 Z1=.3
G1 G100 X2=3.2
M103 S9000
S4 Pickoff Spindle
j Note : Before positioned stopping, assume the spindle speed as given, e.g. S6000.
ISO Code for operation :
M403 S0 Zero speed
G4 X1.5 Dwell to let spindle reach zero speed
G1 G100 Z4=.3
M419 Q0 0° indexing
G4 X.4 Dwell between two indexings
G1 G94 Z4=−4.5 F500
G1 G100 Z4=.3
M403 S6000
Units :
G71 G70
Asynchronous feedrates : [mm/min] [inch/min]
Synchronous feedrates : [mm/rev] [inch/rev]
Positioning: [mm] [inch]
Parameter D: [mm] [inch]
Data format : xxxxx.xxxx xxxx.xxxxx
Program sample :
M203 S1000
......
G1 X1=20 Z1=12 F1000 G94
G69
M198 D4
T22
G1 X2=10 F1000 G41
G3 C1=2.5 X2=7.5 R2.5
G3 C1=5 X2=10 R2.5
G1 X2=30
G3 C1=2.5 X2=32.5 R2.5
G3 C1=0 X2=30 R2.5
G1 C1=2 X2=20 G40
G1 X2=38 G90
M199
M103 S2500
M800 DO Setting
M800 enables / disables DOs (digital outputs).
M800 P1=1600 P2=−1601
Enables DO 1600 (positive)
Disables DO 1601 (negative)
M800 P1=1600 P2=−1601 D1=32 D2=16
Enables DO 1600 (positive) including 32 ms response i.e. of its reaction time
independent of feedrate override.
Disables DO 1601 (negative) including 16 ms response i.e. of its reaction time
independent of feedrate override.
You can add Time Shift [ms] at 100% override over W-Parameter.
M800 W16 P1=1600
Delays activation of DO 1600 by 16 ms.
M800 limits the number of DOs to 5.
Class 0
Class 0
Class 0
Event 7
OR (Gates 3 and 4)
A B Out
0 0 0
0 1 1
1 0 1
1 1 1
AND (Gates 5 to 9)
A B Out
0 0 0
0 1 0
1 0 0
1 1 1
First configurate the optional socket for the sensor to be mounted on.
Configurate preferably outside the loop of the main program :
E.g.: Put a sensor on Socket 1 and consequently use Output 1 and Input 1 of Socket 1.
In tool absence, enable an alarm.
j Note : On initialization, all DOs indicate 0.
To check an alarm in tool presence, the above line will look as follows :
M800 P1=1753 P2=1756 P3=1750 (1750=Reverse signal on Input 1)
OUT1 100 ms
DO 1754 (M815)
Sensor motion
Time (ITP)
M81
5
M81
1
M81
2
Operation Line with M198 D−1 code for machining in polar coordinates must have X-axis as
Master Axis 1, C-axis as Master Axis 2 and a third axis as Slave Axis (e.g. Z).
Master Axis 1 must be absolutely a diameter axis (X), i.e. an axis of machining on diameter.
After switching to polar coordinates with M198 D−1, the X and C-axes are defined as shown
below :
2 1
X− X
3 4
C−
The part is then programmed in a new Cartesian plane defined by X and C axes.
Restrictions :
Avoid passing through the part center during an interpolation in polar coordinates.
Reduce the feedrate near the center to avoid abrupt motions (180°) of the rotary axis.
F100 F100
F10
F100
Tool Geometry :
Enter X geometry for cutter center :
e.g. for a 40 mm-∅ saw: D = 63, geometry X = −80
L
X
On one hand, the cutter diameter is much bigger than that of the bar, on the other hand, the
X travel is limited, which requires a very careful programming (enabling G41 or G42) of the
approach movement.
Make absolutely sure that after enabling cutter compensation the distance between the bar
center and any point on the tool center path be shorter than or equal to the maximum value
of the SOFTware limit switch of the X-axis.
Also, avoid “plunging” effect of cutter compensation when a segment to cut (e.g. a shoulder)
is shorter than the cutter radius.
A possible procedure (which is not general and depends largely upon the form to cut) is to
program a Fictitious Point 2 and an Approach Point 3 on the contour, the latter avoiding the
plunging. Consequently, Point 6 cannot be used. Compensation Point 2‘ will be computed
in accordance with Starting Point 1, Fictitious Point 2 and Approach Point 3 on the part con-
tour. The cutter approach having been entered, the contour can be programmed.
5. T-FUNCTIONS
5.1.1 Support
The mounting position of each tool is called support. The 1st geometry’s name corresponds to
the support’s name.
A value of offset against the geometry reference point is input in the machine database for each
support.
For more than two geometries required for a support, use Tool Names T60 to T91, even num-
bers for the 1st geometry and odd numbers for the 2nd geometry.
Example : T60/T61, T62/T63...
T0 cancels geometry. When entered, it deletes tool geometrics and tool support data.
5.1.3 QUADRANTS
+X
1 2 3 4
P P
S S
+Z
S S
P P
+X
5 6 7 8 9
P
P S S
+Z
S S P P−S
T12
X1
G2
T11
Y1
T12
X1
G3
T11
Y1
T22
X2
G2
T21
Y2
T22
X2
G3
T21
Y2
Index T31
ISO Code :
G1 G100 X3=0 T31
G1 G100 Z3=18 M304 S8000
6. MACROS
Macros are used in the main program and in the auxiliary programs.
The macros are entered in the main program and in the auxiliary programs according to Basic
Part Model: c:\deco_13\modèles.
Macro G910
Description : Check Global Variables #3000 − #3008.
Initialize
Check guidebush type
Check spindle travel
Compute number of parts to produce after End-of-Bar signal
INITIAL CUTOFF
A facultative Parameter P1= can be entered after G910 to determine the num-
ber of parts still to produce after End-of-Bar Signal without computations
related to the travel.
Attention ! Breakage risk if false data is entered !
No check !
Syntax : G910 P1=1
P1=number of parts still to produce after End-of-Bar
Signal
Unless P1 is specified or if P1=0 the cycle runs in a regular manner and com-
putes the number of parts to produce.
Macro G920
Description : Check Global Variables #3009 to #3012 & #3017.
Check Variable #3017 :
#3017=1 enables ejector feed (M84) for part ejection
from the pickoff spindle.
Fig 1
Fig. 2
G923 carries out movements & functions according to the type of ejection spe-
cified in Variable #3017 :
Default
Parameter Fac. Comment
Setting
Explanations :
P1 For part ejection from pickoff-spindle, the latter retracts at a rate given
by parameter P1, the default rate being that of the rapid traverse, i.e.
20000 mm/min. For parts requiring careful handling, a reduced rate can
be entered.
P2 specifies a dwell after the ejector feed over M84,
the default dwell being 0.7 s.
P3 For part ejection from the the pickoff spindle, the latter retreats by a
distance equal to the part-pickoff length plus a safety clearance of 5 mm.
Parameter P3 allows to modify the safety clearance.
P4 Part presence check after ejection is effected by means of a cylinder
equipped with a rod. The latter effects a travel of 10 mm at the check.
The pickoff spindle is positioned at a distance such that the cylinder in
stand−by station is at a standard position of 5 mm in relation to the posi−
tion of the part before its ejection. Parameter P4 allows to modify the dis−
tance between the cylinder rod and the position of the part before its
ejection. A positive value increases the distance. A negative value
diminishes the distance (see figure 2).
P5 Parameter P5 allows the decentering of the checking cylinder in relation
to the part in the X4 sense. This procedure can be very useful in the case
of a drilled part whose bore diameter and depth are bigger than the dia−
meter and the travel of the checking cylinder. The value of P5 is
introduced on the diameter.
P6 Parameter P6 allows to close the pickoff spindle (M110) before the part
presence check, when the part is clamped on the exterior diameter. This
allows to avoid that the checking cylinder pushes the part into the pickoff
spindle, which would render the check inefficient.
P6 = 0 collet open before the check
P6 = 1 collet closed before the check
Macro G913
Description : Debur bar waste
Spindle retract to eject bar waste from guidebush
M60 Load a new bar
A facultative Parameter P1= can be entered after G913 to determine the
spindle rpm speed for the insertion of a new bar.
Unless P1 is specified the spindle rotates at a defaulted 300 rpm.
Note : P1 is used with an automatic barfeeder only.
Syntax : G913 P1=400
P1= Spindle Speed [rpm]
Note : According to Variable BarLoader in active Machine
Database *.MD, G913 is processed differently.
0= Hydraulic or mechanical tube
1= ROBOBAR SSF 226
2= IEMCA
3= LNS
Macro G914
Description : Spindle feed to insert new bar into guidebush
Face new bar with cutoff tool and feed according to Variable #3002
Three facultative Parameters P1, P2 & P3 can be entered after G914 :
P1 & P2 help cut off a number of parametrable lengths from a
positioned new bar.
A length cut off drops into the swarf.
P3 alters the new-bar feedrate [mm/min] of entry into the guidebush.
Defaulted P3 is G100, i.e. 2000 mm/min.
Attention ! If the length to be cut off exceeds the maximum spindle
travel, an alarm is given.
Syntax : G914 P1=5 P2=10
P1= No. Lengths To Cut Off
P2= Length To Cut Off
P3= New-Bar Feedrate [mm/min]
of Entry Into Guidebush
Unless P1, P2 & P3 are specified or if P1=0, P2=0 & P3=0 the cycle runs in
a regular manner.
Description : Zero Offset in Z3 to reestablish Part Zero against the current <MC> position
in Z1.
With the sliding-headstock spindle, Part Zero (Z-axis) shifts continuously dur-
ing machining.
G915 computes Additional Zero Offset G54 on Z3 against the <MC> position
in Z1.
Objective : To reestablish Part Zero for frontworking in T31 to T33.
Notes : Several G915’s can be entered for a single part because
after each Z1 movement, Part Zero must be recomputed.
After each use of G915, make sure to cancel Additional Zero Offset
G54 with G53 Z3 before you enter a new G915.
Syntax : G915
Example ex_003.pce can be found in Directory c:\deco_20\exemples, see Fig. 601 below.
1:6 1:7
Comb-Gang 1
4:5
Backwork Gang
5:1
G915/G916
601
Explanations :
The part is centered with Operation 1:6. Next, it is drilled with Tool T31.
At that moment the part zero is not known and G915 is required to compute it in Z.
G915 is entered in Operation 5:1 where a constraint must be imposed between the end
of Operation1:6 and the start of 5:1 because it is necessary to make Zero Offset on Z3
after the last Z1 movement in 1:6 to reestablish the current Part Zero.
A constraint is imposed between the end of Operation 5:1 and the start of 3:3.
The operation contains G1 Z3=0.5 G100 code which positions the drill 0.5 mm off the work.
Operation 3:4 effects drilling. It is interlinked with turning in 2:4.
Cancel Zero Offset in Operation 3:6 with G53 Z3 at the end of drilling.
G53 Z3 cancels Additional Zero Offset executed with G915 on Z3 in 5:1.
The drill is cleared with the next block: G1 Z3=33 G100.
Enter another G915 to reestablish Part Zero for the part which moved further and is almost
finished and for its drilled hole which must be now deburred with Tool T31. The programming
for Operations 3:6, 5:2 & 3:7 is identical with the one described above.
Description : Zero Offset in Z4 for intermediate part-pickoff, e.g. to support the work in the
pickoff spindle or for pointed-cutoff.
G916 computes Additional Zero Offset G54 in Z4 against the <MC> position
of Z1.
Objective : Intermediate part-pickoff.
Notes : Several G916’s can be entered for the same part.
When Parameter P1 is active, Part-Pickoff Length will
be computed according to P1 value.
Unless P1 is specified, the distance will be taken from
Global Variable #3009.
After each use of G916, make sure to cancel Additional Zero Offset
G54 with G53 Z4 before you enter a new G916.
Syntax : G916
G916 P1= <Part-Pickoff Length>
Example ex_003.pce can be found in Directory c:\deco_20\exemples, see Fig. 602 below.
Comb-Gang 2
3:10
Frontwork Gang
5:3
G915/G916
602
Explanations :
Operation 1:8 positions the cutoff tool in Z1 at the start of pointed-cutoff. At that moment
the work must be picked up and followed with Z4 for pointed-cutoff.
Unless Z1 position then corresponds to the total part length, the part-pickoff length will be
false. If so, a G916 is required to compute an intermediate part-pickoff length.
G916 is entered in Operation 5:3 where a constraint must be imposed between the end
of Operation1:8 and the start of 5:3 because it is necessary to make Zero Offset on Z4
after the last Z1 movement in 1:8 to effect Intermediate Part-Pickoff.
A constraint is imposed between the end of Operation 5:3 and the start of 4:7 and a Stan-
dard TB-Wizard controls Part Pickoff.
Make sure to cancel Zero Offset in Operation 4:10 with G53 Z4 after Part Pickoff.
G53 Z4 cancels Additional Zero Offset executed with G916 on Z4 in 5:3.
4:10 effects the retract after a regular part-pickoff.
P5
P11
P15
P10
P6 P9
P4
P1
P8 P7
P3 P2
THREADING PARAMETERS
Parameter Fac. Default Setting Comment
P0 — Lead (NEGATIVE for internal threading)
P1 — Threading start in X
P2 — Threading start in Z
P3 — Threading end in Z
P4 P1 Threading end in X
P5 60° Threading tool angle
P6 0.61343 P0 [mm] Thread height (depth)
P7 45° Lead angle at threading start
P8 45° Exit angle at threading end
P9 0.2 [mm] Safety distance
P10 2 P0 [mm] Mechanical limit at threading start
P11 2 P0 [mm] Mechanical limit at threading end
P12 INT (P1 + 0.5) Number of rough cuts
P13 2 Number of finishing cuts
P14 2 Number of idle passes
(P3 − P2) 0.5 − 0.1 +
P15 Max. mechanical limit in X
+ P6 + P9 [mm]
P16 1 Retract rate factor
The gray Fac.-boxes indicate a facultative Parameter P, i.e. the cycle will automatically
accept a Default Setting unless such a Parameter P is specified in a G933 block.
P12 Number of Rough Cuts : e.g. for M6 6 + 0.5 = 6.5, i.e. 6 roughing cuts by default,
computed from X0 ∅ + 0.5
(Integer only: disregard tenths.)
Note : P12, P13 & P14 specify the number of threading cuts.
The number of cuts entered is indicative only.
In practice, the sum of cuts may slightly differ ($1 cut) from the number
entered.
For such reasons as the encoder signal standby time for each cut, it is
impossible to ascertain the exact number of cuts in G933 computation.
Attention ! Make sure to enter spindle speed in the operation with G933.
M150 ensures correct threading with enabled SPINDLE SPEED OVERRIDE.
At the end of the cycle, the tool returns to threading start.
Choose (a), (b) or (c), the example being for 8 cuts in total :
(a) Regular : P12=5 P13=3 5 roughing + 3 finishing cuts,
i.e. 5 cuts with constant chip-removal vol-
ume + 3 cuts with constant depth of cut
G1 X1= ... Z1= ... G100 (Position threading attachment at thread start)
G130 (Threading movement ON)
I. Feed Movement :
G90 [ G91 ] (Program in absolute or incremental mode)
G1 X1=... Z1=... F... (Infeed which determines number of cuts)
G4 X... (Dwell allowing for some idle passes)
G1 X1=... Z1=... G100 (Exit tool at thread start)
M6
10
4 1
604
2
3
ISO code :
1 M103 S1200
2 G1 X1=20 Z1=5 G100
3 G1 X1=7.626 Z1=2 G100 (Position in Point 1, Fig. 604)
4 M150
5 G130 (Threading start)
6 G1 X1=6.2 F0.01 (Infeed rough cuts)
7 G1 X1=6 F0.005 (Infeed end, see Item c) above; finish cuts)
8 G4 X2 (Dwell for n idle passes)
9 G1 X1=7.626 G100 (Return to Point 1)
10 G91
11 G1 G33 Z1=0 X1=−1.226 F1 (Threading movement from Point 1 to 2)
12 G1 G33 Z1=−12 F1 (Threading movement from Point 2 to 3)
13 G1 G33 X1=1.226 Z1=−0.613 F1.414 (Threading movement from Point 3 to 4)
14 G1 G33 Z1=12.613 F5 (Threading movement from Point 4 to 1)
15 G131 (End of threading)
16 M151
17 G4 X1 (Dwell for completion of last cut)
18 G1 X1=20 Z1=5 G100
Notes : Blocks 6 − 8 :
Blocks 6 to 8 specify the threading movement and the dwell for some idle
passes.
The number of working cuts is determined by Feed F in Blocks 6 & 7.
Here, with F0.01 & F0.005, the actual number of cuts is 6.
With 2 idle passes added, the thread is completed with 8 passes.
To raise or reduce this number, alter infeed in Blocks 6 & 7 and compute then
the resultant number of passes by means of simulation, SIM_DECO.
Blocks 6 − 7 :
Infeed movement :
In the example above, the infeed is carried out in X-axis only.
You can also infeed simultaneously in X & Z axes simultaneously.
Blocks 13 :
Here the tool exits at 45°
Projected Lead = Actual Lead / cos (angle)
Projected Lead = 1 / cos 45° = 1.414
Blocks 11 − 14 :
The threading movement represents a loop.
Make absolutely sure to return to the starting point. Otherwise, Alarm 1016:
LOOPING ERROR IN THREADING CYCLE is given.
PECKING PARAMETERS
Parameter Fac. Default Setting Comment
P1 — Drill-∅
P2 — Drilling start
P3 — Drilling end
P4 1 mm Chip-clearing distance
P5 0.2 mm Rapid approach clearance
P6 5 n drill-∅ for 1st drilling
P7 3 n drill-∅ for 2nd drilling
P8 3 Number of progression passes
P9 0.01 drill-∅ Drilling feed
P10 of 120° drill Drill point height
P11 0 Centering feed
P12 0 Drill retract feed
P13 0 Type of drilling: 0 = long; 1 = cross
P14 0 Dwell at end of drilling
The gray Fac.-boxes indicate a facultative Parameter P, i.e. the cycle will automatically
accept a Default Setting unless such a Parameter P is specified in a G977 block.
DRILL POSITION
P5
P1
AT CYCLE START
P2
P3 603
Note : The end-of-cycle position of the drill is that of the end-of-chip clearing.
See Fig. 604 above.
G977 APPLICATION
(examples of regular cases)
4
Drilling Depth
0
10
12
13
14
0
11
7
Pass No.
Drilling Depth 4
10
12
13
14
0
11
7
9
Pass No.
Here (with P8 = 6), 6 progression passes will be executed. The first two passes are comprised
in the number of passes specified in P8. The progression of the 1st & the 2nd pass is specified
in P6 & P7. The curve can be modified by varying P6 & P7.
4
Drilling Depth
0
10
12
13
14
0
11
7
Pass No.
Here, the difference in depth reached with each pass and measured against the preceding
pass, remains constant until Drilling Depth = P1.
1.5
1
0.5
0
10
12
13
14
0
11
7
Pass No.
Here P6 must equal P7 & P8 must be by default to reach constant depth with each drilling.
Special Features :
Modify Spindle Retract To Eject Waste from Guidebush (Item 8.) :
Default retract : 25 mm
If 25 mm retract is too short, enter a positive figure in #3014, which will be added to 25 mm.
Min. retract : 25 mm (For shorter retracts an alarm will appear.)
Modify Spindle Feed To Insert New Bar (Item 16.) :
Default feed : 25 mm
If 25 mm feed is not adequate, enter a figure in #3015.
Min. feed : 1 mm (For shorter feeds an alarm will appear.)
Note : Follow the following rule for Variables #3014 & #3015 :
Positive figure increases retract / feed.
Negative figure decreases retract / feed.
Example : #3014 = 10
Retract = 25 + 10 = 35 mm
#3015 = −5
Feed = 25 + ( −5 ) = 20 mm
7. VARIABLES
Definitions :
<MC> Machine Position (absolute) for testing Software Limit Switches
<PR> Program Position. Distance from Part Zero
<DG> Last “Distance-To-Go”: distance already covered
Zeroes Total of all Zero Offsets
T Tool Geometry + Support Value
(O) Index for current position
(1) Index for position to reach
In absolute mode :
<DG>(0−>1) Programmed Value (0−>1)+Zeroes (1)+T(1)−<MC>(0)
<MC>(1) Programmed Value (0−>1)+Zeroes (1)+T(1)
<PR>(x) <MC>(x)−Zeroes(x)−T(x)
In relative mode :
T(1)−T(0) T
<DG>(0−>1) Programmed Value (0−>1)+(T(1)−T(0))
<MC>(1) <MC>(0)+Programmed Value (0−>1)+(T(1)−T(0))
<PR>(x) <MC>(x)−Zeroes (x)−T(x)
Auxiliary System Variables must be read-only and they have complete format.
Basic Part Model V4_10.PGM uses System Variables for the following operation :
Operation 2:4 in Model V4_10.PGM.
2:4
Operation 2:4. Axes Referencing. End of Part.
G52
T0
G1 Z1=#18 X2=#25 Y2=#20 G100
G1 Y2=#26 G100
For Y2 and Z1 axes to retain their position (no movement) after cancelling geometries with
T0, use the following variables :
#18 Absolute machine position of 1st Master Axis (Z1)
#20 Absolute machine position of Slave Axis (Y2)
Basic Part Model V4_10.PGM uses System Variables for the following operations :
3:7
Operation 3:7. Clear Frontworking Gang. Referencing X3 and Z3-axes.
G52 Z3
G1 Z3=#24 X3=#25 G100 T0
Z3 Virtual Deleted OK
X3 Virtual Deleted
Cancel
Spindle Setup...
3:8
Operation 3:8. Referencing.
G52
T0
M305
G1 Z3=#24 X3=#19 G100
G1 X3=#25 G100
Z3 Virtual Deleted OK
X3 Virtual Deleted
Cancel
Spindle Setup...
4:11
Operation 4:11. Referencing.
G52
T0
M405
G1 Z4=#24 X4=#19 Y4=#20 G100
G1 X4=#25 G100
G1 Y4=#26 G100
For X4 and Y4 axes to retain their position (no movement) after cancelling geometries with
T0, use the following variables :
#19 Absolute machine position of 2nd Master Axis (X4)
#20 Absolute machine position of Slave Axis (Y4)
Model V4_10.PGM uses Global Program Variables for the following operations on
Comb-Gangs 1 and 2 :
1:2
Operation 1:2. Position of Cutoff Tool at Loop End. Loop Start G13.
#2012 Z1 Position <PR> to cut off a part length given in Global Variable #3003.
e.g. : If Variable #3003 = 20, the part will be cut off at Z1 = −20.
This value is given in Variable #2012.
j Note :
We recommend to use Variables #2011 #2012 because the modifications to part length
over Variable #3003 or to cutoff tool geometry are considered in the program.
1:7
Operation 1:7. Index Cutoff Tool T11.
#2012 Z1 Position <PR> to cut off a part length given in Global Variable #3003.
Note : If you want to chamfer with cutoff tool, you cannot use the programming given
for the above operation.
1:9
Operation 1:9. End-of-Cutoff. Loop End G113.
j Note :
Make sure to use this variable to program end-of-cutoff operation.
Model V4_10.PGM uses Global Program Variables for the following front and back wor-
king :
3:1
Operation 3:1. Zero Offset for Machining with Frontworking Gang.
G56 Z3=#2019
Z3 Virtual Deleted OK
X3 Virtual Deleted
Cancel
Spindle Setup...
#2019 Variable #2019 contains Zero Offset necessary for machining with Z3-axis.
This value is calculated in Macro G911.
j Note :
Make sure to program this operation before 1st machining with Z3-axis.
4:1
Operation 4:1. Calculate Part-Pickoff Positions. Loop-End Position.
#2015 Z4 Position <MC> for retract after part-pickoff according to Variable #3011.
4:2
Operation 4:2. Zero Offset for Backworking.
G56 Z4=#2016
#2016 Variable #2016 contains Zero Offset necessary for backworking in Z4 with
Tools T41 to T44 or T51 to T53.
The value is calculated in Macro G921.
j Note :
Make sure to program this operation before 1st backworking in Z4.
4:8
Operation 4:8. Approach Pickoff Spindle.
#2013 Z4 Position <MC> before part in cutoff position according to Variable #3012
(20 mm by default).
4:9
Operation 4:9. Part-Pickoff. Close Pickoff Spindle Collet (M110).
#2014 Z4 Position <MC> for part-pickoff, the part-pickoff length specified in Variable
#3009 being considered.
j Note :
This figure is calculated in G921. See description of Variable #3009, Para. 7.3.7.
4:10
Operation 4:10. Retract after Part-Pickoff.
#2015 Z4 Position <MC> for retract after part-pickoff according to Variable #3011.
Global Part Variables are entered in the Edit Global Variables dialog box of the Part Manager
window.
#3000 Cutoff Tool Support No (11,12,13,14, 15, 21, 22, 23, 24, 25)
#3001 Bar diameter [mm] [inch]
#3002 Initial cutoff feedrate (after RESET and new bar) [mm/rev]
#3003 Positive part length [mm] [inch]
#3004 Feeding allowance for positive offset tool [mm] [inch]
#3005 Positive deburring shift [mm] [inch]
#3006 Guidebush type :
0 Stationary / Live / Habegger guidebush (220mm spindle-travel)
#3007 Dwell after open spindle collet [s]
#3008 Dwell after close spindle collet [s]
#3009 Pickoff-spindle part-pickoff length [mm] [inch]
#3010 Pickoff-spindle collet geometry [mm] [inch]
#3011 Pickoff-spindler retract distance after part-pickoff [mm] [inch]
#3012 Pickoff-spindle approach distance for part-pickoff [mm] [inch]
#3013 This variable is not used for 13mm-DECO !
#3014 Z1-axis retract for remnant ejection [mm] [inch]
#3015 Z1-axis feed for new bar insertion [mm] [inch]
#3016 S1 speed for next part feeding [rpm]
#3017 Ejection method
0 Manipulator gripper
1 Manipulator tray and pickoff-spindle ejector
2 Manipulator gripper and pickoff-spindle ejector
#3018 Part gripping length (cf. G923-macro) [mm] [inch]
#3019 Productive bar length for Long Parts [mm] [inch]
The operation processing alarm Z1-AXIS OVERSHOOTS SOFTWARE LIMIT SWITCHES can
occur if spindle travel is too short for part machining in a situation such as :
machining with an offset tool,
tool position entered is greater than part length.
In both cases, enter in Variable #3004 a feed length greater than part length.
Example 1 :
Part length : −10 mm
Most offset tool geometry : −18
Programmed position : −12 (u part length)
−12
Example 2 :
Part length : −10 mm
Most offset tool geometry : −25
Programmed position : −8 (t part length)
Î Î
Î Î
Î Î
T26 Geometry = −25
−5
−8
−10
At end-of-bar, the cutoff tool deburs remnant by infeeding 0.15 mm on radius from bar diameter
(see figure below).
If remnant is cut off at bar diameter, Variable #3005 is 0.
Remnant
0.10
If you find an excess turned length on the bar after cutoff, enter a deburring shift in Variable
#3005.
Deburring Shift length is specified by a positive value in Variable #3005.
Attention ! If the deburring shift figure in Variable #3005 remains 0 while there is an
excess turned length, the tool will go only through the deburring motion
off the remnant.
Remnant
#3005
#3009
Pickoff-spindle collet geometry must be indicated for collet with an extended nose.
The reference face for measuring this geometry is that the of the pickoff-spindle nut.
j Note :
For standard F25 collet, the geometry to enter is about −0 mm.
#3010 Z4 − Z4 +
#3011
Pickoff spindle can be brought to a distance given in Variable #3012 in respect to the part length
in cutoff position.
POSITION BEFORE PART-PICKOFF
#3012
Variable #3016 reduces S1-spindle speed for feeding next part to avoid scratches on bar
diameter.
The speed reduction is executed over Macro G912 (feeding) with the spindle collet open.
Macro G912 having been executed, the spindle resumes its speed specified in the Initial
Spindle Speed dialog box.
Note : If the speed specified in the Initial Spindle Speed dialog box is negative (S1
spindle On, ccw M104), enter also a negative speed in Variable #3016.
If Variable #3016=0 for feeding, the speed will not be reduced.
If the speed reduction is considerable (e.g. from 10000 to 200 rpm), the feed-
ing and spindle deceleration occur simultaneously.
In this case, to make sure that the speed entered in Variable #3016 (200 rpm)
is attained before feeding next part, increase the dwell in Variable #3007.
Also to make sure that the initial speed (10000 rpm) is resumed after G912,
increase the dwell in Variable #3008. Some downtime may be the conse-
quence.
8. SAMPLES OF PROGRAMMING
TECHNICAL DATA
Part length : 20 mm
Facing allowance : 0.2 mm
TECHNICAL DATA
Thread : M5 x 10 mm
TECHNICAL DATA
Interlinked Z1Z3-axes for simultaneous :
Outside turning ∅: 5 mm
length : 10 mm
Drilling ∅: 2 mm
length : 10 mm
with simultaneous chip clearing
Interlinked Z1Z4-axes for :
Taper-cutoff (supported in pickoff spindle)
Description : Turning & drilling run simultaneously with their own cutting speeds.
Z1Z3 Z1 & Z3-axes (master & slave respectively) interlinked in Rocker Function.
1:6 1:7
Comb-Gang 1
4:5
Backwork-Gang
5:1
G915/G916
1:8 1:9
Comb-Gang 1
Comb-Gang 2
3:9 3:10
Frontwork-Gang
5:3
G915/G916
TECHNICAL DATA
Part length : 15 mm
Number of parts per chucking : 3
Cutoff tool width : 1.5 mm
C1 axis
Bitmap Name
CUTTER-CENTER PATH
Frontwork-Gang
5:1
G915/G916
Description : Interlinked Z1Z4-axes for taper-cutoff with form-ground cutoff tool and work
supported in pickoff spindle.
TECHNICAL DATA
Use G916-macro : see Para. 6.2.2.
Facing allowance : 0.30 mm
comprising : 0.25 mm for facing
0.05 mm for taper-cutoff
Add facing allowance to part length in Global Variable #3003, i.e. 30.3 mm.
2:5
Comb-Gang 2
Frontwork-Gang
5:1
G916
Description : Interlinked Z1Z4-axes, with work supported in the closed collet of pickoff
spindle, for :
back turning
threading
TECHNICAL DATA
Use G916-macro : see Para. 6.2.2.
Facing allowance : 1 mm
Add facing allowance to part length in Global Variable #3003, i.e. 51 mm.
Description : The work is held in the closed collet of the pickoff spindle during back turning.
1:5
Comb-Gang 1
2:2 2:3
Comb-Gang 2
Frontwork-Gang
5:1
G916
Description : The work is held in the closed collet of the pickoff spindle during threading.
1:6 1:7
Comb-Gang 1
2:4
Comb-Gang 2
Frontwork-Gang
5:2
G916
approach
exit
1:3 1:4
Comb-Gang 1
TECHNICAL DATA
Part length : 400 mm
Number of feeds : 5
Notes : The X1Y1 & X2Y2 gang tooling system includes a pair of Bar Support Claws
which occupy one toolholder position each.
The claws traverse rapidly in X1 & X2 toward bar and clamp it carefully (spring)
to lock it as the spindle retracts.
Support claws positions recommended : T11/T21
300482 E − 07/99
LONG-PART DISPOSAL KINEMATICS
Ejector & Tipper
TORNOS
BECHLER
1st feed :
5:1
G915/G916
2nd feed :
Frontwork-Gang
4:11
Backwork-Gang
5:2 5:3
G915/G916
The remaining feeds are programmed in the same way (as shown above).
LIST OF PROGRAMS
Set Program Name Next Feed Ev. 2 Ev. 3 Ev. 4 Ev. 5 Ev. 6 Ev. 7
EX_V4_10.CAT
02 EX_V4_10.PGM 02 03 00 00 00 00 00 00
01 INIT.PGM 02 00 00 00 00 00 00 00
03 END_BAR.PGM 04 00 00 00 00 00 00 00
04 NEW_BAR.PGM 02 03 00 00 00 00 00 00
PART INFO
Lx
X0
Z1
Lz Lz : Tool width = 3.0000
Z0
Lx : Overcut in X (on diameter) = 0.8000
T13/T18 Support 13 : Lathe Tool ISCAR GHDL 16−3 Insert GIP−3.4 MT0.05IC 656
T13 T18
X = 13.0000 (WEAR)
X
Y = 3.9500 (WEAR)
Z = −38.6500 (WEAR)
R = 0.0000
Z Q=0
T14/T19 Support14 : Infeed Tool ISCAR GHDR 16−3 Insert GIP−4 00E−0.4IC656P20−P4
T14 T19
X = 13.0000 (WEAR) X = 13.0000 (WEAR)
Y = 4.0700 (WEAR) Y = 4.0700 (WEAR)
X
T15 T20
X = 13.0000 (WEAR) X = 13.0000 (WEAR)
X
ÍÍ
T22 T27
ÍÍ
ÍÍ
X = −20.0000 (WEAR)
X
Y = 0.0000 (WEAR)
ÍÍ
D
Z = −19.7500 (WEAR)
Z D: Diameter = 10.0000
T23/T28 Support 23: Solid Carbide Circular Cutter Z=48 50 mm 3mm−thick Type 5916 APPLITEC
T23 T28
X = −19.5000 (WEAR)
D
Y = 29.0000 (WEAR)
X
Z
L0
D : Diameter = 50.0000
L0 : Width = 2.0000
T24/T29 Support 24 : Infeed Tool TIZIT ID 24624 SDJCL 1616 H11 Insert Utilis DCGT11
T24 T29
X = 0.0000 (WEAR) X = 0.0000 (WEAR)
X
T25/T30 Support 25 : Lathe Tool TIZIT ID 24624 SDJCR 1616 H11 Insert Utilis DCMT 1
T25 T30
X = 0.0000 (WEAR)
X
Y = −4.0400 (WEAR)
Z = −19.5500 (WEAR)
R = 0.8000
Z Q=3
Y = 0.0000
Z = 245.0000 (WEAR)
Z D: Diameter = 6.0000
D
T32/T36 Support 32 : Solid Carbide Drill Type 2005 right 5.8 mm APPLITEC
T31 T35
X = 0.0000 (WEAR)
X
Y = 0.0000
Z = −220.0000 (WEAR)
Z D: Diameter = 5.8000
D
Y = 0.0000
Z = −220.0000 (WEAR)
Z D: Diameter = 6.0000
D
ÀÀÀÀÀÀÀ
ÀÀÀÀÀÀÀ
X0 = 0.0000 (WEAR) X1 = 0.0000 (WEAR)
Z
ÀÀÀÀÀÀÀ
Y0 = 0.0000 (WEAR) Y1 = 0.0000 (WEAR)
ÀÀÀÀÀÀÀ
D: Diameter = 0.0000
ÀÀÀÀÀÀÀ
L0: Tool width = 0.0000
L1: Total width = 0.0000
Teeth: Number of teeth for polygon milling = 0
Angle: Chaser angle = 0000
T41 T45
X = 0.0000 (WEAR)
X
Y = 0.0000 (WEAR)
Z = 120.0000 (WEAR)
Z
D
D: Diameter = 0.0000
T42/T46 Support 42 : Solid Carbide Drill left 4.2 mm Type 1005 APPLITEC
T42 T46
X = 0.0000 (WEAR)
X
Y = 0.0000 (WEAR)
Z = 120.0000 (WEAR)
Z
D
D: Diameter = 4.2000
Y = 0.0000
Z = 120.0000 (WEAR)
Z
D
D: Diameter = 6.0000
ÀÀÀÀÀÀÀ
ÀÀÀÀÀÀÀ
X0 = 0.0000 (WEAR) X1 = 0.0000 (WEAR)
Z
ÀÀÀÀÀÀÀ
Y0 = 0.0000 (WEAR) Y1 = 0.0000 (WEAR)
ÀÀÀÀÀÀÀ
D: Diameter = 0.0000
ÀÀÀÀÀÀÀ
L0: Tool width = 0.0000
L1: Total width = 0.0000
Teeth: Number of teeth for polygoning = 0
Angle: Chaser angle = 0.0000
T51 T54
X = 0.0000 (WEAR)
X
Y = −3.7500 (WEAR)
Z = 40.1000 (WEAR)
R = 0.4000
Z Q=2
T52 T55
ÍÍ
ÍÍ
X = 18.0000 (WEAR)
X
ÍÍ
Y = 0.0000 (WEAR)
Z = 49.8000 (WEAR)
D
Z D: Diameter = 10.0000
ÍÍ
ÍÍ
T53
X = 0.0000 (WEAR)
T56
ÍÍ
X
ÍÍ
Y = 0.0000 (WEAR)
Z = 44.8000 (WEAR)
D
Z D: Diameter = 4.0000
T0 TB-Wizard
4:2: ZERO OFFSET FOR
BACKWORKING
300482 E − 07/99
T11 Loop start
1:2: G13
T16 Unproductive
T25 Spindle function T41 Drilling
1:4: SPINDLE RETRACT
2:2L: M103 S3200 4:4: CENTER ∅ 2.5
0.2 mm, CLEAR TOOL
TORNOS
TO CENTER
32 mm
DECO 2000 Drawing: Sample V4_10
D 0 Program
m No EX_V4_10.PGM
OPERATION LAYOUT
PROGRAMMING − DECO 13
T31 Unproductive
T42 Drilling
3:4: RAPID TRAVERSE
4:7: DRILL ∅ 4.2 depth 14
T31, Z3=0.5
300482 E − 07/99
T25 Unproductive T31 Drilling T43 Unproductive
2:3: RAPID TRAVERSE T25 3:5: CENTER ∅3 depth 7.6 4:8: INDEX T43, Z4=20
TO ∅ 20
T43 Threading
T0 Wizard TB
4:10: THREAD M5 X 0.7
5:3: Macro G915
DEPTH 12
TORNOS
300482 E − 07/99
T25 Spindle function T33 Unproductive T52 Milling
2:7: M103 S2200 3:10: INDEX T33 4:14: MILL 1 FLAT DEPTH 1
T33 Unproductive
T33 Drilling
3:12: BORE ∅6, DEPTH 20
BECHLER
DECO 2000 Drawing: Sample V4_10
D 0 Program
m No EX_V4_10.PGM
OPERATION LAYOUT
PROGRAMMING − DECO 13
T22 Milling
2:10: MILL 2 FLATS THICKN. 13
300482 E − 07/99
T22 spindle function
2:11: M103 S3200
T19 Unproductive
1:9: INDEX T19, X1=50
TORNOS
T14 Turning
1:10: BACK TURN ∅ 12
BECHLER
300482 E − 07/99
T11 Unproductive T25 Spindle function
1:13: INDEX CUTOFF 2:15: M103 S2600
TOOL T11
T40 TB-Wizard
4:17: PART PICKOFF, M110
T11 Turning
1:14: CUTOFF, CUTOFF-
FOLLOWUP
TORNOS
PART PICKOFF
DECO 2000 Drawing: Sample V4_10
D 0 Program
m NO EX_V4_10.PGM
OPERATION LAYOUT
PROGRAMMING − DECO 13
T0 TB-Wizard
2:16: REFERENCING
300482 E − 07/99
T0 TB-Wizard
3:14: REFERENCING
T0 TB-Wizard
4:19: REFERENCING
TORNOS
BECHLER
Operation:1:2 G13
Tool: T11 Axes:Z1 X1 Y1
Code: Duration: 16 ms
(CUTOFF-TOOL POSITION AT LOOP END)
G1 Z1=#2012 X1=#2011 2011 Y1=0 G100 T#2020
(LOOP START)
G13
Operation:1:3 G912
Tool:T16 Axes: Z1 X1 Y1
Code: Duration: 1824 ms
(FEED NEW PART)
G912
Operation:1:16 M105
Tool:T11 Axes: Z1 X1 Y1
Code: Duration:296ms
M105 M9
M800 P1=−1903
(DISABLE DO 1903 TO OPEN MANUALLY)
(PICKOFF-SPINDLE COLLET)
(AT END-OF-CYCLE WITHOUT RESET)
Operation:2:6
Tool: T25 Axes: Z1 X2 Y2
Code: Duration: 0ms
Operation:2:16 REFERENCING
Tool: T0 Axes: Z1 X2 Y2
Code: Duration: 968ms
G52
T0
G1 Z1=#18 X2=#25 Y2=#20 G100
G1 Y2=#26 G100
Operation:3:9
Tool: T32 Axes: Z3 X3
Code: Duration: 0ms
Operation:3:14 REFERENCING
Tool: T0 Axes: Z3 X3
Code: Duration: 280ms
G52
T0
M305
G1 Z3=#24 X3=#19 G100
G1 X3=#25 G100
Operation:4:19 REFERENCING
Tool: T0 Axes: Z4 X4 Y4
Code: Duration: 2240ms
G52
T0
M405
G1 Z4=#24 X4=#19 Y4=#20 G100
G1 X4=#25 G100
G1 Y4=#26 G100
You can interpolate between two master axes only. The default master axes on Comb-Gangs1
& 2 are Z1, X1 & Z1, X2 respectively. The slave axes are Y1 & Y2 respectively.
R3 R3
3
8
The groove must be wider than than the tool plus twice the cutter radius.
Attention ! If the groove is narrower than the tool, it is machined but the tool plunges too
wide in the stock and the TB-DECO does not display this fault.
The only way to display it is to simulate the program before machining.
G1 Z1=−9.7 G100
G1 X1=7.2 G100 G42
G1 Z1=−10 X1=6.6 F0.005
G1 X1=6 F.01
G2 Z1=−10.3 X1=5.4 R0.3
G1 Z1=−13.7 F.01 T11
G2 Z1=−14 X1=6 F.005 R0.3
G1 X1=6.6 F.01
G1 Z1=−14.3 X1=7.2
G1 X1=10 G100 G40
R0.3 R0.3
4
R0.3 R0.3
ISO Code :
M103 S500
G1 Z1=0.5 G100 (RAPID TRAVERSE)
M1
M150
G1 Z1=−2.4 F0.7 (STARTING TRAVEL)
G1 Z1=−9.8 F0.6
M104 S500 (THREADING OFF)
G1 Z1=2 F0.7
M151
G1 Z1=10 G100
ISO Code :
M403 S500
G1 Z4=0.5 G100 (RAPID TRAVERSE)
M1
M150
G1 Z4=−2.4 F0.7 (STARTING TRAVEL)
G1 Z4=−9.8 F0.6
M404 S500 (THREADING OFF)
G1 Z4=2 F0.7
M151
G1 G100 Z4=20