Navigation

  • Page 1

    NCT®101T, 104T, 115TControls for LathesProgrammer's ManualFrom SW version x.066

  • 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: actionURI(mailto:nct@nct.hu):nct@nct.huHome Page: www.nct.hu

  • Page 3

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

  • Page 4

    46.4.5 Automatic Corner Override (G62).................................... 48,486.4.6 Internal Circular Cutting Override.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49,496.5 Automatic Deceleration at Corners. ...................................... 49,496.6 Limiting Ac...

  • Page 5

    513.3.3 Jump within the Main Program. .................................... 77,7714 The Tool Compensation. ................................................. 78,7814.1 Reference to Tool Offset............................................... 78,7814.2 Modification of Tool Offset Values from the Pr...

  • Page 6

    618.1.2 Counter Tapping Cycle (G84.1). .................................. 161,16118.1.3 Fine Boring Cycle (G86.1). ...................................... 162,16218.1.4 Canned Cycle for Drilling Cancel (G80). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163,16318.1.5 Drilling, Spot B...

  • Page 7

    722.12.1 Local Variables . .............................................. 196,19622.12.2 Common Variables . ........................................... 196,19622.12.3 System Variables. ............................................. 197,19722.13 Instructions of the Programming Language. . . . . ...

  • Page 8

    8 © Copyright NCT February 5, 2010The 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

    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...

  • Page 10

    9,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, w...

  • Page 11

    9,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 referre...

  • Page 12

    9,1 Introduction12Fig. 12,1.2-1F 12,ig. 12,1.2-2F 12,ig. 12,1.2-31.2 Fundamental TermsThe InterpolationThe control system can move the tool along straight linesand arcs in the course of machining. These activities willbe hereafter referred to as "interpolation".Tool movement along a...

  • Page 13

    9,1 Introduction13Fig. 12,1.2-4F 12,ig. 12,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 inter-pret data of absolute coordinates as we...

  • Page 14

    9,1 Introduction14Fig. 12,1.2-6Incremental Coordinate SpecificationIn the case of an incremental data specification, the controlsystem will interpret the coordinate data in such a way thatthe tool will travel a distance measured from its instanta-neous position:U–50 W–125The code of increme...

  • Page 15

    9,1 Introduction15Fig. 12,1.2-7F 12,ig. 12,1.2-8Miscellaneous FunctionsA number of switching operations have to be carried out in the course of machining. For example,starting the spindle, turning on the coolant. Those operations can be performed with M (miscella-neous) functions. E.g., in the...

  • Page 16

    16,2 Controlled Axes16Fig. 16,2.1-12 Controlled AxesNumber of Axes (in basic configuration)2 axesIn expanded configuration6 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 ...

  • Page 17

    16,2 Controlled Axes17perform the conversion.The rotational axes are always provided with degrees as units of measure.The input increment system of the control is regarded as the smallest unit to be entered. It canbe selected as parameter. There are three increment systems available IS-A, IS-B ...

  • Page 18

    18,3 Preparatory Functions (G codes)183 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 codeG roupFunctionP...

  • Page 19

    18,3 Preparatory Functions (G codes)G codeG roupFunctionP age19G40*07Tool nose radius compensation cancel 84,84G41Tool nose radius compensation left 84,84, 88, 88,88G42Tool nose radius compensation right 84,84, 88, 88,88G50*11Scaling cancel 113,113G51Scaling 113,113G50.1*18Programable mirror i...

  • Page 20

    18,3 Preparatory Functions (G codes)G codeG roupFunctionP age20G79End face turning cycle 131,131G8009Canned cycle for drilling cancel* 163,163G81Drilling, spot boring cycle, 163,163G82Drilling, counter boring cycle 164,164G83Peck drilling cycle 165,165G83.1High Speed Peck Drilling Cycle 160,160G...

  • Page 21

    18,3 Preparatory Functions (G codes)21within a particular block will produce error message 3005 ILLEGAL G CODE.

  • Page 22

    22,4 The Interpolation22Fig. 22,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....

  • Page 23

    22,4 The Interpolation23Fig. 22,4.2-1F 22,ig. 22,4.2-2Feed along the axis X isFeed along the axis Z iswhere x, z are the displacements programmed alongthe respective axes, L is the vectorial length of pro-grammed displacement:G01 X192 Z120 F0.15The feed along a rotational axis is interpreted i...

  • Page 24

    22,4 The Interpolation24F 24,ig. 24,4.3-1Fig 24,. 24,4.3-24.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 directio...

  • Page 25

    22,4 The Interpolation25Fig. 24,4.3-3F 24,ig. 24,4.3-4pppHere and hereinafter, the meanings of X , Y , and Z are:pX : Axis X or its parallel axis,pY : Axis Y or its parallel axis,pZ : Axis Z or its parallel axis.pppThe values of X , Y , and Z are the end-point coordinates of the circle in the ...

  • Page 26

    22,4 The Interpolation26Fig. 24,4.3-5F 24,ig. 24,4.3-6F 24,ig. 24,4.3-7The 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 Z100 I-100ppp – When each ...

  • Page 27

    22,4 The Interpolation27Fig. 24,4.3-8F 24,ig. 24,4.3-9If the specified circle radius is smaller than half the distan-ce of straight line inter-connecting the start point with theend point, the control will regard the specified radius of thecircle as the start-point radius, and will interpolate...

  • Page 28

    22,4 The Interpolation28Fig. 28,4.4-1Fig 28,. 28,4.4-24.4 Equal Lead Thread Cutting (G33)The instructionG33 v F QG33 v E Qwill define a straight or taper thread cutting of equal lead.The coordinates of maximum two axes can be written for vector v. The control will cut a taperedthread if two co...

  • Page 29

    22,4 The Interpolation29Fig. 28,4.4-3F 29,ig. 29,4.5-1An example of programming a thread-cutting:G0 G90 X50 Z40U-30G33 U10 W38 F2G0 U20W-38In the example above X is specified in diameter. L Notes: – The control returns error message 3020 DATA DEFINI-TION ERROR G33 if more than two coordinate...

  • Page 30

    30,4.6 30, Polar Coordinate Interpolation (G12.1, G13.1)30Fig. 30,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...

  • Page 31

    30,4.6 Polar Coordinate Interpolation (G12.1, G13.1)31Position of the axes when polar coordinate interpolation is switched onBefore switching polar coordinate interpolation on (command G12.1) make sure that the circularaxis position is 0. The linear axis position can either be negative or positi...

  • Page 32

    30,4.6 30, Polar Coordinate Interpolation (G12.1, G13.1)32Fig. 30,4.6-2F 30,ig. 30,4.6-3the rotary axis speed not to exceed all limits. The 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 un...

  • Page 33

    30,4.6 Polar Coordinate Interpolation (G12.1, G13.1)33N080 G94 Z-3 S1000 M3N090 G12.1(polar coordinate interpolation on)N100 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 co...

  • Page 34

    34,4.7 34, Cylindrical Interpolation (G7.1)34Fig. 34,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. The rotaryax...

  • Page 35

    34,4.7 Cylindrical Interpolation (G7.1)35F 34,ig. 4.7-2 – Switch-on of cylindrical interpolation (command G7.1 Qr) is only possible in state G40. – Should G41 or G42 be switched on in cylindrical interpolation mode, G40 must be program-med before switching cylindrical interpolation off (com...

  • Page 36

    36,5 The Coordinate Data36Fig. 36,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 c...

  • Page 37

    36,5 The Coordinate Data37unit prevailing at the time of power-off will be effective after power-on.The change of the unit will affect the following items:– Coordinate and compensation data,– Feed,– Constant surface speed– Position, compensation and feed displays.5.3 Specification and Va...

  • Page 38

    36,5 The Coordinate Data38Fig. 38,5.4-1The value ranges of angular coordinates:increment systemvalue range of angular coordinatesunit of measure IR-A± 0.01-999999.99degreesIR-B± 0.001-99999.999IR-C± 0.0001-9999.99995.4 Programming in Radius or DiameterSince the section of a turned work is ge...

  • Page 39

    36,5 The Coordinate Data395.5 Rotary Axis Roll-overThis function can be used in case of rotary axes, i.e., if address A, B or C is selected for operatingrotary axis. Handling of roll-over means, that the position on the given axis is not registered bet-ween plus and minus infinity, but regarding...

  • Page 40

    36,5 The Coordinate Data40Movement of rotary axis in case of absolute programmingIn case of absolute data input, when handling of roll-over is enabled for rotary axis (ROLLOV-EN_x=1), the axis never moves more than that set at appropriate parameter ROLLAMNT_x. Thatis, if, e.g., ROLLAMNT_C=360000...

  • Page 41

    36,5 The Coordinate Data41Movement 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 at para-meter 0...

  • Page 42

    42,6 The Feed42Fig. 42,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 trave...

  • Page 43

    42,6 The Feed436.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 or degree /m...

  • Page 44

    42,6 The Feed44The Table below shows the maximum programmable range of values at address F, for variouscases. input units 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...

  • Page 45

    42,6 The Feed45Fig. 45,6.3-1The maximum jog feed can also be clamped separately by parameters for human response times.6.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 p...

  • Page 46

    42,6 The Feed46Fig. 45,6.3-2Fig 45,. 45,6.3-3Fig 45,. 45,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 t...

  • Page 47

    42,6 The Feed47Fig. 47,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...

  • Page 48

    42,6 The Feed48Fig. 48,6.4.5-1Fig 48,. 48,6.4.5-2Fig 48,. 48,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...

  • Page 49

    42,6 The Feed49Fig. 49,6.4.6-16.4.6 Internal Circular Cutting OverrideWith the tool nose radius compensation on (G41, G42), thecontrol will automatically reduce the feed in machining theinside surface of an arc so that the programmed feed willbe effective along the cutting radius. The feed in t...

  • Page 50

    42,6 The Feed50Fig. 49,6.5-2F 49,ig. 49,6.5-1If no deceleration isexecuted at the cornerin two subsequent -N1, N2 blocks, feedxzdifferences (ÄF, ÄF)occur along the axes,which results in thetool rounding the realcorner.For the corner deceleration function to operate, parameter 2501 CDEN must...

  • Page 51

    42,6 The Feed51Fig. 49,6.5-5F 49,ig. 49,6.5-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 in state G94 (feed per minute).If feed is d...

  • Page 52

    42,6 The Feed52Fig. 52,6.6-1F 49,ig. 49,6.5-6In 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: Au...

  • Page 53

    53,7 The Dwell537 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 SECON...

  • Page 54

    54,8 The Reference Point54Fig. 54,8-1 8 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 syste...

  • Page 55

    54,8 The Reference Point558.2 Automatic Return to Reference Points 2, 3, 4 (G30)Series of instructionsG30 v Pwill send the axes of coordinates defined at the addresses of vector v to the reference pointdefined at address P.P1=reference point 1P2=reference point 2P3=reference point 3P4=reference...

  • Page 56

    54,8 The Reference Point56Fig. 55,8.3-1G29. If coordinate v has an incremental value, the displacement will be measured from the inter-mediate point.When the tool nose radius compensation is set up, it will move to the end point by taking into ac-count the compensation vector.A non-modal code.A...

  • Page 57

    57,9 Coordinate Systems, Plane Selection57Fig. 57,9-1F 57,ig. 57,9.1-19 Coordinate Systems, Plane SelectionThe position, to which the tool is to be moved, is specified with coordinate data in the program.When 2 axes are available (X, Z), the position of the tool is expressed by two coordinate ...

  • Page 58

    57,9 Coordinate Systems, Plane Selection58F 58,ig. 58,9.2.1-19.1.2 Positioning in the Machine Coordinate System (G53)InstructionG53 vwill move the tool to the position of v coordinate in the machine coordinate system. – Regardless of states G90, G91, coordinates v are always treated as absolu...

  • Page 59

    57,9 Coordinate Systems, Plane Selection59Fig. 58,9.2.1-2F 59,ig. 59,9.2.2-1Furthermore, all work coordinate system can be offset with a common value. It can also be en-tered in setting mode.9.2.2 Selecting the Work Coordinate SystemThe various work coordinate system can be selected with instr...

  • Page 60

    57,9 Coordinate Systems, Plane Selection60Fig. 59,9.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 on...

  • Page 61

    57,9 Coordinate Systems, Plane Selection61Fig. 61,9.2.4-1F 61,ig. 61,9.2.4-29.2.4 Creating a New Work Coordinate System (G92)InstructionG92 vwill establish a new work coordinate system insuch a way that coordinate point v of the newsystem will be a selected point - e.g. the tool'stip (if a len...

  • Page 62

    57,9 Coordinate Systems, Plane Selection62Fig. 62,9.3-1Fig 62,. 62,9.3-29.3 Local Coordinate SystemWhen writing part programs, it is sometimes more convenient to specify the coordinate data ina "local" coordinate system instead of the work coordinate system.InstructionG52 vwill creat...

  • Page 63

    57,9 Coordinate Systems, Plane Selection63Fig. 62,9.3-3F 63,ig. 63,9.4-1Programming instruction G92 will delete the offsets produced by instruction G52 on the axesspecified inG92 - as if command G52 v0 had been issued.Whenever the tool is at point of X=240, Z=200coordinates in the X, Z work co...

  • Page 64

    57,9 Coordinate Systems, Plane Selection64the 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 selec...

  • Page 65

    65,10 The Spindle Function65Fig. 65,10.2-110 The Spindle Function10.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 da...

  • Page 66

    65,10 The Spindle Function6610.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...

  • Page 67

    65,10 The Spindle Function6710.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, ...

  • Page 68

    65,10 The Spindle Function6810.5 Spindle Positioning (Indexing)A spindle positioning is only feasible after the spindle position control loop has been closed afterorientation. Accordingly, this function is used for closing the loop. The loop will be opened byrotation command M3 or M4.If the valu...

  • Page 69

    65,10 The Spindle Function69Fig. 68,10.6-2F 68,ig. 68,10.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 wit...

  • Page 70

    65,10 The Spindle Function70Fig. 68,10.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 absolut...

  • Page 71

    71,11 71, Tool Function7111 Tool FunctionThe first two digits of the number written at address T form the tool number, while the secondtwo digits form the offset number.Interpretation of the code written at address T:Meaning of command T1236: Activate tool No. 12 and use offset number 36. – Le...

  • Page 72

    72,12 M iscellaneous and Auxiliary Functions7212 Miscellaneous and Auxiliary Functions12.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 pro...

  • Page 73

    72,12 M iscellaneous and Auxiliary Functions7312.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 parameters. The value specified for the auxiliaryfunction w...

  • Page 74

    74,13 Part Program Configuration7413 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 of or-ganizing the part programs.13.1 Sequence N...

  • Page 75

    74,13 Part Program Configuration7513.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 t...

  • Page 76

    74,13 Part Program Configuration7613.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 pro...

  • Page 77

    74,13 Part Program Configuration77 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.13.3.3 Jump within the Main ProgramThe use of instructionM99in the main program will produce an unconditional jump to the...

  • Page 78

    78,14 The Tool Compensation7814 The Tool CompensationIn order not to take the overhang values, tool radii ect. belonging to the different tools into ac-count, the tool characteristics are gathered in a table, namely in the offset table. In case a tool iscalled in the part program, the place in t...

  • Page 79

    78,14 The Tool Compensation79Fig. 78,14.1-1F 78,ig. 78,14.1 -2Offsets in X, (Y), Z directions and ra-dius compensations (R) can be twotypes: Geometry and wear offsets.Geometry value: Length/radius of themeasured tool, signed number.Wear value: Amount of wear occurringin the course of machining...

  • Page 80

    78,14 The Tool Compensation80Fig. 78,14.1-3Value limits of geometric and wear offset values:input unitsystemoutput unitsystemincrementsystemgeometry valuew ear valuedi-mensionmmmmIR-A±0.01 ÷99999.99±0.01÷163.80mmIR-B±0.001÷9999.999±0.001÷16.380IR-C±0.0001÷999.9999±0.0001÷1.6380inchm...

  • Page 81

    78,14 The Tool Compensation81Fig. 78,14.1-4F 78,ig. 78,14.1-5The compensation code called is modal, thus the control takes the same offset amounts into ac-count until an other T command is received, i.e. when the compensation values are read bymeans of a T command, in this case the modificati...

  • Page 82

    78,14 The Tool Compensation82Fig. 82,14.3-114.2 Modification of Tool Offset Values from the Program (G10)BlockG10 L P X Y Z R QG10 L P XI YI ZI RI Q orG10 L P U V W C Qcan be used for modifying the tool offset values from the program. G10 is a single-shot command.The addresses and their values ...

  • Page 83

    78,14 The Tool Compensation83Fig. 82,14.3-2Let us see the above example:(T0000)N10 G0 (G90) X700 Z350N20 X300 Z150 T202In this case block N30 is left and the commands of blocks N20 and N30 are pooled. In block N20in the course of movement it is already the imaginary tool nose led to the positio...

  • Page 84

    78,14 The Tool Compensation84Fig. 84,14.4-1F 84,ig. 84,14.4-214.4 Tool Nose Radius Compensation (G38, G39, G40, G41, G42)If only tool length compensation is used, it isnot possible to turn an accurate tapered line ora circular arc. In this case the imaginary toolnose is guided by the control a...

  • Page 85

    78,14 The Tool Compensation85Fig. 84,14.4-3F 84,ig. 84,14.4-4The compensation vectors are computed in the plane selected by instructions G17, G18, G19.This is the plane of tool nose radius compensation. Movements outside of this plane are not in-fluenced by compensation. If, e.g., plane X, Z i...

  • Page 86

    78,14 The Tool Compensation86The 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 of a "female" part and of a "male" ...

  • Page 87

    78,14 The Tool Compensation87Fig. 84,14.4-5An 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 from theworkpiece side. The direction of á de-pend...

  • Page 88

    78,14 The Tool Compensation88Fig. 88,14.4.1-114.4.1 Start up of Tool Nose Radius 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 imaginary tool nose will coin-cide wit...

  • Page 89

    78,14 The Tool Compensation89Fig. 88,14.4.1-2F 88,ig. 88,14.4.1-3F 88,ig. 88,14.4.1-4Going around the outside of a corner at an obtuse angle, 90E#á#180EGoing around the outside of a corner at an acute angle, 0E#á<90ESpecial instances of starting up the radius compensation:If values are a...

  • Page 90

    78,14 The Tool Compensation90Fig. 88,14.4.1-5F 88,ig. 88,14.4.1-6F 88,ig. 88,14.4.1-7...G91 G18 G40...N110 G42 G1 X120 Z–80 I70 K50N120 Z100 ...In this case the control will always compute a point of in-tersection regardless of whether an inside or an outside cor-ner is to be machined.Unles...

  • Page 91

    78,14 The Tool Compensation91Fig. 88,14.4.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 G18 G0 X...

  • Page 92

    78,14 The Tool Compensation92Fig. 92,14.4.2-114.4.2 Rules of Tool Nose Radius 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,th...

  • Page 93

    78,14 The Tool Compensation93Fig. 92,14.4.2-2F 92,ig. 92,14.4.2-3It may occur that no intersection point is ob-tained with some tool nose radius values. Inthis case the control comes to a halt duringexecution of the previous interpolation and re-turns error message 3046 NO INTERSECTIONG41, G42...

  • Page 94

    78,14 The Tool Compensation94Fig. 92,14.4.2-4Fig 92,. 92,14.4.2-5Going around the outside of a corner at an acute angle, 0E#á<90ESpecial 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 ...

  • Page 95

    78,14 The Tool Compensation95F 95,ig. 95,14.4.3-1F 95,ig. 95,14.4.3-214.4.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 at...

  • Page 96

    78,14 The Tool Compensation96Fig. 95,14.4.3-3F 95,ig. 95,14.4.3-4F 95,ig. 95,14.4.3-5Going around the outside of a corner at an acute angle, 0E#á<90ESpecial instances of canceling offset mode:If values are assigned to I, J, K in the compensation cancel block (G40) - but only to those in t...

  • Page 97

    78,14 The Tool Compensation97Fig. 95,14.4.3-6F 95,ig. 95,14.4.3-7F 95,ig. 95,14.4.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...

  • Page 98

    78,14 The Tool Compensation98Fig. 98,14.4.4-114.4.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...

  • Page 99

    78,14 The Tool Compensation99Fig. 98,14.4.4-2F 98,ig. 98,14.4.4-3F 98,ig. 98,14.4.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:...

  • Page 100

    78,14 The Tool Compensation100Fig. 100,14.4.5-1Fig 100,. 100,14.4.5-214.4.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 bl...

  • Page 101

    78,14 The Tool Compensation101Fig. 100,14.4.6-1F 100,ig. 100,14.4.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 on...

  • Page 102

    78,14 The Tool Compensation102Fig. 102,14.4.7-1F 102,ig. 102,14.4.7-214.4.7 General Information on Tool Nose Radius 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 ...

  • Page 103

    78,14 The Tool Compensation103Fig. 102,14.4.7-3F 102,ig. 102,14.4.7-4F 102,ig. 102,14.4.7-5If no cut is feasible in direction Y unless the radius compensation isset up, the following procedure may be adopted:...G18 G91...N110 G41 G0 X140 Z50 N120 G1 Y-40N130 X80...Now the tool will have a cor...

  • Page 104

    78,14 The Tool Compensation104Fig. 102,14.4.7-6F 102,ig. 102,14.4.7-7F 102,ig. 102,14.4.7-8next 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 G18 G41...N110 G1 X–100 Z80N120 G92...

  • Page 105

    78,14 The Tool Compensation105Fig. 102,14.4.7-9F 102,ig. 102,14.4.7-10A new compensation value can also becalled at address T 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 ...

  • Page 106

    78,14 The Tool Compensation106Fig. 102,14.4.7-11Fig. 102,14.4.7-12Fig. 102,14.4.7-13A particular program detail or subprogram may be used also for machining a male or femalework-piece with positive or negative radius compensation, respectively, or vice-versa. Let us review the following small...

  • Page 107

    78,14 The Tool Compensation107Fig. 102,14.4.7-14Fig. 102,14.4.7-15Fig. 107,14.4.8-1When offset mode is canceled by programming I, J, K, a si-milar condition will emerge:...G18 G90 G41...N090 G1 Z60N100 G2 I-60N110 G40 G1 X360 Z120 I-60 K-60...1The tool center covers a full arc of a circle fro...

  • Page 108

    78,14 The Tool Compensation108Fig. 107,14.4.8-2F 107,ig. 107,14.4.8-3To avoid this, the control performs an interference check when parameter INTERFER is set to 1.Now the control will check that the condition -90E#n#+90E is fulfilled for angle n between theprogrammed displacement and the one c...

  • Page 109

    78,14 The Tool Compensation109Fig. 107,14.4.8-4If 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 of compensationis as follows.Each of blocks A, B and C are in offset ...

  • Page 110

    78,14 The Tool Compensation110Fig. 107,14.4.8-5F 107,ig. 107,14.4.8-6Fig 107,. 107,14.4.8-7Machining an inside corner with a radius smallerthan the tool radius. The control returns error mes-sage 3048 INTERFERENCE ALARM or else overcut-ting would occur.Cutting a step smaller than the tool ra...

  • Page 111

    78,14 The Tool Compensation111Fig. 107,14.4.8-8In the above example an interference error isreturned again because the displacement of thecompensated path in interpolation B is oppo-site to the programmed one.

  • Page 112

    112,15 Special Transformations112Fig. 112,15.1-115 Special Transformations15.1 Mirror Image for Double Turret (G68)Command G68 switches double turret mirror image on, while commandG69 cancels it.This function can be used for theprogramming of two facing tur-rets or tool posts. The first toolpos...

  • Page 113

    112,15 Special Transformations113Fig. 113,15.2-1F 113,ig. 113,15.2-215.2 Scaling (G50, G51)CommandG51 v Pcan be used for scaling a programmed shape.P1...P4:Points specified in the part programP1'...P4':Points after scalingP0:Center of scalingThe coordinates of the scaling center can be entered...

  • Page 114

    112,15 Special Transformations114Fig. 113,15.3-1coordinate data specifications are set up.Using G90, G91 or operator I, the v coordinates of the axes of the mirror image can be specifiedas absolute or incremental data.No mirror image will be on the axis, for the address of which no value has be...

  • Page 115

    115,16 Automatic Geometric Calculations115Fig. 115,16.1-1F 115,ig. 115,16.1-2F 115,ig. 115,16.1-316 Automatic Geometric Calculations16.1 Programming Chamfer and Corner RoundThe control is able to insert chamfer or rounding between two blocks containing linear (G01) orcircle interpolation (G02...

  • Page 116

    115,16 Automatic Geometric Calculations116Fig. 116,16.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 app...

  • Page 117

    115,16 Automatic Geometric Calculations117Fig. 116,16.2-2F 116,ig. 116,16.2-3L Note: ) In case the coordinate system is situated like on the figure besidethe interpretation of angle is modified as seen in the enclosedfigure (positive direction is clockwise).For example:(G18 G90) G1 X60 Z120 .....

  • Page 118

    115,16 Automatic Geometric Calculations118Fig. 118,16.3.1-116.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 ne...

  • Page 119

    115,16 Automatic Geometric Calculations119Fig. 118,16.3.1-2F 118,ig. 118,16.3.1-3F 118,ig. 118,16.3.1-4For example:(G18) G90 G41 ...G0 X20 Z90N10 G1 ,A150N20 X40 Z10 ,A225G0 Z0...Block N10 can also be given with the coordi-nates of a point of the straight line:(G18) G90 G41 ...G0 X20 Z90N10 G...

  • Page 120

    115,16 Automatic Geometric Calculations120F 120,ig. 16.3.2-1F 120,ig. 120,16.3.2-216.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 de...

  • Page 121

    115,16 Automatic Geometric Calculations121Fig. 120,16.3.2-3F 120,ig. 120,16.3.2-4Let us see the following example:%O9981N10 (G18) G42 G0 X40 Z100 S200 M3N20 G1 X-40 Z-30N30 G3 X80 Z20 I-10 K20 R50 Q-1N40 G40 G0 X120N50 Z120N60 M30%%O9982N10 (G18) G42 G0 X40 Z100 S200 M3N20 G1 X-40 Z-30N30 G3 X...

  • Page 122

    115,16 Automatic Geometric Calculations122F 122,ig. 16.3.3-1F 122,ig. 122,16.3.3-216.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 contr...

  • Page 123

    115,16 Automatic Geometric Calculations123Fig. 122,16.3.3-3F 122,ig. 122,16.3.3-4Let us see an example:%O9983N10 (G18) G0 X90 X0 M3 S200N20 G42 G1 Z50N30 G3 X0 Z-50 R50N40 G1 X85.714 Z-50 ,A171.87 Q-1N50 G40 G0 X140 N60 Z90N70 M30%%O9984N10 (G18) G0 X90 X0 M3 S200N20 G42 G1 Z50N30 G3 X0 Z-50 R...

  • Page 124

    115,16 Automatic Geometric Calculations124Fig. 124,16.3.4-1F 124,ig. 124,16.3.4-216.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 th...

  • Page 125

    115,16 Automatic Geometric Calculations125Fig. 124,16.3.4-3F 124,ig. 124,16.3.4-4Let us see the following example:%O9985N10 (G18) G0 X20 Z200 M3 S200N20 G42 G1 Z180N30 G3 X-80 Z130 R-50N40 X174.892 Z90 I30 K50 R70 Q–1N50 G40 G0 X200N60 Z200N70 M30%%O9986N10 (G18) G0 X20 Z200 M3 S200N20 G42 G...

  • Page 126

    115,16 Automatic Geometric Calculations126Fig. 126,16.3.5-116.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 det...

  • Page 127

    127,17.1.1 Cutting Cycle (G77)127Fig. 127,17.1.1-1F 127,ig. 127,17.1.1-217 Canned Cycles for Turning17.1 Single CyclesThe single cycles are the cutting cycle G77, the simple thread cutting cycle G78 and the end facecutting cycle G79.17.1.1 Cutting Cycle (G77)Straight cutting cycle can be defin...

  • Page 128

    127,17.1.1 Cutting Cycle (G77)128Fig. 127,17.1.1-3In case of incremental programming the signs of addresses U, W and R(I) influence the move-ment directions as follows:

  • Page 129

    129,17.1.2 129, Thread Cutting Cycle (G78)129Fig. 129,17.1.2-1F 129,ig. 129,17.1.2-217.1.2 Thread Cutting Cycle (G78)Straight thread cutting cycle can be defined in the following way:G78 X(U)__ Z(W)__ Q__ F(E)__Incremental programming is also possible with operator I or by programming G91.In c...

  • Page 130

    129,17.1.2 Thread Cutting Cycle (G78)130Fig. 129,17.1.2 -3Taper thread cutting cycle can be defined in the following way:G78 X(U)__ Z(W)__ R(I)__ Q__ F(E)__The taper can be specified at either address R or I. In both cases the data interpretation is thesame. The data given at address R(I) is al...

  • Page 131

    131,17.1.3 End Face Cutting Cycle (G79)131Fig. 131,17.1.3 -1Fig. 131,17.1.3 131, -217.1.3 End Face Cutting Cycle (G79)Straight face cutting cycle can be defined in the following way:G79 X(U)__ Z(W)__ F__Incremental programming is also possible with operator I or by programming G91.In case of ...

  • Page 132

    131,17.1.3 End Face Cutting Cycle (G79)132Fig. 133,17.1.4 -3In case of incremental programming the signs of addresses U, W and R(K) influence the move-ment directions as follows:

  • Page 133

    133,17.1.4 Simple Cycle Application133Fig. 133,17.1.4 133, -117.1.4 Single Cycle ApplicationBoth G codes and input parameters of cycles are modal. This means that if the cycle variablesX(U), Z(W) or R(I or K), are already given and their values have not changed, they must not berewritten in po...

  • Page 134

    134,17.2.1 Stock Removal in Turning (G71)134Fig. 134,17.2.1 -117.2 Multiple Repetitive Cycles Multiple repetitive cycles simplify the writing of machining programs. For example the profileof the part must be specified for finishing. At the same time this profile determines the basis ofcycles ex...

  • Page 135

    134,17.2.1 Stock Removal in Turning (G71)135Fig. 134,17.2.1 -2where:Äd:Depth of cut. Positive number interpreted always in radius. The depth of cut can also begiven at parameter 1339 DPTHCUT as well as this parameter is overwritten as the effectof the program command. This also means that in c...

  • Page 136

    134,17.2.1 Stock Removal in Turning (G71)136sfranging from n to n :CORRECTsN(n ) X(U) G41 ...(G41)... ... (G40)fN(n ) G40 ...or G41sN(n ) X(U) .........fN(n ) ... G40INCORRECT G41sN(n ) X(U) ... ... ... G40fN(n ) ...orsN(n ) G41 X(U) .........fN(n ) ... ...

  • Page 137

    134,17.2.1 Stock Removal in Turning (G71)137Fig. 134,17.2.1 134, -3Fig. 134,17.2.1 -4Fig. 134,17.2.1 -5increasing or decreasing in X direction, i.e., the profile may have concaves. The cycle can handleat most 10 reflex pockets.On the other hand in Z directionthe profile must remain monoto-ni...

  • Page 138

    134,17.2.1 Stock Removal in Turning (G71)138Fig. 134,17.2.1 134, -6Fig. 134,17.2.1 -7In case of stock removal in turning type 2 the esca-ping amount is perpendicular to axis Z and is donewith valid escape amount “e”.The below figure shows an example how does the cycle cut the rough workpi...

  • Page 139

    139,17.2.2 Stock Removal in Facing (G72)139Fig. 139,17.2.2 139, -117.2.2 Stock Removal in Facing (G72)There are two kinds of stock removals in facing: Type 1 and 2.Stock removal in facing type 1The stock removal in facing (G72) seen in the below figure is the same as stock removal inturning G7...

  • Page 140

    139,17.2.2 Stock Removal in Facing (G72)140Fig. 139,17.2.2 -22 specification method:ndsfG72 P (n ) Q (n ) U(Äu) W(Äw) D(Äd) F(f) S(s) T(t)sN(n ) Z(W) ......F___S___T___fN(n ) ...The cycle can be used in all four quadrants.The figure shows the finishing allowance signfor all four ca...

  • Page 141

    141,17.2.3 Pattern Repeating Cycle (G73)141Fig. 141,17.2.3 141, -117.2.3 Pattern Repeating Cycle (G73)This cycle can be used for cutting parts whose rough shape has already been made by rough ma-chining, forging or casting method. This function permits cutting a fixed pattern repeatedly, witha...

  • Page 142

    141,17.2.3 Pattern Repeating Cycle (G73)142d:Number of division. The number of division can also be given at parameter 1343 NUM-DIV as well as this parameter is overwritten as the effect of program command. The valuespecified for relief (parameters RELIEFX, RELIEFZ) is divided by this number and...

  • Page 143

    143,17.2.4 Finishing Cycle (G70)143Fig. 143,17.2.4-117.2.4 Finishing Cycle (G70)After the stock removal with G71, G72 or G73 finishing can be defined by means of commandG70. Finishing can be given with the following command:sfG70 P (n ) Q (n ) U(Äu) W(Äw)sn :Sequence number of the first b...

  • Page 144

    144,17.2.5 End Face Peck Drilling Cycle (G74)144Fig. 144,17.2.5 -117.2.5 End Face Peck Drilling Cycle (G74)The enclosed figure shows the process of end face peck drilling cycle G74. The drilling is in Zdirection.1 specification method:stCommand lineG74 R (e)G74 X(U) Z(W) P (Äi) Q (Äk) R (...

  • Page 145

    144,17.2.5 End Face Peck Drilling Cycle (G74)145However, if the filling out of addresses X(U) and P(Äi) is omitted the sign of R(Äd) is in-terpreted and the movement direction is determined by the sign of Äd at the cutting bot-tom.F:FeedrateIn the figure (F) indicates the phases done at feedr...

  • Page 146

    146,17.2.6 Outer Diameter/Internal Diameter Drilling Cycle (G75)146Fig. 146,17.2.6 146, -117.2.6 Outer Diameter/Internal Diameter Drilling Cycle (G75)The enclosed figure shows the process of outer diameter/internal diameter drilling cycle G75.1 specification method:stG75 R (e)G75 X(U) Z(W) P...

  • Page 147

    146,17.2.6 Outer Diameter/Internal Diameter Drilling Cycle (G75)147

  • Page 148

    148,17.2.7 M ultiple Thread Cutting Cycle (G76)148Fig. 148,17.2.7 -1Fig. 148,17.2.7 -217.2.7 Multiple Thread Cutting Cycle (G76)The enclosed figure shows the process of multiple thread cutting cycle G76.

  • Page 149

    148,17.2.7 M ultiple Thread Cutting Cycle (G76)1491 specification method:stCommand linesminG76 P (n) (r) (á) Q (Äd) R (d)G76 X(U) Z(W) P (k) Q (Äd) R (i) F(E)(L)where:n:Repetitive count in finishing (n=01...99)The value is modal, unchanging until overwritten. The repetitive count of fi...

  • Page 150

    148,17.2.7 M ultiple Thread Cutting Cycle (G76)150L:Lead of threadIts programming corresponds to that of G33. Value written at address F indicates threadlead, while the value written at address E indicates the ridges pro inch.The above parameters are the input data of second block G76 X(U) Z(W)...

  • Page 151

    148,17.2.7 M ultiple Thread Cutting Cycle (G76)151Fig. 148,17.2.7 148, -3Fig. 148,17.2.7 148, -4

  • Page 152

    148,17.2.7 M ultiple Thread Cutting Cycle (G76)152Fig. 148,17.2.7 -6Fig. 148,17.2.7 -5

  • Page 153

    148,17.2.7 M ultiple Thread Cutting Cycle (G76)153Fig. 148,17.2.7 148, -7

  • Page 154

    154,18 Canned Cycles for Drilling154Fig. 154,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: ...

  • Page 155

    154,18 Canned Cycles for Drilling155Fig. 154,18-2pwhere X is axis X or the one parallel to itpY is axis Y or the one parallel to itpZ is axis Z or the one parallel to it.Axes U, V, W are regarded to be parallel ones when they are defined in parameters.If face drilling is to be programmed, wher...

  • Page 156

    154,18 Canned Cycles for Drilling156Fig. 154,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 C0 Z50 R150N3 X100 C30 Z80the position of initial point w...

  • Page 157

    154,18 Canned Cycles for Drilling157Fig. 154,18-4group. Withdrawal is accomplished in rapid traverse.Data of drillingpppBottom position of the hole (point Z): X , Y , ZThe bottom position of the hole or point Z (in case of G17) has to be specified at the address ofthe drilling axis. The coordin...

  • Page 158

    154,18 Canned Cycles for Drilling158Fig. 154,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 ...

  • Page 159

    154,18 Canned Cycles for Drilling159Fig. 154,18-6N1 G90 G17 G0 X200 C–60 Z50 N2 G81 CI60 Z–40 R3 F50 L6Under the above commands the control will drill6 holes spaced at 60 degrees around a 100mm-ra-dius circle. The position of the first hole coincideswith the point of X=200 C=0 coordinates. ...

  • Page 160

    154,18 Canned Cycles for Drilling160F 160,ig. 18.1.1-118.1 Detailed Description of Canned Cycles18.1.1 High Speed Peck Drilling Cycle (G83.1)The variables used in the cycle arepppG17 G83.1 X __ Y __ C__ Z __ R__ Q__ E__ F__ L__pppG18 G83.1 Z __ X __ C__ Y __ R__ Q__ E__ F__ L__pppG19 G83...

  • Page 161

    154,18 Canned Cycles for Drilling161Fig. 161,18.1.2-118.1.2 Counter Tapping Cycle (G84.1)This cycle can be used only with a spring tap. The variables used in the cycle arepppG17 G84.1 X __ Y __ C__ Z __ R__ (P__) F__ L__pppG18 G84.1 Z __ X __ C__ Y __ R__ (P__) F__ L__pppG19 G84.1 Y ...

  • Page 162

    154,18 Canned Cycles for Drilling162F 162,ig. 18.1.3-118.1.3 Fine Boring Cycle (G86.1)Cycle G76 is only applicable when the facility of spindle orientation is incorporated in the ma-chine-tool. In this case parameter ORIENT1 is to be set to 1, otherwise message 3052 ERRORIN G76 is returned.Since...

  • Page 163

    154,18 Canned Cycles for Drilling163Fig. 163,18.1.5-118.1.4 Canned Cycle for Drilling 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 ...

  • Page 164

    154,18 Canned Cycles for Drilling164F 164,ig. 18.1.6-118.1.6 Drilling, Counter Boring Cycle (G82)The variables used in the cycle arepppG17 G82 X __ Y __ C__ Z __ R__ P__ F__ L__pppG18 G82 Z __ X __ C__ Y __ R__ P__ F__ L__pppG19 G82 Y __ Z __ C__ X __ R__ P__ F__ L__the operations of...

  • Page 165

    154,18 Canned Cycles for Drilling165Fig. 165,18.1.7-118.1.7 Peck Drilling Cycle (G83)The variables used in the cycle arepppG17 G83 X __ Y __ C__ Z __ R__ Q__ E__ F__ L__pppG18 G83 Z __ X __ C__ Y __ R__ Q__ E__ F__ L__pppG19 G83 Y __ Z __ C__ X __ R__ Q__ E__ F__ L__The oprations of...

  • Page 166

    154,18 Canned Cycles for Drilling166F 166,ig. 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 arepppG17 G84 X __ Y __ C__ Z __ R__ (P__) F__ L__pppG18 G84 Z __ X __ C__ Y __ R__ (P__) F__ L__pppG19 G84 Y __ Z __ C__ X _...

  • Page 167

    154,18 Canned Cycles for Drilling16718.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 mus...

  • Page 168

    154,18 Canned Cycles for Drilling168F 167,ig. 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 dr...

  • Page 169

    154,18 Canned Cycles for Drilling169Fig. 167,18.1.9-26.-7.linear interpolation between the drilling axis and the spindle, with the spindle be-ing rotated counter-clockwise8.-9.with G98, rapid-traverse retraction to the initial point10.-In the case of G84.3, the operations of the cycle are1.rapi...

  • Page 170

    154,18 Canned Cycles for Drilling170F 170,ig. 18.1.10-118.1.10 Boring Cycle (G85)The variables used in the cycle arepppG17 G85 X __ Y __ C__ Z __ R__ F__ L__pppG18 G85 Z __ X __ C__ Y __ R__ F__ L__pppG19 G85 Y __ Z __ C__ X __ R__ F__ L__The operations of the cycle are1.rapid-traver...

  • Page 171

    154,18 Canned Cycles for Drilling171Fig. 171,18.1.11-118.1.11 Boring Cycle Tool Retraction with Rapid Traverse (G86)The variables used in the cycle arepppG17 G86 X __ Y __ C__ Z __ R__ F__ L__pppG18 G86 Z __ X __ C__ Y __ R__ F__ L__pppG19 G86 Y __ Z __ C__ X __ R__ F__ L__The spind...

  • Page 172

    154,18 Canned Cycles for Drilling172F 172,ig. 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 ...

  • Page 173

    154,18 Canned Cycles for Drilling173Fig. 172,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 arepppG17 G87 X __ Y __ C__ I__ J__ Z __ R__ ...

  • Page 174

    154,18 Canned Cycles for Drilling174F 174,ig. 18.1.13-118.1.13 Boring Cycle (Manual Operation on the Bottom Point) (G88)The variables used in the cycle arepppG17 G88 X __ Y __ C__ Z __ R__ P__ F__ L__pppG18 G88 Z __ X __ C__ Y __ R__ P__ F__ L__pppG19 G88 Y __ Z __ C__ X __ R__ P__ F_...

  • Page 175

    154,18 Canned Cycles for Drilling175Fig. 175,18.1.14-118.1.14 Boring Cycle (Dwell on the Bottom Point, Retraction with Feed) (G89)The variables used in the cycle arepppG17 G89 X __ Y __ Z __ R__ P__ F__ L__pppG18 G89 Z __ X __ Y __ R__ P__ F__ L__pppG19 G89 Y __ Z __ X __ R__ P__ F__ L...

  • Page 176

    154,18 Canned Cycles for Drilling176To illustrate the foregoing, let us see the following example. G81X_ C_ Z_ R_ F(the drilling cycle is executed)X(the drilling cycle is executed)F_(the drilling cycle is not executed, F is over-written)M_(the drilling cycle is not executed, code M isexecuted) ...

  • Page 177

    177,19 177, Polygonal Turning177Fig. 177,19-1F 177,ig. 177,19.1-1F 177,ig. 177,19.1-219 Polygonal TurningIn case of polygonal turning both the tool and the workpiece arerotated in relation to each other by a specified revolution ratio.Polygons with varying side number are resulted from the ch...

  • Page 178

    177,19 Polygonal Turning178Fig. 177,19.1-4F 177,ig. 177,19.1-3F 177,ig. 177,19.1-5With other revolution ratios thecurves will differ from ellipses,although the polygonal sides canbe estimated even with thoseforms.19.2 Programming Polygonal Turning (G51.2, G50.2)CommandG51.2 P_ Q_switches poly...

  • Page 179

    177,19 177, Polygonal Turning179CommandG50.2switches polygonal turning off.Commands G51.2 and G50.2 must always be issued in separate blocks.In order to execute polygonal turning, a second spindle, rotating the tool, must also be mountedon the machine tool. Both spindles, i.e. the work spindle a...

  • Page 180

    180,20 M easurement Functions180Fig. 180,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 ...

  • Page 181

    180,20 M easurement Functions181Fig. 180,20.1-2F 180,ig. 180,20.1-3F 181,ig. 181,20.2-1The 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 motion will becalculated from th...

  • Page 182

    180,20 M easurement Functions182The appropriate length compensation register have to be set up by programing Tnnmm prior tocommencement of the measurement. – G36, G37 are single-shot instructions. – Cycle G36, G37 will be executed invariably in the coordinate system of the current workpiece....

  • Page 183

    183,21 183, Safety Functions183Fig. 183,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...

  • Page 184

    183,21 Safety Functions184Fig. 184,21.2-1of the tool at the limit. If, however, the compensation is not set up, the reference point of the toolholder 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 on...

  • Page 185

    183,21 183, Safety Functions185Fig. 185,21.3-1F 185,ig. 185,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 thatrang...

  • Page 186

    186,22 Custom M acro18622 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 as manytimes as is the number specified...

  • Page 187

    186,22 Custom M acro187In 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 transferr...

  • Page 188

    186,22 Custom M acro18822.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 call...

  • Page 189

    186,22 Custom M acro189Each NC block following G66.1 to a block containing code G67 will produce a macro call withthe 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 b...

  • Page 190

    186,22 Custom M acro190The 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-mo...

  • Page 191

    186,22 Custom M acro19122.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...

  • Page 192

    186,22 Custom M acro192If 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 includ...

  • Page 193

    186,22 Custom M acro193Instruction G67 specified in block N14 will cancel the macro called in block N12 (O0003); theone specified in block N15 will cancel the macro called in block N10 (O0002).In the case of multiple calls of macros type G66.1, first the last specified macro will be called inent...

  • Page 194

    186,22 Custom M acro19422.11 Variables of the Programming LanguageVariables instead of specific numerical values can be assigned to the addresses in the main pro-grams, subprograms and macros. A value can be assigned to each variable within the permissiblerange. The use of variables will make fo...

  • Page 195

    186,22 Custom M acro19522.11.3 Vacant VariablesA variable that has not been referred to (undefined) is vacant. Variable #0 is used for a variablethat is always vacant:#0=<vacant>22.11.4 Numerical Format of VariablesEach variable is represented by 32 bits of mantissa and 8 bits of charact...

  • Page 196

    186,22 Custom M acro19622.12 Types of VariablesWith reference to the ways of their uses and their properties, the variables are classified into local,common and system variables. The number of the variables tells the particular category to whichit pertains.22.12.1 Local Variables (#1 through #33...

  • Page 197

    186,22 Custom M acro19722.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. Nam...

  • Page 198

    186,22 Custom M acro198Interface 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 i nput with reference to the PLC p...

  • Page 199

    186,22 Custom M acro199Tool compensation values - #10001 through #13999The tool compensation values can be read from variables #10001 through #19999, or values canbe assigned them.NXYZRQweargeom..weargeom..weargeom..weargeom..1#10001#15001#14001#19001#11001#16001#12001#17001#130012#10002#15002#1...

  • Page 200

    186,22 Custom M acro200Work zero-point offsets - #5201 through #5328The work zero-point offsets can be read at variables #5201 through #5328, or values can beassigned them.No. of value of variablevariableworkpiececoordinatesystem#5201common work zero point offset, axis 1common forall th...

  • Page 201

    186,22 Custom M acro2011, 2 and 3 are assigned to addresses X, Y and Z, respectively, but different specifications are alsopermissible.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...

  • Page 202

    186,22 Custom M acro202Suppression 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 valu...

  • Page 203

    186,22 Custom M acro203The bits have the following meanings:0 = no mirror imaging1 = mirror imaging on.If, e.g., the value of the variable is 5, mirror image is on in axes 1 and 3. The axis number refersto a physical axis, the parameter defining the particular name of axis pertaining to a physic...

  • Page 204

    186,22 Custom M acro204Positional information - #5001 through #5108Positions at block end system position information reading in during variable motion #5001 block end coordinate of axis 1 #5002 block end coo...

  • Page 205

    186,22 Custom M acro205Fig. 197,22.12.3-1Skip signal position system nature of position information entry during variable motion #5061 Skip signal coordinate of axis 1 (G31) #5062 Skip signal coordinate of axis 2 (...

  • Page 206

    186,22 Custom M acro206Servo lag system nature of position information entry during variable motion #5101 servo lag in axis 1 #5102 servo lag in axis 2 : not poss...

  • Page 207

    186,22 Custom M acro207Subtraction: #i = #j – #kThe code of the operation is –.As 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 v...

  • Page 208

    186,22 Custom M acro208Sine: #i = SIN #jThe code of operation is SIN.As a result of operation, variable #i will assume the sine of variable #j. The value of #jalways refers to degrees.Cosine: #i = COS #jThe code of operation is COS.As a result of operation, variable #i will assume the cosine of ...

  • Page 209

    186,22 Custom M acro209Conversion from binary-coded decimal into binary: #i = BIN #jThe code of the function is BIN.As a result of the operation, variable #i will assume the binary value of variable #j. Thevalue range of variable #j is 0 to 99999999.Discard fractions less than 1: #i = FIX #jThe ...

  • Page 210

    186,22 Custom M acro21022.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...

  • Page 211

    186,22 Custom M acro21122.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 fulf...

  • Page 212

    186,22 Custom M acro212 – 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 213

    186,22 Custom M acro213 – 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...

  • Page 214

    186,22 Custom M acro214Opening 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 c...

  • Page 215

    186,22 Custom M acro215 Characters to be output areDecimal data output - DPRNT[...]All characters and digits will be output in ISO or ASCII code, depending on the parameter setting. – For the rules of character outputs, see instruction BPRNT. – For the output of variable values, the number...

  • Page 216

    186,22 Custom M acro216 Data output at PRNT=1: 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 Point ...

  • Page 217

    186,22 Custom M acro217Closing 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 to the peripheral, ...

  • Page 218

    186,22 Custom M acro218F 217,ig. 22.15-1F 217,ig. 217,22.15-2Example:SBSTM=0%O1000...N10 #100=50 N20 #101=100N30 G1 X#100 Y#101N40 #100=60 (definition after N30)N50 #101=120 (definition after N30)N60 G1 X#100 Y#101Definition commands in blocks N40 andN50 are executed after the movement ofblock ...

  • Page 219

    Notes219Notes

  • Page 220

    Index in Alphabetical Order220Index in Alphabetical Order:#0.. ........................... 195,195#10001–#13999.................. 199,199#1000–#1015.................... 197,197#1032.......................... 197,197#1100–#1115.................... 198,198#1132.......................... ...

  • Page 221

    Index in Alphabetical Order221full circle........................ 106,106going around sharp corners.. . . . . . . . . 107,107Going around the outside of a corner. . 93,93- 96,96Inch. ......................... 36,36, 38, 38,38Increment System. . . . . . . . . . . . 16,16, 37, 37,37, 80, 80...

  • Page 222

    Index in Alphabetical Order222MULBUF. .................. 20,20, 46, 46O_LINE....................... 198,198ORIENT1. ......... 67,67, 162, 162, 172, 172,172, 173, 173,173POSCHECK. ................... 22,22PRNT. ....................... 215,215PRTCNTM. ................ 72,72, 203, 203,203PR...

  • Page 223

    Index in Alphabetical Order223

x