Programming Manual EvoDECO20 32 en
Programming Manual EvoDECO20 32 en
EvoDECO 20 - EvoDECO 32
PROGRAMMING
MANUAL
English version translated from the original version – Ref.: 298392_en
Programming manual - EvoDECO 20 & 32
I. Identification
I.1. Document
Programming manual EvoDECO 20 & 32
No 298392_en
Version manager
OV Translation Edit Date Description
FR 10/17 31/10/2017 First edition, recorded on chart IS_2017
EN 11/17 24/11/2017 First edition, recorded on chart IS_2017
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
I.2. Manufacturer
TORNOS SA
Rue Industrielle 111
CH-2740 MOUTIER / SWITZERLAND
I.3. Products
EvoDECO 20 & 32
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
TABLE OF CONTENTS
3 M Functions.............................................................................. 3-1
3.1 M00 Unconditional program stop....................................................................... 3-5
3.2 M01 Optional program stop................................................................................ 3-5
3.3 M08 / M09 Coolant On / Off ............................................................................... 3-5
3.4 M10 / M11 Spindle collet Open / Close ............................................................ 3-5
3.5 M32 to M39 Tool breakage and part presence control ................................... 3-5
3.6 M45 / M46 Most used, see new function M531 ................................................. 3-6
3.7 M60 New bar being loaded................................................................................ 3-6
3.8 M82 / M83 Activating / Stopping the barfeeder thrust..................................... 3-6
3.9 M84 / M85 Feed / Retract part ejector .............................................................. 3-6
3.10 M110 / M111 Counter-spindle collet Open / Close ......................................... 3-6
3.11 Feed hold.............................................................................................................. 3-6
3.12 Manipulator arm .................................................................................................. 3-7
3.13 Long part ejection................................................................................................ 3-7
3.14 M190 / M191 / M192 Guidebush Closing / Adjustment / Opening ................ 3-7
3.15 M200 Mx My Allows you to initialise another M code (numerical value) ...... 3-7
3.16 M242 M1 Part counter.......................................................................................... 3-7
3.17 15-60-bar pump ................................................................................................... 3-8
3.18 High Pressure Pump ............................................................................................. 3-9
3.19 Reducing the axis torque and checking the servo lag error ........................ 3-10
3.20 M722 M5 M0 / M1 Enable cross or longitudinal spindle S42 .......................... 3-11
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
4 G functions ...............................................................................4-1
4.1 G00 / G100 Linear movement at high speed ................................................... 4-3
4.2 G01 Linear interpolation...................................................................................... 4-3
4.3 G02 clockwise CW circular movement ............................................................ 4-4
4.4 G03 counter-clockwise CCW circular movement........................................... 4-4
4.5 G04 or G4 Dwell in [S].......................................................................................... 4-4
4.6 G17 Selection of main work plane X, Y............................................................. 4-4
4.7 G 18 Selection of main work plane Z, X ............................................................ 4-4
4.8 G 19 Selection of main work plane Y, Z ............................................................ 4-5
4.9 G26 Radius on the edge. L: radius ..................................................................... 4-5
4.10 G27: Chamfer L: chamfer length........................................................................ 4-6
4.11 G28 Return to point of reference........................................................................ 4-6
4.12 G33, G34, G35, Constant, ascending and descending pitch
chase threading .................................................................................................. 4-7
4.13 G40 Cancellation of nose compensation. Mode by default .......................... 4-7
4.14 G41 Nose correction to left of the programmed trajectory ............................ 4-7
4.15 G42 Nose correction to right of the programmed trajectory.......................... 4-8
4.16 Zero offsets ........................................................................................................... 4-8
4.17 G56 Zero offset based on the machine zero point........................................... 4-9
4.18 G55 Additional zero offset based on the initial coordinates
system (part zero)................................................................................................ 4-9
4.19 G54 Additional zero offset based on the current coordinates system......... 4-10
4.20 G53 Delete all additional zero offsets.............................................................. 4-10
4.21 G52 Delete all zero offsets ................................................................................ 4-11
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
4.22 G58 Saves (storage) all the zero offsets and resets of these
offsets for the axes concerned ......................................................................... 4-11
4.23 G59 Restores all zero offsets saved by the last G58 for
the axes concerned. ......................................................................................... 4-11
4.24 G61 / G64 Exact stop / Linked contouring ...................................................... 4-11
4.25 G68 / G69 ........................................................................................................... 4-12
4.26 G70 / G71 Interpretation of inch / metric values............................................ 4-12
4.27 G81 / G82 Linear / circular extension on nose correction ............................ 4-13
4.28 G83 Selection of axes for main interpolation plane (Axis 1, Axis 3) ............. 4-14
4.29 G84 Selection of axes for main interpolation plan (Axis 3, Axis 2) ............... 4-15
4.30 G85 Resetting plane axes by default defined ................................................ 4-16
4.31 G90 Absolute programming (by default) ........................................................ 4-17
4.32 G91 Relative programming............................................................................... 4-18
4.33 G92 Maximum spindle speed limit (with G96) ................................................ 4-18
4.34 G94 Asynchronous feed [mm/min].................................................................. 4-19
4.35 G95 Synchronous feed [mm/turn] (by default)............................................... 4-19
4.36 G96 Constant cut-off speed [m/min] ............................................................... 4-22
4.37 G97 Cancellation of G96................................................................................... 4-23
4.38 G100 Non-productive fast speed movement mode...................................... 4-24
4.39 Chase threading with G130, G131, G33 .......................................................... 4-25
4.40 Gxx50 Cancel polygoning mode of spindle Sxx activated by Gxx51......... 4-28
4.41 Gxx51 Activation of spindle Sxx in polygoning mode ................................... 4-28
4.42 G190 Exact stop mode between segments (by default)............................... 4-29
4.43 G191 Linked contouring mode......................................................................... 4-29
4.44 G314 Circular interpolation for arcs greater than 180° .................................. 4-30
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
5.12 Variable #3011 : Counter-spindle retraction after part pickoff (mm) ............ 5-6
5.13 Variable #3012 : Counter-spindle approach distance before
part pickoff (mm) ................................................................................................ 5-7
5.14 Variable #3013 : Only for EvoDECO 10, Machine position of
the counter-spindle (Z41) for part ejection ....................................................... 5-7
5.15 Variable #3014 : Retraction Z11 for ejecting the remnant............................... 5-8
5.16 Variable #3015 : Feed Z11 for introducing the new bar (mm) ........................ 5-9
5.17 Variable #3016 : Reduction of speed S11 during part feeding ..................... 5-10
5.18 Variable #3017 : Ejection type ......................................................................... 5-10
5.19 Variable #3018: Part gripping distance ........................................................... 5-11
5.20 Variable #3019: Length of bar used................................................................. 5-11
5.21 Variable #3020 : Facing allowance in mainwork........................................... 5-12
5.22 Variable #3021 : Facing allowance in backwork .......................................... 5-12
5.23 Variable #3022 : Anti-collision between the tool support
and the counter-spindle ................................................................................... 5-13
5.24 Variable #3046 : Anticipation of triggering of supply thrust (M11) ............... 5-13
5.25 Variable #3047 : Program part correction time [ms] (G902) ......................... 5-13
5.26 Variable #3175 : Long part, Speed S11 after additional feeding .................. 5-13
5.27 Variable #3179 : Speed S41 at the end of the main program....................... 5-13
5.28 Variable #3186 : Long part, No. of cutting tool guidebush side.................... 5-13
5.29 Taking notes ....................................................................................................... 5-14
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
298392_en - 11/17
Programming manual - EvoDECO 20 & 32
298392_en - 11/17
Programming manual - EvoDECO 20 & 32 - 1. Introduction
1. Introduction
Starting from the part drawing, you just program the part with the aid of the dedicated TB-DECO
interface. You are then given the opportunity to simulate the machining of your part thanks to the
SIM-DECO simulation software. Then you download your program into the machine using the
DNC-DECO communication software.
A new part is generally programmed on the basis of a basic part model. This model comprises,
depending on the mechanical configuration of the machine, the basic structure of the operating
range. Each machine configuration has its own basic part model. These basic part models, which
are particularly useful when creating a new program, are copied onto your hard disk during
installation of TB-DECO.
This document is designed to provide you with all the information required to produce a part
program and is complementary to the TB-DECO instructions for use.
298392_en - 11/17
1-1
1. Introduction - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
1-2
Programming manual - EvoDECO 20 & 32 - 2. Kinematics
2. Kinematics
2.1. EvoDECO kinematics
Fig. 1
298392_en - 11/17
2-1
2. Kinematics - Programming manual - EvoDECO 20 & 32
Fig. 2
298392_en - 11/17
2-2
Programming manual - EvoDECO 20 & 32 - 2. Kinematics
Fig. 3
298392_en - 11/17
2-3
2. Kinematics - Programming manual - EvoDECO 20 & 32
2.1.4.1. EvoDECO 20
Linear axes
Axis Guidebush Reference Soft limits + Soft limits - Stroke
[mm] [mm] [mm] [mm]
X11 167.5 167.5 117.5 50
Z11 Fixed 100 320 100 220
Turning 100 320 100 220
Habegger 100 320 100 220
Self-adjustable 132 320 132 188
Y11 0 185 -5 190
X21 167.5 167.5 117.5 50
Y21 0 185 -5 190
X31 -100 136 -100 236
Z31 407.5 407.5 202.5 205
X41 270 315 -1 316
Z41 335 335 20 315
Y41 0 136 -1 137
298392_en - 11/17
2-4
Programming manual - EvoDECO 20 & 32 - 2. Kinematics
2.1.4.2. EvoDECO 32
Linear axes
Axis Guidebush Reference Soft limits + Soft limits - Stroke
[mm] [mm] [mm] [mm]
X11 167.5 167.5 117.5 50
Z11 Fixed 140 400 140 260
Turning 140 400 140 260
Habegger 140 400 140 260
Self-adjustable 140 400 140 260
Y11 0 185 -5 190
X21 167.5 167.5 117.5 50
Y21 0 185 -5 190
X31 -100 136 -100 236
Z31 407.5 407.5 202.5 205
X41 270 315 -1 316
Z41 335 335 20 315
Y41 0 136 -1 137
Maximum speeds
Spindle Description EvoDECO 20 EvoDECO 32
[rpm] [rpm]
S11 Spindle 10000 8000
S12 Mainwork gang 1 tool spindle (option) 5500 5500
S21 Mainwork gang 2 tool spindle 8000 8000
S31 Frontwork tool spindle 6000 6000
S41 Counter spindle 10000 8000
S42 Backwork tool spindle 8000 8000
298392_en - 11/17
2-5
2. Kinematics - Programming manual - EvoDECO 20 & 32
Stationary tools
Mainwork gang X [mm] Y [mm] Z [mm]
Standard geometries
Mainwork gang 1 127.5 4 -20
Mainwork gang 2 127.5 -4 -20
Geometries: pre-setter
Mainwork gang 1 0 4 -20
Mainwork gang 2 0 4 -20
298392_en - 11/17
2-6
Programming manual - EvoDECO 20 & 32 - 2. Kinematics
Turning tools
Mainwork gang X [mm] Y [mm] Z [mm]
Geometries: Standard
Mainwork gang 1 127.5 0 -25 / -45
Mainwork gang 2 127.5 0 -25 / -45
Geometries: Pre-setter
Mainwork gang 1 0 0 -25 / -45
Mainwork gang 2 0 0 -25 / -45
X = +127.5
298392_en - 11/17
2-7
2. Kinematics - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
2-8
Programming manual - EvoDECO 20 & 32 - 2. Kinematics
298392_en - 11/17
2-9
2. Kinematics - Programming manual - EvoDECO 20 & 32
Turning tools
Standard X [mm] Y [mm] Z [mm]
Standard -127.5 0 45
Pre-setter 0 0 45
298392_en - 11/17
2-10
Programming manual - EvoDECO 20 & 32 - 2. Kinematics
Longitudinal tools
Standard X [mm] Y [mm] Z [mm]
Standard 25 0 187.5
Pre-setter
X=0 0 0 0
298392_en - 11/17
2-11
2. Kinematics - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
2-12
Programming manual - EvoDECO 20 & 32 - 3. M Functions
3. M Functions
Function Description
M00 Unconditional part program stop
M01 Conditional part program stop
M08 Spraying enabled
M09 Cooling power down
M10 Spindle collet closing system
M11 Spindle collet opening
M32 Sensor 1 tool break check
M33 Check sensor 1 missing part
M34 Sensor 2 tool break check
M35 Check sensor 2 missing part
M36 Sensor 3 tool break check
M37 Check sensor 3 missing part
M38 Sensor 3 tool break check
M39 Check sensor 3 missing part
M60 Loading a new bar
M82 Barfeeder thrust enable
M83 Barfeeder thrust off
M84 Counter spindle ejector feed
M85 Counter spindle ejector retract
M110 Close counter spindle collet
M111 Open counter spindle collet
M150 Feed block (axis override = spindle override)
M151 Cancel feed hold
M160 Manipulator arm feed, or part pickup
M161 Manipulator arm or part catcher retract
M162 Manipulator arm pivoting
M163 Manipulator arm pivoting backwards
M164 Manipulator arm collet closing system
M165 Manipulator arm collet opening
M166 Manipulator arm feed to guidebush (Deco 20 1st generation)
M167 Manipulator arm retract in backwork (Deco 20 1st generation)
M180 Long parts ejector forwards option
M181 Long parts ejector retract option
M182 Long parts out forwards
M183 Long parts out backwards
M184 Long parts tipper enable
M185 Long parts tipper disable
M186 Check long parts ejector forwards
M187 Check long parts ejector retract
M188 Check long part catcher tipper forwards
M189 Check long part catcher tipper back
M190 Guidebush closing system
M191 Guidebush adjustment
M192 Guidebush opening
298392_en - 11/17
3-1
3. M Functions - Programming manual - EvoDECO 20 & 32
Function Description
M200 Mx My Allows you to initialise another M code (numerical value)
M242 M1 Part counter
M531 M1 M0 Switch off 15-bar pump
M531 M1 M1 15-bar pump on
M531 M11 M0 Closing spray valve 1, 15 bar pump at ? exits
M531 M11 M1 Opening spray valve 1, 15 bar pump at ? exits
M531 M12 M0 Closing spray valve 2, 15 bar pump at ? exits
M531 M12 M1 Opening spray valve 2, 15 bar pump at ? exits
M531 M13 M0 Closing spray valve 3, 15 bar pump at ? exits
M531 M13 M1 Opening spray valve 3, 15 bar pump at ? exits
M531 M14 M0 Closing spray valve 4, 15 bar pump at ? exits
M531 M14 M1 Opening spray valve 4, 15 bar pump at ? exits
M532 M1 M0 Switch off high pressure pump
M532 M1 M1 Start high pressure pump
M532 M11 M0 HP pump (120-340bars, solenoid valve YV70, closing)
M532 M11 M1 HP pump (120-340bars, solenoid valve YV70, opening)
M532 M12 M0 HP pump (120-340bars, solenoid valve YV71, closing)
M532 M12 M1 HP pump (120-340bars, solenoid valve YV71, opening)
M532 M13 M0 HP pump (120-340bars, solenoid valve YV72, closing)
M532 M13 M1 HP pump (120-340bars, solenoid valve YV72, opening)
M532 M14 M0 HP pump (120-340bars, solenoid valveYV73, closing)
M532 M14 M0 HP pump (120-340bars, solenoid valve YV73, opening)
M532 M21 M1 Selecting feed rate curve No. 1. HP pump (120-340-bars)
M532 M21 M2 Selecting feed rate curve No. 2. HP pump (120-340-bars)
M532 M21 M3 Selecting feed rate curve No. 3. HP pump (120-340-bars)
M532 M21 M4 Selecting feed rate curve No. 4. HP pump (120-340-bars)
M702 M2 My Definition and activation of the axis torque limit (e.g. Z11) (+all the axes)
+M702 M4 M1
M702 M3 My Definition and activation of servo lag control error of Z axis of the
+M702 M5 M1 corresponding channel. (e.g. Z11) (+all the axes)
M702 M4 M0 Cancellation of the axis torque limit (e.g. Z11) (+all the axes)
M702 M5 M0 Cancellation of servo-lag control error. (e.g. Z41) (+all the axes)
M722 M5 M0 Activation of cross spindle S42 (and deactivation of longitudinal spindle S42)
M722 M5 M1 Activation of longitudinal spindle S42 (and deactivation of cross spindle S42)
M741 M1 M1 HF spindle 1 activation
M741 M1 M0 HF spindle 1 deactivation
M742 M1 M1 HF spindle 2 activation
M742 M1 M0 HF spindle 2 deactivation
M751 M1 M1 Starting the whirling device with independent motor
M751 M1 M0 Stopping the whirling device with independent motor
M821 M1 M0 Stop coolant valve system 1 (Mainwork gang 1)
M821 M1 M1 Activate coolant valve system 1 (Mainwork gang 1)
M821 M2 M0 Stop coolant valve system 2 (Mainwork gang 2)
M821 M2 M1 Activate coolant valve system 2 (Mainwork gang 2)
M821 M3 M0 Stop coolant valve system 3 (Frontwork attachment)
M821 M3 M1 Activate coolant valve system 3 (Frontwork attachment)
M832 M6 M1 Opening long part outlet
298392_en - 11/17
3-2
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Function Description
M832 M6 M0 Closing long part outlet
M832 M7 M1 Check opening long part outlet
M832 M7 M0 Check closing long part outlet
M841 M1 M0 Counter spindle cleaning - Air deactivation
M841 M1 M1 Counter spindle cleaning - Air activation
M841 M3 M0 Counter spindle cleaning - oil deactivation
M841 M3 M1 Counter spindle cleaning - oil activation
M841 M2 M2000 Counter spindle cleaning - Air with 2 second timing
M841 M4 M2000 Counter spindle cleaning - Oil with 2 second timing
M890 Auxiliary spindle (HF1, analog,…) (rotation activation)
M891 Auxiliary spindle (HF1, analog,…) (rotation deactivation)
M892 Auxiliary spindle (HF2, analog,…) (rotation activation)
M893 Auxiliary spindle (HF2, analog,…) (rotation deactivation)
M901 M1 M0 Rotation deactivation, HF3 spindle
M901 M1 M1 Rotation activation, HF3 spindle
M901 M1 M0 Deactivation of output 1 on optional socket 1
M901 M1 M1 Activation of output 1 on optional socket 1
M901 M2 M0 Deactivation of output 2 on optional socket 1
M901 M2 M1 Activation of output 2 on optional socket 1
M901 M3 MY Configuration of optional socket 1
M901 M4 Optional socket 1 input check (Pulse 100ms)
M902 M1 M0 Deactivation of output 1 on optional socket 2
M902 M1 M1 Activation of output 1 on optional socket 2
M902 M2 M0 Deactivation of output 2 on optional socket 2
M902 M2 M1 Activation of output 2 on optional socket 2
M902 M3 MY Configuration of optional socket 2
M902 M4 Optional socket 2 input check (Pulse 100ms)
M90x M1 M0 Deactivation of output 1 on optional socket x (x=number of optional socket)
M90x M1 M1 Activation of output 1 on optional socket x (x=number of optional socket)
M90x M2 M0 Deactivation of output 2 on optional socket x (x=number of optional socket)
M90x M2 M1 Activation of output 2 on optional socket x (x=number of optional socket)
M90x M3 MY Optional socket x configuration (x=no. of optional socket)
M90x M4 Optional socket x input control (pulse 100 ms)(x=no. of
optional socket)
M1103 S11 spindle rotation CW
M1104 S11 spindle rotation ACW
M1105 Stop spindle S11
M1203 S12 spindle rotation CW
M1204 S12 spindle rotation ACW
M1205 Stop spindle S12
M2103 S21 spindle rotation CW
M2104 S21 spindle rotation ACW
M2105 Stop spindle S21
M3103 S31 spindle rotation CW
M3104 S31 spindle rotation ACW
M3105 Stop spindle S31
298392_en - 11/17
3-3
3. M Functions - Programming manual - EvoDECO 20 & 32
Function Description
M4103 S41 spindle rotation CW
M4104 S41 spindle rotation ACW
M4105 Stop spindle S4
M4203 S42 spindle rotation CW
M4204 S42 spindle rotation ACW
M4205 Stop spindle S42
Mxx18 Synchronisation of spindle phase N°xx
Mxx19 Oriented stop of the spindle N°xx
Mxx98 Mxx98 : Spindle N°xx switching in rotary axis C, programming in
pseudo Degrees
Mxx98 D : Cylindrical interpolation, switch to rotary axis C,
programming in mm
Mxx98 D-1 : Interpolation in polar coordinates, switch to
rotary axis C
Mxx99 Cancel Mxx98. Re-establishment of spindle mode for Nxx spindle
Mxx15 Only in MDI, serving spindle (Cancellation of Mxx16)
Mxx16 Only in MDI, releasing spindle
298392_en - 11/17
3-4
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Note!
Fixing the detector in place or on a slide.
298392_en - 11/17
3-5
3. M Functions - Programming manual - EvoDECO 20 & 32
Sample Programming
M32 (tool breakage check)
G4 X0.25 (min. timing for check)
Alarm classes
There are two causes for a machine stop: following the detection of a broken tool or a part presence.
- Alarm class 1: The machine stops at the cycle end (machining complete and tools released)
- Alarm class 3: The machine stops immediately (during machining)
298392_en - 11/17
3-6
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Note!
After function M160, it is necessary to program a dwell, for example: G4 X3.
298392_en - 11/17
3-7
3. M Functions - Programming manual - EvoDECO 20 & 32
Note!
If a valve has been activated, you can deactivate and activate another valve without stopping
the pump because the pump is automatically deactivated when the valves are closed.
298392_en - 11/17
3-8
Programming manual - EvoDECO 20 & 32 - 3. M Functions
298392_en - 11/17
3-9
3. M Functions - Programming manual - EvoDECO 20 & 32
For HP pumps that are equipped with one, it is possible to select a feed rate curve:
M532 M21 M1 Selecting speed rate curve No1. 120-340-bar pump
M532 M21 M2 Selecting speed rate curve No2. 120-340-bar pump
M532 M21 M3 Selecting speed rate curve No3. 120-340-bar pump
M532 M21 M4 Selecting speed rate curve No4. 120-340-bar pump
3.19. Reducing the axis torque and checking the servo lag error
NAME OF THE AXIS CONCERNED
- M701: axis X
- M702: axis Z
- M703: axis Y
Note!
The numbering M70x corresponds to the axis numbers as provided in the machine database.
Function M701 always controls axis X of the tool line on which it is programmed. The same applies
to functions M702 and M703.
298392_en - 11/17
3-10
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Introduction:
Turning tools in backwork are driven by 2 different motors. These 2 motors are controlled by the
same function M4203 (CW) or M4204 (CCW). The system must therefore know if function M42xx
needs to control longitudinal or cross tools. This choice is made with function M722 M5 M0/M1.
Choice of motor:
M722 M5 M1 Switch to longitudinal tool motor.
M722 M5 M0 Switch to cross tool motor.
General information:
1. The first status at the input of the main program 3600 must be M722 M5 M1 (longitudinal tools).
(It is started in program INIT 3300 for on program 3500)
2. The last status before the end of the main program 3600 must be M722 M5 M1 (longitudinal tools).
3. The S42 spindle must be stopped before the switching code M722 M5 M0/M1 (provide sufficiently
long dwell after M4205).
4. A sufficiently long dwell must be provided after the switching code M722 M5 M0/M1 (the switching
time is quite slow).
Note!
Points 2, 3 and 4 are compulsory with TB DECO version 8.02.054.
With the future version (8.02.055) point 2 will no longer be compulsory if the program is created
starting from a new model. With this version point 4 is no longer compulsory.
298392_en - 11/17
3-11
3. M Functions - Programming manual - EvoDECO 20 & 32
Note!
This example is valid both in AUTO mode and in MDI mode.
Note!
The following example is valid in AUTO mode.
Note!
The following example is valid in MDI mode.
298392_en - 11/17
3-12
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Note!
For EvoDECO 20/32, the HF 3 spindle is driven by a function M901 (optional socket).
For each optional socket, two outputs as well as two inputs are available. You can:
- Control each output from 1 to 0.
- Control each input from 1 to 0 and generate a message or class 1 or 3 alarm, or even a part program
event. You can also "start" a previously stopped program (stop cycle).
For each OEE output, a simple logic lets you configure the output function.
The controls are made up of M codes.
For detailed explanations and programming examples, refer to the document “Prise options-OEE.pdf”
298392_en - 11/17
3-13
3. M Functions - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
3-14
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Description
The programming of a spindle in rotary axis is done in the same way as a linear axis.
A rotary axis is a single part axis and must be declared in the machine database. Moreover, it must
appear as axis in the operation line as well. These axes are unusual because they don’t always exist
physically even if they appear in an operation line.
Parameter D may contain the value -1 (polar coordinate interpolation) or contain the part diameter,
thus making it possible to work in rotary axis, or cylindrical programming.
If it is omitted, parameter D is placed by default at a value allowing it to have a cylinder with a 360
mm perimeter (Theoretical diameter of 114.5916). This allows you to simulate a work in secondary
axis to make the positioning in a unit equivalent to the degree.
- All the axis functions are authorised in rotary axis except for the interlocking functions.
- The diameter entered under label D cannot be modified when working in rotary axis. A change
can only be made on a switch from spindle to axis.
- Function Mxx98 is modal, thus always enabled until cancelled by Mxx99,
- When using Mxx98, referencing is performed.
- A dwell of 0.6 Sec. is necessary to obtain the reference.
298392_en - 11/17
3-15
3. M Functions - Programming manual - EvoDECO 20 & 32
Use
When using Mxx98, Mxx98 D, Mxx98 D-1 in the ISO code edition, the C axis must be present in the
axis resources. Otherwise, an error message appears: "The spindle switching <-> rotating axis must
be carried out in the working line where the axis is! ".
The operation line which contains the code Mxx98 D-1 for creating machining in polar coordinates,
must include the X or Y axis in main 1, the C axis in main 2 and the third axis (for example Z) in
secondary.
Example with Mxx98
(M4 tapping with C axis)
M1105
G1 G100 Z31=3 X31=0 T1301 D0
M1198
G4 X0.6
G94 G1 Z31=-6 C11=4628.5711 F72000
G4 X0.1
G1 Z31=3 C11=0 F72000
G95
M1199
(C11=DISTANCE Z (approach + Tapping depth / PITCH x 360)
(F=SPINDLE SPEED x 360)
Example with Mxx98 D
(M4 tapping with C axis)
M1105
G1 G100 Z31=3 X31=0 T1301 D0
M1198 D4
G4 X0.6
G94 G1 Z31=-6 C11=161.5676 F2513.274
G4 X0.1
G1 Z31=3 C11=0 F2513.274
G95
M1199
(C11=DISTANCE Z (approach + Tapping depth / PITCH x PI x Tapping Ø)
(F=SPINDLE SPEED x PI x Tapping Ø)
298392_en - 11/17
3-16
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Tool trajectory:
298392_en - 11/17
3-17
3. M Functions - Programming manual - EvoDECO 20 & 32
Note!
The value in X of the starting point must always be positive.
The first main axis must absolutely be an axis of diameter ( X ).
From now on it is also possible to perform Transmit on axes Y and C. The same rules must be applied as
with a Transmit in X and C, the only difference being that the Y axis must be programmed on the radius
and not the diameter like the X axis.
Warning!
The call of tool must take place before the M1198 D-1.
Interpolation example
Milling a square shape:
After switching to polar coordinated mode (M1198 D-1), the X and C axes are defined as follows:
For the part zero to be in the centre of the bar to machine, it is imperative that before the M1198
D-1 switching block, an initialisation block must be placed which calls all the axes. This block must
have the following shape (in the case of the line of operations X21, C11 Z11) :
G1 G100 X21=... Z11=... T...
298392_en - 11/17
3-18
Programming manual - EvoDECO 20 & 32 - 3. M Functions
The rotary axis does not exist at this time. Since this block is an initialisation block, it is not necessary
for a movement to be generated.
Coordinates of axes X and C, of points 1 to 4:
Points X C
1 14 7
2 -14 7
3 -14 -7
4 14 -7
The trajectory is programmed on a new Cartesian plane determined by the X and C axes.
Restrictions
Avoid passing through the centre of the part during an interpolation in polar coordinates. When
passing close to the centre, the feed rate must be reduced so as to prevent sudden movements
(180°) of the rotary axis.
298392_en - 11/17
3-19
3. M Functions - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
3-20
Programming manual - EvoDECO 20 & 32 - 3. M Functions
Note!
- Trajectory 1 - 2 - 3 = programming the traverse
- Trajectory 1 - 2' - 3' = trajectory resulting from the traverse (G42 started)
- The false point (point 2), can be determined graphically. It is only used to perform the traverse
outside the material. Therefore, its precision is not important.
- Stopping of the cutter correction must also be created with the same care as that for programming
the traverse. The axes must be in the same positions (machine position) when the polar coordination
interpolation is stopped (M1199) as well as when it is started (M1198 D-1). Consequently, it may be
necessary to perform a movement around the part before stopping the cutter correction with the
G40 function (lines 11 to 13).
298392_en - 11/17
3-21
3. M Functions - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
3-22
Programming manual - EvoDECO 20 & 32 - 4. G functions
4. G functions
Function Description
G01 Linear interpolation
G02 Clockwise circular interpolation
G03 Anti-clockwise circular interpolation
G04 Dwell in [S] at 100% of load (override)
G17 Selection of main work plane (X, Y) or (X, C)
G18 Selection of main work plane (Z, X)
G19 Selection of main work plane (Y, Z) or (C, Z)
G26 Radius on the edge. L: radius
G27 Chamfer L: chamfer length
G28 Return to axis point of reference
G33 Constant pitch chase threading
G34 Ascending pitch chase threading
G35 Descending pitch chase threading
G40 Cancellation of nose compensation
G41 Nose correction to left
G42 Nose correction to right
G52 Delete all zero offsets
G53 Delete all additional zero offsets programmed by
G54 and G55
G54 Additional zero offset based on the current
coordinates system
G55 Additional zero offset based on the initial coordinates system
(part zero) Cancels G54
G56 Zero offset based on the machine zero point
G58 Saves all the zero offsets and resets of these offsets for the
axes concerned.
G59 Restores all zero offsets saved by the last G58 for the
axes concerned.
G61 Contouring mode with accurate stop. (G61 = G190)
G64 Linked contouring mode. (G64 = G191)
G68 Disable G69
G69 Calculation in 360 module for rotary axis
G70 Interpretation of values programmed in inches.
G71 Metric interpretation of values.
G81 Linear extension on nose correction
G82 Circular extension on nose correction
G83 Selection of axes for main interpolation plane (Axis 1, Axis 3)
G84 Selection of axes for main interpolation plane (Axis 3, Axis 2)
G85 Resetting plane axes by default defined in the operation line (Axis 1, Axis 2).
Cancels G83 or G84
G90 Absolute programming
G91 Relative programming
G92 Maximum spindle speed limit (with G96)
G94 Asynchronous feed [mm/min]
G95 Synchronous feed [mm/rev]
G96 Constant cutting speed [m/min]
298392_en - 11/17
4-1
4. G functions - Programming manual - EvoDECO 20 & 32
Function Description
G97 Cancellation of G96
(G1)G100 Non-productive move mode. (G2)G100 (G3)G100
G130 Chase threading description start.
G131 Chase threading description stop.
Gxx50 Cancel polygoning mode (Gxx51)
Gxx51 Activation of spindle Sxx in polygoning mode
G190 Exact stop mode between segments
G191 Linked contouring mode
G314 Path larger than 180° for G02 / G03 functions
G900 Memorisation of spindle speeds defined in the part
G901 Transfer of the machine and version no. to the NC. Axis reference
position control
G903 Tool indexing (by circular interpolation)
G909 Global variable control and storage
G910 Check of global variables and initial cut
G911 Zero offset calculation in frontwork
G912 Feed a new part
G913 “END BAR” macro
G914 “NEW BAR” macro
G915 Additional zero offset for the axis Z31
G916 Additional zero offset for the axis Z41
G917 Polygoning macro
G920 Global variable control
G921 Zero offset calculation in backwork
G923 Counter-spindle part ejection with part catcher
G933 Thread machining at tool
G942 Machining a long part
G943 Machining a long part
G957 Inclined milling macro
G960 Milling macro for inclined thread
G962 Inclined milling macro
G963 Milling macro for inclined thread
G977 Drilling/deburring
G978 Thread machining at tool. Addition to G933
298392_en - 11/17
4-2
Programming manual - EvoDECO 20 & 32 - 4. G functions
Description of Parameters
X Y Z : Coordinates of the linear segment final point, with axis number.
T: Calls a new tool geometry and a new tool corrector.
Use
The G0 or G100 function needs to be used carefully during locking. The position of the axes during
their movement may not be complied with when one of the two axes is moved in fast speed while
the other is in the machining phase.
Examples
- G0 X11=26 Z11=1 T1102
- G01 G100 X31=0 Z31=50 T1302
298392_en - 11/17
4-3
4. G functions - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
4-4
Programming manual - EvoDECO 20 & 32 - 4. G functions
Syntax
- G19 G03 (G02) Y Z R F
The circular interpolation clockwise and anti-clockwise direction is set by looking at the plane to
machine according to the axis which is perpendicular to it but in a negative direction.
Note!
The switch depends on the axes present in the line of operations.
I.e. three axes are required (X,Y,Z) or (X,C,Z) to be able to use these functions.
298392_en - 11/17
4-5
4. G functions - Programming manual - EvoDECO 20 & 32
Note!
The values programmed under the label L are memorised separately for G26 and G27. If it is
omitted, G26 or G27 will use the last value programmed under G26 or G27.
The last value programmed under label E is memorised and is common for the G26 and G27
functions. If programming of this value is omitted, the last value programmed under G26 or G27
will be used.
If this value does not exist, the last speed value programmed for the segments will be used.
Caution!
It is prohibited to program G28 except for in the INIT program, as this is the only place where the
real position of the axis is unknown.
Risk of collision: if no axis is specified, all the axes in the operation line return to their reference point
at the same time!
In the other programs (especially in the main program), the system variables #24, #25, #26 must
be used to send the axes to their respective reference position. See chapter Description of system
variables.
298392_en - 11/17
4-6
Programming manual - EvoDECO 20 & 32 - 4. G functions
4.12. G33, G34, G35, Constant, ascending and descending pitch chase threading
These functions are used in combination with G130 / G131
G33 Constant pitch chase threading
Syntax
- G33 G1 X Y Z F
- F thread pitch in mm/rev
Example
G33 G1 Z11=-15 F1
Note!
The contouring functions G1, G2 and G3 and G100 can be used with G33
Note!
Mode G40 is placed by default at the beginning of each new operation
298392_en - 11/17
4-7
4. G functions - Programming manual - EvoDECO 20 & 32
Example
298392_en - 11/17
4-8
Programming manual - EvoDECO 20 & 32 - 4. G functions
In the basic model, the initial values of G56 are considered at the beginning of each program.
Example
G56 Z31=#2019 (operation 3:1)
4.18. G55 Additional zero offset based on the initial coordinates system (part zero)
G55 deletes G54
Syntax
G55
Example
G55 Z11=40
298392_en - 11/17
4-9
4. G functions - Programming manual - EvoDECO 20 & 32
4.19. G54 Additional zero offset based on the current coordinates system
This offset is additional for the axes concerned.
Syntax
G54
Example
G54 Z11=10
Note!
G54 is used in macro G915.
Example
G53 (Enabled for all axes of the operation line)
G53 Z31 (Enabled only for Z31 axis)
298392_en - 11/17
4-10
Programming manual - EvoDECO 20 & 32 - 4. G functions
Example
G52 T0 (Enabled for all axes of the operation line)
G52 Z41 (Enabled only for Z41 axis)
4.22. G58 Saves (storage) all the zero offsets and resets of these offsets for the axes concerned
This allows you to work with relation to the machine zero point.
Example
- G58 (Enabled for all axes of the operation line)
- G58 Z11 (Only active for Z11)
4.23. G59 Restores all zero offsets saved by the last G58 for the axes concerned.
Example
- G59 (Enabled for all axes of the operation line)
- G58 Z11 (Only active for Z11)
298392_en - 11/17
4-11
4. G functions - Programming manual - EvoDECO 20 & 32
The functions G70 and G71 are used to change the units used in the part program or a part of the
part program.
The selection is made in the machine database in the Interface Adaptation topic box.
For the Inch machine (IsMachInch()), the number of decimal values edited by the Edit global
variables dialogue box and Fixing correction changes from 3 to 4.
298392_en - 11/17
4-12
Programming manual - EvoDECO 20 & 32 - 4. G functions
298392_en - 11/17
4-13
4. G functions - Programming manual - EvoDECO 20 & 32
4.28. G83 Selection of axes for main interpolation plane (Axis 1, Axis 3)
Syntax
- G83
Main interpolation plane with Master Axes 1 and Auxiliary.
Example
Main interpolation plane with Z and Y Axes.
Z11
Y21
G83
298392_en - 11/17
4-14
Programming manual - EvoDECO 20 & 32 - 4. G functions
4.29. G84 Selection of axes for main interpolation plan (Axis 3, Axis 2)
Syntax
- G84
Main interpolation plane with Master Axes 2 and Auxiliary.
Example
Main interpolation plane with Y and X Axes.
X21
Y21
G84
298392_en - 11/17
4-15
4. G functions - Programming manual - EvoDECO 20 & 32
Example
Main interpolation plane with Z and X Axes.
Z11
X21
G85
298392_en - 11/17
4-16
Programming manual - EvoDECO 20 & 32 - 4. G functions
You can also switch the main axes in order to always have the main interpolation plane with the
Master 1 and Master 2 axes (G85).
Z11
Y21
G85
298392_en - 11/17
4-17
4. G functions - Programming manual - EvoDECO 20 & 32
S: Maximum authorised speed in rpm of the spindle in G96 mode. This speed must be less than the
machine database value. If the value is negative, the maximum speed in Mxx04 is used.
S is automatically displayed after entering G92 (xxxx is the numerical 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.
This function is applied to the use of the G96 function. G92 limits the maximum spindle speed to a
value less than that of the machine database.
This function is used before the G96 function, if it is necessary to limit the maximum spindle speed.
Example 1
G92 S6000 (M1103)
G96 S130
G1 G100 Z11=0 X11=21 T1102 D0
G1 G95 X11=-0.5 F0.1
G1 Z11=2 X11=21 G100
Example 2
G92 S-6000 (M1104)
G96 S-130
G1 G100 Z11=0 X11=21 T1102 D0
G1 G95 X11=-0.5 F0.1
G1 Z11=2 X11=21 G100
298392_en - 11/17
4-18
Programming manual - EvoDECO 20 & 32 - 4. G functions
For the DECO command all the axes are independent. Consequently there is no connection between
the spindle rotation speeds and the axis movement speeds. The management of feeds in mm/rev is
performed in TB-Deco according to the programmed rotation speeds. The feeds are then converted
into mm/min.
The programmed feedrate in mm/rev is only real on the machine when the overrides of the spindles
and axes are at 100 % or when the overrides of the spindles and axes are the same.
To prevent any speed reference problems for calculating the speed in mm/rev, we recommend
programming:
- S11 and S12 in the operation line “MAINWORK GANG 1”.
- S21 in the operation line “MAINWORK GANG 2”.
- S31 in the operation line “FRONTWORK”.
- S41 and S42 in the operation line “BACKWORK”.
298392_en - 11/17
4-19
4. G functions - Programming manual - EvoDECO 20 & 32
S3 speed change: the programmed speed does not use the axes of the operation line in which S3
is programmed as a reference. The feed calculation is not correct. S3 speed will be 10,000 rev/min,
but the feed will be calculated with the speed of 5,000 rev/min previously active.
298392_en - 11/17
4-20
Programming manual - EvoDECO 20 & 32 - 4. G functions
G95
S11
2000
G95
298392_en - 11/17
4-21
4. G functions - Programming manual - EvoDECO 20 & 32
P1= : Axis 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.
(Example: If you want to apply G96 on axis Y, write P1=Yxx).
To obtain the best cut-off conditions in turning, a different rotation speed is needed with each
change in machine diameter. The constant cut-off speed performs 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.
The G96 function can be used various times on the same spindle, only the first G96 requires the
speed parameter S. TB-DECO will then take the value S by default which is specified in the previous
G96 function associated to the same spindle:
- The feed is programmed in [mm/rev] (G95), it is recalculated with each variation of the spindle speed.
- If the feed is programmed in [mm/min[ (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.
The G96 function 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).
Example 1
G92 S6000 (M1103)
G96 S130
G1 G100 Z11=0 X11=21 T1102 D0
G1 G95 X11=-0.5 F0.1
G1 Z11=2 X11=21 G100
Example 2
G92 S-6000 (M1104)
G96 S-130
G1 G100 Z11=0 X11=21 T1102 D0
G1 G95 X11=-0.5 F0.1
G1 Z11=2 X11=21 G100
Initial cut in constant cutting speed after RESET
The initial cut macro (G910) is in the INITIAL_CUT program.
After a RESET, in order to be able to cut the bar with a constant cutting speed, use the P2 (cutting
speed in m/min) and P3 (max spindle rotation limit) parameters.
Example
G910 P2=90 P3=5000
298392_en - 11/17
4-22
Programming manual - EvoDECO 20 & 32 - 4. G functions
Note!
In a program in inches, the programming unit for a constant cutting speed is in feet/min. The
value given in m/min (in P4) will be converted into feet/min. therefore, add P6=1. The 90 m/min
will therefore be calculated correctly.
Example
G92 S5000
G914 P4=90 P5=1 P6=1
G97
Constant cutting speed in the cutting operation of the main program
Example
G92 S6000 (Limitation of number of revolutions S11)
G1 X11=#2032 G100 (#2032 = #3001 + Safety clearance)
G96 S120 (Activates the constant cutting speed of 120 m/min)
G1 X11=2 F0.02
G1 X11=-0.5 F0.01
G97 S#2033 (Cancellation of G96 and return to the initial speed of spindle S11 for looping at end
of cycle)
298392_en - 11/17
4-23
4. G functions - Programming manual - EvoDECO 20 & 32
This function is used to optimise unproductive movements. The system initially determines the
fastest speed possible between the starting point and the end point of the axis.
If the axis reaches its end point too soon, it will have to wait before being used. If this is the case,
the system will recalculate a weaker feedrate, so that the axis reaches the position just before
being used.
Provided that energy optimisation is on.
The G100 function needs to be used carefully during locking. The position of the axes during their
movement may not be complied with when one of the two axes is moved in fast speed while the
other is in the machining phase.
Example
298392_en - 11/17
4-24
Programming manual - EvoDECO 20 & 32 - 4. G functions
298392_en - 11/17
4-25
4. G functions - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
4-26
Programming manual - EvoDECO 20 & 32 - 4. G functions
To increase or decrease the number of strokes just change the infeed feed (Feed movement) and
then count the strokes obtained using the simulation (SIM_DECO)
The chase threading movement is a loop. It is mandatory to return to the starting point, if not the
alarm FC1016 “Looping error in the chase threading cycle” appears.
Note!
Feed F to be programmed in the case of an outlet at 45 degrees between points 3 and 4, for
example G1 Z11=-0.613 X11=1.226 F… G33.
To respect the 1mm pitch on axis Z, the inclination of the segment must be considered. In fact, the
feed F is applied on the segment, in the same way as for turning. The designed pitch on this
segment is calculated as follows:
Designed pitch = real pitch / cos (angle)
Designed pitch = 1 / cos (45) = 1.414
298392_en - 11/17
4-27
4. G functions - Programming manual - EvoDECO 20 & 32
Note!
If the ratio R (Number of faces / Number of teeth) is not a whole number (point number), the
value of R must be calculated according to the formula:
R = (Number of teeth of the cutter) x 256 + (Number of faces).
Example
Front cutting in mainwork with the cutter assembled on mainwork gang 2.
- Number of teeth of the part: 9
- Number of teeth of the cutter: 4
- Cutting ratio R: 9/4 or 2.25
Explanation
In the function G2151, the value of parameter R cannot be a point number. Therefore, the following
calculation must be performed:
• R = (256 x No. of teeth of the cutter) + No. of teeth of the part
• R = (256 x 4) + 9
• R= 1033
Starting from this number, TB-DECO must be able to drive the motors S11 and S21, synchronising
them for correct machining.
Note!
The polygoning tool T must be active BEFORE
The rotation direction of the spindle is inverted by:
- The programming of a Mxx04 before the call of Gxx51
- A negative Q value.
298392_en - 11/17
4-28
Programming manual - EvoDECO 20 & 32 - 4. G functions
Example:
Polygon with 4 faces, device with 2 teeth : ratio = 4/2 => R=2. Spindle S21
- Code : G2151 R2 Q0
- Error measured on the part: 10°
- Phase shift to be programmed: 10° x 2 = 20°
- New code: G2151 R2 Q20
298392_en - 11/17
4-29
4. G functions - Programming manual - EvoDECO 20 & 32
Example
298392_en - 11/17
4-30
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
The part global variables allow you to exchange data between the different programs.
These variables can be edited from the part manager by the Edit/Global Variables... menu or from
# of Part manager.
The range of these variables is the part. They are fully saved with the part.
They are initialised at 0 when the program is opened.
298392_en - 11/17
5-1
5. Global part variables - Programming manual - EvoDECO 20 & 32
This variable is used when working with offset tools in relation to the cutter and if working at the
rear of the part with this tool.
298392_en - 11/17
5-2
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
Example
#3004= 6.
When the following alarm Axis Z1 goes beyond the limits occurs, when interpreting the operations,
this may be due to a failed stroke of the spindle, for creating the part.
For example:
• when working with an offset tool or
• when programming a position greater than the part length.
In both cases, it is necessary to perform a feeding greater than the part length, by entering a value
in the variable #3004.
Calculation of the value to enter in variable #3004:
1. Use the geometry of the most offset tool.
2. Subtract the cutting tool (cutting side) geometry from that geometry.
3. Take the the longest programmed position with the most offset tool.
4. Subtract the part length from this position.
5. Take the result of point 2 and add the result of point 4.
6. Enter the obtained absolute value (positive) in variable #3004.
Example 1
Part length: - 10 mm
Geometry of the most offset tool: -18
Cutting tool geometry: -16.5
Programmed position: -12 (greater than the part length)
1. Geometry of the most offset tool: -18
2. Subtract the cutting tool geometry from that geometry: (-18) - (-16.5) = -1.5
3. Longest programmed position: -12
4. Subtract the part length from this position: (-12) - (-10) = -2
5. Result of point 2 + result of point 4: (-1.5) +(- 2) = -3.5
6. Absolute value of point 5 to be entered in #3004: 3.5
7. Tip: enter a value of 4
Example 2
Part length: -10 mm
Geometry of the most offset tool (transversal drill): -25
Cutting tool geometry: -16.5
Programmed position: -8 (smaller than the part length)
1. Geometry of the most offset tool: -25
2. Subtract the cutting tool geometry from that geometry: (-25) - (-16.5) = -8.5
3. Longest programmed position: -8
4. Subtract the part length from this position: (-8) - (-10) = 2
5. Result of point 2 + result of point 4: (-8.5) + 2 = -6.5
6. Absolute value of point 5 to be entered in #3004: 6.5
7. Tip: enter a value of 7
298392_en - 11/17
5-3
5. Global part variables - Programming manual - EvoDECO 20 & 32
This variable is used in the “END BAR” program, Macro G913, to deburr the remnant before
extracting it from the guidebush.
This variable is only necessary if the deburring position is not at the height of part zero.
Example
#3005= 1.3
5.8. Variable #3007 : Dwell [S] after the opening of the collet
Note!
When feeding a part, a dwell is added between the opening of the collet and the retraction of
the spindle.
The default value is 0.5 seconds.
298392_en - 11/17
5-4
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
5.9. Variable #3008 : Dwell [S] after the closing of the collet
Note!
When feeding a part, a dwell is added between the closing of the collet.
The default value is 0.5 seconds.
5.10. Variable #3009 : Counter-spindle part pickoff distance for the cut-off (mm)
Note!
The part pickoff distance must be expressed from part zero to the front of the collet.
298392_en - 11/17
5-5
5. Global part variables - Programming manual - EvoDECO 20 & 32
Note!
The counter-spindle collet geometry must be measured from the counter-spindle nut face to the
collet nose.
This value is entered as negative in the global variable #3010.
Note!
The retraction to make with the counter-spindle, after part pickoff, is entered in variable #3011.
298392_en - 11/17
5-6
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
5.13. Variable #3012 : Counter-spindle approach distance before part pickoff (mm)
Note!
The counter-spindle is positioned at a distance set in variable #3012, in relation to part zero.
5.14. Variable #3013 : Only for EvoDECO 10, Machine position of the counter-spindle (Z41) for
part ejection
Note!
On EvoDECO 10, to eject the part, the counter-spindle must retract in Z41 to the machine
position defined in variable #3013.
298392_en - 11/17
5-7
5. Global part variables - Programming manual - EvoDECO 20 & 32
Note!
When changing the bar, the remnant is ejected from the guidebush with the aid of the spindle in
the closed collet (END_BAR program, macro G913).
A standard retraction of 30 mm is already provided in the macro.
If you wish to increase this retraction, a value must be added to the default value, in variable #3014.
- A positive value increases the retraction,
- A negative value reduces the retraction.
Example
Fixed initial retraction of 30 mm
Variable value #3014: 10 mm
Total retraction = 30 + 10 = 40 mm
298392_en - 11/17
5-8
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
5.16. Variable #3015 : Feed Z11 for introducing the new bar (mm)
Note!
After positioning the bar for the barfeeder, axis Z11 of the spindle advances for the introduction
of the new bar into the guidebush (NEW_BAR program, macro G914). In the macro, an initial
fixed feed of 30 mm is provided. If this feed is not sufficient, it is possible to increase it by entering
a value in variable #3015.
- A positive value increases the feed,
- A negative value reduces the feed.
Example
Fixed initial feed of 30 mm
Variable value #3015: 10 mm
Total feed = 30 + 10 = 40 mm
Caution!
The following ratio must be respected: #3015 < #3014 or #3015 = #3014, otherwise an error appears
and a Program limit Z11- exceeded alarm in the NEW_BAR program.
298392_en - 11/17
5-9
5. Global part variables - Programming manual - EvoDECO 20 & 32
The variable #3016 allows the rotation speed of the spindle (S11) to be reduced when the following part
is fed, to prevent scratches on the diameter of the bar.
This speed reduction is effective when running macro G912 (feeding), while the spindle collet is open.
After running Macro G912, the spindle returns to the rotation speed defined in the dialogue box
Initial spindle speed.
298392_en - 11/17
5-10
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
Note!
Normally, the ejector feed is not necessary when the part is ejected with the jaws. If you wish
to clean the collet with air or with oil, the ejector must be activated. In fact, the cleaning of the
collet is controlled with the same function as the ejector feed.
Note!
Variable #3019 is not used in “Short part” models (in 1 feed).
Note!
Variable #3019 corresponds to the actual length of the bar used for machining a certain number
of parts. It is determined as follows.
298392_en - 11/17
5-11
5. Global part variables - Programming manual - EvoDECO 20 & 32
Note!
1) This function is available from version TB-DECO ADV 2004. For all programs carried out in version
5.xx or 6.xx, after conversion to ADV version, variables #3020 and #3021 can be used. The old
programs where the facing function in mainwork or backwork are programmed with the aid of
code G54 Z1=… and G54 Z4=… can be adapted as follows:
- a) Modify #3003. The length must be that of the finished part
- b) Delete G54 Z1 or Z4 programmed for the facing allowances
- c) Enter the values of the allowances previously programmed by the G54 in variables
#3020 or #3021.
- d) Position Z1 for cutting, re-establish Z1 = #2012 => length of finished part in negative,
considering #3021.
2) The B variant models (facing) no longer exist in the databases of ADV 2004 version models.
298392_en - 11/17
5-12
Programming manual - EvoDECO 20 & 32 - 5. Global part variables
5.23. Variable #3022 : Anti-collision between the tool support and the counter-spindle
An anti-collision barrier could be activated when using the tool support with 3 bores, diameter 25
for frontwork tools.
This barrier protects against any collision between the tools support and the counter-spindle.
Note!
When using No. of tools reserved for the tool support, if the anti-collision barrier is not activated,
TB-DECO will produce the following warning: “GENERATOR1059: Caution. Anti-collision tool
support inactive.
However, if the measurement of the part length (Data D2160) cannot be performed correctly during
this amount of time (after establishing the holding torque), the value contained in variable #3046 can
be increased.
5.26. Variable #3175 : Long part, Speed S11 after additional feeding
The value S11 is taken from the initial spindle speed.
5.27. Variable #3179 : Speed S41 at the end of the main program
The value S41 is taken from the initial spindle speed.
5.28. Variable #3186 : Long part, No. of cutting tool guidebush side
This geometry is used for performing the 1st feeding of a long part.
298392_en - 11/17
5-13
5. Global part variables - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
5-14
Programming manual - EvoDECO 20 & 32 - 6. Global program variables
298392_en - 11/17
6-1
6. Global program variables - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
6-2
Programming manual - EvoDECO 20 & 32 - 6. Global program variables
6.23. Variable #2139, Long part, position Z for the 2nd feeding
This is position <PR> of Z11
- 1) To clamp the bar in the jaws in view of additional feeding.
OP 1 :9 of the long part model.
- 2) For additional feeding. OP 1 :11 of the long part model.
This position is defined for each feeding in the G942-Macro by parameter P2 (Position <PR> of the Z
axis for clamping the bar).
6.24. Variable #2141, Long part, No. of the retention claws of mainwork gang 1
Default value = 1101. Or according to the value entered for Macro G942 P4.
6.25. Variable #2142, Long part, No. of the retention claws of mainwork gang 2
Default value = 1201. Or according to the value entered for Macro G942 P5.
For EvoDECO PTO, the following variables are no longer available for the user.
#3180 to #3190.
Caution!
In the case of a PNC program using these variables (parameter programming), after conversion
to PTO, the variables #31xx need to be replaced by other available variables.
298392_en - 11/17
6-3
6. Global program variables - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
6-4
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Note!
The final point of the movement is equal to the starting point, but for the new tool.
For example for mainwork gang 2, the indexing will be performed on the X21 and Y21 axes:
Position <PR> in starting X, diameter 20.
Position <PR> in arrival X, diameter 20.
In Y, the arrival position <PR> will be Y0.
298392_en - 11/17
7-1
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Parameter P1
The end of bar position can be modified on barfeeders SBF-216 and SBF-532 for the machines
EvoDECO PTO and Deco PTO.
Example
- G909 P1=50, the end of bar arrives 50mm before the position calculated by TB-Deco.
- G909 P1=-10, the end of bar arrives 10mm after the position calculated by TB-Deco.
Caution!
This parameter must not be used for entering the bar further forward in the guidebush.
298392_en - 11/17
7-2
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Parameter P4
The barfeeder thrust value is automatically adapted according to the diameter of the bar used.
These values are set by default in TB-DECO.
Values entered by default in TB-DECO:
Bar diameter Thrust
? 4 mm 10 %.
> 5 and ? 7 mm 12 %.
> 7 and ? 9 mm 15 %.
> 9 and ? 13 mm 20 %.
> 13 and ? 18 mm 23 %.
> 23 and ? 25 mm 25 %.
> 25 mm 27 %.
For special cases, the user can change the default value of the capacity. The capacity can be
changed in parameter P4 of the program's G909 macro
Example
Barfeeder capacity blockage at 15 %.
Op 1.10 of the INIT program: G909 P4=15
Caution!
The capacity must not in any case go beyond the 30 % value.
298392_en - 11/17
7-3
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
7-4
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
7.8. Macro G913: END_BAR program, deburring and remnant ejection after the Bar end signal
Macro used in program O3800 (END_BAR).
Description
- Deburring the remnant by hobbing.
- Deburring the remnant by straight turning while using a neutral cutting tool.
- Spindle retraction for ejecting the remnant from the guidebush.
- Loading order M60.
Mo
ve
me
nt
dir
ec
tio
n
Setting parameters:
P1 Main spindle speed S11. This parameter is optional. It is used to select the rotation speed [rpm]
of the spindle during the introduction of the new bar. If P1 is omitted, the default rotation speed will
be 300 rpm. This parameter is only used during feeding with an automatic barfeeder.
P3 Chamfer length. This parameter is optional.
P4 Chamfer angle. This parameter is optional.
P5 Chamfering feed. This parameter is optional. By default the initial cut feed defined in variable
#3002 is taken into consideration.
P6 Machine position in X with cutter. This optional parameter allows the cutter to be placed after
loading a new bar, to prevent the bar crossing the guidebush (the tool acts as a stop).
Only valid with barfeeder SSF-107 on Deco10 and EvoDECO10.
Note!
Based on the “BarLoader” variable in the machine database (*.MACH) active, the G913 cycle is
treated differently.
298392_en - 11/17
7-5
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
EvoDECO 10 PTO DECO 20 and 26 PTO EvoDECO 16 PTO EvoDECO 20/32 PTO
0 = Hydraulic or 0 = Hydraulic or 0 = Hydraulic or 0 = Hydraulic or
Mechanical Mechanical Mechanical Mechanical
Feed Tube Feed Tube Feed Tube Feed Tube
1 = ROBOBAR SSF 107 1 = ROBOBAR SSF 226 1 = ROBOBAR SSF 226 1 = ROBOBAR SSF 226
or FMB or FMB or FMB
2 = ROBOBAR SSF 210 2 = IEMCA 2 = IEMCA 2 = IEMCA
or FMB
3 = IEMCA 3 = LNS 3 = LNS 3 = LNS
4 = LNS TRYTON 4 = SBF 532i, 3 metres 4 = SBF-216i, 3 metres 4 = SBF 532i, 3 metres
5 = SSF-107 5 = SBF 532i, 4 metres 5 = SBF 216i, 4 metres 5 = SBF 532i, 4 metres
watchmaking
6 = SBF-216i, 3 metres 6 = SBF-320e
7 = SBF-216i, 4 metres
8 = SBF-212e
9 = SBF-320e
298392_en - 11/17
7-6
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Note!
The combination of P1 and P2 allows a certain number of blanks to be cut with a length with set
parameters when the new bar is positioned. After cutting, the blanks fall into the chips.
If parameters P1, P2, P3, P4, P5, P6 and P7 are omitted or if P1=0, P2=0, P3=0, P4=0, P5=0, P6=0 and
P7=0, the cycle runs as standard, without blanks.
Caution!
The blank must not be too long, otherwise the spindle stroke will not be sufficient and an alarm will
be generated.
298392_en - 11/17
7-7
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Explanations:
- In the operation 1:5, the turning tool has finished machining. At this moment, the part zero position
is no longer known of Z31 and if you wish to perform some frontwork such as centring, the macro
G915 must be used.
- The Macro G915 is programmed in operation 3:3. A constraint is necessary at the end of operation
1:5 and the start of operation 3:3, as it is after the last movement of axis Z11 in operation 1:5 that a
zero offset needs to be performed on axis Z31 to allow the current position of the part zero to be
found again.
- At the end of the frontwork it is compulsory to cancel the zero offset. This is performed in operation
3:5 by code G53 Z31 which cancels the additional zero offset performed by Macro G915 on the
Z31 axis in operation 3:3.
298392_en - 11/17
7-8
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Explanations:
- Operation 1:6 positions the cutting tool in Z11 at the start of tip cutting. Then it is necessary to take
the part and follow with the Z41 axis during tip cutting.
- Given that at this time the position of the Z11 axis does not correspond to the length of the total
part, the part pickoff distance will not be correct. Therefore, G916 must be used to calculate an
intermediate part pickoff distance.
- The Macro G916 is programmed in operation 4:7. A synchronisation is necessary at the end of operation
1:6 and the start of operation 4:7, as it is after the last movement of axis Z11 in operation 1:6 that a zero
offset needs to be performed on axis Z41 to allow the intermediate part to be picked.
- In operation 4:8 the standard TB wizard manages part pickoff.
- After picking the part, it is important to cancel the zero offset in operation 4:12 using code G53 Z41.
G53 Z41 cancels the additional zero offset performed by G916 on the Z41 axis in operation 4:7.
Operation 4:13 performs the retraction after picking the standard part.
298392_en - 11/17
7-9
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Note!
The geometry of the polygoning attachment, for the Y axis is 0 mm.
is
rk ax
Wo
298392_en - 11/17
7-10
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
298392_en - 11/17
7-11
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Attention!
X21 is at the diameter, so the value of Y21 is divided by 4.
For a 0.05 mm correction on a polygoned diameter:
- the correction will be for X21: 0.05 mm
- the correction will be for Y21: 0.05 / 4 = 0.0125 mm
To increase the polygoned diameter by 0.05 mm:
- the correction will be for X21: 0.05 mm
- the correction will be for Y21: -0.0125 mm
To reduce the polygoned diameter by 0.05 mm:
- the correction will be for X21: -0.05 mm
- the correction will be for Y21: 0.0125 mm
Note!
The movement to follow above does not take into consideration the angle of 26.565°. If the correction
has to be extremely precise, the following rule must apply:
W = diameter correction value:
For correcting a polygoned diameter
- the correction will be for X21: 0.8944 x W
- the correction will be for Y21: X2/4
To increase the polygoned diameter by 0.05 mm:
- the correction will be for X21: 0.044 mm
- the correction will be for Y21: -0.011mm
To reduce the polygoned diameter by 0.05 mm:
- the correction will be for X21: -0.044 mm
- the correction will be for Y21: 0.011 mm.
298392_en - 11/17
7-12
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Note!
The geometry of the polygoning attachment, for the Y axis is 20 mm.
298392_en - 11/17
7-13
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Retraction
The machine ref. is on the face of mainwork gang 1.
298392_en - 11/17
7-14
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
#3017=0
The extraction is carried out by retraction of the counter-spindle after the collet grips the part. At the
cycle start, function M160 (manipulator arm feed) is enabled. The stroke required for extraction is based
on the length of the part in the counter-spindle.
The counter-spindle is positioned according to variable #3018, which is the part pickoff distance
and the T2450 geometry, in order to grip the part with the collet.
Pivoting of manipulator arm by function M162, collet closing by function M164.
Counter-spindle collet opening and counter-spindle retract to eject.
Return of manipulator by functions M163, M161. The part is still in the manipulator collet.
Mach. ref.
#3017=1
At the cycle start, function M160 (manipulator arm feed) is enabled.
The counter-spindle is positioned according to the T2450 geometry so that the cage is always flush
with the nut of the counter-spindle.
Pivoting of manipulator arm by function M162, closing of both cage parts by function M164.
Counter-spindle collet opening and ejector activation by function M84. Delay.
Return of the ejector by function M85, return of the manipulator by functions M163, M161. The part
is still in the cage.
#3017=2
The ejection process is identical when variable #3017=0. But once the part has been ejected by
the retracting movement of the counter-spindle, the ejector is enabled by functions M84 and M85
to clean the collet.
298392_en - 11/17
7-15
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Note: Eleven optional parameters are available for changing certain functions of Macro G923.
They include:
P1: To eject the part from the counter-spindle, the latter retracts at a rate given in parameter P1.
By default, the rapid feed rate (20000 mm/min) is used. In the event of parts that are delicate to
manipulate, a reduced feed rate can be programmed.
P2: A dwell is programmed after the ejector feed by function M84. By default, the timing is 0.7 s.
P3: The manipulator arm feeds due to function M160. It takes 3 seconds to perform its trajectory. A
dwell is programmed after M160. To shorten the duration of the ejection operation, this dwell can
be cancelled by programming a value in P3.
Attention!
There is the risk of collision between the manipulator arm and the counter-spindle.
Therefore, M160 must be programmed before the operation that contains G923, about 3
seconds before.
P4: To eject the part from the counter-spindle, the latter retracts by a length equal to the part
pickoff length plus a safety distance of 5 mm. Parameter P4 allows you to modify this safety
distance.
P5: Parameter P5 allows you to cancel the function for the cleaning of the counter-spindle collet
with air when the value of variable #3017 is 1 or 2.
P6: This dwell is necessary when the ejector rod comes out of the counter-spindle collet and the
cage is used. It allows you to prevent the ejector rod from hampering or obstructing the return of
the manipulator arm. By default, the timing is 0 s.
Only valid when variable #3017 = 1
P7: Dwell between the end of the manipulator arm pivoting (M162) and the cage closing (M164)
[s].
P8: This parameter is used to activate part extraction with the movement in Z41 broken down into
two sequences, with parts of diameter > 20 mm.
P8 = 0 normal extraction (see figure 2.1.1)
P8 = 1 extraction in two Z4 sequences (see figure 2.1.2)
298392_en - 11/17
7-16
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
298392_en - 11/17
7-17
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
In the WITHOUT_MATERIAL3 program, if P1 is not programmed or =0, the counter will stop at one.
The machine will continue to work, empty. This allows its work temperature to be maintained.
298392_en - 11/17
7-18
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
When an optional parameter is not specified within the command line, a default value is automatically
used during the cycle. This value by default is set as follows:
P5: Threading tool angle: A tool at 60° is taken into consideration be default. In the cycle, the angle is
then divided by 2, and 2° is subtracted to have a penetration which does not directly follow the thread
edge. E.g.: (60 / 2) - 2 = 28°. For a straight penetration enter 0°.
P6: Thread height : Metric threading at 60° is considered by default.
In that case H = 0.61343 * P0.
P7: Entry angle at the start of threading: An entry angle of 45° is considered by default. For a straight
entry, for example when threading starts outside the part enter 90°.
P8: Exit angle at the end of threading: The same as P7, for a straight exit enter 90°
P9: Safety margin: Distance between the tool tip and the diameter X0. By default 0.2 mm at radius)
This value can be increased if the last thread is not good. In this case the calculation point during
tool exit will be longer in the X direction and the last thread will be complete.
Attention!
If exit is at 45°, there is a risk of collision with a face if the value of P9 is too high.
P10: Physical limit at the start of threading: Not used, has no influence in the macro.
By default P10 = 2 x P0.
P11: Physical limit at the end of threading: Not used, has no influence in the macro.
P12: Number of blank strokes: The number of blank strokes is calculated as follows by default:
diameter X0 + 0.5, the integer without decimal point is used.
For example for an M6 threading: 6 + 0.5 = 6.5, integer = 6 blank strokes.
Note!
The parameters P12 to P14 set a number of strokes to perform during chase threading.
The programmed number of strokes is a guideline value. It is likely that during chase threading on
the machine the sum of strokes actually performed will vary by a bit (± 1 stroke) compared to the
programming. Due to certain factors, like reaching the encoder signal which occurs with each
stroke, it is impossible to guarantee a number of exact strokes during the calculation of G933.
P15: Max. physical limit: Distance between the diameter P1, and a physical barrier in the X axis
direction for example in the case of internal threading, the hole diameter. The return is performed
in circle arc.
By default, P15 = 5 mm + P6 + P9. The parameter P15 is used in the cycle to calculate (by default)
the radius of the return trajectory. (TB-DECO version 4.0)
By default, P15 = (threading length/2) - 0.1) + P6 + P9. The parameter P15 is used in the cycle to
calculate (by default) the ideal radius of the return trajectory. (Since TB-DECO version 4.1)
P16: Speed factor: This factor is used to reduce the speed during return in tool emptying. By default
this parameter is 1, and if violent knocking is noted on the machine during chase threading, it is
possible to decrease the feed by entering, for example, 0.5 in P16. Minimum setting 1, maximum
setting 0.1.
298392_en - 11/17
7-19
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Note!
The default values are converted into inches when programming in inches.
Description of the information FC 1045: “High rotation speed. Trajectory modified! Careful of
internal chase threading!” This information occurs with interpretation of Macro G933 when the
thread is composed of a small thread height (P6), of a fairly large pitch (P0) and a high rotation
speed. In this case the trajectory calculated by G933 results in segments which are too short and
impossible for the machine too perform. If the FC 1045 information is conformed, G933 lengthens
certain segments in order to obtain a trajectory which is compatible for the system. During
internal chase threading this modification of the trajectory may cause a collision of the tool with
the material. In this case, decrease the rotation speed until information FC 1045 disappears.
Programming
The threading cycle G933 can be programmed as follows:
Example for threading M5, Ig. 12
M1103 S1900
G1 Z11=2 G100
G1 X11=8 G100
M150
G933 P0=0.8 P1=5 P2=2 P3=-12 P5=0 P12=5 P13=0 P14=2 P15=10
M151
G1 X11=20 G100
Attention!
The spindle speed must be programmed in the operation where G933 is found.
M150 ensures that threading is done well with OVERRIDE of the enabled spindle at that time.
298392_en - 11/17
7-20
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
This function is used in the MAIN program of TB-Deco models for long parts. It checks whether the
model used is really a long part model.
Parameters P2 to P6 can only be programmed from the 2nd feed.
Parameters P4 to P6 can only be programmed in the model with feeding using jaws. They are not
accepted in the model with feeding using the counter-spindle.
P1: This parameter is compulsory. It contains the new part length being machined after feeding.
Positive value measured from part zero [mm/inch].
During the last feed, the value of the parameter must be equal to the length of the part defined in
variable #3003.
P2: This parameter is compulsory, starting from the 2nd feed. It cannot be programmed for the 1st
feed. It determines the position in Z at which the bar will be retained. Position in Z from part zero in
absolute programming mode (negative value) [mm/inch].
P3: This parameter is optional. Barfeeder surplus necessary for an offset tool. This parameter is only
used for intermediate feeds. For the first and last feed, variable #3004 is taken into consideration
[mm/inch].
P4: This parameter is optional. By default it is tool T1101. Only valid with the barfeeding model with jaws.
P5: This parameter is optional. By default it is tool T1201. Only valid with the barfeeding model with jaws.
P6: This parameter is optional. Retention diameter. The default value is 0 and it corresponds to the
bar diameter. It is important to enter the exact retention diameter [mm/inch]. Only valid with the
barfeeding model with jaws.
298392_en - 11/17
7-21
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Use
After positioning of the tool at the starting point, to program macro G957 with its different
parameters. The macro forces a selection of plane G85.
Note
- This function is only valid for machines equipped with the CNC option.
- The macro uses 8 parameters from P1 to P11.
- Parameters P1 to P5 are mandatory. If any one of them is not specified within the command line,
an alarm appears.
- Parameters P6 to P8 are optional. If any one of them is not specified within the command line, a
default setting is used in the macro.
Caution!
The parameters P2 and P3 set the dimension of the 2 ellipse axes, in the plane set by the parameter P4,
that for the path of the centre of the cutter. P2 for the X axis and P3 for the Y axis. These 2 values can
only be obtained by CAO, by drawing the cutter in the extreme positions in X and Y. It is impossible to
find these 2 values without the aid of drawing software (CAO).
The same is true for the parameter P4, the plane inclination angle can only be determined by CAO.
298392_en - 11/17
7-22
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
298392_en - 11/17
7-23
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Sample Programming
The example described below was carried out on a DECO 13a machine, with backwork cutting of
the implant.
Part image in 3D :
Machining principal
In the 2 views below, it is possible to see the inclined cone of the implant and the position of the
cutter in the 2 ends. This is for the plane Z-Y (positions 12h and 6h) and X-Y (positions 9h and 3h).
Note!
The two views must be obtained on CAD in order to find the settings of the different parameters
to enter in the macro!
View of plane X-Y. This view represents the part and the cutting equipment viewed from the
interior of the counter-spindle (left side of the machine).
298392_en - 11/17
7-24
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Use
After positioning of the tool at the starting point, to program macro G960 with its different parameters.
The starting point is always situated outside of the part, and even if the machining is done from the
interior to the exterior, the movement at the hole bottom is generated by the macro.
Note
- This function is only valid for machines equipped with the CNC option.
- The macro uses 7 parameters from P1 to P7.
- Parameters P1 to P5 are mandatory. If any one of them is not specified within the command line,
an alarm appears.
- Parameters P6 and P7 are optional. If they are not specified within the command line, a default
value is used in the macro.
298392_en - 11/17
7-25
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
P3 Threading pitch:
Positive value: the tool positions in G100 at the bottom of the hole and machining is by removal.
Negative value: the tool positions outside the material, machining is done by penetrating the hole
and the output is carried out in G100.
P4 Number of circles of radius ‘P2’ to describe:
The threading length will be determined by the setting of P4 multiplied by the threading pitch P3. If
using a thread milling cutter, one revolution is generally sufficient, therefore P4=1.
For thread whirling the length of the thread must be divided by the pitch. The parameter always
needs to be an integer.
P5 Tool peripheral speed in turn per minute:
Minimum setting 1, maximum setting 900.
Approximate setting in rpm of movement of the tool during X, Y and Z interpolation.
P6 Number of points on the circumference:
Default value = 8. Minimum setting 8, maximum setting 360.
Number of points set on the ellipse circumference. By increasing this number of points, the straight
segments which describe the ellipse and the machined form become closer to the ideal curve.
Conversely, a too low number of points will cause significant faces on the thread which will not be
functional. Based on various tests, a setting of 30 points is a good starting base.
P7 Work plane:
By default = 0. (0= plane XZ, 1= plane Y-Z).
The parameter P7 is used to set the work plane based on the tool position. This plane is parallel to
the tool movement axis.
Note!
In the operation containing macro G960, the main axis 1 (Master1) must always be the Z axis.
If P7=0, the main axis 2 (Master2) will be the X axis and if P7=1 the main axis 2 (Master2) will be the
Y axis.
P7 = 0, so Master1 = Z, and Master2 = X
P7 = 1, so Master1 = Z, and Master2 = Y
298392_en - 11/17
7-26
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Sample Programming
The example described below was carried out on Deco 20, in backwork with inclined drilling in
position T2411 and thread whirling in T2413.
Part drawing:
298392_en - 11/17
7-27
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Representation of the tool viewed from the drawing to calculate parameter P2:
The above diagram represents the thread whirling tool positioned in the hole. The radius (P2) is
determined according to the formula (exterior diameter of the thread – milling/thread whirling
tool diameter) / 2, i.e. ( 2 – 1.4) /2 = 0.3
ISO Code of the inclined thread whirling operation, M2x0.4, depth 2.5 :
G1 Z41=-3.647 G100
G1 X41=-7.366 G100
G960 P1=-60 P2=0.3 P3=0.4 P4=8 P5=30 P6=30, P7=0
G4 X.5
G1 X41=-12 G100
G1 Z41=40 G100
298392_en - 11/17
7-28
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
This graphic representation shows the position of the axes X41 and Z41 where it is possible to clearly
see the 8 interpolated circles programmed in P4.
Note!
Macro G960 can also be used for inclined drilling, to avoid calculating the tool trajectory on
plane X-Z. It is sufficient to program a null value in parameter P2, and a value of -1 in parameter
P3. The depth is entered in the parameter P4.
Example of the ISO code for inclined drilling in the previous example:
M4204 S6000 (DRILLING LENGTH 4 mm)
G1 Z41=-3.647 G100
G1 X41=-7.366 G100
G960 P1=-60 P2=0 P3=-1 P4=4 P5=200 P7=0
G1 X41=-12 G100
298392_en - 11/17
7-29
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
7-30
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
298392_en - 11/17
7-31
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Sample Programming
Here is an extract of code (variant A) for performing machining:
- Standard machining:
G1 G100 Z41=2 M4203 S8000 (Machining start position + Tool start at 8000 rpm)
G962 P1=20 P2=-4 P3=800 (Hexalobe machining cycle)
298392_en - 11/17
7-32
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
The number of blanking steps is defined according to the depth of the print (P2) and the depth of
the plunge per spindle revolution (P5).
There is only one finishing step.
The number of empty steps is determined by parameter P8.
If the spindle is already oriented at the cycle start, keep the same orientation for hex milling.
Otherwise, stop the spindle and orient it at 0 degrees.
If the spindle turns at cycle start it will be restarted automatically at the end of milling.
Macro parameters
298392_en - 11/17
7-33
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Cycle behaviour
In the part you will see how the cycle is performed in standard mode.
Before programming your cycle in operation, you must first start the rotation of the machining tool.
Then, you can enter your cycle. It is not necessary to stop your spindle and position it, the cycle
does this for you. Nevertheless, if you wish to start machining at 30° instead of at 0°, only in milling
mode, you must program the spindle stop and position it at 20° before the cycle.
Once the cycle has started, there are numerous steps before machining the shape.
1. Test if the necessary axes have been selected. Be careful as the choice of axes determines the
type of machining.
- Machining in transmit mode:
Main axis 1 = " X "
Main axis 2 = " X "
Slave Axis = " Z "
Sample Programming
Here is an extract of code for performing machining:
- Standard machining:
G1 G100 Z41=2 M4203 S8000 (Machining start position + Tool start at 8000 rpm)
G963 P1=10 P2=8 P3=0 P4=100 (Hex screw machining cycle)
- Machining with positioning of spindle at 30°
M4105 (Stop spindle S41)
M4119 Q30 (Positioning of spindle at 30°)
G4 X0.2 (Dwell for positioning)
G1 G100 Z41=2 M4203 S8000 (Machining start position + Tool start at 8000 rpm)
G963 P1=10 P2=8 P3=0 P4=100 (Hex screw machining cycle).
298392_en - 11/17
7-34
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Fig. 3
Fig. 4
298392_en - 11/17
7-35
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Note!
At the end of the cycle, the drill bit returns to the end of deburring position, as shown on Fig. 4.
After deburring, the drill bit returns to the last position reached minus the value of parameter P5.
The feed per revolution (G95) or feed per minute (G94) must be selected before calling the cycle.
The default drilling feed P9 is always defined in [mm/rev] or [Inch/rev].
Description of Parameters
P6: Number of times the ø for the first drilling:
The parameter F is used to program a distance for the first drilling, equivalent to the ø of the bit
multiplied by the parameter P6. By default the distance performed during the first drilling is 5 times
the drill bit Ø.
P7: Number of times the ø for the second drilling:
The same as P6, but for the second drilling. By default the distance performed during the second
drilling is 3 times the drill bit Ø.
P8: Number of sequential strokes:
When the parameter P8 is specified, the cycle uses a mathematical formula which determines the
various drilling depths in a sequential manner for each stroke. The values given to the parameters
P6 and P7 (first and second drilling) influence the sequence of the tool in the material. When all the
strokes defined in parameter P8 have been carried out, all the following ones are executed with a
sequence equal to parameter P1 (bit diameter), until the final depth (P3).
P9: Drilling feed:
The drilling feed by default is calculated as follows: Ø of the drill bit multiplied by 0.01.
P10: Height of the drill bit tip:
The parameters P10 contains a distance used when the centring operation is carried out with the
bit. In this case the centring feed considered will be that contained in parameter P11. By default a
drill bit at 120° is considered where the height of the tip is equal to 0.288 multiplied by the ø of the
drill bit.
P11: Centring feed:
Feed during centring, according to the distance set in parameter P10. If P11=0, there is no
centring. By default P11=0.
P12: Drill bit outlet feed:
It is possible to give a feed for the bit retraction, to prevent deleting the hole. Then the cycle
deburrs in G1 with P12=F (feed). If P12=0, the drill bit retraction is in fast speed (G100). By default
P12=0.
P15: Feed of drill bit return after deburring:
For delicate drilling, it is possible to give a feed for the return of the drill bit in the hole which has just
been deburred. The cycle effects the return movement in the hole in G1 with P15=F (feed). If
P15=0, the drill bit return is in fast speed (G100). By default P15=0.
298392_en - 11/17
7-36
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Breakdown of strokes
1. Use of default parameters:
- P6=5, P7=3
- The first stroke is performed a distance 5 times the drill bit diameter.
- the second three times the drill bit parameter.
- the next strokes 1 time the drill bit diameter until the final depth.
G977: by default
P6=5, P7=3
Drilling distance
Stroke number
Stroke number
298392_en - 11/17
7-37
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Stroke number
Stroke number
Example
G1 G100 Z31=3 X31=0 T1302 D0
G977 P1=3 P2=0 P3=-15 P4=3 P5=0.5 P6=1.5 P7=1.5 P9=0.05
G1 G100 Z31=3
298392_en - 11/17
7-38
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
298392_en - 11/17
7-39
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Tool path with fixed insertion (90°) and exit angles (P8).
Note!
In the figures above, the tool is drawn at the starting point (1). The tool path for creating a stroke
is as follows: 1 – 2 – 3 – 4 – 1.
It is not necessary to precisely position the tool at the starting point before calling the cycle, the
program does it in fast feed.
At the end of the cycle, the tool is positioned in fast feed at starting point 1 (figure above).
Description of Parameters
When an optional parameter is not specified, a default setting is used.
298392_en - 11/17
7-40
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
P15 Insertion angle in the thread. Measured from the thread edge: P15 is used to manage the
insertion trajectory of the tool in the thread. Various possibilities are available based on the value
of the parameter. They include:
If P15=0, the tool will exactly follow the edge of the thread based on its angle (P6)
If P15= positive value between 0 and (P6 / 2), the tool will follow the edge of the thread with an
angular offset corresponding to the value of P15 (?). Default setting: 2°.
If P15= P6 / 2, the tool will penetrate in the thread following a trajectory perpendicular to the
threading axis, exactly in the middle of the thread, regardless of the value of ?.
If P15= negative value between 0 and ( – P6 / 2), the tool will make a trajectory alternating
between following one edge then the other.
The angular offset applied on each edge corresponds to the value of P15.
298392_en - 11/17
7-41
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
P16 Feed speed reduction F for the return segment to the starting point: The value is expressed in %.
Min. value = 0, max. value = 100.
By default P16 = 80 %. This parameter can be used to soften the movement when return to the
starting point creates heavy stress for the machine.
P17 Entry angle at the start of threading: Value fixed at 90°, except for special cases.
P18 Threading with front / rear side of the tool: P18 allows the side of the tool with which the material will
be machined to be chosen. In practice, it inverts the machining side of the tool or not. Useful function
for shape threading for example.
- By default P18=0
- If P18=0, then the machining side is the one located on the tool feed side (front side).
- If P18=1, then the machining side is the one located opposite the tool feed side (rear side).
298392_en - 11/17
7-42
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Use
Break down of blank and finishing strokes
The height is called "automatic blank stroke". The threading height to be carried out in automatic
blank is calculated with the following formula: = P7 - P11 - (P12 x P13)
As described above, the height of strokes in area a is created with a formula used to obtain a
constant volume of chip removal.
A check is made to see if the blank height ? exists: If the height of the finishing strokes (P12 x P13)
added to the height of the first blank (P11) is greater than the height of thread P7 an error is
generated.
Complete threading in blank strokes
To implement threading only with blank strokes, just program the parameters P12=0, P13=0, and
only use P10
Example
G978 P1=1.25 P2=8 P3=1 P4=-15 P10=10 P12=0 P13=0
In this case the complete threading height will be implemented using the regression formula. By
default the first stroke will be carried out with a height of 0.2 mm if P11 is not specified. The height
of the following strokes will always be lower and regressive until the total height is created.
Complete threading in finishing strokes
To implement threading only with finishing strokes, just program the parameters P10=0, P11=0, and
only use P12 and P13
Example
G978 P1=1.25 P2=8 P3=1 P4=-15 P10=0 P11=0 P12=20 P13=0.03
In the case the complete threading height will be implemented with strokes with a height
corresponding to the value of the parameter P13. If the number of finishing strokes programmed in
the parameter P12 is not sufficient for obtaining the entire thread height, the cycle automatically
adjusts the value of P12.
Threading in one stroke (deburring)
It is possible the implement the thread height in one stroke, for example to deburr a thread. In this
phase only one finishing stroke is programmed in parameter P12, entering the total thread height
in parameter P13. It is necessary to have P10=0 and P11=0. The parameters P7 and P13 must be
equal, otherwise two strokes will be made. Thus it is advisable to calculate the value of the
parameter P7 according to the formula described in its description.
Example
G978 P1=1.25 P2=8 P3=1 P4=-15 P7=0.902 P10=0 P11=0 P12=1 P13=0.902
298392_en - 11/17
7-43
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
Tapered threading
To create tapered threading, just program different values in the parameters P2 and P5, based on
the desired taper.
Normal threading is defined horizontally based on cylindrical machining (P2=P5 in X).
For tapered threading, the difference between parameters P2 and P5 defines a slope δ. After
calculation of angle δ, a revolution is carried out around point 1. The thread start coordinates (P3)
and thread end (P4) will then be slightly offset in the direction of Z, due to the rotation (distances
P3’ and P4’).
Conversely, the pitch and distance measured perpendicularly to slope d of the threading (P3 – P4)
are exactly as programmed.
In the figure above the angle ? is equal to 15°. The offsets P3’ and P4’ become minute if a thread
which is not very tapered is created. In this case, it is possible to ignore this longitudinal offset and
adjust the thread start or end in Z with the numerical control wear correctors as needed.
298392_en - 11/17
7-44
Programming manual - EvoDECO 20 & 32 - 7. Macros and cycles
Programming examples
1. Metric external threading M8 x 1.25, L 15 mm
G1 Z11=1 G100 (Positioning of the starting point approximately in Z).
G1 X11=10 G100 (The same in X).
M150
G978 P1=1.25 P2=8 P3=1 (Programming the cycle with the 4 compulsory parameters).
P4=-15
M151
G1 X11=20 G100 (Clearance in X after performing the cycle).
G978 P1=-1 P2=5 P3=1 P4=-8 (Programming the cycle with the 4 compulsory parameters and
P9=0.05 P9 fixed at 0.05 for minimum clearance).
M151
G1 X11=20 G100 (Clearance in X after performing the cycle).
G1 Z11=0.0393 G100
G1 X11=0.3937 G100
M150
M151
G1 X11=0.7874 G100
298392_en - 11/17
7-45
7. Macros and cycles - Programming manual - EvoDECO 20 & 32
298392_en - 11/17
7-46
Programming manual - EvoDECO 20 & 32 - 8. Use of the model
8.1.1. Introduction
This document aims to describe how to pause a part counting cycle without disturbing the part
counting function, which remains active.
This method can be applied for example following: production of a batch of 1000 parts and
stopping the production of all 20 parts so as to access the inside of the machine to release the
surplus chips.
8.1.2. Conditions
It is preferable to use the latest TB-DECO part model.
This method must be applied for each TB-DECO part program whose function is to be applied.
8.1.3. Method
8.1.3.1. INIT program
From the model, add operation 1.12 (ISO type):
298392_en - 11/17
8-1
8. Use of the model - Programming manual - EvoDECO 20 & 32
Note!
Other variables # can also be used.
<<#501=#501+1;>>
<<IF[#501EQ#500]GOTO5;>>
<<GOTO10;>>
<<N5;>>
<<#501=0;>>
M9
M0
M8
<<N10;>>
298392_en - 11/17
8-2
We keep you turning
TORNOS SA
Spare parts online
shop
Rue Industrielle 111
CH-2740 Moutier
Phone +41 (0)32 494 44 44
Fax +41 (0)32 494 44 03
tornos.com [email protected]