Navigation

  • Page 1

    D. ELECTRONdal 1977 Al t a Tecnol ogi ap er l a Macchi na Ut ensi l e Z32 CNC Programming guide (Milling Machines) Read thoroughly before installation Contains important information on: • programming This manual contains information exclusively devoted to the user...

  • Page 2

  • Page 3

    CNC Z32 - Programming guide (Milling Machines) i CONTENTS 7,1. 7, 7,INTRODUCTION 7,.................................................................................................................................................... 7,1 7, 8,2. 8, 8,BASE 8, PROGRAMMING 8,.....................

  • Page 4

    CNC Z32 - Programming guide (Milling Machines) ii 38,3.2.1 38, 38,G41/G42 38, – 38, circular 38, approach 38, with 38, final 38, positions 38, and 38, slope 38, (G41/G42 38, X.. 38, Y.. 38, QF..) 38,.............................. 38,32 38, 39,3.2.2 39, 39,G41 39, /G42 39, – 39, linear ...

  • Page 5

    CNC Z32 - Programming guide (Milling Machines) iii 73,6.1.9 73, 73,G800K9: 73, Three 73, zones 73, drilling 73,............................................................................................................... 73,67 73, 74,6.1.10 74, 74,G800K10: 74, Internal 74, spiral 74, mi...

  • Page 6

    CNC Z32 - Programming guide (Milling Machines) iv 118,8.2 118, 118,DNC 118, DISK 118, PROGRAM 118, RECALL 118, 118,( 118, !:L254 118, … ! 118, )............ 118,....................................................................................... 118,112 118, 119,8.3 119, 119,SOME 119,...

  • Page 7

    CNC Z32 - Programming guide (Milling Machines) 1 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 ...

  • Page 8

    CNC Z32 - Programming guide (Milling Machines) 22. 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...

  • Page 9

    CNC Z32 - Programming guide (Milling Machines) 3 • All geometric transforms, translations, mirroring, rotations, scale factors, etc. are disabled at reset. • All functions and settings related to RTCP (rotating tool centre point) are disabled at reset. • At reset, all high speed settings...

  • Page 10

    CNC Z32 - Programming guide (Milling Machines) 4Format of numeric values: - 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 “,” (c...

  • Page 11

    CNC Z32 - Programming guide (Milling Machines) 5 1.1. F 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). Pro...

  • Page 12

    CNC Z32 - Programming guide (Milling Machines) 62.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 functiona...

  • Page 13

    CNC Z32 - Programming guide (Milling Machines) 7 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 wi...

  • Page 14

    CNC Z32 - Programming guide (Milling Machines) 82.6 Origin recall functions Two types of origins are defined for the machine: - Base origins: set by the machine tool builder, they define the fixed reference system of the machine. These origins normally doesn’t require modifications during mac...

  • Page 15

    CNC Z32 - Programming guide (Milling Machines) 9 Note: The supplementary origins are stored in the CNC CMOS memory. Depending on the process the origins belong, the files are the following: Process: 0 1 2 3 4 5 Origin file: 126 123 120 117 114 111 In single process machines, the ...

  • Page 16

    CNC Z32 - Programming guide (Milling Machines) 102.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 to...

  • Page 17

    CNC Z32 - Programming guide (Milling Machines) 11 2.8 Tool length and radius 2.8.1 Tool length and radius modification (DDL DDR) Through the parameters DDL and DDR it is possible to modify length and radius of the active tool. To compute the correction related to the tool length, the ...

  • Page 18

    CNC Z32 - Programming guide (Milling Machines) 122.9 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: OX0 OY0 OZ0 To cancel the tool length correct...

  • Page 19

    CNC Z32 - Programming guide (Milling Machines) 13 ZYXZYXZYX2.10 Working tern (G25), tool axis (G43 - G44) and contouring plane The function allowing the definition of the machine working tern and the contouring plane is the G25 function. The G25 code must be followed by three characters represe...

  • Page 20

    CNC Z32 - Programming guide (Milling Machines) 142.11 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...

  • Page 21

    CNC Z32 - Programming guide (Milling Machines) 15 2.11.2 Linear interpolation (G1) Up to five axes can be simultaneously programmed. The trajectory followed by the axis group to reach the programmed end point is linear: all programmed axes arrive together to the programmed point. The velocit...

  • Page 22

    CNC Z32 - Programming guide (Milling Machines) 16203035151000 10XY8080 Warning: If a segment shortened or deleted due to the radius correction, contains a movement on the third axis, this movement will be completely executed together with the next valid movement. Because the function G12 poses...

  • Page 23

    CNC Z32 - Programming guide (Milling Machines) 17 2.13 Threading and rigid tapping 2.13.1 Fixed pitch threading (G33) Modal in automatic execution, active only on the block in semiauto. Typical function for lathes, can be used also in milling machines. After G33 programming, G1 is automatically ...

  • Page 24

    CNC Z32 - Programming guide (Milling Machines) 182.13.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 programme...

  • Page 25

    CNC Z32 - Programming guide (Milling Machines) 19 − spindle inversion. During the inversion time, the Z axis, still connected to the spindle, continues to advance overriding the -50 programmed position, in order not to lose the thread: if the axis go beyond its final point of an excessive quan...

  • Page 26

    CNC Z32 - Programming guide (Milling Machines) 202.14 Rotation, translation, mirroring, 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 p...

  • Page 27

    CNC Z32 - Programming guide (Milling Machines) 21 QRDADB 2.14.3 Mirroring on the working plane (G56 – G55) The programmed figure is transformed in the mirror figure with respect to the mirroring axis defined by the point of coordinates (IS, JS) and by the slope QS. The mirroring must be en...

  • Page 28

    CNC Z32 - Programming guide (Milling Machines) 222.14.5 Other correction parameters It is possible to define further parameters as additive and multiplicative factors of the programmed positions. multiplicative factor on a single axis: KM {+axis name} additive factor on a single axis: KD...

  • Page 29

    CNC Z32 - Programming guide (Milling Machines) 23 2.15 G116 machining on sloping planes (roto-translation) The function G116 allows to roto-translate a machining. It is possible to program G116 (working plane roto-translation) on three axes. G116 acts on all programmed movements, rapid or feed,...

  • Page 30

    CNC Z32 - Programming guide (Milling Machines) 24404040403030303030303034521XXXXXYYYYYZZZZZExample: Usage of G116 to machine the surfaces of a parallelepiped with an associative composition of the rotations. 1) Vertical head: Standard configura...

  • Page 31

    CNC Z32 - Programming guide (Milling Machines) 25 Desired axis names Logical axis number 2.16 Other functions 2.16.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. E...

  • Page 32

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

  • Page 33

    CNC Z32 - Programming guide (Milling Machines) 27 2.16.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...

  • Page 34

    CNC Z32 - Programming guide (Milling Machines) 282.16.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 movem...

  • Page 35

    CNC Z32 - Programming guide (Milling Machines) 29 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 continu...

  • Page 36

    CNC Z32 - Programming guide (Milling Machines) 303. TOOL RADIUS CORRECTION When a contouring profile is programmed for the numerical control, the radius of tool executing the profile is normally not known: the tool radius may vary due to many reasons (availability, sharpening, different tools ...

  • Page 37

    CNC Z32 - Programming guide (Milling Machines) 31 3.1 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, wh...

  • Page 38

    CNC Z32 - Programming guide (Milling Machines) 320XY...G41 X0 Y20 QF0G1 X50...30G0 X-20 Y300-20200XY...G41 X0 Y20 QF0G1 X50...20G0 X0 Y4040XYR30-4500-15G2 I0 J0 X0 Y30G0 X-45 Y-15G41 X-30 Y0 QF90......G1 X50XY0-50R30G1 X50...G41 X-30 Y0 QF90G2 I0 J0 X0 Y30G0 X-50 Y0...XY30°G1 Y-20G2 I0 J0 X40 ...

  • Page 39

    CNC Z32 - Programming guide (Milling Machines) 33 Y0X...G41G0 X... Y......4030°R40G1 X<-40*CS30> Y<40*SN30>G2 I0 J0 X0 Y40G1 X50Y030010X-40...G0 X... Y...G41G1 X-40 Y10X0 Y30X50...The advantage of this profile approach, if the slope is correctly programmed, is that the tool enters i...

  • Page 40

    CNC Z32 - Programming guide (Milling Machines) 343.3 Retract from profile The retract from the profile is analogous to the profile approach: also in this case the CNC changes the meaning of the programmed positions, but in inverted direction; it interprets no more the positions as profile posit...

  • Page 41

    CNC Z32 - Programming guide (Milling Machines) 35 3.3.2 G40 – retract without positions (G40) If the final positions of connecting element are not programmed, the radius correction ends directly on the final point of programmed profile: the subsequent block will have a starting point coincidin...

  • Page 42

    CNC Z32 - Programming guide (Milling Machines) 363.5 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 ma...

  • Page 43

    CNC Z32 - Programming guide (Milling Machines) 37 4. RTCP (Rotating Tool Centre Point) 4.1 G117 RTCP for rotating heads The function G117 manages spindle heads mounted on rotating axes. The head may rotate around a single axis (mono-rotating head) or around two cascaded axes, the leading an...

  • Page 44

    CNC Z32 - Programming guide (Milling Machines) 38404040403030303030303034521XXXXXYYYYYZZZZZIt is possible to combine the functions G116 and G117 in order to machine on planes with any inclination with a slanted head. For this purpose it is very useful to program G116 KA2 which determines the ro...

  • Page 45

    CNC Z32 - Programming guide (Milling Machines) 39 4.1.2 Dynamic G117 (G117 KA1) The dynamic G117 maintains still the tool with respect to workpiece; in this case the head rotation induces movements on the linear axes (XYZ). The dynamic G117 function may be used, for example, in 4 or 5 axes mach...

  • Page 46

    CNC Z32 - Programming guide (Milling Machines) 40 Warning: - The reset cancels both static and dynamic G117. - The static G117 is incompatible with dynamic G117. By programming G117 while G117KA2 is active, or G117KA2 while G117 is active, an alarm CN2C14 (incompatible parameters) will be issue...

  • Page 47

    CNC Z32 - Programming guide (Milling Machines) 41 4.2 RTCP for turntables The function G118 manages turntables. The turntable may rotate around a single axis (mono-rotating table) or around two cascaded axes, the leading and the following (bi-rotating table). G118 computes the tool center disp...

  • Page 48

    CNC Z32 - Programming guide (Milling Machines) 42 I,J,K parameters (optional) The preceding figures illustrate the standard usage of G118. The point “dragged” during table motion is the tool tip. Through the optional parameters I, J and K it is possible to modify the dragged point. The pro...

  • Page 49

    CNC Z32 - Programming guide (Milling Machines) 43 X,Y,Z parameters (optional) With the simple G118 it is possible to change the table center coordinates, by programming the table center translation with respect to the setup values, through the parameters X, Y, Z (optional). This translation is e...

  • Page 50

    CNC Z32 - Programming guide (Milling Machines) 44YX123451XX'Y'Y2345G118CG118C HR1 The simple G118 may be considered as an origin change: a movement of rotating axes provokes a translation of workpiece origin. G118 HR1 has a different behavior. The programmed positions are referred to ...

  • Page 51

    CNC Z32 - Programming guide (Milling Machines) 45 4.3 Workpiece mounting errors compensation on tilting tables (G122) With G122 it is possible to compensate workpiece mounting errors on a tilting table. The procedure to be used is the following: - The workpiece mounting errors are measured and...

  • Page 52

    CNC Z32 - Programming guide (Milling Machines) 464.4 Tool tip constant velocity with RTCP active (G131) The function G131 allows to maintain constant the relative velocity between tool and workpiece with RTCP motions. G131 is a modal function. This feature allows to execute the relative motion...

  • Page 53

    CNC Z32 - Programming guide (Milling Machines) 47 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 o...

  • Page 54

    CNC Z32 - Programming guide (Milling Machines) 48KG 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 auxilia...

  • Page 55

    CNC Z32 - Programming guide (Milling Machines) 49 • PAR[…] parameters The PAR parameters are composed by a vector of 513 parameters, numbered 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 equival...

  • Page 56

    CNC Z32 - Programming guide (Milling Machines) 50To 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 pa...

  • Page 57

    CNC Z32 - Programming guide (Milling Machines) 51 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 thi...

  • Page 58

    CNC Z32 - Programming guide (Milling Machines) 525.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 ...

  • Page 59

    CNC Z32 - Programming guide (Milling Machines) 53 5.2.3 Executing jumps with return (!GON..–..!) The function !GON..-N..! allows to execute the program section contained between the N labels specified, and then to return to the line following the calling line. Example: … … N20 !GON40-N50!...

  • Page 60

    CNC Z32 - Programming guide (Milling Machines) 545.2.5 Controlling more than one condition on the same advanced line On a single advanced line it is possible to control more than one condition: !IF HA > 10 ;IF HB < 5 ; GON30! jumps to N30 if HA is higher than 10 and HB is lower than 5. ...

  • Page 61

    CNC Z32 - Programming guide (Milling Machines) 55 5.2.7 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 memor...

  • Page 62

    CNC Z32 - Programming guide (Milling Machines) 565.2.9 Jump to a CMOS subprogram with two labels (! GOP.. –N.. –N..!) It is possible to jump in a CMOS subprogram starting the execution from a given label. Example: N10 … N50 !GOP10-N30-N70! N60 … CMOS Subprogram 10: N10 … N30 … N70...

  • Page 63

    CNC Z32 - Programming guide (Milling Machines) 57 The --IF instruction indicates the first checked condition. If {condition 1} is verified, the blocks from N10 and N20 are executed, then the execution passes to N70. If {condition 1} is not verified, the condition --ELSE IF is checked. If {condit...

  • Page 64

    CNC Z32 - Programming guide (Milling Machines) 585.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...

  • Page 65

    CNC Z32 - Programming guide (Milling Machines) 59 5.4.3 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...

  • Page 66

    CNC Z32 - Programming guide (Milling Machines) 605.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.. i...

  • Page 67

    CNC Z32 - Programming guide (Milling Machines) 61 … --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 subtemp...

  • Page 68

    CNC Z32 - Programming guide (Milling Machines) 626. 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. Cycles and machining are recalled through the functio...

  • Page 69

    CNC Z32 - Programming guide (Milling Machines) 63 Fixed cycle suspension The function G27X suspends the active fixed cycle. G27X is valid only in the block where programmed. Example: … G800 MHA0 MHB-20 MHC10 K1 (activates fixed cycle) G0 X100 Y100 (executes fixed cycle) G27X G0 X200 (doesn’t...

  • Page 70

    CNC Z32 - Programming guide (Milling Machines) 646.1.1 G800K1: Drilling Mandatory parameters: MHA: start position MHB: hole end position MHC: high retraction position Optional parameters for centering: (MHD): centering end position (MHF): feed during centering The segment from MHA to MHD is ex...

  • Page 71

    CNC Z32 - Programming guide (Milling Machines) 65 6.1.3 G800K3: Deep drilling with chip extraction Mandatory parameters: MHA: start position MHB: hole end position MHC: high retraction position MHI: depth increment before retraction for chip extraction. This increment is reduced by 10% at every ...

  • Page 72

    CNC Z32 - Programming guide (Milling Machines) 66G0feed Ffeed MHFMHCMHZMHSMHBMHUMHIMHDMHAMHLMHWMandatory parameters: MHA: start position MHB: hole end position MHC: high retraction position Optional parameters for spindle orientation: If MHS > 0 the machine is equipped with spindle orientati...

  • Page 73

    CNC Z32 - Programming guide (Milling Machines) 67 6.1.8 G800K8: Two zones drilling with gap Mandatory parameters: MHA: start position MHB: hole end position MHC: high retraction position MHU: end of first zone position MHV: start of second zone position Optional parameters for centering: (MHD): ...

  • Page 74

    CNC Z32 - Programming guide (Milling Machines) 68Optional parameters for speed change: (MHS): retraction for speed change (MHW): dwell time after MHS retraction, to allow spindle setting 6.1.10 G800K10: Internal spiral milling-boring Mandatory parameters: MHB: hole end position MHC: high...

  • Page 75

    CNC Z32 - Programming guide (Milling Machines) 69 6.2 Z32 positioning macros (G801) The function G801 allows to program positioning macros. The positioning macros are system, unchangeable subprograms activated by programming G801 K.. Where the K letter must be followed by the number identifying...

  • Page 76

    CNC Z32 - Programming guide (Milling Machines) 70As positioning connected to any machining If a custom machining is desired, the machining must be stored in a CMOS file (from file 1 to file 109). The program may be stored by directly editing the file number 90, or by using the “--DEFINE P” ...

  • Page 77

    CNC Z32 - Programming guide (Milling Machines) 71 0MPXMPYMPKMPJ0MPXMPYMPPMPG0MPXMPYMPAMPB6.2.1 G801K1: Line - starting point and increments Mandatory parameters: MPX, MPY: starting point coordinates MPJ, MPK: increments on the first and second axis of the plane MPN: number of points Optional par...

  • Page 78

    CNC Z32 - Programming guide (Milling Machines) 726.2.4 G801K4: Grid – row and column increments Mandatory parameters: MPX, MPY: starting point coordinates MPJ, MPK: row increments MPV, MPW: column increments MPN: number of points in a row MPM: number of points in a column Optional parameters...

  • Page 79

    CNC Z32 - Programming guide (Milling Machines) 73 0MPXMPCMPLMPYMPA(MPS): number of points to be skipped. The numbers of points to be skipped are stored in PAR array from PAR[1] to PAR[MPS] 6.2.7 G801K7: Circle – initial angle and total increment Mandatory parameters: MPX, MPY: circle center c...

  • Page 80

    CNC Z32 - Programming guide (Milling Machines) 74MPW = 0 : linear movement MPW = 1 : circular movement 6.2.9 G801K9: Circle – initial and final angle Mandatory parameters: MPX, MPY: circle center coordinates MPC: circle radius (positive or negative value) If MPC is positive, positioning happe...

  • Page 81

    CNC Z32 - Programming guide (Milling Machines) 75 Optional parameters for machining position: (MPF): MPF = 0 : on all points a fixed cycle is executed MPF <> 0 : on all points a programmed figure, stored in CMOS program MPF, is positioned (MPR): MPR = 0 : the figure is not rotated MPR = 1 ...

  • Page 82

    CNC Z32 - Programming guide (Milling Machines) 766.3 Z32 machining macros (G802) The function G802 allows to program machining macros. The machining macros are system, unchangeable subprograms activated by programming G802 K.. Where the K letter must be followed by the number identifying the d...

  • Page 83

    CNC Z32 - Programming guide (Milling Machines) 77 Using a machining macro as a fixed cycle By programming the parameter HX1 on the same line as G802 K.. it is possible to use a machining macro like a fixed cycle, thus allowing the macro replication on more than one point. For example, it is poss...

  • Page 84

    CNC Z32 - Programming guide (Milling Machines) 78RMMJ=0MMJ=1MMCMMAMMBMMSMMUMMNMMKMMPMMDMMEAA, AB6.3.1 G802K1: Circular pockets roughing Mandatory parameters: pocket center coordinates (programmed through axes positions) MMD: pocket diameter MMA: pocket start position MMB: pocket end position M...

  • Page 85

    CNC Z32 - Programming guide (Milling Machines) 79 RMMUMMRMMPMMGMMHMMLMMSMMEMMKMMNMMCMMAMMBAA, AB6.3.2 G802K2: Rectangular pocket roughing – pocket center Mandatory parameters: pocket center coordinates (programmed through axes positions) MML: pocket base MMH: pocket height MMR: fillet radius M...

  • Page 86

    CNC Z32 - Programming guide (Milling Machines) 806.3.3 G802K3: Rectangular pocket roughing - corner The machining cycle of this macro is very similar to the roughing macro where the pocket center is known. The only difference is in the programmed coordinates: those of a pocket corner, instead ...

  • Page 87

    CNC Z32 - Programming guide (Milling Machines) 81 6.3.4 G802K4: Circular pockets finishing Mandatory parameters: pocket center coordinates (programmed through axes positions) MMD: pocket diameter MMA: pocket start position MMB: pocket end position MMC: high retraction position MME: safety dista...

  • Page 88

    CNC Z32 - Programming guide (Milling Machines) 826.3.5 G802K5: Rectangular pocket finishing – pocket center Mandatory parameters: pocket center coordinates (programmed through axes positions) MML: pocket base MMH: pocket height MMR: fillet radius MMA: pocket start position MMB: pocket end po...

  • Page 89

    CNC Z32 - Programming guide (Milling Machines) 83 6.3.6 G802K6: Rectangular pocket finishing - corner The machining cycle of this macro is very similar to the finishing macro where the pocket center is known. The only difference is in the programmed coordinates: those of a pocket corner, instea...

  • Page 90

    CNC Z32 - Programming guide (Milling Machines) 846.3.7 G802K7: Linear eyelet Mandatory parameters: eyelet center coordinates (programmed through axes positions) MML: eyelet length MMD: eyelet width MMA: eyelet start position MMB: eyelet end position MMC: high retraction position MME: safety dis...

  • Page 91

    CNC Z32 - Programming guide (Milling Machines) 85 6.3.8 G802K8: Circular eyelet – eyelet center Mandatory parameters: eyelet center coordinates (programmed through axes positions) MML: eyelet length MMD: eyelet width MMR: eyelet curvature radius MMA: eyelet start position MMB: eyelet end posi...

  • Page 92

    CNC Z32 - Programming guide (Milling Machines) 866.3.9 G802K9: Circular eyelet – curvature center Mandatory parameters: curvature center coordinates (programmed through axes positions) MML: eyelet length MMD: eyelet width MMR: eyelet curvature radius MMA: eyelet start position MMB: eyelet en...

  • Page 93

    CNC Z32 - Programming guide (Milling Machines) 87 MMDMMAMMPMMQMMB6.3.10 G802K10: Hole thread milling with a single flute end mill Mandatory parameters: hole center coordinates (programmed through axes positions) MMD: bottom of thread diameter MMQ: hole diameter MMA: machining start position MMB...

  • Page 94

    CNC Z32 - Programming guide (Milling Machines) 88MMDMMAMMPMMQMMBMMH6.3.11 G802K11: Hole thread milling with a comb end mill Mandatory parameters: hole center coordinates (programmed through axes positions) MMD: bottom of thread diameter MMQ: hole diameter MMA: machining start position MMB: mac...

  • Page 95

    CNC Z32 - Programming guide (Milling Machines) 89 MMDMMAMMBMMPMMQ6.3.12 G802K12: Stud thread milling with a single flute end mill Mandatory parameters: stud center coordinates (programmed through axes positions) MMD: external diameter MMQ: bottom of thread diameter MMA: machining start position...

  • Page 96

    CNC Z32 - Programming guide (Milling Machines) 90MMPMMQMMBMMAMMDMMH6.3.13 G802K13: Stud thread milling with a comb end mill Mandatory parameters: stud center coordinates (programmed through axes positions) MMD: external diameter MMQ: bottom of thread diameter MMA: machining start position MMB:...

  • Page 97

    CNC Z32 - Programming guide (Milling Machines) 91 6.3.14 G802K14: Face milling Mandatory parameters: first vertex coordinates of rectangular area (programmed through axes positions) MMX: working plane first axis coordinate of rectangular area second vertex. MMY: working plane second axis coordi...

  • Page 98

    CNC Z32 - Programming guide (Milling Machines) 926.4 Machine tool builder’s fixed cycles (G27C..) Through the instruction G27C.. it is possible to activate a set of fixed cycles generally supplied by the machine tool builder. The syntax and usage of G27C.. instruction is the same as the G800...

  • Page 99

    CNC Z32 - Programming guide (Milling Machines) 93 7. PROFILES ON THE PLANE The Z32 CNC offers an instruction set designed to solve computing problems of complex geometrical profiles. It is possible to use the geometric instructions for complex profiles programming, only on the working plane defi...

  • Page 100

    CNC Z32 - Programming guide (Milling Machines) 94• Arc length in degrees or auxiliary slope. Programmed with “QA” parameter, expressed in degrees as for parameter QF. It is used in two cases: To define the length in degrees of a circular arc. To define the slope of a line in the combinati...

  • Page 101

    CNC Z32 - Programming guide (Milling Machines) 95 7.1 Closed lines A line is defined as closed when its end point is defined. 7.1.1 Line – end point (G1 X.. ; G1 Y.. ; G1 X.. Y..) The end point may be defined with one or two coordinates: G1 X.. G1 Y.. G1 X.. Y.. If the end point is defined w...

  • Page 102

    CNC Z32 - Programming guide (Milling Machines) 96G0 X50 Y0 G3 I35 J0 KA1 (or RR-0.0001) G1 X0 Y30 QF150 X-10 G2 I-25 J30 KA1 (or RR-0.0001)G1 X-40 Y40 QF100 G0 X50 Y0 G3 I35 J0 RR-5 G1 X0 Y30 QF150 RR10X-10 RR5 G2 I-25 J30 RR-10 G1 X-40 Y40 QF100 7.1.3 Line – two coordinates end point and slo...

  • Page 103

    CNC Z32 - Programming guide (Milling Machines) 97 0R15R15X-30-8030805015Y10°10°10°0R15R15-25-45-552555YR2R2R2R12302005X45°45°7.2 Open lines (G1 ; G1 QF..) Open lines are defined only as direction and must then originate from a defined point, represented by a rapid movement, the end point of...

  • Page 104

    CNC Z32 - Programming guide (Milling Machines) 98G0 X-50 Y10 G1 QF10 G3 X50 Y30 I30 J30 KA1 (or RR-0.0001)7.3 Closed circles Z32 considers closed circles all circular arcs terminating on a point with known coordinates. 7.3.1 Circle – center and end point (G2/G3 I..J..X..Y..) G2 I.. J.. X.. ...

  • Page 105

    CNC Z32 - Programming guide (Milling Machines) 99 R5 G0 X40 Y0 G42 X30 Y0 QF90 Y30 RR4 G2 X-30 Y30 RA50 RR4 G2 X-30 Y-30 RA50 RR4G2 X30 Y-30 RA50 RR4 G1 Y0 G40 X40 Y0 G0 X50 Y0 G1 Y5 G1 QF150 G2 X20 Y30 RA15 (or G3)G1 X0 7.3.2 Circle – end point and radius (G2/G3 X..Y..RA..) Circle defined by ...

  • Page 106

    CNC Z32 - Programming guide (Milling Machines) 100G0 X-10 Y0 G1 QF90 RR5 G2 I0 J30 RA15 QF-45G1 RR-5 X40 Y0 QF-90 G0 X0 Y0 G1 QF45 G3 I40 J20 QF-45G1 RR-5 X65 Y0 QF-90 7.3.3 Circle – center, radius and end slope (G2/G3 I..J..RA..QF..) Circle defined by center point coordinates, radius and fi...

  • Page 107

    CNC Z32 - Programming guide (Milling Machines) 101 If the preceding element is closed, a circle with center in a known point, passing through another known point is obtained. XY03010010R3 7.3.5 Circle – radius and end slope (G2/G3 RA..QF..) The circle has known radius and final slope. G2 RA.....

  • Page 108

    CNC Z32 - Programming guide (Milling Machines) 102G0 X-50 Y30G1 X-30 G2 X-10 Y20G3 X10 Y20 G1 RR-1 X50 Y30 QF0G0 X-50 Y30G1 X-30 G2 X-10 Y10G3 X10 Y10 G2 X30 Y30 G1 X50 7.3.6 Circle – end point (G2/G3 X..Y..) Circle with known end point, tangent to previous and next elements The correct rotat...

  • Page 109

    CNC Z32 - Programming guide (Milling Machines) 103 7.4 Open circles Z32 considers as open circles all circular arcs whose end point is computed by the intersection with next element. 7.4.1 Circle – center and radius (G2/G3 I..J..RA..) The preceding element, line or circle, must be open. G2 I...

  • Page 110

    CNC Z32 - Programming guide (Milling Machines) 1047.4.2 Circle – center (G2/G3 I..J..) G2 I.. J.. G3 I.. J.. The preceding element may be a defined point or an open line. 50XY15-33-20-60020284030°001015 Y020X100-1020-200304060-60-55-10R3045° 7.4.3 Circle – radius (G2/G3 RA..) G2 R...

  • Page 111

    CNC Z32 - Programming guide (Milling Machines) 105 7.5 Line-circle combinations This is an instruction generating a linear movement followed by a tangent circular movement. G1 G2/G3 I..J..X..Y.. Line tangent to a circle defined by center and end point G1 G2/G3 I..J..RA.. Line tangent to a circ...

  • Page 112

    CNC Z32 - Programming guide (Milling Machines) 106The three cases must originate from an open line or from an open circle. XY0-40-6040R30R30R5R545°30°30° G0 X-60 Y0 G41 X-70 Y0 QF-90 G3 I-40 J0 RR-5 G1 G3 I40 J0 RA30 QF225 QA-30 G1 RR-5 G1 G3 I-40 J0 RA30 QF-90 QA150G40 X-60 Y0

  • Page 113

    CNC Z32 - Programming guide (Milling Machines) 107 7.6 Automatic fillets (RR..) Fillets (connecting arcs) are inserted by programming the RR parameter representing the arc radius. To insert a fillet it is necessary to consider that between a line and a circle, or between two not oriented circles...

  • Page 114

    CNC Z32 - Programming guide (Milling Machines) 108Fillets between lines: 0020YX2040R10 0020YX2040R10 Fillets between lines and circles 0020YX3060R6R6R10 G0 X0 Y0 G1 X20 Y20 RR-10G1 X40 Y0 G0 X40 Y0 G1 X20 Y0 RR10G1 X0 Y0 G0 X0 Y20 G1 X20 RR-6 G3 I30 J20 X40 Y20 RR-6G1 X60

  • Page 115

    CNC Z32 - Programming guide (Milling Machines) 109 Fillets between circles 0YX-15154575015R15R15R5R5R5 020-20XYR15R15R10R70 KA selection parameter The KA selection parameter define if the desired connecting arc is a long or short fillet. KA0 (short fillet) KA1 (long fillet) Usually the correc...

  • Page 116

    CNC Z32 - Programming guide (Milling Machines) 110020-20XR15R15R40Y (long fillet) G0 X0 Y-15 G1 QF180 G2 I-20 J0 RA15 RR-40 KA1G2 I20 J0 RA15 QF180 G1 X0 Y-15

  • Page 117

    CNC Z32 - Programming guide (Milling Machines) 111 0Y030306010X5.777.7 Chamfers Chamfers are inserted at the end of the element, by programming the RB parameter, representing chamfer length along the line element where RB is programmed. If only RB is programmed, a symmetrical chamfer is assumed...

  • Page 118

    CNC Z32 - Programming guide (Milling Machines) 1128. DISK FILES RECALL 8.1 Machining of files generated by CAD-CAM systems When it is necessary to machine a file generated by CAD-CAM systems it is preferable to create a file recalling the desired part-program to be executed, where all technol...

  • Page 119

    CNC Z32 - Programming guide (Milling Machines) 113 Warning: • A program called by the instruction !:L254…! cannot in turn call a program with the same instruction !:L254…! • A program called by the instruction !:L254…! may call CMOS subprograms, or subtemp by means of instructions !GOP...

  • Page 120

    CNC Z32 - Programming guide (Milling Machines) 1149. HIGH SPEED SETTING It may be useful to use the high speed functions offered by the Z32 CNC, when executing files generated by CAD-CAM systems. Warning: in the following discussion it will be assumed that the motion control function G113X (...

  • Page 121

    CNC Z32 - Programming guide (Milling Machines) 115 • The “I” parameter represents the minimum feed on profile edges. In computing the deceleration necessary to execute profile edges, the “I” parameter expresses the minimum velocity imposed on the axes by the CNC. A common value for I...

  • Page 122

    CNC Z32 - Programming guide (Milling Machines) 116Warning: Some CAM systems compute the chordal error on workpiece surface, and not on tool center. In these cases, for an external curvature, the chordal error seen by the CNC on the tool center trajectory is increased by the two curvatures ratio...

  • Page 123

    CNC Z32 - Programming guide (Milling Machines) 117 - a CNC interpolating between the received points not using linear segments, but curves more similar as possible to the original curve. The curve interpolation may be not necessary if the CAM generates a very high number of points, but this may ...

  • Page 124

    CNC Z32 - Programming guide (Milling Machines) 118The strategy to maintain a very small chordal error (1 micron or less) gives better results, but produces very large part-programs. In this case, interpolation velocity problems may arise, mainly due to the DNC transmission speed, and secondaril...

  • Page 125

    CNC Z32 - Programming guide (Milling Machines) 119 Maximum acceleration (mm/s2) Minimum velocity (mm/min) Chordal error allowed on the path (mm) (edge rounding) Roundable segment maximum length(mm) Used only with G113B Movement softness factor. Integer value. Function of machine setup. MIN=0 MA...

  • Page 126

    CNC Z32 - Programming guide (Milling Machines) 1209.7 High speed parameters - examples Example 1: Recalls a DNC program with G114, G113X KA1 and G113B active T1M6 OX1 OY1 OZ1 F1000 S4000 M3 G0 Z200 (high speed settings) G114 RA0.01 K2000 J2 I30 HY6 HR0.02 G113X KA1 G113B (DNC launch) !:L25...

  • Page 127

    CNC Z32 - Programming guide (Milling Machines) 121 10. PROGRAMMING EXAMPLES 10.1 Profile 1 X0251000203070R20R20R20R10R1565°Y OX1 OY1 OZ1 (uses origin 1) T1 M6 (uses tool 1) F1000 (machining to 1000 mm/min) S2000 M3 (starts spindle rotation at 2000 rpm) R5 (sets tool radius) G0 Z10 (initial a...

  • Page 128

    CNC Z32 - Programming guide (Milling Machines) 12210.2 Profile 2 65°04050-2045400-20-40YR15R18R8R7R20-3510R1875°60°X OX1 OY1 OZ1 (uses origin 1) T1 M6 (uses tool 1) F1000 (machining to 1000 mm/min) S2000 M3 (starts spindle rotation at 2000 rpm) R3 (sets tool radius) G0 Z10 (initial approach...

  • Page 129

    CNC Z32 - Programming guide (Milling Machines) 123 020YX50045°45°CAB10.3 Rotation Profile A: OX1 OY1 OZ1 (origin 1) T1 M6 S2000 M3 G0 Z10 (initial approach) G0 X0 Y0 (initial positioning) G1 Z-1 F100(approach) F1000 (machining to 1000 mm/min) G1 Y50 X20 Y0 X0 G0 Z10 (retract)...

  • Page 130

    CNC Z32 - Programming guide (Milling Machines) 12410.4 Translation 020Y050XDA50DB-25BA Profile A: OX1 OY1 OZ1 (origin 1) T3 M6 S5000 M3 G0 Z10 (initial approach) G0 X0 Y0 (initial positioning) G1 Z-1 F100(approach) F1000 (machining to 1000 mm/min) G1 Y50 X20 Y0 X0 G0 Z10 (retract) M2 ...

  • Page 131

    CNC Z32 - Programming guide (Milling Machines) 125 10.5 Roto-translation 1 XR10R10R10R10R20R2030°30°00204040X'Y'X''R20YR20001005030002050-20-50Y''-20 OX2 OY2 OZ2 (origin 2) T6 M6 S1500 M3 G0 Z10 (initial approach) G0 X0 Y20 (initial positioning) G1 Z-1 F100(approach) F1000 (machining to 1000...

  • Page 132

    CNC Z32 - Programming guide (Milling Machines) 12610.6 Roto-translation 2 YXXXXXYYYYABCDE OX1 OY1 OZ1 (origin 1) T21 M6 S5000 M3 G0 Z10 (initial approach) (Profile A:) N1 G0 X40 Y0 (initial positioning) G1 Z-2 F50(approach) F2000 (machining to 2000 mm/min) G0 X40 Y0 G1 G3 I0 J0 X-10 Y0 G3 I0...

  • Page 133

    CNC Z32 - Programming guide (Milling Machines) 127 10.7 Mirroring 1 Y00X10203060R10ABDC OX3 OY3 OZ3 (origin 3) T12 M6 S3000 M3 G0 Z10 (initial approach) (Profile A) N1 G0 X60 Y10 (initial positioning) G1 Z-3 F100(approach) F2000 (machining to 2000 mm/min) G1 G2 I30 J20 X40 Y20 G0 Z5 (retract)...

  • Page 134

    CNC Z32 - Programming guide (Milling Machines) 12810.8 Mirroring 2 6030201000R10XY45°ABC OX2 OY2 OZ2 (origin 2) T4 M6 S3000 M3 G0 Z10 (initial approach) (Profile A) N1 QR45 (45 degrees rotation) G0 X60 Y10 (initial positioning) G1 Z-3 F200(approach) F2000 (machining to 2000 mm/min) G1 G2 ...

  • Page 135

    CNC Z32 - Programming guide (Milling Machines) 129 10.9 Third axis turnover OX1 OY1 OZ1 (uses origin 1) T1 M6 (uses tool 1) F1000 (machining to 1,000 mm/min)S2000 M3 (speed 2000 rpm) R5 (sets tool radius) KT-1 G0 Z10 (initial approach) G0 X0 Y0 G1Z0 --DO Y<Y+1> G1 X10 Z10 X...

  • Page 136

    CNC Z32 - Programming guide (Milling Machines) 13010.10 Angular repetition of a profile 45°YX OX1 OY1 OZ1 (origin 1) T2 M6 S3000 M3 G0 Z10 (initial approach) R3 --DO ; repetitions start G0 X35 Y0 G1 Z-1 F100(approach) F2000 (machining to 2000 mm/min) G41 X40 Y0 QF90 G1 Y10 RR5 G1 QF-165 RR5 ...

  • Page 137

    CNC Z32 - Programming guide (Milling Machines) 131 10.11 Linear repetition of a profile XY OX1 OY1 OZ1 (origin 1) T8 M6 S3000 M3 G0 Z10 (initial approach) --DO ; repetitions start G0 X35 Y0 G1 Z-2 F300(approach) F3000 (machining to 3,000 mm/min) G41 X40 Y0 QF90 G1 Y10 RR5 G1 QF-165 RR5 G1 X20...

  • Page 138

    CNC Z32 - Programming guide (Milling Machines) 13210.12 Profile 1 repetition with various depths OX1 OY1 OZ1 (uses origin 1) T1 M6 (uses tool 1) F1000 (machining to 1,000 mm/min) S2000 M3 (starts spindle rotation at 2000 rpm) R5 (sets tool radius) G0 Z10 (initial approach) G0 X0 Y100 G0 Z2 (...

  • Page 139

    CNC Z32 - Programming guide (Milling Machines) 133 10.13 Finishing of a spherical surface OX1 OY1 OZ1 (origin 1) T3 M6 S3000 M3 G0 Z10 (initial approach) F10000 G0X-1000 Y-1000 G0 Z-1 (HA: sphere radius) (HB: initial angle) (HC: final angle) (HD: angular increment) HA100 HB0 HC60 HD4 G0 X0...

  • Page 140

    CNC Z32 - Programming guide (Milling Machines) 13410.14 Ellipse OX1 OY1 OZ1 (origin 1) T3 M6 S3000 M3 G0 Z10 (initial approach) F4000 (HA: major ellipse semiaxis) (HB: minor ellipse semiaxis) (HC: initial angle) (HD: final angle) (HE: angular increment on each point) HA200 HB150 HC45 HD...

  • Page 141

    CNC Z32 - Programming guide (Milling Machines) 135 10.15 Roto-translation in the space (spherical surface) OX2 OY2 OZ2 T1 M6 F1000 S3000 M3 G0 Z10 G0 X30Y0 G1 Z0 -- DO G1 X30 Y0Z0 G2 X0 Z-30 I0 J0 G116K5 G3X30 Z0 I0J0 G116K5 --LOOP 36 M2

  • Page 142

    CNC Z32 - Programming guide (Milling Machines) 13610.16 Revolution solid T1M6 S2000 M3 F1000 G0 Z50 -- DO X0 Y0 Z0 G1 Y10 RR-6 X20 RR10 X40 Y20 RR-20 X120 RR-10 Y0 G116 I-5 Y20 RR10 X40 RR20 X20 Y10 RR-10 X0RR6 Y0 G116 I-5 -- LOOP 18 G116 KA0 G0 Z50 M2

  • Page 143

    CNC Z32 - Programming guide (Milling Machines) 137 10.17 Machining of a X-Z programmed profile G25 XZY OX1 OY1 OZ1 T1 M6 F5000 M3 S3000 R3 X-75 Y-20 Z10 G0 !PAR[1]=0! -- DO DC<PAR[1]> Y-15 G25XZY (sets working plane XZ) G41 X-75Z0QF0 G1 X-45RR8 G1 Z25 G1 X-12 Z40 G2 I0 J20 X12 Z4...

  • Page 144

    CNC Z32 - Programming guide (Milling Machines) 13810.18 Slanted head drilling 6020XX'5ZOX1 OZ1Z'B-20 OX1 OY1 T2 M6 S1000 M3 F500 Z10 G117 B-20 (head rotation) G116 X-60 KA2 (X’ Z’ reference system) G0 X-20 Y0 Z5 G1 Z-10 Z5 M2

  • Page 145

    CNC Z32 - Programming guide (Milling Machines) 139 10.19 Circumference positioning and drilling fixed cycle S2000 F1200 M3 G0 Z50 (parameters and fixed cycle recall) G800K1 MHA2 MHB-10 MHC2 (positioning macro recall) (definition of positioning to be skipped) PAR[1]3 (MPX=10, MPY=20: the positio...

  • Page 146

    CNC Z32 - Programming guide (Milling Machines) 14010.20 Positioning of a machining around a circumference, with rotation S2000 M3 F800 (Program P40 defines the figure to be moved on circle points) --DEFINE P40 G0X0Y0 Z2 G1Z0 Z-1 G1X10 Y5 X-10 Y-5 X10 Y0 G0X0Y0 Z2G0 G26 --END DEFINE PAR[1]3 (...

  • Page 147

    CNC Z32 - Programming guide (Milling Machines) 141 10.21 Positioning of a machining around a circumference, without rotation S2000 M3 F800 (Program P40 defines the figure to be moved on circle points) --DEFINE P40 G0X0Y0 Z2 G1Z0 Z-1 G1X10 Y5 X-10 Y-5 X10 Y0 G0X0Y0 Z2G0 G26 --END DEFINE (defin...

  • Page 148

    CNC Z32 - Programming guide (Milling Machines) 14210.22 Circular pocket roughing S2000 F1200 M3 G0 Z50 R5 (parameters and fixed cycle recall) (MMA=0: upper pocket position) (MMB=-20: lower pocket position) (MMC=10: exit position at machining end) (MMD=60: pocket diameter) (X,Y: pocket center)...

  • Page 149

    CNC Z32 - Programming guide (Milling Machines) 143 10.23 Circular pocket roughing positioned on a circumference S2000 F1200 M3 G0 Z50 R5 (parameters and fixed cycle recall) (MMA=0: upper pocket position) (MMB=-10: lower pocket position) (MMC=10: exit position at machining end) (MMD=30: po...

x