Navigation

  • Page 1

    D. ELECTRONSi n ce 1977 H i - Techfor t h e Mach i n e - To ol CNC Z32 Programming guide (Lathes) Document M335 C2 – 20.02.08 Read thoroughly before installationContains important information on: • programming This manual contains information exclusively devo...

  • Page 2

  • Page 3

    CNC Z32 - Programming Guide (LATHES) CONTENTS 5,1. 5, 5,INTRODUCTION 5,.................................................................................................................................................... 5,1 5, 6,2. 6, 6,BASE PROGRAMMING 6,....................................

  • Page 4

    CNC Z32 - Programming Guide (LATHES) 52,4.5 52, 52,INCOMPATIBLE 52, 52,PROFILE 52, ERROR 52,............................................................................................................... 52,48 52, 52,4.6 52, 52,DISPLAYED POSITIONS AND 52,RADIUS CORRECTION 52,.................

  • Page 5

    CNC Z32 - Programming Guide (LATHES) 1. INTRODUCTION This manual contains a simplified description of Z32 control programming. This document doesn’t contain a detailed description of all functionalities available, focusing only on the most common and useful for the programming of lathe machin...

  • Page 6

    CNC Z32 - Programming Guide (LATHES) 2. BASE PROGRAMMING 2.1 Introduction The base programming Z32 numerical controls follows the indications of ISO directions. The program for a workpiece (or part-program) is a text file composed by a series of instructions stored in sequential way. The ISO li...

  • Page 7

    CNC Z32 - Programming Guide (LATHES) • All functions and settings related to RTCP (rotating tool centre point) are disabled at reset. • At reset, all high speed settings are restored with the corresponding parameters contained in the machine setup. Please consult the machine tool builder f...

  • Page 8

    CNC Z32 - Programming Guide (LATHES) - At least one number must be programmed (the zero value is programmed with one or more “0” characters) - The division between integer and decimal part may be indicated either with “.” (point) and with “,” (comma). All following sample programmin...

  • Page 9

    CNC Z32 - Programming Guide (LATHES) 1.1. F (Feed) parameter and Feed management (G93 G94 G95) The F parameter defines the feed velocity during machining and it is programmed writing the letter F followed by the desired feed value (numeric value with a maximum of 9 significant digits). • Prog...

  • Page 10

    CNC Z32 - Programming Guide (LATHES) 2.3 M Functions The M functions (miscellaneous) are mainly related to the machine tool behavior and their functionality is mostly defined by the machine tool builder. All M functions require a machine stop. The ISO standards indicate the functionality of many...

  • Page 11

    CNC Z32 - Programming Guide (LATHES) 2.4 Auxiliary functions MA, MB, MC Besides M auxiliary functions, the Z32 control offers to the machine tool builder three more auxiliary functions categories (MA, MB, MC) sent to the machine logic. The MA, MB and MC functions may be programmed with 9 signifi...

  • Page 12

    CNC Z32 - Programming Guide (LATHES) 2.6 Functions for origins recall (workpiece coordinate system) To set the workpiece coordinate system, the workpiece origins are used. Workpiece origins are defined by the user and define the position of the machining inside the working field. When a workpi...

  • Page 13

    CNC Z32 - Programming Guide (LATHES) It is possible to recall the workpiece origins on a single axis. For example, after having selected the origin OX1 OZ1, it is possible to set a new reference only for the Z axis, leaving unchanged the X reference defined before. Nell’esempio al lato l’...

  • Page 14

    CNC Z32 - Programming Guide (LATHES) 2.7 T parameter and tool change The T parameter is devoted to the tool change, together with the M6 function. The digits following the T letter indicate the tool number to recall. The T parameter has the purpose to prepare the machine for the tool changing (...

  • Page 15

    CNC Z32 - Programming Guide (LATHES) 2.8 Tool corrections: length (LX and LZ) and radius (R) The corrections for a lathe tool are referred to the tool tip. The corrections are stored in LX and LZ. LX is the correction along the X axis, while LZ is the correction along the Z axis. The tool cor...

  • Page 16

    CNC Z32 - Programming Guide (LATHES) In the example below, some horizontal and vertical walls are machined, with a tool zeroed in position 1. XZ10-4010050 Nell’esempio al lato è possibile eseguire il profilo desiderato, programmando i movimenti: X0 Z0 X50 Z-40 X100 E’ possibile programma...

  • Page 17

    CNC Z32 - Programming Guide (LATHES) 2.9 Tool parameters modification (DLX, DLZ, DDR) It is possible to modify the tool length corrections or the tool radius, without modifying the actual stored corrections. The LX and LX correctors may be modified through the parameters DLX and DLZ. The corre...

  • Page 18

    CNC Z32 - Programming Guide (LATHES) 2.10 Cancellation and suspension of origins and lengths (G53 G54 G45) These functions must be used by expert programmers. To cancel an origin it is necessary to program the base origin, for example: OZ0 OX0 To cancel the tool length corrections it is neces...

  • Page 19

    CNC Z32 - Programming Guide (LATHES) 2.11 Contouring plane The function allowing to define the working plane is the G25 function. Example: G25ZX defines a working plane composed by the axes Z and X (in that order). This is the standard configuration for a lathe. The contouring plane defines th...

  • Page 20

    CNC Z32 - Programming Guide (LATHES) 2.12 Movement programming (G0 G1 G2 G3) The programming of machine movements happens through the functions: G0: rapid movement G1: linear interpolation G2: circular CW interpolation G3: circular CCW interpolation The ISO standard states that all G functions ...

  • Page 21

    CNC Z32 - Programming Guide (LATHES) ZX200Rapid movement (G0) G0 X200 Z10 The G0 function specifies a rapid movement, executed with the maximum speed allowed on the machine. Only linear movements can be programmed in rapid mode, allowing the programming of more than one axis. If...

  • Page 22

    CNC Z32 - Programming Guide (LATHES) Linear interpolation (G1) ZX200100380T1 M6 OZ1 OX1 G96 S100 MS2000 M3 G95 F0.3 G0 X200 Z5 G1 Z0 G1 X380 Z-100 M2 Attenzione: con profili conici e utensili raggiati è necessario tenere in considerazione la correzione dovuta al raggio utensile. The G1 fu...

  • Page 23

    CNC Z32 - Programming Guide (LATHES) Circular interpolation (G2 – G3) Allows to program a circular arc. The direction of the linear interpolation is set with G2 or G3. In case the working plane G25ZX has been specified, the following rule apply: G2 - clockwise machining G3 - counterclockwis...

  • Page 24

    CNC Z32 - Programming Guide (LATHES) The circle may be also defined in a second way, i.e. by specifying the positions of the final point and the radius of the circle. In this case, the syntax of the G2/G3 movement becomes: G2 Z… X… RA… F… or G3 Z… X… RA… F… Z is the final positi...

  • Page 25

    CNC Z32 - Programming Guide (LATHES) The execution of the circle must consider the radius of the tool insert. If the radius correction feature of the CNC (described in the appropriate chapter of this manual) is not used, the programmed profile must be corrected in order to obtain the desired mac...

  • Page 26

    CNC Z32 - Programming Guide (LATHES) Helical interpolation (G12 – G13) The function G12 allow the execution of helical interpolations. The function G13 disables this mode. The position programmed for the third axis is reached at end movement, together with the two axes of the plane. The velo...

  • Page 27

    CNC Z32 - Programming Guide (LATHES) 2.13 Incremental coordinates programming (G90 G91) The programming of incremental positions happens through the G91 function. The syntax is as follows: HX.. G91 Starts the incremental programming in micron The parameter HX defines the scale of increment e...

  • Page 28

    CNC Z32 - Programming Guide (LATHES) 2.14 Mirroring, rotation, translation, scale factor With these functions it is possible to translate, rotate, mirror and scale a workpiece program. Please note that all these transformations are made on programmed positions, instead of measured positions. 2...

  • Page 29

    CNC Z32 - Programming Guide (LATHES) 2.14.2 25

  • Page 30

    CNC Z32 - Programming Guide (LATHES) Machining rotation (IR JR QR) Through the rotation functions it is possible to rotate the machining of an angle QR, around a point of coordinates IR and JR. The rotation may be set only on the working plane defined with G25. On a normal lathe, the working pl...

  • Page 31

    CNC Z32 - Programming Guide (LATHES) Machining translation (DA DB) The functions DA and DB allow to translate the program along the axis defined by the working plane. DA executes a translation along the first axis DB executes a translation along the second axis For example, on a lathe with ZX ...

  • Page 32

    CNC Z32 - Programming Guide (LATHES) Scale factor The KP parameter defines the scale factor on the working plane. On a lathe, KP applies the scale factor on the plane ZX. YXKP = 2 The scale factors are automatically applied after programming the parameters KP and KT. At Reset KP=1 KT=1 2...

  • Page 33

    CNC Z32 - Programming Guide (LATHES) 2.15 Other functions 2.15.1 Dwell (G4 TT..) The dwell value, expressed in seconds, is indicated by the parameter “TT” which can be programmed on the same line of G4 function, or in a preceding line. Example: G4 TT2.5 (dwell of 2.5 seconds) This functi...

  • Page 34

    CNC Z32 - Programming Guide (LATHES) Alive axes management (G28, G29) One axis is defined as “alive” when its position is controlled by the NC, also if it is stand still. • The function G28 (modal, with stop) asks the NC to maintain under control the axis also when it is not interested ...

  • Page 35

    CNC Z32 - Programming Guide (LATHES) 2.15.4 Suspending and resuming Tool change (G38, G39) By programming G39 it is possible to suspend the automatic execution of tool change. When the function G39 is active, the M6 (tool change) is no more automatically executed, provoking instead a machine ST...

  • Page 36

    CNC Z32 - Programming Guide (LATHES) 2.15.8 Diametrical programming (G107) Specific function for lathes. Modal, active at reset for lathes, cancels and is canceled by G106. After G107 the X position and the associated J parameter are considered as diameters (i.e. the physical movement is the ha...

  • Page 37

    CNC Z32 - Programming Guide (LATHES) Sets the positive limits on the continuous axes X.., Y.. and activates the positive limits. G123 KA-1 [X...] [Y...] Sets the negative limits on axes X.., Y.. and activates the negative limits. • The limits are programmed by the name of continuous axis wher...

  • Page 38

    CNC Z32 - Programming Guide (LATHES) 3. DIRECT PROGRAMMING OF PROFILE With the direct programming, it is possible to describe the final workpiece profile, using the known elements on the mechanical drawing. In this mode, sloped lines, chamfers and connecting radiuses are automatically computed ...

  • Page 39

    CNC Z32 - Programming Guide (LATHES) • RR (connecting radiuses) The programming of a connecting radius is made through the parameter RR. The RR parameter must be programmed with a sign. Normally the choice of the sign for a connecting radius follows the same convention used for G2 and G3. If ...

  • Page 40

    CNC Z32 - Programming Guide (LATHES) • RB (chamfers) A chamfer is programmed through the RB parameter. The RB parameter must be programmed with a sign. Its meaning is shown in the following figure: XZZXRBRBRBRB A chamfer is programmed by adding the RB parameter followed ...

  • Page 41

    CNC Z32 - Programming Guide (LATHES) Programming examples: 5030°ZX-20-40• Line with known final Z and slope: G1 Z… QF… G1 X50 Z0 Z-20 Z-40 QF150 • Line with known final X and slope: 5030°ZX-2070G1 X… QF… G1 X50 Z0 Z-20 X70 QF150 • Combinations with double s...

  • Page 42

    CNC Z32 - Programming Guide (LATHES) Z-5020X7030°-25 G1 X20QF 90 Z0 Z-25 X70 QF150 Z-50 At the end of each programmed movement it is possible to add a connecting radius or a chamfer, by programming on the same movement block the value of radius (RR) or chamfer (RB). 5030°ZX-2070R...

  • Page 43

    CNC Z32 - Programming Guide (LATHES) G1 X20 Z0 QF 90 RR10 Z-25 X70 QF150 RR10 Z-50 Chamfer programming examples 5030°ZX-20-405 G1 X50 Z0 Z-20 RB5 Z-40 QF150 50Z60°X30°120-15-5055 G1 X50 Z0 Z-15 RB5 QF150 RB5 Z-50 X120 QF120 39

  • Page 44

    CNC Z32 - Programming Guide (LATHES) Z-5020X7030°-2555 G1 X20 Z0 QF 90 RB5 Z-25 X70 QF150 RB5 Z-50 40

  • Page 45

    CNC Z32 - Programming Guide (LATHES) 4. TOOL RADIUS CORRECTION The Z32 NC allows to program directly the finished workpiece profile, and automatically executes all necessary profile modifications as a function of the effective tool radius. It is clear that the actual tool path will be different...

  • Page 46

    CNC Z32 - Programming Guide (LATHES) 4.1 Vectorial compensation of tool radius In case of profile to be executed with tool radius compensation, the theoretical tool tip must follow a profile different from the programmed workpiece profile. To start the discussion related to the tool radius co...

  • Page 47

    CNC Z32 - Programming Guide (LATHES) In order to machine a profile with radius correction, it is necessary to know the position of the theoretical tool tip with respect to the tool center: XZ1357ZX24689 If the X axis is oriented downwards: 9ZZXX13257684 The G150 function allows to set the ori...

  • Page 48

    CNC Z32 - Programming Guide (LATHES) 4.2 Profile approach (G41/G42) and profile retract (G40) The functions G41 and G42 are used to start the execution of a profile with tool radius correction. Depending on the orientation of the X axis, the G41 and G42 functions define the tool position relate...

  • Page 49

    CNC Z32 - Programming Guide (LATHES) The programming of a profile with radius correction is mainly composed by the following parts: - approach to profile - profile execution - retract from profile The approach movement is the movement following the G41 or G42 programming. The approach movement...

  • Page 50

    CNC Z32 - Programming Guide (LATHES) Warning! The part-program line where the first point to be reached with radius correction is defined, must immediately follow the line where the radius correction is activated. Correct programming G41 (o G42) X.. Z.. incorrect G41 X.. Z.. The programmi...

  • Page 51

    CNC Z32 - Programming Guide (LATHES) 4.3 Null or negative radius Null or negative tool radius are allowed: in case of null radius, exactly the programmed profile will be executed, while a negative radius is equivalent to exchange the meaning between G41 and G42. A negative radius may be useful w...

  • Page 52

    CNC Z32 - Programming Guide (LATHES) 4.5 INCOMPATIBLE PROFILE error If a profile cannot be executed with tool radius compensation, the INCOMPATIBLE PROFILE error may be issued. In these cases it is possible to program the function G109R, which forces the generation of a fillet also around inter...

  • Page 53

    CNC Z32 - Programming Guide (LATHES) 4.7 Example of a profile with radius correction -30-50-605070110R5R5Z52x45°30°120XT4 M6 OZ1 OX1 G96 S30 MS2000 M3 G95 F1 G150KA1 G0 Z10 X60 G42 X50 Z5 Z-30 RR-5 X70 Z-50 QF150 RR-5 X110 RB2 Z-60 X120 G40 G0 Z-50 X130 In the preceding figur...

  • Page 54

    CNC Z32 - Programming Guide (LATHES) 4.8 Allowance management With the function G150 it is possible to define an allowance in the machining of a profile executed with radius correction. The programming syntax is G150 I… Example: 2mm allowance an the profile: -30-50-605070110R5R5Z52x45°30...

  • Page 55

    CNC Z32 - Programming Guide (LATHES) 5. PARAMETRIC PROGRAMMING 5.1 Parameter management A parameter defines a numeric value recalled by means of an identifier. The Z32 CNC offers to the user three types of parameters: • Literal parameters: They are composed by a combination of one or more a...

  • Page 56

    CNC Z32 - Programming Guide (LATHES) KG GEPI-2 code and permanent subprograms KM multiplicative factor single axis KP scale factor on the plane KT third axis scale factor L tool length (milling machines) LX tool length (lathes) LZ tool length (lathes) M auxiliary function MA auxiliary function M...

  • Page 57

    CNC Z32 - Programming Guide (LATHES) • PAR[…] parameters It is a vector containing 513 parameters. From PAR[0] to PAR[512]. The parameter number may be an expression result, for example: HA10 HB5 PAR[6]30 PAR[HA + PAR[HB + 1]] is equivalent to: PAR[10+PAR[6]] than means: ...

  • Page 58

    CNC Z32 - Programming Guide (LATHES) To assign an expression result to a parameter, the lower than sign “<” and higher than sign “>” (acute parenthesis) are used to indicate the beginning and the end of the expression. Inside the expression it is possible to use the parenthesis ...

  • Page 59

    CNC Z32 - Programming Guide (LATHES) 5.1.5 Axes programming through parameters AA, AB, AC The system parameters AA, AB and AC are very useful for parametric programming (like macros or fixed cycles). These parameters represents respectively the first (AA), the second(AB) and the third(AC) axis s...

  • Page 60

    CNC Z32 - Programming Guide (LATHES) 5.2 Programming with “advanced lines” ( ! ... ! ) The Z32 CNC allows the usage of special program lines, called “advanced lines”. Through these lines it is generally possible to handle most cases of logic-parametric programming, allowing for condition...

  • Page 61

    CNC Z32 - Programming Guide (LATHES) Executing jumps without return (!GON..!) The function allowing to jump to a label inside a program is the function: !GON..! Jump destination is the line corresponding to the number (also decimal) following the letter N. Example: The program executes N10 and ...

  • Page 62

    CNC Z32 - Programming Guide (LATHES) Executing conditioned jumps (!IF .. ; GON.. !) The instruction allowing the execution of conditioned jumps inside a program is the following: !IF {condition} ; GON..! A condition may be any parametric expression containing one of the following comparison ope...

  • Page 63

    CNC Z32 - Programming Guide (LATHES) Structuring conditioned jumps Normally the various commands to be executed in a single advanced line are separated by the “;” character. When an IF condition is programmed, if the condition is verified, the subsequent commands are executed, otherwise the ...

  • Page 64

    CNC Z32 - Programming Guide (LATHES) Jump to a CMOS subprogram (! GOP.. !) With the instruction !GOP..! It is possible to suspend the execution of current program and jump to the execution of a subprogram. The !GOP..! instruction is valid for programs stored in the CMOS memory (internal memory)...

  • Page 65

    CNC Z32 - Programming Guide (LATHES) Jump to a CMOS subprogram with label (! GOP.. –N..!) It is possible to jump in a CMOS subprogram starting the execution from a given label. Example: N10 … N50 !GOP10-N30! N60 … Sottoprogramma CMOS 10: N10 … N30 … … N100 G26 The main program is e...

  • Page 66

    CNC Z32 - Programming Guide (LATHES) 5.3 Conditioning blocks of programs (--IF) The structured instruction --IF is useful when it is necessary to condition the execution of whole program blocks. Example: --IF {condition 1} N10 … N20 --END IF The program executes the lines from N10 to N20 only...

  • Page 67

    CNC Z32 - Programming Guide (LATHES) It is possible to nest IF instructions up to 31 levels. Example: --IF {condition 1} --IF {condition 2} --IF {condition 3} N30 … (executed if condition 1 is true, condition 1 is true and condition 3 is true) N40 --END IF --END IF --END IF 63

  • Page 68

    CNC Z32 - Programming Guide (LATHES) 5.4 Program block repetition (--DO --LOOP) The blocks inserted between the instructions --DO and --LOOP are repeated until the exit condition is satisfied Example: --DO N10 … N100 --LOOP The blocks from N10 to N100 are endless repeated. 5.4.1 Specifying...

  • Page 69

    CNC Z32 - Programming Guide (LATHES) Anticipated exit condition --DO --LOOP (--EXIT DO) An anticipated exit condition from a block loop execution may be expressed with: --EXIT DO IF {condition} The --EXIT DO instruction allows an anticipated exit from the --DO --LOOP structure when the specified...

  • Page 70

    CNC Z32 - Programming Guide (LATHES) 5.5 Writing CMOS programs (--DEFINE P..) Through the instruction --DEFINE P.. it is possible to write a CMOS file of the CNC. With this instruction it is possible to write a CNC CMOS file without the need to directly edit it. The --DEFINE P.. instruction ma...

  • Page 71

    CNC Z32 - Programming Guide (LATHES) {program listing} … --END DEFINE ; comment The subprogram to be written must be specified with the desired subtemp number. In the following example, the subtemp number 20 is written: --DEFINE S20 … {program listing} … --END DEFINE The definition of a su...

  • Page 72

    CNC Z32 - Programming Guide (LATHES) 6. Z32 FIXED CYCLES AND MACROS This chapter describes the standard macros and fixed cycles of the Z32 CNC. Cycles and machining here described are valid for versions SIS T109-8B and following. 6.1 Z32 Fixed cycles (G881 - G886) The functions from G881 to G88...

  • Page 73

    CNC Z32 - Programming Guide (LATHES) Fixed cycle suspension The function G27X suspends the active fixed cycle. G27X is valid only in the block where programmed. Example: … G881 Z-40 J5 E10 (activates the fixed cycle) G0 X100 (executes fixed cycle) G27X G0 X200 (doesn’t execute fixed cycle) G...

  • Page 74

    CNC Z32 - Programming Guide (LATHES) … G881 Z-40 J5 E10 F1200 (activates the drilling fixed cycle) N1 G0 X100 (executes the first positioning) X150 (second positioning) N2 X200 (third positioning) G880 (all cycle parameters are cleared) G886 Z-35 J5 E10 F400 (activates the boring fixed cycle) ...

  • Page 75

    CNC Z32 - Programming Guide (LATHES) G881: Normal drilling Z (or X): hole end position J: approaching position. It is the machining starting position E: final return position. NT: dwell time at hole end F: Feed Notes: In case of holes drilled in X direction, the values X, J, E are considered as...

  • Page 76

    CNC Z32 - Programming Guide (LATHES) G883: Deep drilling with chip extraction Z (or X): hole end position J: approaching position. It is the machining starting position E: final return position. NT: dwell time at hole end K: depth increment before chip extraction I: reduction of pass increment...

  • Page 77

    CNC Z32 - Programming Guide (LATHES) G884: Tapping with compensating chuck Z (or X): hole end position K: tap pitch J: approaching position. It is the machining starting position E: final return position. NT: dwell time at hole end, after spindle stop NT: dwell time at hole end, after spindle in...

  • Page 78

    CNC Z32 - Programming Guide (LATHES) 6.2 G901: Macro for internal/external groove machining This macro allows the rough and finishing machining of internal and external grooves. Programming parameters: NX initial diameter of the first wall X final diameter at groove bottom NZ initial Z pos...

  • Page 79

    CNC Z32 - Programming Guide (LATHES) The groove is composed by three segments. The first wall, the groove bottom and the second wall. - The first wall starts at position NZ, NX with a slope of NI degrees with respect to a vertical wall. - The groove bottom corresponds to the diameter programme...

  • Page 80

    CNC Z32 - Programming Guide (LATHES) Chamfer and connecting radiuses management. Through the parameters NA, NB, NC, ND, NE, NF, NG, NH it is possible to define radiuses and chamfers in the groove profile. The parameters NA, NB, NC, ND are used to define chamfers. The parameters NE, NF, NG, NH a...

  • Page 81

    CNC Z32 - Programming Guide (LATHES) Tool management The groove machining macro may be used with spherical or truncating tools. • In case of spherical tools, the tool radius must be programmed as usual, with the R parameter, directly inserted in the tool table, or explicitly written in the pa...

  • Page 82

    CNC Z32 - Programming Guide (LATHES) Machining repetition The parameters NN and E allow to specify the number of grooves and their pitch. The NN parameter indicates the number of repetitions, while the E parameter indicates the distance (pitch) between each repetition. XZ50100-20R10-40R10R10R10...

  • Page 83

    CNC Z32 - Programming Guide (LATHES) Example: External groove with vertical walls, without roughing allowances -20-4010050ZX OZ1 OX1 T1M6 G96 S… MS… M3 G95 F… G0 X110 Z-20 G901 Z-40 X50 NX100 NZ-20 M2 Example: External groove with two connecting radiuses and roughing allowances OZ1 ...

  • Page 84

    CNC Z32 - Programming Guide (LATHES) Example: External groove with two connecting radiuses, roughing allowances, sloped wall and I3 machining: OZ1 OX1 T1M6 G96 S… MS… M3 G95 F… G0 X110 Z-20 G901 Z-60 X50 NX100 NZ-20 NE10 NH10 NL30 NV.1 NU0.1 I3 M2 R10-2010050ZX-60R1030° ...

  • Page 85

    CNC Z32 - Programming Guide (LATHES) 6.3 G902: Macro for facial grooves machining This macro allows the rough and finishing machining of facial grooves. Programming parameters: NX initial diameter of the first wall X final diameter of the second wall NZ initial Z position of the first wall ...

  • Page 86

    CNC Z32 - Programming Guide (LATHES) The groove is composed by three segments. The first wall, the groove bottom and the second wall. - The first wall starts at position NZ, NX with a slope of NI degrees with respect to a vertical wall. - The groove bottom corresponds to the diameter programmed...

  • Page 87

    CNC Z32 - Programming Guide (LATHES) Chamfer and connecting radiuses management. Through the parameters NA, NB, NC, ND, NE, NF, NG, NH it is possible to define radiuses and chamfers in the groove profile. The parameters NA, NB, NC, ND are used to define chamfers. The parameters NE, NF, NG, NH a...

  • Page 88

    CNC Z32 - Programming Guide (LATHES) Tool management The groove machining macro may be used with spherical or truncating tools. • In case of spherical tools, the tool radius must be programmed as usual, with the R parameter, directly inserted in the tool table, or explicitly written in the pa...

  • Page 89

    CNC Z32 - Programming Guide (LATHES) Machining repetition The parameters NN and E allow to specify the number of grooves and their pitch. The NN parameter indicates the number of repetitions, while the E parameter indicates the distance (pitch) between each repetition. The machining is consider...

  • Page 90

    CNC Z32 - Programming Guide (LATHES) 866.4 G903: Macro for roughing of trapezoidal sections, with passes along Z. ZXNX, NZX,ZNINLThis macro allows the roughing of trapezoidal sections with passes oriented in the Z direction. Parameters: NX initial diameter of the first wall X final ...

  • Page 91

    CNC Z32 - Programming Guide (LATHES) Depending on the programming of the NX, NZ, X and Z parameters, the machining may be external, internal, from left to right or from right to left. Generally: Roughing passes are executed proceeding from the NZ position toward the Z position The depth incremen...

  • Page 92

    CNC Z32 - Programming Guide (LATHES) 6.5 G904: Macro for roughing of trapezoidal sections, with passes along X. This macro allows the roughing of trapezoidal sections with passes oriented in the X direction. XZNX, NZX, ZNLNI Parameters: NX initial diameter of the first wall X final d...

  • Page 93

    CNC Z32 - Programming Guide (LATHES) Depending on the programming of the NX, NZ, X and Z parameters, the machining may be external, internal, from left to right or from right to left. Generally: Roughing passes are executed proceeding from the NX position toward the X position The depth incremen...

  • Page 94

    CNC Z32 - Programming Guide (LATHES) 6.6 Threading 6.6.1 G33 function The G33 function is the basis function for the execution of threadings. A single threading pass (the feed movement is synchronized with the spindle rotation) may be programmed with the block: G33 X… Z… K… G33 repre...

  • Page 95

    CNC Z32 - Programming Guide (LATHES) After programming the G33 function, all subsequent movements are threading movements. The movements may contain both linear and circular segments. During the execution of threading movements, the K pitch specifies the displacement imposed to the tool, along t...

  • Page 96

    CNC Z32 - Programming Guide (LATHES) 6.6.2 Variable pitch threading (G34, G35) The term “variable pitch threading” indicates a threading whose pitch is not constant, but varies continuously according to a determined variation quantity. The variable pitch threading is programmed through two...

  • Page 97

    CNC Z32 - Programming Guide (LATHES) G905: Threading macro This macro allows the complete execution of threadings. The following kinds of threadings may be executed: - cylindrical or conical with many passes - facial - with one or more worms - internal or external The types of threads allowed...

  • Page 98

    CNC Z32 - Programming Guide (LATHES) Thread type: E =100 Metric screw 60° UNI 4535-64 E =200 Metric lead screw 60° UNI 4535-64 E =300 Whitworth screw UNI 2709 E =400 Whitworth lead screw UNI 2709 E =500 Trapezoidal screw UNI 2902 E =600 Trapezoidal lead screw UNI 2902 E =700 Square sec...

  • Page 99

    CNC Z32 - Programming Guide (LATHES) In threadings with more than one worms, the tool retracts axially from the workpiece, and executes all worms, before to proceed with the next pass. The threading ends with a circular arc with radius equal to the return distance between tool and workpiece, def...

  • Page 100

    CNC Z32 - Programming Guide (LATHES) G0 X45 Z-103 G905 X40 NZ-103 Z5 K3 E100 J3 NS5 NF1 ..... Thread 3 ...... G0 X20 Z-53 G905 X24 NZ-53 Z5 K3 E200 J2.5 NS7 NF1 ...... Thread 4 ...... G0 X-20 Z5 G905 X-24 NZ5 Z-53 K3 E200 J2.5 NS7 NF1 ...... 6. Taper threading It is possible to execute b...

  • Page 101

    CNC Z32 - Programming Guide (LATHES) Examples: ZX5-100-50X60X40X30X8012 1) External threading with initial diameter X=60, final diameter X=80 and Z starting and end coordinates, respectively, NZ=5 and Z= -100. Executes the thread starting from the ...

  • Page 102

    CNC Z32 - Programming Guide (LATHES) G906: Facial threadings For facial threadings: G906 X.. Z.. NZ.. NX.. K.. E.. NS.. (J..) (NF..) (I..) (NG..) (NU..) The meaning of the parameters becomes the following: NX “On air” coordinate of the first positioning along X X Coordinate of the thre...

  • Page 103

    CNC Z32 - Programming Guide (LATHES) 6.7 G907: Roughing macro This macro execute a generalized roughing of a closed profile. The programming is in diameter. The macro is called by the user through the function G907 The roughing cycle of the G907 macro is mainly composed by: • Initial posit...

  • Page 104

    CNC Z32 - Programming Guide (LATHES) NU If different from zero, the final contour is not executed, but a rapid exit from the final point of the first pass, up to the intersection with the profile, with direction given by the NU angle (referred to the first axis of the plane, axis Z). I If I=1, t...

  • Page 105

    CNC Z32 - Programming Guide (LATHES) Definition of the profile to be roughed The profile to be roughed must be defined starting from the raw workpiece dimensions (with G0 segments) and ending with the final profile. The following figure shows two profile examples. Passata di sgrossaturaRitorno...

  • Page 106

    CNC Z32 - Programming Guide (LATHES) Generally, the programming rules for the profile are the following: - the profile must always be defined starting form the raw dimensions - the programmed profile (raw + finished) must define a close area, i.e. the first point of the raw must coincide with...

  • Page 107

    CNC Z32 - Programming Guide (LATHES) Example: external roughing ternal roughinngle NG180, pass incremeng the X- axis) (positive K pass depnd finished profile(clockwise direction, he right of the fiofil G0 Z10X80 (rapid positioningece) G150KA1 (tool orientation in position 1) G907 NX1 NY2 NG18...

  • Page 108

    CNC Z32 - Programming Guide (LATHES) Return on preceding pass or 30 degrees exit Through the programming of the I parameter it is possible to define the behavior of the macro at the end of a pass. By programming I0 (or not programming it), at the end of each pass, an exit to 30 degrees is exec...

  • Page 109

    CNC Z32 - Programming Guide (LATHES) Variable pass depth (NI NJ NL): This feature allows to obtain a variable pass increment, gradually changing from Kmin (K) to KMAX (NL) between a he NL parameter defines the maximum pass increment. mprised between NI and NJ: the pass depth gradually changes fr...

  • Page 110

    CNC Z32 - Programming Guide (LATHES) Chip breaking cycle (NS NR NT) To allow the breakage of the chip it is possible to activate the pass management with chip breaking cycle, allowing to define a forward increment NS along the pass direction, and a backward decrement NR; furthermore a dwell t. T...

  • Page 111

    CNC Z32 - Programming Guide (LATHES) Final contouring and NU parameter Br instead of the final contolue. The Nmovement, and must be chosen depending on the profile and xample with final exit at 120 degrees. Note the exit at 120 degrees executed at machining end, bringing the tool n the upper ra...

  • Page 112

    CNC Z32 - Programming Guide (LATHES) Roughing example with passes along the X axis X90 X85 RR2 0 X40 OX1OZ1 T…M6 (roughing tool) G96 S… MS… M3 G95 F… G150KA1 G907 NX10 NY20 NG-90 K-3 HF3 M2 N10 G0 X40 Z0 G0 X100 G41 G1 Z0 X102 G1 Z-30 G1 Z-35 X70 G2 I-35 J40 Z-2G1 Z0 G40 N...

  • Page 113

    CNC Z32 - Programming Guide (LATHES) Roughing allowance It is possible to use the G150 function specifying the allowance, in the definition of the roughing profile. F… llowance of 1.5mm) , without final contouring NU1) 20 NG180 K2 NU1 cancel allowance for finishing) t) 30X60RR-10 G1X120Z-50 N...

  • Page 114

    CNC Z32 - Programming Guide (LATHES) 110W machine, mosed by a linear axis and a rotary axis. With this feature it is possible to mill lathe workpieces on the facial surface. T consult the machine tool builder. Normally, a M function to activate the feature and a M function to deactivate it ar...

  • Page 115

    CNC Z32 - Programming Guide (LATHES) R540Vn the usage of polar axes center). 7.1 Limitations o When the feature polar axes is active, the mill center cannot be or cannot execute movements passing inside a circle with 5 mm diameter around the rotation center of the axes (spindle 5mmVW W40 7.2 E...

x