Navigation

  • Page 1

    NCT® 201MControls for Milling Machines and Machining CentersProgrammer's Manual

  • Page 2

    Manufactured by NCT Automation kft.H1148 Budapest Fogarasi út 7: Address: H1631 Bp. pf.: 26F Phone: (+36 1) 467 63 00F Fax:(+36 1) 467 63 09E-mail: nct@nct.huHome Page: www.nct.hu

  • Page 3

    3Contents1 Introduction ............................................................. 91.1 The Part Program ..................................................... 9Word ............................................................... 9Address Chain .....................................................

  • Page 4

    46.4.5 Automatic Corner Override (G62) .................................. 526.4.6 Internal Circular Cutting Override .................................. 536.5 Automatic Deceleration at Corners ...................................... 536.6 Limiting Accelerations in Normal Direction along the Path in...

  • Page 5

    512.2 Program Format for Tool Number Programming ........................... 9513 Miscellaneous and Auxiliary Functions .................................... 9713.1 Miscellaneous Functions (Codes M) .................................... 9713.2 Auxiliary Function (Codes A, B, C) .......................

  • Page 6

    618.1 Detailed Description of Canned Cycles ................................. 16318.1.1 High Speed Peck Drilling Cycle (G73) ............................. 16318.1.2 Counter Tapping Cycle (G74) .................................... 16418.1.3 Fine Boring Cycle (G76) ....................................

  • Page 7

    722.12.3 System Variables ............................................. 20122.13 Instructions of the Programming Language ............................. 20922.13.1 Definition, Substitution ........................................ 20922.13.2 Arithmetic Operations and Functions ........................

  • Page 8

    8 © Copyright NCT February 6, 2012The Publisher reserves all rights for contentsof this Manual. No reprinting, even in ex-tracts, is permissible unless our written con-sent is obtained.The text of this Manual has been compiledand checked with utmost care, yet we as-sume no liability for possibl...

  • Page 9

    1 Introduction91 Introduction1.1 The Part ProgramThe Part Program is a set of instructions that can be interpreted by the control system in order tocontrol the operation of the machine.The Part Program consists of blocks which, in turn, comprise words.Word: Address and DataEach word is made up of...

  • Page 10

    1 Introduction10BlockA block is made up of words.The blocks are separated by characters s (Line Feed) in the memory. The use of a block numberis not mandatory in the blocks. To distinguish the end of block from the beginning of anotherblock on the screen, each new block begins in a new line, with...

  • Page 11

    1 Introduction11DNC ChannelA program contained in an external unit (e.g., in a computer) can also be executed without storingit in the control's memory. Now the control will read the program, instead of the memory, fromthe external data medium through the RS232C interface. That link is referred t...

  • Page 12

    1 Introduction12Fig. 1.2-1Fig. 1.2-2Fig. 1.2-31.2 Fundamental TermsThe InterpolationThe control system can move the tool alongstraight lines and arcs in the course of mach-ining. These activities will be hereafter refer-red to as "interpolation".Tool movement along a straight line:progr...

  • Page 13

    1 Introduction13Fig. 1.2-4Fig. 1.2-5Reference PointThe reference point is a fixed point on the machine-tool. After power-on of the machine, theslides have to be moved to the reference point. Afterwards the control system will be able to in-terpret data of absolute coordinates as well.Coordinate S...

  • Page 14

    1 Introduction14Fig. 1.2-6Fig. 1.2-7Absolute Coordinate SpecificationWhen absolute coordinates are specified,the tool travels a distance measuredfrom the origin of the coordinate system,i.e., to a point whose position has beenspecified by the coordinates.The code of absolute data specificationis ...

  • Page 15

    1 Introduction15Fig. 1.2-8Fig. 1.2-9One-shot (Non-modal) FunctionsSome codes or values are effective only in the block in which they are specified. These are one-shot functions.Spindle Speed CommandThe spindle speed can be specified at address S. It is also termed as "S function". Instr...

  • Page 16

    1 Introduction16Wear CompensationThe tools are exposed to wear in the course of machining. Allowance can be made for such di-mensional changes (in length and radius as well) with wear compensations. The tool wear canbe set in the control system. A geometry value, i.e., the initial length and radi...

  • Page 17

    2 Controlled Axes17Fig. 2.1-12 Controlled AxesNumber of Axes (in basic configuration)3 axesIn expanded configuration5 additional axes (8 axes altogether)Number of axes to be moved simultaneously8 axes (with linear interpolation)2.1 Names of AxesThe names of controlled axes can be defined in the p...

  • Page 18

    2 Controlled Axes18be selected as parameter. There are three systems available - IS-A IS-B and IS-C. The incrementsystems may not be combined for the axes on a given machine.Having processed the input data, the control system will provide new path data for moving theaxes. Their resolution is alwa...

  • Page 19

    3 Preparatory Functions (G codes)193 Preparatory Functions (G codes)The type of command in the given block will be determined by address G and the number fol-lowing it.The Table below contains the G codes interpreted by the control system, the groups and functionsthereof.G codeGroupFunctionPageG0...

  • Page 20

    3 Preparatory Functions (G codes)G codeGroupFunctionPage20G39cutter compensation corner arc125G40*07cutter radius/3 dimensional tool compensation cancel110G41cutter radius compensation left/3 dimensional tool compensation110,109,113G42cutter radius compensation right110,109,113G43*08tool length c...

  • Page 21

    3 Preparatory Functions (G codes)G codeGroupFunctionPage21G76fine boring cycle164G80*canned cycle cancel167G81drilling, spot boring cycle,167G82drilling, counter boring cycle168G83peck drilling cycle169G84tapping cycle170G84.2rigid tap cycle171G84.3rigid counter tap cycle171G85boring cycle174G86B...

  • Page 22

    4 The Interpolation22Fig. 4.1-14 The Interpolation4.1 Positioning (G00)The series of instructionsG00 vrefers to a positioning in the current coordinate system.It moves to the coordinate v. Designation v (vector) refers here (and hereinafter) to all controlledaxes used on the machine-tool. (They m...

  • Page 23

    4 The Interpolation23Fig. 4.2-1Fig. 4.2-2Feed along the axis U is.............................Feed along the axis C iswhere x, y, u, c are the displacements programmed along the respective axes, L is the vectoriallength of programmed displacement:G01 X100 Y80 F150The feed along a rotational axis ...

  • Page 24

    4 The Interpolation24Fig. 4.3-14.3 Circular and Spiral Interpolation (G02, G03)The series of instructions specify circular interpolation.A circular interpolation is accomplished in the plane selected by commands G17, G18, G19 inclockwise or counter-clockwise direction (with G02 or G03, respective...

  • Page 25

    4 The Interpolation25Fig. 4.3-2Fig. 4.3-3Further data of the circle may be specified in one of two different ways.Case 1At address R where R is the radius of the circle. Now the control will automatically calculate thecoordinates of the circle center from the start point coordinates (the point wh...

  • Page 26

    4 The Interpolation26Fig. 4.3-4Fig. 4.3-5Fig. 4.3-6The feed along the path can be programmed at address F,pointing in the direction of the circle tangent, and beingconstant all along the path. L Notes: – I0, J0, K0 may be omitted, e.g. G03 X0 Y100 I-100 – When each of Xp, Yp and Zp is omitted...

  • Page 27

    4 The Interpolation27Fig. 4.3-7Fig. 4.4-1If the specified circle radius is smaller thanhalf the distance of straight line inter-connec-ting the start point with the end point, the con-trol will regard the specified radius of the cir-cle as the start-point radius, and will interpo-late a circle of...

  • Page 28

    4 The Interpolation28Fig. 4.4-2Fig. 4.5-1The series of instructionsdefine a multi-dimensional spatial helical interpolation in which q, r, s are optional axes not in-volved in the circle interpolation.For example, series of instructionsG17 G3 X0 Y-100 Z50 V20 I-100will move the tool along the sup...

  • Page 29

    4 The Interpolation29Fig. 4.5-2Fig. 4.5-3The lead can be defined in one of two 2 ways. – If the lead is specified at address F, the data will be interpreted in mm/rev or inch/rev. Accor-dingly, F2.5 has to be programmed if a thread of 2.5 mm lead is to be cut. – If the pitch is specified at a...

  • Page 30

    4 The Interpolation30 L Notes: – The control returns error message 3020 DATA DEFINITION ERROR G33 if more than twocoordinates are specified at a time in the thread-cutting block, or if both addresses F andE are specified simultaneously. – Error message 3022 DIVIDE BY 0 IN G33 is produced when...

  • Page 31

    4.6 Polar Coordinate Interpolation (G12.1, G13.1)31Fig. 4.6-14.6 Polar Coordinate Interpolation (G12.1, G13.1)Polar coordinate interpolation is a control operation method, in case of which the work describedin a Cartesian coordinate system moves its contour path by moving a linear and a rotary ax...

  • Page 32

    4.6 Polar Coordinate Interpolation (G12.1, G13.1)32Programming length coordinates in the course of polar coordinate interpolationIn the switched-on state of the polar coordinate interpolation length coordinate data may be pro-grammed on both axes belonging to the selected plane; The rotary axis i...

  • Page 33

    4.6 Polar Coordinate Interpolation (G12.1, G13.1)33Fig. 4.6-2Fig. 4.6-3The diagram beside shows the cases whenstraight lines parallel to axis X (1, 2, 3, 4) areprogrammed. )x move belongs to the pro-grammed feed within a time unit. Differentangular moves (n1, n2, n3, n4) belong to )xmove for each...

  • Page 34

    4.6 Polar Coordinate Interpolation (G12.1, G13.1)34N100 G42 G1 X100 F1000N110 C30N120 G3 X60 C50 I-20 J0N130 G1 X-40N140 X-100 C20N150 C-30N160 G3 X-60 C-50 R20N170 G1 X40N180 X100 C-20N190 C0N200 G40 G0 X150N210 G13.1(polar coordinate interpolation off)N220 G0 G18 Z100(Retract tool, select plane...

  • Page 35

    4.7 Cylindrical Interpolation (G7.1)35Fig. 4.7-14.7 Cylindrical Interpolation (G7.1)Should a cylindrical cam grooving be milled on a cylinder mantle, cylindrical interpolation is tobe used. In this case the rotation axis of the cylinder and of a rotary axis must coincide. Therotary axis movements...

  • Page 36

    4.7 Cylindrical Interpolation (G7.1)36Fig. 4.7-228 65118005..mmmm⋅°°⋅=π – Should G41 or G42 be switched on in cylindrical interpolation mode, G40 must be program-med before switching cylindrical interpolation off (command G7.1 Q0).Programming restrictions in the course of cylindrical in...

  • Page 37

    4.8 Smooth Interpolation37Fig. 4.8-14.8 Smooth InterpolationThe programmer can select between two ways of machining in case of linear interpolation (G01): – At parts or at a detail of a part where the accurate form the way it was programmed is impor-tant such as at corners or plane surfaces mac...

  • Page 38

    4.8 Smooth Interpolation38Fig. 4.8-2In case of smooth interpolation control moves the tool along a smooth curved path that intersectspoints specified in G1 blocks thus eliminating garduation between line segments. Control systemautomatically decides wether G1 blocks (and only G1 blocks) are execu...

  • Page 39

    4.8 Smooth Interpolation39done.If parameter 2535 SMOOTHEN is kept always on, command G5.1 Q2 need not be specified inthe part program. Then keep attention when normal machining is returned the parameter shouldbe reset to 0.

  • Page 40

    5 The Coordinate Data40Fig. 5.1-15 The Coordinate Data5.1 Absolute and Incremental Programming (G90, G91), Operator IThe input coordinate data can be specified as absolute or incremental values. In an absolute speci-fication, the coordinates of the end point have to be specified for the control, ...

  • Page 41

    5 The Coordinate Data41Fig. 5.2-1Fig. 5.2-2Fig. 5.2-3Example:G90 G16 G01 X100 Y60 F180Both the radius and the angle are ab-solute data, the tool moves to thepoint of 100mm; 60°.G90 G16 G01 X100 YI40 F180The angle is an incremental data. Amovement by 40° relative to the pre-vious angular positio...

  • Page 42

    5 The Coordinate Data42N7 Y360N8 G15 G0 X1005.3 Inch/Metric Conversion (G20, G21)With the appropriate G code programmed, the input data can be specified in metric or inch units.G20: Inch input programmingG21: Metric input programmingAt the beginning of the program, the desired input unit has to b...

  • Page 43

    5 The Coordinate Data43The value ranges of the length coordinates are shown in the Table below.input unit output unit incrementsystem value range of lengthcoordinates unit ofmeasuremmmmIS-A± 0.01-999999.99mmIS-B± 0.001-99999.999IS-C± 0.0001-9999.9999inchmmIS-A± 0.001-39370.078inchIS-B± 0.00...

  • Page 44

    5 The Coordinate Data44Enabling the handling of roll-overThe function is affected by setting parameter 0241 ROLLOVEN_A, 0242 ROLLOVEN_B or0243 ROLLOVEN_C to 1 for axes A, B or C, respectively, provided the appropriate axis is arotary one. If the given parameter ROLLOVEN_x – =0: the rotary axis ...

  • Page 45

    5 The Coordinate Data45Movement of rotary axis in case of incremental programmingIn case of programming incremental data input the direction of movement is always accordingto the programmed sign.The appropriate parameter ROLLAMNT_x to be applied for movement setting can be set atparameter 0247 RE...

  • Page 46

    6 The Feed46Fig. 6.2-16 The Feed6.1 Feed in Rapid TraverseG00 commands a positioning in rapid traverse.The value of rapid traverse for each axis is set by parameter by the builder of the machine. Therapid traverse may be different for each axis.When several axes are performing rapid traverse moti...

  • Page 47

    6 The Feed476.2.1 Feed per Minute (G94) and Feed per Revolution (G95)The unit of feed can be specified in the program with the G94 and G95 codes:G94: feed per minuteG95: feed per revolutionThe term "feed/minute" refers to a feed specified in units mm/minute, inch/minute ordegree/minute....

  • Page 48

    6 The Feed48The Table below shows the maximum programmable range of values at address F, for variouscases. inputunits output units incrementsystem value range of address F unitmmmmIS-A0.001 - 250000mmordeg/minIS-B0.0001 - 25000IS-C0.00001 - 2500IS-A0.0001 - 5000mmordeg/revIS-B0.00001 - 500IS-C0.0...

  • Page 49

    6 The Feed49Fig. 6.3-16.3 Acceleration/Deceleration. Taking F Feed into AccountAcceleration and deceleration in case of movement start and stop is needed in order to minimizeor level the effect of powers mechanically taxing the machine. Normally the control accelerates or decelerates in the foll...

  • Page 50

    6 The Feed50Fig. 6.3-2Fig. 6.3-3Fig. 6.3-4In case of bell-shaped acceleration thevalue of acceleration changes, i.e. it in-creases in the course of acceleration un-til it reaches the acceleration value set(parameter ACCn) as well as it de-creases linearly before reaching the tar-get speed. Conclu...

  • Page 51

    6 The Feed51Fig. 6.4-16.4 Feed Control FunctionsThe override control functions are required when corners are to be machined, and/or when theparticular technology requires the override and stop switches to be canceled.When machining corners, with continuous cut-ting applied, the slides are - on ac...

  • Page 52

    6 The Feed52Fig. 6.4.5-1Fig. 6.4.5-2Fig. 6.4.5-36.4.5 Automatic Corner Override (G62)Modal function canceled by any of codes G61, G63 or G64.When inside corners are being machined,higher forces are acting upon the tool beforeand after the corners. To prevent the overloadof the tool and developing...

  • Page 53

    6 The Feed53Fig. 6.4.6-16.4.6 Internal Circular Cutting OverrideWith the cutter compensation on (G41, G42), the controlwill automatically reduce the feed in machining the insidesurface of an arc so that the programmed feed will be ef-fective along the cutting radius. The feed in the center ofthe ...

  • Page 54

    6 The Feed54Fig. 7.2.3-2Fig. 7.2.3-1If no deceleration isexecuted at the cor-ner in two subsequentN1, N2 blocks, feeddifferences ()Fx ,)Fy) occur along theaxes, which results inthe tool rounding thereal corner.For the corner deceleration function to operate, parameter 2501 CDEN must be set to 1....

  • Page 55

    6 The Feed55FFFFFFcxxyy=⎧⎨⎩⎫⎬⎭×min,,...maxmaxΔΔΔΔFig. 7.2.3-4Fig. 7.2.3-3Deceleration at corners by monitoring the cange of feed components per axisIf 2501 CDEN=1 and 2502 FEEDDIF=1, deceleration is executed by monitoring the change offeed components. This setting only operates i...

  • Page 56

    6 The Feed56Fa r=⋅Fig. 6.6-1Fig. 7.2.3-5In case of parameter setting 2503 GEO=1 the control starts from the worst case(45/) and operates with the feed valid inthe case of 45/ independent of the geo-metric position of angle legs. This canresult in at most 30% feed decrease.L Warning: Automatic ...

  • Page 57

    7 High-Speed High-Precision Machining577 High-Speed High-Precision MachiningHigh-speed high-precision machining is applied mainly if the path is built up of succeeding shortstraight lines or arcs, as is usually in the case of metal die machining. As the effect of this function the tool follows th...

  • Page 58

    7 High-Speed High-Precision Machining58M01: conditional stopM02, M30: end of program/n: conditional block skip, if parameter 1248 CNDBKBUF=0Processing Macro StatementsMacro statements are always buffered and ececuted independently of the state of parameterMULBUF. The following blocks are regarded...

  • Page 59

    7 High-Speed High-Precision Machining59Fig. 7.2.1-1machine skipping caused by blocks consisting many small movements generated in thecomputer can be avoided. – Speed feedforward, if the function is enabled at parameter, – Deceleration based on speed difference per axis at corners, even if nor...

  • Page 60

    7 High-Speed High-Precision Machining60 2801 ROUACCUR for roughing.The programmed short straight movements (blocks G01) are pooled for each axis until the abso-lute value of movement on an axis is higher than the value set at parameter, and afterwards thepooled movements are sent as one.Interpret...

  • Page 61

    7 High-Speed High-Precision Machining61If the speed feedforward is 100%, this means, that the slides track the movement commands sentwithout lag in stationary state. In case of feed change however such setting leads to slide swings,thus to profile distortions. The useful value range is between 80...

  • Page 62

    7 High-Speed High-Precision Machining62avrmmmmmm==⎛⎝⎜⎞⎠⎟=222600060101000secsec7.2.3 Deceleration Based on Speed Difference per Axis at CornersIn case of high-speed high-precision machining when detecting corners it is always the decelera-tion based on speed difference being active ind...

  • Page 63

    7 High-Speed High-Precision Machining63Fig. 7.2.4-1Fig. 7.2.4-2The reduction of the acceleration step in the case of successive straight linesIf the path consists of long straight lines the accelerationchange is insignificant. In this case the changing of thefeedrate components of the axis can li...

  • Page 64

    7 High-Speed High-Precision Machining64Fig. 7.2.5-1no acceleration component in normal direction, this is however only true for long straight lines.If a path is built up of short straight lines, as it is general in metal die production, then the curva-ture of the resulting path may be significant...

  • Page 65

    7 High-Speed High-Precision Machining65Fig. 7.2.5-2The feed may decrease significantly due to the limiting of accelerations in normal direction. Theuser has the possibility to define an absolute feed minimum at parameter 2541 FEEDLOW.If the programmed feed is less than the value set at parameter,...

  • Page 66

    7 High-Speed High-Precision Machining66If the parameter value =0: the control takes the programmed F as its starting point when calculating feed, =1: all F feed commands are ineffective. The axis feeds are only defined by accelerationsenabled and critical feed differences The calculated feed may...

  • Page 67

    7 High-Speed High-Precision Machining677.3 Summarizing HSHP Path Tracking Parametersin COMMON main group1221 CODES subgroup (BIT)1228 HSHP (BIT)After power-on the mode according to the parameter is activated. If the parameter value=0:high-speed high-precision path tracking (HSHP) is off. Its effe...

  • Page 68

    7 High-Speed High-Precision Machining68Far=×2511 CRITICAN subgroup (WORD)2511 CRITICAN (WORD)The value of the critical angle can be specified at this parameter in degree, should auto-matic feed deceleration at corners be executed to the critical angle (FEEDDIF=0) .2512 FEEDCORN (WORD)The feed t...

  • Page 69

    7 High-Speed High-Precision Machining69=0: speed feedforward is not effective in case of rapid traverse movements (G0),=1: it is also effective in case of rapid traverse movements.2533 ZAXOVEN (BIT)Its value is obligatorily 0.2534 NOFEEDR (BIT)If parameter value=0: the control takes programmed F ...

  • Page 70

    7 High-Speed High-Precision Machining70If the parameter value is 1, finishing parameters No. 2600 of HSHP machining are selec-ted. It substitutes command G5.1 R1.2562 MEDIUM (BIT)If the parameter value is 1, medium roughing parameters No. 2700 of HSHP machiningare selected. It substitutes comman...

  • Page 71

    7 High-Speed High-Precision Machining712601 FINLEVEL subgroup (WORD)2601 FINACCUR (WORD)In course of HSHP machining in case of finishing the programmed short straight move-ments are pooled by axes until the movement on an axis is larger than the value set at theparameter, and the pooled movements...

  • Page 72

    7 High-Speed High-Precision Machining722641 FINFDIF subgroup (WORD)264n FINFDIFn (WORD)This parameter provides the critical feed difference enabled at corners in course of HSHPmachining in case of finishing.Its interpretation is mm/min (if INCHDET=0) or inch/min (if INCHDET=1) in case oflinear ax...

  • Page 73

    7 High-Speed High-Precision Machining732701 MEDLEVEL subgroup (WORD)2701 MEDACCUR (WORD)In course of HSHP machining in case of medium roughing the programmed short straightmovements are pooled by axes until the movement on an axis is larger than the value setat the parameter, and the pooled movem...

  • Page 74

    7 High-Speed High-Precision Machining742741 MEDFDIF subgroup (WORD)274n MEDFDIFn (WORD)This parameter provides the critical feed difference enabled at corners in course of HSHPmachining in case of medium roughing.Its interpretation is mm/min (if INCHDET=0) or inch/min (if INCHDET=1) in case oflin...

  • Page 75

    7 High-Speed High-Precision Machining752801 ROULEVEL subgroup (WORD)2801 ROUACCUR (WORD)In course of HSHP machining in case of roughing the programmed short straight move-ments are pooled by axes until the movement on an axis is larger than the value set at theparameter, and the pooled movements ...

  • Page 76

    7 High-Speed High-Precision Machining762841 ROUFDIF subgroup (WORD)284n ROUFDIFn (WORD)This parameter provides the critical feed difference enabled at corners in course of HSHPmachining in case of roughing.Its interpretation is mm/min (if INCHDET=0) or inch/min (if INCHDET=1) in case oflinear axe...

  • Page 77

    8 The Dwell778 The Dwell (G04)The(G94) G04 P....command will program the dwell in seconds.The range of P is 0.001 to 99999.999 seconds.The(G95) G04 P....command will program the dwell in terms of spindle revolutions.The range of P is 0.001 to 99999.999 revolutions.Depending on parameter SECOND, t...

  • Page 78

    9 The Reference Point78Fig. 9-1 9 The Reference PointThe reference point is a distinguished positionon the machine-tool, to which the control caneasily return. The location of the referencepoint can be defined as a parameter in the co-ordinate system of the machine. Work coordi-nate system can be...

  • Page 79

    9 The Reference Point799.2 Automatic Return to Reference Points 2nd, 3rd, 4th (G30)Series of instructionsG30 v Pwill send the axes of coordinates defined at the addresses of vector v to the reference point de-fined at address P.P1=reference point 1P2=reference point 2P3=reference point 3P4=refer...

  • Page 80

    9 The Reference Point80Fig. 9.3-1mediate point.When the cutter compensation is set up, it will move to the end point by taking into account thecompensation vector.A non-modal code.An example of using G30 and G29:...G90...G30 P1 X500 Y200G29 X700 Y150......

  • Page 81

    10 Coordinate Systems, Plane Selection81Fig. 10-1Fig. 10.1-110 Coordinate Systems, Plane SelectionThe position, to which the tool is to be moved, is specified with coordinate data in the program.When 3 axes are available (X, Y, Z), the position of the tool is expressed by three coordinate dataX__...

  • Page 82

    10 Coordinate Systems, Plane Selection82Fig. 10.2.1-110.1.1 Setting the Machine Coordinate SystemAfter a reference point return, the machine coordinate system can be set in parameters. The dis-tance of the reference point, calculated from the origin of the machine coordinate system, has tobe writ...

  • Page 83

    10 Coordinate Systems, Plane Selection83Fig. 10.2.1-2Fig. 10.2.2-1Furthermore, all work coordinate system can be offset with a common value. It can also be ente-red in setting mode.10.2.2 Selecting the Work Coordinate SystemThe various work coordinate system can be selected with instructions G54....

  • Page 84

    10 Coordinate Systems, Plane Selection84Fig. 10.2.2-2After a change of the work coordinate system,the tool position will be displayed in the newcoordinate system. For instance, there are twoworkpieces on the table. The first work coordi-nate system (G54) has been assigned to zeropoint of one of t...

  • Page 85

    10 Coordinate Systems, Plane Selection85Fig. 10.2.4-1Fig. 10.2.4-2If, e.g., the tool is at a point of X=150, Y=100coordinates, in the actual (current) X, Y workcoordinate system, instruction G92 X90 Y60will create a new X', Y' coordinate system, inwhich the tool will be set to the point ofX'=90, ...

  • Page 86

    10 Coordinate Systems, Plane Selection86Fig. 10.3-1Fig. 10.3-2coincide with the point v in the work coordinate system. – When specified as an incremental value, the origin of the local coordinate system will be shif-ted with v offset (provided a local coordinate system has been defined previous...

  • Page 87

    10 Coordinate Systems, Plane Selection87Fig. 10.3-3Fig. 10.4-1Whenever the tool is at point of X=200,Y=120 coordinates in the X, Y work coordina-te system, instructionG52 X60 Y40will shift its position to X'=140, Y'=80 in theX', Y' local coordinate system. Now instructionG92 X110 Y40will establis...

  • Page 88

    10 Coordinate Systems, Plane Selection88the basic axes:the XY plane will be selected by G17,the XY plane will be selected by G17 X,the UY plane will be selected by G17 U,the XV plane will be selected by G17 V,the ZX plane will be selected by G18,the WX plane will be selected by G18 W.The selected...

  • Page 89

    11 The Spindle Function89Fig. 11.2-111 The Spindle Function11.1 Spindle Speed Command (Code S)With a number of max. five digits written at address S, the NC will give a code to the PLC. De-pending on the design of the given machine-tool, the PLC may interpret address S as a code oras a data of re...

  • Page 90

    11 The Spindle Function9011.2.1 Constant Surface Speed Control Command (G96, G97)CommandG96 Sswitches constant surface speed control function on. The constant surface speed must be specifiedat address S in the unit of measure given in the above table.CommandG97 Scancels constant surface speed con...

  • Page 91

    11 The Spindle Function9111.2.3 Selecting an Axis for Constant Surface Speed ControlThe axis, which position the constant surface speed is calculated from, is selected by parameter1182 AXIS. The logic axis number must be written at the parameter.If other than the selected axis is to be used, the ...

  • Page 92

    11 The Spindle Function92closed) and the value of parameter INDEX_C1=0, the spindle indexing will be performed byfunction M.Under such conditions function M from the threshold value set on parameter M_NUMB1 toM_NUMB1+360 will be interpreted as a spindle indexing commands, i.e., the threshold numb...

  • Page 93

    11 The Spindle Function93Fig. 11.6-2Fig. 11.6-1Start of Spindle Speed Fluctuation DetectionAs the effect of new rotation speed the detection is suspended by the control. The speed fluctua-tion detection starts when - the current spindle speedreaches the specified spindlespeed within the toleranc...

  • Page 94

    11 The Spindle Function94Fig. 11.6-3Detecting ErrorIn the course of detection the control sends error message in case the deviation between currentand specified spindle speed exceeds- the tolerance limit specified by value "r" inpercent of the command value and- also the absolute tolera...

  • Page 95

    12 Tool Function9512 Tool Function12.1 Tool Select Command (Code T)With a number of max. four digits written at address T, the NC will give a code to the PLC.When a movement command and a tool number (T) are programmed in a given block, functionT will be issued during or after the motion command....

  • Page 96

    12 Tool Function96This procedure is described in the part program as follows.Part ProgramExplanation.....................Tnnnn........search for tool Tnnnn.................the part program is running, tool search is being performed in thebackground...M06 Tmmmm....tool Tnnnn is placed in the spind...

  • Page 97

    13 Miscellaneous and Auxiliary Functions9713 Miscellaneous and Auxiliary Functions13.1 Miscellaneous Functions (Codes M)With a numerical value of max. 3 digits specified behind address M, the NC will transfer the codeto the PLC.When a movement command and a miscellaneous function (M) are programm...

  • Page 98

    13 Miscellaneous and Auxiliary Functions98It will cause the execution to return to the position of call.13.2 Auxiliary Function (Codes A, B, C)Max. three digits can be specified at each of addresses A, B, C provided one (or all) of those add-resses is (are) selected as auxiliary function(s) in pa...

  • Page 99

    14 Part Program Configuration9914 Part Program ConfigurationThe structure of the part program has been described already in the introduction presenting thecodes and formats of the programs in the memory. This Section will discuss the procedures oforganizing the part programs.14.1 Sequence Number ...

  • Page 100

    14 Part Program Configuration10014.3.1 Calling the SubprogramThe series of instructionsM98 P....will generate a subprogram call. As a result, the execution of the program will be resumed at thesubprogram, the number of which is defined at address P. The limit of address P are 1 to 9999.After the ...

  • Page 101

    14 Part Program Configuration10114.3.2 Return from a SubprogramThe use of instructionM99in a subprogram means the end of that subprogram, and the program execution returns to theblock following the call in the calling program.main programO0010..................subprogramcommentexecution of progra...

  • Page 102

    14 Part Program Configuration102 L Note: – An error message 3070 NOT EXISTING BLOCK NO. P is displayed when the return blocknumber (P) is not found in the calling program.14.3.3 Jump within the Main ProgramThe use of instructionM99in the main program will produce an unconditional jump to the fi...

  • Page 103

    15 The Tool Compensation10315 The Tool Compensation15.1 Referring to Tool Compensation Values (H and D)Reference can be made totool length compensation at address H,tool radius compensation at address D.The number behind the address (the tool compensation number) indicates the particular compen-s...

  • Page 104

    15 The Tool Compensation104The tool compensations can be selected and/or modified from the operator's panel on OFFSETscreen and from the program with the use of instruction G10. If the current compensation is mo-dified with command G10, reference has to be made again to the current compensation r...

  • Page 105

    15 The Tool Compensation105G44: – compensationSince incremental displacement Z0 has been programmed, each of instructions G43 G91 Z0 H1and G44 G91 Z0 H1 will produce displacement just equal to the length of the tool. At G43, thedisplacement will be positive or negative, depending on the compens...

  • Page 106

    15 The Tool Compensation106Fig. 15.3-1If, however, instruction G49 is used, any refe-rence to address H will be ineffective untilG43 or G44 is programmed.At power-on, the value defined in parametergroup CODES decides which code is effective(G43, G44, G49).The example below presents a simple drill...

  • Page 107

    15 The Tool Compensation107Fig. 15.4-1Fig. 15.4-2Fig. 15.4-3Fig. 15.4-4Fig. 15.4-5With G45 programmed (increase by the offset value):a. movement command: 20b. movement command: 20compensation: 5compensation: -5a. movement command: -20b. movement command: -20compensation: 5compensation: -5With G46...

  • Page 108

    15 The Tool Compensation108Fig. 15.4-6Fig. 15.4-7Fig. 15.4-8With G47 programmed (double increase by the offset value):a. movement command: 20cases b, c, d are similar to G45compensation: 5With G48 programmed (double decrease by the offset value):a. movement command: 20cases b, c, d are similar to...

  • Page 109

    15 The Tool Compensation109Fig. 15.4-9A tool radius compensation applied with one of codes G45...G48 is also applicable with ¼ and¾ circles, provided the centers of the circles are specified at address I, J or K.An example: D1=10N1 G91 G46 G0 X40 Y40 D1N2 G47 G1 Y100 F180N3 G47 X40N4 Y-40N5 G48...

  • Page 110

    15 The Tool Compensation110Fig. 15.5-1Fig. 15.5-215.5 Cutter Compensation (G38, G39, G40, G41, G42)To be able to mill the contour of atwo-dimensional workpiece and tospecify the points of that forma-tion as per the drawing in the pro-gram (regardless of the size of thetool employed), the control ...

  • Page 111

    15 The Tool Compensation111performed for interpolation movements G00, G01, G02, G03.The above points refer to the specification of positive tool radius compensation, but its value maybe negative, too. It has a practical meaning if, e.g., a given subprogram is to be used for definingthe contours o...

  • Page 112

    15 The Tool Compensation112Fig. 15.5-3An auxiliary data is to be introduced be-fore embarking on the discussion of thedetails of the compensation computa-tion. It is """, the angle at the corner oftwo consecutive blocks viewing fromthe workpiece side. The direction of "depends...

  • Page 113

    15 The Tool Compensation113Fig. 15.5.1-115.5.1 Start up of Cutter CompensationAfter power-on, end of program or resetting to the beginning of the program, the control will as-sume state G40. The offset vector will be deleted, the path of the tool center will coincide withthe programmed path.Under...

  • Page 114

    15 The Tool Compensation114Fig. 15.5.1-2Fig. 15.5.1-3Fig. 15.5.1-4Going around the outside of a corner at an obtuse angle, 90°#"#180°Going around the outside of a corner at an acute angle, 0°#"<90°Special instances of starting up the radius compensation:If values are assigned to ...

  • Page 115

    15 The Tool Compensation115Fig. 15.5.1-5Fig. 15.5.1-6Fig. 15.5.1-7corner....G91 G17 G40...N110 G42 G1 X-80 Y60 I50 J70 D1N120 X100 ...In this case the control will always compute a point of in-tersection regardless of whether an inside or an outsidecorner is to be machined.Unless a point of inter...

  • Page 116

    15 The Tool Compensation116Fig. 15.5.1-8If zero displacement is programmed (or such is produced) in the block containing the activationof compensation (G41, G42), the control will not perform any movement but will carry on themachining along the above-mentioned strategy....N10 G40 G17 G0 X0 Y0N15...

  • Page 117

    15 The Tool Compensation117Fig. 15.5.2-115.5.2 Rules of Cutter Compensation in Offset ModeIn offset mode the compensation vectors will be calculated continuously between interpolationblocks G00, G01, G02, G03 (see the basic instances) until more than one block will be inserted,that do not contain...

  • Page 118

    15 The Tool Compensation118Fig. 15.5.2-2Fig. 15.5.2-3It may occur that no intersection point is ob-tained with some tool-radius values. In thiscase the control comes to a halt during execu-tion of the previous interpolation and returnserror message 3046 NO INTERSECTION G41,G42.Going around the ou...

  • Page 119

    15 The Tool Compensation119Fig. 15.5.2-4Fig. 15.5.2-5Going around the outside of a corner at an acute angle, 0°#"<90°Special instances of offset mode:If zero displacement is programmed (or such is obtained) in the selected plane in a block in offsetmode, a perpendicular vector will be p...

  • Page 120

    15 The Tool Compensation120Fig. 15.5.3-1Fig. 15.5.3-215.5.3 Canceling of Offset ModeCommand G40 will cancel the computation of tool radius compensation. Such a command canbe issued with linear interpolation only. The control will return error message 3042 G40 IN G2,G3 to any attempt to program G4...

  • Page 121

    15 The Tool Compensation121Fig. 15.5.3-3Fig. 15.5.3-4Fig. 15.5.3-5Going around the outside of a corner at an acute angle, 0°#"<90°Special instances of canceling offset mode:If values are assigned to I, J, K in the compensation cancel block (G40) - but only to those in theselected plane ...

  • Page 122

    15 The Tool Compensation122Fig. 15.5.3-6Fig. 15.5.3-7Fig. 15.5.3-8Unless a point of intersection is found, the control willmove, at a right angle, to the end point of the previous in-terpolation.If the compensation is canceled in a block in which nomovement is programmed in the selected plane, an...

  • Page 123

    15 The Tool Compensation123Fig. 15.5.4-115.5.4 Change of Offset Direction While in the Offset ModeThe direction of tool-radius compensation computation is given in the Table below.Radius compensation: positiveRadius compensation: negativeG41leftrightG42rightleftThe direction of offset mode can be...

  • Page 124

    15 The Tool Compensation124Fig. 15.5.4-2Fig. 15.5.4-3Fig. 15.5.4-4Unless a point of intersection is found in a li-near-to-linear transition, the path of the toolwill be:Unless a point of intersection is found in a li-near-to-circular transition, the path of the toolwill be:Unless a point of inter...

  • Page 125

    15 The Tool Compensation125Fig. 15.5.5-1Fig. 15.5.5-215.5.5 Programming Vector Hold (G38)Under the action of commandG38 vthe control will hold the last compensation vector between the previous interpolation and G38block in offset mode, and will implement it at the end of G38 block irrespective of...

  • Page 126

    15 The Tool Compensation126Fig. 15.5.6-1Fig. 15.5.6-2The start and end points of the arc will begiven by a tool-radius long vector perpendicu-lar to the end point of the path of previous in-terpolation and by a tool-radius vector perpen-dicular to the start point of the next one, re-spectively. G...

  • Page 127

    15 The Tool Compensation127Fig. 15.5.7-1Fig. 15.5.7-215.5.7 General Information on the Application of Cutter CompensationIn offset mode (G41, G42), the control will always have to compute the compensation vectorsbetween two interpolation blocks in the selected plane. In practice it may be necessa...

  • Page 128

    15 The Tool Compensation128Fig. 15.5.7-3Fig. 15.5.7-4Fig. 15.5.7-5If no cut is feasible in direction Z unless the radius compensation isset up, the following procedure may be adopted:...G17 G91...N110 G41 G0 X50 Y70 D1N120 G1 Z-40N130 Y40...Now the tool will have a correct path as is shown in the...

  • Page 129

    15 The Tool Compensation129Fig. 15.5.7-6Fig. 15.5.7-7Fig. 15.5.7-8the next interpolation. If the previous or next interpolation is a circular one, the control will returnerror message 3041 AFTER G2, G3 ILLEG. BLOCK. For example:...G91 G17 G41...N110 G1 X80 Y–50N120 G92 X0 Y0N130 X80 Y50...If co...

  • Page 130

    15 The Tool Compensation130Fig. 15.5.7-9Fig. 15.5.7-10Fig. 15.5.7-11A new compensation value can also becalled at address D in offset mode. In theevent of a reversal in the sign of the ra-dius, the direction of motion along thecontours will be reversed (see earlier).Otherwise, the following proce...

  • Page 131

    15 The Tool Compensation131Fig. 15.5.7-12Fig. 15.5.7-13Fig. 15.5.7-14When the radius compensation is applied to acircle of a variable radius, the control will cal-culate the compensation vector(s) to an imagi-nary circle at the start point thereof, the radiusof which is equal to the start-point r...

  • Page 132

    15 The Tool Compensation132Fig. 15.5.7-15Fig. 15.5.8-1Two or more compensation vectors may be producedwhen going around sharp corners. When their endpoints lie close to each other, there will be hardlyany motion between the two points.When the distance between the two vectors is smal-ler than the...

  • Page 133

    15 The Tool Compensation133Fig. 15.5.8-2Fig. 15.5.8-3In the other words the con-trol will check wether thecompensated displacementvector has a component op-posite to the programmeddisplacement vector or not.If parameter ANGLAL is set to 1, the control will, after an angle check, return an interfe...

  • Page 134

    15 The Tool Compensation134Fig. 15.5.8-4Automatic repairing of interference error by neglecting compensation vectors.If parameter ANGLAL is set to 0, the control will not return an error message, but will automati-cally attempt to correct the contour in order to avoid overcutting. The procedure o...

  • Page 135

    15 The Tool Compensation135Fig. 15.5.8-5Fig. 15.5.8-6Fig. 15.5.8-7Automatic repairing of interference error by adding gap vector.If 1262 ANGLAL= 0 and 1263GAP=0, the control tries to repairinterference error by neglectingcompensation vectors as discus-sed before in state G41, G42.If 1262 ANGLAL= ...

  • Page 136

    15 The Tool Compensation136Fig. 15.5.8-8Fig. 15.5.8-9Fig. 15.5.8-10Milling a step smaller than the tool ra-dius along an arc. If parameter ANGLALis 0, the control will delete vector LP2 andwill interconnect vectors LP1 and LP3 by astraight line to avoid a cut-in. If parame-ter ANGLAL is 1 it ret...

  • Page 137

    15 The Tool Compensation13715.6 Three-dimensional Tool Offset (G41, G42)The 2D tool radius compensation will offset the tool in the plane selected by commands G17,G18, G19. The application of the three-dimensional tool compensation enables the tool compen-sation to be taken into account in three ...

  • Page 138

    15 The Tool Compensation138Fig. 15.6.2-115.6.2 The Three-dimensional Offset VectorThe control will generate the components of compensation vectors in the following way:where r is the compensation value called at address D,P is the dominator constant,I, J, K are values specified in the program.The...

  • Page 139

    15 The Tool Compensation139It is not feasible to set up the three-dimensional compensation and two-dimensional radius com-pensation simultaneously.

  • Page 140

    16 Special Transformations140Fig. 16.1-1Fig. 16.1-216 Special Transformations16.1 Coordinate System Rotation (G68, G69)A programmed shape can be rotated in the plane selected by G17, G18, G19 by the use ofcommandG68 p q RThe coordinates of the center of rotation will be specifiedat address p and ...

  • Page 141

    16 Special Transformations141Fig. 16.1-3Fig. 16.2-1Example:N1 G17 G90 G0 X0 Y0N2 G68 X90 Y60 R60N3 G1 X60 Y20 F150 (G91 X60 Y20 F150)N4 G91 X80N5 G3 Y60 R100N6 G1 X-80N7 Y-60N8 G69 G90 X0 Y016.2 Scaling (G50, G51)CommandG51 v Pcan be used for scaling a programmed shape.P1...P4:points specified ...

  • Page 142

    16 Special Transformations142Fig. 16.2-2For example:N1 G90 G0 X0 Y0N2 G51 X60 Y140 P0.5N3 G1 X30 Y100 F150 (G91 X30 Y100 F150)N4 G91 X100N5 G3 Y60 R100N6 G1 X-100N7 Y-60N8 G50 G90 X0 Y016.3 Programmable Mirror Image (G50.1, G51.1)A programmed shape can be projected as a mirror image along the c...

  • Page 143

    16 Special Transformations143Fig. 16.3-1Example:subprogramO0101N1 G90 G0 X180 Y120 F120N2 G1 X240N3 Y160N4 G3 X180 Y120 R80N5 M99main programO0100N1 G90(absolute coordinate specification)N2 M98 P101(call of subprogram)N3 G51.1 X140(mirror image applied to an axis parallel to axis Y oncoordinate X...

  • Page 144

    16 Special Transformations144Fig. 16.4-1It is evident from the figure that the order of applying the various transformations is relevant.The programmed mirror image is a different case. It can be set up in states G50 and G69 only,i.e., in the absence of scaling and rotation commands.On the other ...

  • Page 145

    17 Automatic Geometric Calculations145Fig. 17.1-1Fig. 17.1-2Fig. 17.1-317 Automatic Geometric Calculations17.1 Programming Chamfer and Corner RoundThe control is able to insert chamfer or rounding between two blocks containing linear (G01) orcircle interpolation (G02, G03) automatically.A chamfer...

  • Page 146

    17 Automatic Geometric Calculations146Fig. 17.2-1L Note: – Chamfer or rounding can only be programmed between the coordinates of the selected plane(G17, G18, G19), otherwise error message 3081 DEFINITION ERROR ,C ,R is sent bythe control. – Chamfer or corner rounding can only be applied betwe...

  • Page 147

    17 Automatic Geometric Calculations147Fig. 17.2-2For example:G17 G90 G0 X57.735 Y0 ... G1 G91...X100 ,A30(this specification is equi-valent to X100 Y57.735 where7.735=100Atg30°)Y100 ,A120(this specification is equi-valent to X-57.735 Y100 where!57.735=100/tg120°)X-100 ,A210 (this sp ecification...

  • Page 148

    17 Automatic Geometric Calculations148Fig. 17.3.1-117.3 Intersection Calculations in the Selected PlaneIntersection calculations discussed here are only executed by the control when tool radius com-pensation (G41 or G42 offset mode) is on. If eventually no tool radius compensation is neededin the...

  • Page 149

    17 Automatic Geometric Calculations149Fig. 17.3.1-2Fig. 17.3.1-3Fig. 17.3.1-4For example:G17 G90 G41 D0...G0 X90 Y10N10 G1 ,A150N20 X10 Y20 ,A225G0 X0 Y20...Block N10 can also be given with the coordi-nates of a point of the straight line:G17 G90 G41 D0...G0 X90 Y10N10 G1 X50 Y33.094N20 X10 Y20 ,...

  • Page 150

    17 Automatic Geometric Calculations150Fig. 17.3.2-1Fig. 17.3.2-217.3.2 Linear-circular IntersectionIf a circular block is given after a linear block in a way that the end and center position coordina-tes as well as the radius of the circle are specified, i.e., the circle is determined over, then ...

  • Page 151

    17 Automatic Geometric Calculations151Fig. 17.3.2-3Fig. 17.3.2-4Let us see the following example:%O9981N10 G17 G42 G0 X100 Y20 D0 S200 M3N20 G1 X-30 Y-20N30 G3 X20 Y40 I20 J-10 R50 Q-1N40 G40 G0 Y60N50 X120N60 M30%%O9982N10 G17 G42 G0 X100 Y20 D0 S200 M3N20 G1 X-30 Y-20N30 G3 X20 Y40 I20 J-10 R50...

  • Page 152

    17 Automatic Geometric Calculations152Fig. 17.3.3-1Fig. 17.3.3-217.3.3 Circular-linear IntersectionIf a linear block is given after a circular block in a way that the straight line is defined over, i.e.,both its end point coordinate and the angle are specified, then the control calculates inters...

  • Page 153

    17 Automatic Geometric Calculations153Fig. 17.3.3-3Fig. 17.3.3-4Let us see an example:%O9983N10 G17 G0 X90 Y0 M3 S200N20 G42 G1 X50 D0N30 G3 X-50 Y0 R50N40 G1 X-50 Y42.857 ,A171.87 Q-1N50 G40 G0 Y70 N60 X90N70 M30%%O9984N10 G17 G0 X90 Y0 M3 S200N20 G42 G1 X50 D0N30 G3 X-50 Y0 R50N40 G1 X-50 Y42.8...

  • Page 154

    17 Automatic Geometric Calculations154Fig. 17.3.4-1Fig. 17.3.4-217.3.4 Circular-circular IntersectionIf two successive circular blocks are specified so that the end point, the center coordinates as wellas the radius of the second block are given, i.e., it is determined over the control calculates...

  • Page 155

    17 Automatic Geometric Calculations155Fig. 17.3.4-3Fig. 17.3.4-4Let us see the following example:%O9985N10 G17 G54 G0 X200 Y10 M3 S200N20 G42 G1 X180 D1N30 G3 X130 Y-40 R-50N40 X90 Y87.446 I50 J30 R70 Q–1N50 G40 G0 Y100N60 X200N70 M30%%O9986N10 G17 G54 G0 X200 Y10 M3 S200N20 G42 G1 X180 D1N30 G...

  • Page 156

    17 Automatic Geometric Calculations156Fig. 17.3.5-117.3.5 Chaining of Intersection CalculationsIntersection calculation blocks can be chained, i.e., more successive blocks can be selected forintersection calculation. The control calculates intersection till straight lines or circles determinedove...

  • Page 157

    18 Canned Cycles for Drilling157Fig. 18-118 Canned Cycles for DrillingA drilling cycle may be broken up into the following operations.Operation 1: Positioning in the Selected PlaneOperation 2: Operation After PositioningOperation 3: Movement in Rapid Traverse to Point ROperation 4: Operation ...

  • Page 158

    18 Canned Cycles for Drilling158Fig. 18-2Axes U, V, W are regarded to be parallel ones when they are defined in parameters.The drilling cycles can be configured with instructions G98 and G99.G98 : The tool is retracted as far as the initial point in the course of the drilling cycle. Anormal (def...

  • Page 159

    18 Canned Cycles for Drilling159Fig. 18-3Initial point:The initial point is the position of axis selected for drilling; it will be recorded – when the cycle mode is set up. For example, in the case ofN1 G17 G90 G0 Z200N2 G81 X0 Y0 Z50 R150N3 X100 Y30 Z80the position of initial point will be Z=2...

  • Page 160

    18 Canned Cycles for Drilling160Fig. 18-4rapid traverse.Data of drillingBottom position of the hole (point Z): Xp, Yp, ZpThe bottom position of the hole or point Z (in case of G17) has to be specified at the address ofthe drilling axis. The coordinate of the bottom point of the hole will always b...

  • Page 161

    18 Canned Cycles for Drilling161Fig. 18-5Dwell (P)Specifies the time of dwell at the bottom of the hole. Its specification is governed by the rules de-scribed at G04. The value of the dwell is a modal one deleted by G80 or by the codes of the inter-polation group.Feed (F)It will define the feed. ...

  • Page 162

    18 Canned Cycles for Drilling162Fig. 18-6N2 G81 YI60 Z–40 R3 F50 L6Under the above instructions the control will drill6 holes spaced at 60 degrees around a circle of a200mm radius. The position of the first hole coin-cides with the point of X=200 Y=0 coordinates.

  • Page 163

    18 Canned Cycles for Drilling163Fig. 18.1.1-118.1 Detailed Description of Canned Cycles18.1.1 High Speed Peck Drilling Cycle (G73)The variables used in the cycle areG17 G73 Xp__ Yp__ Zp__ R__ Q__ E__ F__ L__G18 G73 Zp__ Xp__ Yp__ R__ Q__ E__ F__ L__G19 G73 Yp__ Zp__ Xp__ R__ Q__ E__ F__ ...

  • Page 164

    18 Canned Cycles for Drilling164Fig. 18.1.2-118.1.2 Counter Tapping Cycle (G74)This cycle can be used only with a spring tap. The variables used in the cycle areG17 G74 Xp__ Yp__ Zp__ R__ (P__) F__ L__G18 G74 Zp__ Xp__ Yp__ R__ (P__) F__ L__G19 G74 Yp__ Zp__ Xp__ R__ (P__) F__ L__Prio...

  • Page 165

    18 Canned Cycles for Drilling16518.1.3 Fine Boring Cycle (G76)

  • Page 166

    18 Canned Cycles for Drilling166Fig. 18.1.3-1Cycle G76 is only applicable when the facility of spindle orientation is incorporated in the machi-ne-tool. In this case parameter ORIENT1 is to be set to 1, otherwise message 3052 ERROR ING76 is returned.Since, on the bottom point, the cycle performs ...

  • Page 167

    18 Canned Cycles for Drilling167Fig. 18.1.5-118.1.4 Canned Cycle Cancel (G80)The code G80 will cancel the cycle state, the cycle variables will be deleted.Z and R will assume incremental 0 value (the rest of variables will assume 0).With coordinates programmed in block G80 but no other instructio...

  • Page 168

    18 Canned Cycles for Drilling168Fig. 18.1.6-118.1.6 Drilling, Counter Boring Cycle (G82)The variables used in the cycle areG17 G82 Xp__ Yp__ Zp__ R__ P__ F__ L__G18 G82 Zp__ Xp__ Yp__ R__ P__ F__ L__G19 G82 Yp__ Zp__ Xp__ R__ P__ F__ L__the operations of the cycle are1.rapid-traverse pos...

  • Page 169

    18 Canned Cycles for Drilling169Fig. 18.1.7-118.1.7 Peck Drilling Cycle (G83)The variables used in the cycle areG17 G83 Xp__ Yp__ Zp__ R__ Q__ E__ F__ L__G18 G83 Zp__ Xp__ Yp__ R__ Q__ E__ F__ L__G19 G83 Yp__ Zp__ Xp__ R__ Q__ E__ F__ L__The oprations of the cycle are1.rapid-traverse pos...

  • Page 170

    18 Canned Cycles for Drilling170Fig. 18.1.8-118.1.8 Tapping Cycle (G84)This cycle can be used only with a spring tap.The variables used in the cycle areG17 G84 Xp__ Yp__ Zp__ R__ (P__) F__ L__G18 G84 Zp__ Xp__ Yp__ R__ (P__) F__ L__G19 G84 Yp__ Zp__ Xp__ R__ (P__) F__ L__Direction of ...

  • Page 171

    18 Canned Cycles for Drilling17118.1.9 Rigid (Clockwise and Counter-clockwise) Tap Cycles (G84.2, G84.3)In a tapping cycle the quotient of the drill-axis feed and the spindle rpm must be equal to thethread pitch of the tap. In other words, under ideal conditions of tapping, the quotient must be ...

  • Page 172

    18 Canned Cycles for Drilling172Fig. 18.1.9-1 – In state G94 (feed per minute), where P is the thread pitch in mm/rev or inches/rev,S is the spindle speed in rpmIn this case the displacement and the feed along the drilling axis and the spindle will beas follows (Z assumed to be the drilling axi...

  • Page 173

    18 Canned Cycles for Drilling173Fig. 18.1.9-25.linear interpolation between the drilling axis and the spindle, with the spindle ro-tated in clockwise direction6.-7.linear interpolation between the drilling axis and the spindle, with the spindle be-ing rotated counter-clockwise8.-9.with G98, rapid...

  • Page 174

    18 Canned Cycles for Drilling174Fig. 18.1.10-118.1.10 Boring Cycle (G85)The variables used in the cycle areG17 G85 Xp__ Yp__ Zp__ R__ F__ L__G18 G85 Zp__ Xp__ Yp__ R__ F__ L__G19 G85 Yp__ Zp__ Xp__ R__ F__ L__The operations of the cycle are1.rapid-traverse positioning in the selected pla...

  • Page 175

    18 Canned Cycles for Drilling175Fig. 18.1.11-118.1.11 Boring Cycle Tool Retraction with Rapid Traverse (G86)The variables used in the cycle areG17 G86 Xp__ Yp__ Zp__ R__ F__ L__G18 G86 Zp__ Xp__ Yp__ R__ F__ L__G19 G86 Yp__ Zp__ Xp__ R__ F__ L__The spindle has to be given rotation of M3 ...

  • Page 176

    18 Canned Cycles for Drilling176Fig. 18.1.12-118.1.12 Boring Cycle/Back Boring Cycle (G87)The cycle will be performed in two different ways.A. Boring Cycle, Manual Operation at Bottom PointUnless the machine is provided with the facility of spindle orientation (parameter ORIENT1=0),the control wi...

  • Page 177

    18 Canned Cycles for Drilling177Fig. 18.1.12-2B. Back Boring CycleIf the machine is provided with the facility of spindle orientation (parameter ORIENT1=1), thecontrol will act in conformity with case "B".The variables of cycle areG17 G87 Xp__ Yp__ I__ J__ Zp__ R__ F__ L__G18 G87 Z...

  • Page 178

    18 Canned Cycles for Drilling178Fig. 18.1.13-118.1.13 Boring Cycle (Manual Operation on the Bottom Point) (G88)The variables used in the cycle areG17 G88 Xp__ Yp__ Zp__ R__ P__ F__ L__G18 G88 Zp__ Xp__ Yp__ R__ P__ F__ L__G19 G88 Yp__ Zp__ Xp__ R__ P__ F__ L__The spindle must be given ro...

  • Page 179

    18 Canned Cycles for Drilling179Fig. 18.1.14-118.1.14 Boring Cycle (Dwell on the Bottom Point, Retraction with Feed) (G89)The variables used in the cycle areG17 G89 Xp__ Yp__ Zp__ R__ P__ F__ L__G18 G89 Zp__ Xp__ Yp__ R__ P__ F__ L__G19 G89 Yp__ Zp__ Xp__ R__ P__ F__ L__The operations of...

  • Page 180

    18 Canned Cycles for Drilling18018.2 Notes to the Use of Canned Cycles for Drilling – The drilling cycle will be executed in cycle mode provided a block without code G containsone of the addressesXp, Yp, Zp, or ROtherwise, the drilling cycle will not be executed. – With dwell G04 P programmed...

  • Page 181

    19 Chopping Function (G81.1, G81)181Fig. 19-119 Chopping Function (G81.1, G80)This function serves for programming chopping movement of the axis of grinding wheel duringcontour grinding. Chopping happens perpendicular to the plane of contour grinding. E.g.: Ifgrinding is done in XY plane chopping...

  • Page 182

    19 Chopping Function (G81.1, G81)182Feedrate of ChoppingFeedrate override switch has no effect to the feedrate of chopping. A separate override switch canbe applied to chopping, that is supplied by machine tool builder and operation of it is publishedin the manual of machine tool. The feedrate of...

  • Page 183

    19 Chopping Function (G81.1, G81)183Fig. 19-2ExampleG90 G81.1 Z-10 R12 Q-12 F1000Movement begins with position-ing with rapid traverse to pointZ=2 (R point). Then it moveswith feedrate F1000 to the lowerdead point Z=-22, then to upperdead point Z=-10. Then choppingis done between the two deadpoints.

  • Page 184

    20 Measurement Functions184Fig. 20.1-120 Measurement Functions20.1 Skip Function (G31)InstructionG31 v (F) (P)starts linear interpolation to the point of v coordinate. The motion is carried on until an externalskip signal (e.g. that of a touch-probe) arrives or the control reaches the end-point p...

  • Page 185

    20 Measurement Functions185Fig. 20.1-2Fig. 20.1-3Fig. 20.2-1returned if state G95, G51, G51.1, G68 or G16 is in effect.The value specified at coordinates v may be an incremental or an absolute one. If the next move-ment command following G31 block is specified in incremental coordinates, the moti...

  • Page 186

    20 Measurement Functions186The appropriate H value and the length compensation have to be set up prior to commencementof the measurement. – G37 is a single-shot instruction. – Cycle G37 will be executed invariably in the coordinate system of the current workpiece. – Parameters RAPDIST and A...

  • Page 187

    21 Safety Functions187Fig. 21.1-121 Safety Functions21.1 Programmable Stroke Check (G22, G23)InstructionG22 X Y Z I J K Pwill forbid to enter the area selected by the command. Meaning of addresses:X:limit along axis X in positive directionI:limit along axis X in negative directionY:limit along ax...

  • Page 188

    21 Safety Functions188Fig. 21.2-1holder will not be allowed into the prohibited area. It is advisable to set the border of the forbid-den area at the axis of the tool for the longest one. – Programable stroke check function is not available for the additional axes. – Instructions G22, G23 hav...

  • Page 189

    21 Safety Functions189Fig. 21.3-1Fig. 21.3-221.3 Stroke Check Before Movement The control differentiates two forbidden areas. The first is the parametric overtravel area whichdelimits the physically possible movement range of the machine. The extreme positions of thatrange are referred to as limi...

  • Page 190

    22 Custom Macro19022 Custom Macro22.1 The Simple Macro Call (G65)As a result of instructionG65 P(program number) L(number of repetitions) <argument assignment>the custom macro body (program) specified at address P (program number) will be called asmany times as is the number specified at ad...

  • Page 191

    22 Custom Macro191In the above example, variable #8 has already been assigned a value by the second address J(value, -12), since the value of address E is also assigned to variable #8, the control returns errormessage 3064 BAD MACRO STATEMENT.A decimal point and a sign can also be transferred at ...

  • Page 192

    22 Custom Macro19222.2.2 Macro Modal Call From Each Block (G66.1)As a result of commandG66.1 P(program number) L(number of repetitions) <argument assignment>all subsequent blocks will be interpreted as argument assignment, and the macro of the numberspecified at address P will be called, an...

  • Page 193

    22 Custom Macro193the rules of argument assignment described under point 2. No macro will be called if an emptyblock is found (e.g., N1240) where a reference is made to a single N address, or from a blockcontaining a macro instruction.22.3 Custom Macro Call Using G CodeMaximum 10 different G code...

  • Page 194

    22 Custom Macro194The particular program number to be called by the calling M code has to be selected by parame-ters.M(9020)=code M calling program O9020M(9021)=code M calling program O9021 :M(9029)=code M calling program O9029Code M can specify invariably a type G65 call (i.e., a non-modal on...

  • Page 195

    22 Custom Macro19522.6 Subprogram Call with T CodeWith parameter T(9034)=1 set, the value of T written in the program will not be transferred tothe PLC, instead, the T code will initiate the call of subprogram No. O9034.Now blockGg Xx Yy Ttwill be equivalent to the following two blocks:#199=tGg X...

  • Page 196

    22 Custom Macro196If a call of a user G, M, S, T code is made in the subprogram, FGMAC=0, not enabled (executed as ordinary codes M, S, ... G) FGMAC=1, enabled, i.e. a new call is generated.22.9 Differences Between the Call of a Subprogram and the Call of a Macro – A macro call may include argu...

  • Page 197

    22 Custom Macro197Including only the interpolations, the sequence of executions will beOf the numbers in brackets, the first and the second ones are the numbers of the programs andblock being executed, respectively.Instruction G67 specified in block N14 will cancel the macro called in block N12 (...

  • Page 198

    22 Custom Macro19822.10 Format of Custom Macro BodyThe program format of a user macro is identical with that of a subprogram:O(program number):commands:M99The program number is irrelevant, but the program numbers between O9000 and O9034 are re-versed for special calls.22.11 Variables of the Progr...

  • Page 199

    22 Custom Macro199 – The number of a variable may not be substituted for by a variable, i.e. ##120 is notpermissible. The correct specification is #[#120]. – If the variable is used behind an address, its value may not exceed the range of values permis-sible for the particular address. If, e....

  • Page 200

    22 Custom Macro200Difference between a vacant variable and a 0 - value one in a conditional expression will be if #1=<vacant> if #1=0 #1 EQ #0 #1 EQ #0 * * fulfilled not fulfilled #...

  • Page 201

    22 Custom Macro20122.12.3 System VariablesThe system variables are fixed ones providing information about the states of the system.Interface input signals - #1000–#1015, #103216 interface input signals can be determined, one by one, by reading the system variables #1000through #1015. Name of s...

  • Page 202

    22 Custom Macro202Interface output signals - #1100–#1115, #113216 interface output signals can be issued, one by one, by assigning values to variables #1100through #1115. Name of system variables Interface input with reference to the PLC program ...

  • Page 203

    22 Custom Macro203Work zero-point offsets - #5201 through #5328The work zero-point offsets can be read at variables #5201 through #5328, or values can be assig-ned them.No. of value of variablevariableworkpiececoordinatesystem#5201common work zero point offset, axis 1common forall thecoo...

  • Page 204

    22 Custom Macro204permissible.Alarm - #3000By defining#3000=nnn(ALARM),a numerical error message (nnn=max. three decimal digits) and the text of error message can beprovided. The text must be put in (,) brackets. A message may not be longer than 25 characters.If the macro contains an error, i.e.,...

  • Page 205

    22 Custom Macro205Suppression of stop button, feed override, exact stop - #3004Under the conditions of suppression of feed stop function, the feed will stop after the stop buttonis pressed when the suppression is released.When the feedrate override is suppressed, the override takes the value of 1...

  • Page 206

    22 Custom Macro206Number of machined parts, number of parts to be machined - #3901, #3902The numbers of machined parts are collected in counter #3901 by the control. The contents ofthe counter will be incremented by 1 upon the execution of each function M02, M30 or selectedM functions in paramete...

  • Page 207

    22 Custom Macro207Instantaneous positions in the coordinate system of the machine system nature of position information entry during variable motion #5021 instantaneous coordinate of axis 1 (G53) #5022 instantaneous...

  • Page 208

    22 Custom Macro208Fig. 22.12.3-1Fig. 22.12.3-2Tool-length compensation system nature of position information entry during variable motion #5081 length compensation on axis 1 #5082 length compensation on axis 2 : ...

  • Page 209

    22 Custom Macro209Servo lag system nature of position information entry during variable motion #5101 servo lag in axis 1 #5102 servo lag in axis 2 : not possible #...

  • Page 210

    22 Custom Macro210As a result of the operation, variable #i will assume the difference of the values of variab-les #j and #k.Logical sum, or: #i = #j OR #kThe code of the operation is OR.As a result of operation, the logic sum of variables #j and #k will be entered in variable#i at every bit of 3...

  • Page 211

    22 Custom Macro211Cosine: #i = COS #jThe code of operation is COS.As a result of operation, variable #i will assume the cosine of variable #j. The value of#j always refers to degrees.Tangent: #i = TAN #jThe code of operation is TAN.As a result of operation, variable #i will assume the tangent of ...

  • Page 212

    22 Custom Macro212The code of the function is FIX.This operation will discard the fraction of variable #j, and that value will be put in variab-le #i.For example,#130 = FIX 4.8 = 4#131 = FIX –6.7 = –6Add 1 for fractions less than 1: #i = FUP #jThe code of the function is FUPThis operation wil...

  • Page 213

    22 Custom Macro21322.13.3 Logical OperationsThe programming language uses the following logical operations:equal to#i EQ #jnot equal to#i NE #jgreater than#i GT #jless than#i LT #jgreater than or equal to#i GE #jless than or equal to#i LE #jThe variables on both sides of a logical operation can b...

  • Page 214

    22 Custom Macro21422.13.7 Iteration: WHILE[<conditional expression>] Dom ... ENDmAs long as [<conditional expression>] is satisfied, the blocks following DOm up to block ENDmwill be repeatedly executed. In the instruction, the control will check wether the condition hasbeen fulfilled;...

  • Page 215

    22 Custom Macro215 – Pairs DOm ... ENDm can be nested into one another at three levels. : DO1 : DO2 : DO3 : : correct : END3 : END2 : END1 : – Pairs DOm ... ENDm may not be overlapped. : DO1 : DO2 : : ...

  • Page 216

    22 Custom Macro216 – No entry is permissible into a cycle from outside. : GOTO150 : DO1 : : false : N150 : END1 : or : DO1 : N150 : : false : END1 : GOTO150 : – A subprogram or a macro can be ca...

  • Page 217

    22 Custom Macro217Opening a peripheral - POPENnBefore issuing a data output command, the appropriate peripheral has to be opened, throughwhich the data output is to be performed. The appropriate peripheral is selected by number n.n = 1RS–232C interface of serial channeln = 31 memory of control...

  • Page 218

    22 Custom Macro218 Characters to be output areDecimal data output - DPRNT[...]All characters and digits will be output in ISO or ASCII code, depending on the parametersetting. – For the rules of character outputs, see instruction BPRNT. – For the output of variable values, the numbers of de...

  • Page 219

    22 Custom Macro219Example: Output of data with PRNT=0: 7 6 5 4 3 2 1 0 1 1 0 1 1 0 0 0 --- X 1 0 1 0 0 0 0 0 --- Space 1 0 1 0 0 0 0 0 --- Space 1 0 1 0 0 0 0 0 --- Space 1 0 1 0 0 0 0 0 --- Space 0 0 1 1 0 0 1 1 --- 3 0 0 1 1 0 1 0 1 --- 5 0 0 1 0 1 1 1 0 --- Decimal...

  • Page 220

    22 Custom Macro220 Data output at PRNT=1:Closing a peripheral - PCLOSnThe peripheral opened with command POPEN has to be closed with command PCLOS. Com-mand PCLOS has to be followed by the specification of the number of peripheral to be closed.At the time of closing, a % character is also sent ...

  • Page 221

    22 Custom Macro221Fig. 22.15-1Fig. 22.15-2 – blocks containing control commands (GOTO, DO, END) – blocks containing macro calls (G65, G66, G66.1, G67, or codes G, or M that initiate macrocalls). – blocks containing subprogram calls (M98 P or subprogram calls initiated on addresses A, B,C, S...

  • Page 222

    22 Custom Macro22222.16 Displaying Macros and Subprograms in Automatic ModeThe blocks of macros and subprograms will be displayed by the control in automatic mode. If pa-rameter MD8 is set to 0, the blocks of subprograms and macros numbered 8000 to 8999 will notbe listed when they are executed. W...

  • Page 223

    22 Custom Macro223Fig. 22.18-122.18 Pocket-milling Macro CycleInstructionG65 P9999 X Y Z I J K R F D E Q M S Twill start a pocket-milling cycle. For the execution of the cycle, macro of program number O9999has to be filled in the memory, from the PROM memory of the control.Prior to calling the cy...

  • Page 224

    22 Custom Macro224Fig. 22.18-2 E = width of cutting, in percent of milling diameterwith + sign, machining in counter-clockwise sense,with – sign, machining in clockwise sense.Two types of information can be specified at address E. The value of E defines the width of cut-ting in percent of milli...

  • Page 225

    22 Custom Macro225Fig. 22.18-3Fig. 22.18-4Unless the width of pocket and the rounding radii of corners have been specified, the tool diame-ter applied will be taken for the width of pocket (groove).If neither the length nor the width of pocket has been specified, only address R has been program-m...

  • Page 226

    22 Custom Macro226 – The value specified for the width of cutting is 0 or the tool radius called is 0 – The value of depth of cut is 0, i.e. 0 has been programmed at address Q.

  • Page 227

    Notes227Notes

  • Page 228

    Index in Alphabetical Order228Index in Alphabetical Order:#0 ............................ 199#10001–#13999 ................. 202#1000–#1015 ................... 201#1032 ......................... 201#1100–#1115 ................... 202#1132 ......................... 202#195 .....................

  • Page 229

    Index in Alphabetical Order229Feed Reduction ................... 53FINADIFF ................... 63, 72FINADIFFn ..................... 72Format .......................... 10full arc of circle ................. 131full circle ....................... 131going around sharp corners ........ 132Going a...

  • Page 230

    Index in Alphabetical Order230CRITICAN ................. 54, 68CUTTING2 ................... 204DECDIST ..................... 52DELTV ...................... 132DOMCONST ................. 138EXTER ...................... 187FDFORWEN ................ 60, 68FDFORWRAP .............. 60, 68FEED ...........

  • Page 231

    Index in Alphabetical Order231SELECT ................... 59, 69SKIPF ....................... 184STRKEG ..................... 187T(9034) ...................... 195TAPDWELL .............. 164, 170TEST FEED .................... 30WRPROT1 ................... 200ZAXOVEN .................... 69Part Pro...

  • Page 232

    Index in Alphabetical Order232

x