Navigation

  • Page 1

    Hitachi Seiki DeutschlandWerkzeugmaschinen GmbHSEIKI - SEICOSå10M/16M/18MINSTRUCTION MANUAL6 PROGRAMMINGEdition 1.01 NP-0000-1-0221-E-1-01

  • Page 2

    2

  • Page 3

    iCONTENTS1.G CODE ............................................................................................. 1-11-1List of G Code Group(SEICOSΣ10M/16M/18M) .......................................................... 1-11-2List of G Codes (SEICOS Σ10M/16M/18M) ....................................

  • Page 4

    ii3-5Exact Stop Mode (G61) ................................................................................................ 3-43-6Automatic Corner Override (G62) ................................................................................ 3-53-6-1Automatic Override in Inner Corner Area .........

  • Page 5

    iii10-7-2Square Poketing (G328) .................................................................................... 10-5910-7-3Track Inside (G329) ........................................................................................... 10-6410-7-4Circle outside Pocketing (G330) .................

  • Page 6

    iv13-2 Automatic Measurement of Tool Length (G37) ........................................................... 13-313-3 Safety Guard (Tool Length) ........................................................................................ 13-513-4 Safety Guard (Comparison) ..............................

  • Page 7

    v20. MANUAL OPERATION .................................................................... 21-120-1 Manual Absolute ON/OFF .......................................................................................... 21-121. TEST RUN .....................................................................

  • Page 8

    vi

  • Page 9

    1 - 1(Note) *1 Reserved G code and not available for the moment*2 Spare G code group for function improvement.1.G CODE1-1List of G Code Group(SEICOSΣΣΣΣΣ10M/16M/18M)GroupFunction Remarks00Non-modal01Positioning/liner interpolation/circular interpolation02Plane designation03Absolute pro...

  • Page 10

    1 - 21-2List of G Codes (SEICOS ΣΣΣΣΣ10M/16M/18M)CodeG00G01G02G03G04G05G07G08G09G10G11G15G16G17G18G19G20G21G22G23G25G26G27G28G29G30G31G33G34G37G38G39G40G41G42Function RemarksPositioningLinear interpolationCircular interpolation/helical interpolation CWCircular interpolation/helical ...

  • Page 11

    1 - 3CodeG43G44G45G46G47G48G49G50G51G52G53C54G55G56G57G58G59G60G61G62G63G64G65G66G67G68G69G70G71G72G73G74G76G77FunctionRemarksTool length compensation +Tool length compensation -Tool offset extensionTool offset contractionTool offset double extensionTool offset double contractionTool length compe...

  • Page 12

    1 - 4CodeG80G81G82G83G84C85G86G87G88G89G90G91G92G93G94G95G96G97G98G99G113G114G120G121G130G131G201G203G204G206G212G213G216FunctionRemarksCanned cycle cancelDrilling cycle, spot boringDrilling cycle, counter boringPeck drilling cycleTapping cycleBoring cycleBoring cycleBack boring cycleBoring cycle...

  • Page 13

    1 - 5CodeG222G223G232G233G240G241G242G243G244G245G248G249G251G264G265G271G301G302G303G304G305G311G312G313G314G322G323G324G325G326G327G328G329G330FunctionRemarksInvolute interpolation CWInvolute interpolation CCWExponential function interpolation CW *1Exponential function interpolation CCW *...

  • Page 14

    1 - 6CodeG331G332G333G334G335G336G337G338G401G411G421C431G501G511 G540~G599G611C653G661G721G722G741G841G812G813G921FunctionRemarksSquare outside (pocketing)Track outside (pocketing)Circle (pocketing)Trochoid cycleHigh-speed side cutting cycleZ feed fluting cycleCorner pocket cycleS...

  • Page 15

    2 - 12.INTERPOLATION FUNCTION2-1Positioning (G00)Each axis moves to a Program-specified position at an independent rapid traverse rate toperform positioning.(1) command format G00 X_ Y_ Z_ ;(2) Sample program(a) Absolute programming(b)Incremental programmingG90 G00 X100. Y50.:G91 G00 X...

  • Page 16

    2 - 2(4) Associated parametersNo.1401, # 6 = 0Dry run made invalid for rapid traverse command.1Dry run made valid for rapid traverse command.No.1401, # 1= 0Non-linear interpolation as positioning interpolation system1Linear interpolation as positioning interpolation systemNo.3402, # 0= 0G00 mode ...

  • Page 17

    2 - 3Cutting feed rate in the rotary axis (C axis) direction: Fc = (deg/min)where; L = 100.2 + 902 (mm)G01 G91 X100. C90. F200 :(4) Cautions(a) An alarm results when no F code has been specified in the G01 block or before.(b) Exponential type acceleration/deceleration is ...

  • Page 18

    2 - 4(2) Sample program(a) Absolute programming (b) Incremental programmingG17 G90 G00 X13.397 Y70. F200:G17 C91 G02 X86.603 Y50G02 X100. Y120. I86.603 J-50.:I86.603 J-50. F200:(3) Arc rotating directionG02 : Clockwise (CW)G03 : Counterclockwise direction (CCW)(4) Arc planeThe arc plane is specif...

  • Page 19

    2 - 5(6) Cutting feed rateThe cutting feed rate specified with an F code is the speed at which the tool moves on thearc.(7) Cautions(a) An alarm results when no F code has been specified in the G02/G03 block or before.(b) An alarm results if an arc radius = 0 is specified.(c) I0, J0 and K0 are om...

  • Page 20

    2 - 6(a) For the arc of less than 180°G17 G91 G02 X100. Y100.R-100. F200:(b) For the arc of over 180°G17 G91 G02 X100. Y-100.R-100. F200 :G02G03G02G03G02G03(1) Command format.(a) XP-YP planeG17 XP _ YP _ R ±_ F_ :(b) ZP-XP planeG18 ZP_ YP _ R ±_ F_ :(c) YP-ZP planeG19 YP-ZP_ R ±...

  • Page 21

    2 - 7(5) Associated alarmsNo. 131An arc radius R with which arc center position cannot be calculated hasbeen commanded.2-4Helical Interpolation (G02, G03)If an arc command and any one axis for other than arc are specified, helical interpolation isenabled by control which performs linear interpola...

  • Page 22

    2 - 8(2) Sample programG17 G91 G03 X-100. Y-100. R100. Z50. F200 :(3) The axes for other than circular interpolation can be specified up to 2 axes in the sameblock.(Example) G17 G91 G03 I-100. Z100. V50. F200 : I-100. Z100.V50.;(4) Cautions(a) See to it that the linear axis speed does not exce...

  • Page 23

    2 - 9(5) Associated parameters(6) Associated alarms

  • Page 24

    2 - 102-5Virtual Axis lnterpolation (G07)If the axis is specified as a virtual axis, it does not move.Interpolation can be perfomed with this axis and other one.(1) Command formatG07 α 0 ;Sets the α axis as the virtual axis. :The α axis is the virtual axis :in this section.G07 α...

  • Page 25

    2 - 11(4) Associated parameters(5) Associated alarmsNo.139Two or more virtual axes have been specified.

  • Page 26

    2 - 12(3) Cautions(a) Effective only for automatic operation of the virtual axis.(b) Program the virtual axis in the incremental manner.(c) An alarm results if 2 or more virtual axes are specified.2-6Single Direction positioning (G60)Performs final positioning always from a specified single direc...

  • Page 27

    2 - 13(b) For the modal G codeG60 X_ Y_ Z_... ;X_ Y_ Z_...;::G00 ;(2) Sample program(a) When moving in the(b)When moving in the+ direction - directionG60 G91 X100.;G60 G91 X-100.; (3) Final positioning directionApproach amount > 0 : The positioning direction is the + direction.Approach amount...

  • Page 28

    2 - 14(5) Associated parametersNo. 3458Single positioning direction and approach amount of each axisNo. 3400, #2 = 0G60 is the G code of Group 00 (one-shot).1G60 is the G code of Group 01 (modal).

  • Page 29

    2 - 152-7Involute Interpolation (G222, G223)This function allows machining along an involute curve. It also provides cutter compensation.(1) Involute curveThe involute curve in the X-Y plane is defined as following.X(θ) =R [cosθ + (θ- θ0) sinθ ] +X0Y(θ) =R [sinθ + (θ- θ0) cosθ ] +Y0wher...

  • Page 30

    2 - 16(2) Command format(a) XP -YP _ planeG17 XP _YP _ I_ J_ R_ F_ ;(b) ZP-XP PlaneG18 ZP _ YP_ K_ J_ R_ F_;(c) YP-ZP planeG19 YP_ ZP J_ K_ R_ F_ ; where;G222: Clockwise involute interpolationG223: Counterclockwise involute interpolationXP, YP, ZP: Coordinate ...

  • Page 31

    2 - 17 (5) Feed rateA feed rate for involute interpolation assumes a cutting feed rate specified with an F-code,and a speed along the involute curve (speed in the tangent direction of the involute curve)is controlled to be specified feed rate.(6) Cutter compensationCutter compensation can be appl...

  • Page 32

    2 - 18(8) Modes available for involute interpolationInvolute interpolation is allowed even during the following G-code modes.G41 : Cutter compensation to the leftG42 : Cutter compensation to the rightG511 : Programmable mirror imageG68 : Coordinate rotation(9) Limitations(a) Rpm of the involute c...

  • Page 33

    2 - 192-8Cylindrical Interpolation (G271)If the move amount of the linear axis and the angle of the rotary axis are given by a programcommand, the move amount of the rotary axis given in terms of angle will be internallyconverted into a distance on the circumference. Since the distance on the cir...

  • Page 34

    2 - 202-8-3Cylindrical Interpolation Applied Axesset in the parameters(no. 3426 for the linear axis, and no. 3427 for the rotary axis) the linearaxis and rotary axis to which you want to apply cylindrical interpolation. A setting range for bothparameters is 1 to the number of controlled axes; the...

  • Page 35

    2 - 212-8-6Cautions(1) When specifying cutter compensation, start up/cancel during the cylindrical interpolationmode.(2) The plane (selected by G17 to G19) existing prior to entering the cylindrical interpolationmode is canceled once during the cylindrical interpolation mode and revived at the en...

  • Page 36

    2 - 22(8) In the cylindrical interpolation mode, the angle of the rotary axis is converted into thedistance on the circumference and converted back into the angle after interpolation. Whenthis is done, a slight conversion error results.(9) If circular interpolation with small circular arc radi...

  • Page 37

    2 - 232-9Polar Coordinate Interpolation (G120, G121)polar coordinate interpolation is a function to provide contour control by converting a commandprogrammed in the orthogonal coordinate system into a linear axis move(tool move) and rotaryaxis move(work rotation).<Orthogonal Coordinate system&...

  • Page 38

    2 - 242-9-4Polar Coordinate Interpolation planeA G121 command effectuates the polar coordinate interpolation mode, assumes the zero pint ofthe work coordinate system to be that of the coordinate system, and selects the plane(polarcoordinate interpolation plane) which assumes the linear axis to th...

  • Page 39

    2 - 25(5) For an feed rate, use F-code to specify a tool move rate in the polar coordinateinterpolation plane( orthogonal coordinate system ). Normally, it is specified in feed perminute (G94); the unit for the F-code will be mm/min. or in./min.2-9-6sample Program (X-axis: Linear Axis, C-axis: Ro...

  • Page 40

    2 - 262-9-7Feed Rate ClampThe maximum cutting feed rate at polar coordinate interplation can be set in a parameter (no;3464). If any feed rate higher than this one is specified during polar coordinate interpolation, itwill be clamped to this rate. If a set value is 0, it will be clamped by the no...

  • Page 41

    2 - 27(3) The plane prior to G121 (the plane selected with G17, G18,- or- G19) is cancelled once byspecifying G121 and restored by specifying G120.(4) The following lists the G-codes which cam be specified during the G121 mode.G00, G01, G02, G03, G04, G09, G40, G41, G42,G65, G66, G67, G98, G99(5)...

  • Page 42

    2 - 282-9-11 Associated AlarmsNo. 113A polar coordinate interpolation command has an error.(#001)G120 or G121 has not been independently specified.(#002)When G120 or G121 was specified, cutter compensation had not beencancelled.(#003)When the work coordinate value of the linear axis was negative ...

  • Page 43

    3 - 13.FEED FUNCTION3-1Feed per Minute (G94)Until G95 is specified after G94 was specified, the stroke per minute (mm/min., inch/min.) isdirectly specified with a numerical value following F.(1) Command formatG94 ;(2) Sample programF100 ; The feed rate is a move of 100 mm per minute.(3) The F ...

  • Page 44

    3 - 2 No. 3401, #2= 0F51 for feed per minute in the inch system (inch/min. )1F52 for feed per minute in the inch system (inch/min. ) No. 3401, #3= 0F60 for feed per minute in the metric system (mm/min. )1F61 for feed per minute in the metric system (mm/min. )(7) Associated alarms3-2Feed per Rotar...

  • Page 45

    3 - 3(5) Associated parametersNo. 3401, #0= 0F23 for feed per revolution in the inch system (inch/rev.)1F24 for feed per revolution in the inch system (inch/rev.)No. 3401, #1= 0F32 for feed per revolution in the metric system (mm/rev.)1F33 for feed per revolution in the metric system (mm/rev.)3-3...

  • Page 46

    3 - 4(5) Cautions(a) In G93 mode, F code must be instructed per block.When F code is omitted, a previously instructed F code becomes valid.3-4Exact Stop (G09)If a G09 command is specified in the same block as a move block, it decelerates and stops themachine upon completion of one block, and afte...

  • Page 47

    3 - 5(2) Sample programN1 G61 G91 G01 X100. F500 ;N2 Y-50. ;Exact stop effective blocksN3 X - 100. ;N4 G64;(3) Cautions3-6Automatic Corner Override (G62)When tool diameter compensation is applied, since the tool center path is located inside theprogram-specified path in the inner corner and inner...

  • Page 48

    3 - 6(3) Cautions3-6-1Automatic Override in Inner Corner AreaWhen the following conditions are met in the corner during the tool diameter condensationmode, an override is applied to cutting feed automatically.[ The conditions are as follows for the blocks having the corner between them. ](a) When...

  • Page 49

    3 - 7 An override isapplied from the pointa though point b.(2) Sample program(D10 = 10.)N1 G62 G42 G91 G00 X20. Y50. D10;N2 G01 X50. F200;N3 G03 X30. Y-30. R30.;N4 G64 G40 G00 X20.;(3) Cautions(4) Associated parametersNo. 1711Inner criterion angle of automatic corner overrideNo. 1712Override amou...

  • Page 50

    3 - 8(1) Sample programN1 G62 G41 G91 G00 X50. D10;N2 G03 Y50. J25. F200;N3 C64 G40 G00 X-50.;(2) Cutting feed rate when automatic corner override overlaps inner arc cuttingF xx (Automatic corner override) x (Feed rate override)(3) Cautions(a) By parameter setting, inner arc cutting speed change ...

  • Page 51

    3 - 93-7Tapping Mode (G63)The control state of the NC unit is as follows until G61, G62 or G64 is specified after G63 isspecified.(a) Cutting feed rate override fixed at 100 %.(b) Feed hold disabled(c) Spindle override fixed at 100 %(a) Single block disabled(e) Decelerated stop disabled at the jo...

  • Page 52

    3 - 103-8Cutting Mode (G64)Until G61, G62 or G63 is specified after G64 was specified, the program makes the next blockexecuted continuously without decleration to a stop between the blocks.When cutting is performed in the G64 mode, the corner may be rounded at the time of cuttingfeed.(1) Associa...

  • Page 53

    3 - 11(a) For rapid traverse, acceleration/deceleration is always pefformed every one block.(b) For cutting feed, acceleration/deceleration is performed continuously instead of everyone block.(2) Cautions(a) Optimal values for parameters relating to acceleration/deceleration control have beenset ...

  • Page 54

    3 - 12(2) Sample programG94 G04 P2000 ; Dwell time 2 secondsG04 X2. ; Dwell time 2 seconds(3) Cautions(a) By parameter setting, you can specify by time even during the feed per revolutionmode.(4) Associated parametersNot 3400, #5 = 0G04 always specifies by time.1G04 follows G94 or G95.

  • Page 55

    4 - 14.REFERENCE POINT4-1Automatic Reference Point Return (G28)After positioning the axes specified by the program to the intermediate point, a G28command can automatically return them to the 1st reference point.(1) Command formatG28 X_Y_Z_... ;(2) Sample programG28 G91 X-50.Y100. ;(3) When G28 i...

  • Page 56

    4 - 2(5) Associated parameters(6) Associated alarms4-2Reference Point Return Check (G27)After positioning the axes to the program -specified position, a G27 command checks whetherthey have returned to the 1st reference point, and when they have not returned to the 1streference point, an alarm res...

  • Page 57

    4 - 3(4) Associated parameters(5) Associated alarms

  • Page 58

    4 - 44-3Return from Reference Point (G29)A G29 command positions the program-specified axes from the reference point to theintermediate point of G28 or G30 specified just before, and then, positions them to the specifiedposition.(1) Command formatG29 X_Y_Z_... ;(2) Sample programN1 G28 G91 X-50....

  • Page 59

    4 - 54-42nd-4th Reference Point Return (G30)A G30 command can automatically return the axes specified in the program to the 2nd to 4threference point after positioning them to the intermediate point. The 2nd, 3rd, and 4th referencepoints are the positions specific to the machine and set with the ...

  • Page 60

    4 - 6(4) Associated parametersNo. 12262nd reference point of each axisNo. 12273rd reference point of each axisNo. 12284th reference point of each axis(5) Associated alarms

  • Page 61

    4 - 74-5Reset of Floating Reference point (G301)G301 instruction may be automatically reset to the following reference point after an axisinstructed by the program is positioned at a middle point.The floating reference point is a selected point on the machine.The floating reference point can be s...

  • Page 62

    4 - 8

  • Page 63

    5 - 15.COORDINATE SYSTEM5-1Machine Coordinate System Selection (G53)When a G53 Command, the axes are positioned to the position of the machine coordinatesystem specified by the program.(1) Command formatG90 G53 X_ Y_ Z_... ;(2) Sample programG90 G53 X20. Y10. ;(3) Cautions(a) An alarm results if ...

  • Page 64

    5 - 25-2Work Coordinate system selection (G54 - G59)Six peculiar coordinate systems can be set by specifying G54 - G59, respectively. Beforespecifying G54 - G59, set the offset amount (machine coordinate system position when the toolnose is positioned to the zero point of the work coordinate syst...

  • Page 65

    5 - 3(3) Cautions(a) The G54 work coordinate system is selected in the reset state.(b) The G54 coordinate system is set upon completion of zero point return.(c) When the offset amount of the work coordinate system is changed, the new workcoordinate system is set when corresponding G54 - G59 is sp...

  • Page 66

    5 - 4(2) Sample programNI G540 G90 G00 X0 Y0;where;G540 offset amount is;X - 210.Y - 260. This command positions theaxes to (0, 0) of the work coordinatesystem; then the position of themachine coordinate system will be (-210., -260.).(3) Cautions(a) G540 through G599 aid G54 through G59 are the G...

  • Page 67

    5 - 55-4Local Coordinate System Setting (G52)One additional coordinate system can be set in the selected work coordinate system byspecifying G52.(1) Command formatG54 X _ Y _ Z _... ;Local coordinate system settingOffset Amount of Local Coordinate System Setting(2) Sample programN1 G54 ;N2 G52 X-...

  • Page 68

    5 - 6(4) Cautions(a) In the reset state, the local coordinate system A is cancelled.(b) The local coordinate system of the axis specified with G92 is cancelled.(c) An alarm results if G52 is specified during the tool diameter compensation mode.(d) G52 is a one-shot command. The local coordinate s...

  • Page 69

    5 - 75-5Work Coordinate System Change (G92)By specifying G92, you can create the coordinate system on the program without using the G54-G59 of G540 - G569 work coordinate system.(1) Command formatG92 X_Y_Z...;Position to Specify Current Position in G92 Work Coordinate System.(3) When G92 is speci...

  • Page 70

    5 - 8(4) Cautions(a) G92 is a one-shot command.(b) G92 has nothing to do with absolute (G90)/incremental(G91) programming.(c) If G92 is specified while tool diameter compensation, tool length compensation or tooloffset is applied, the coordinate system is set as if G92 is specified at the positio...

  • Page 71

    5 - 95-6Work Coordinate System Preset (G921)If you perform first manual reference point return after turning on the NC unit, the machinecoordinate system is set, and then, the work coordinate system is set.Manual reference point return in the reset state sets the work coordinate system. The workc...

  • Page 72

    5 - 10(2) Cautions(a) Using a G921 Command cancels tool diameter compensation, tool lengthcompensation and tool offset.(b) By parameter setting, the work coordinate system can be preset just before executingthe first block in which the machine is switched over from the reset state to automaticope...

  • Page 73

    5 - 115-7Work Coordinate System Shift (External Work Zero Point Offset Amount)The entire G54 or other work coordinate system can be shifted by the specified amount(external work zero point offset amount) by setting an offset amount in the external offset of thework coordinate system in the NC scr...

  • Page 74

    5 - 125-8Plane Selection (G17, G18, G19)With a G17, G18. or G19 Command, this function specifies the plane in which an arccommand, tool diameter compensation, coordinate rotation, etc. are performed.(1) Command formatG17 XP_ YP _; XP-YP planeG18 ZP_ XP_; ZP-XP planeG19 YP_ ZP_; YP-ZP planeG17 ...

  • Page 75

    5 - 13(4) Associate parametersNo. 3402, #5 =0The reset state is the G17 mode1The reset state is the G18 mode(5) Associate alarmsNo. 106A plane seleection (G17 - G 19) commend has an error.

  • Page 76

    5 - 145-9Rotary Table Dynamic Fixture OffsetWhen loading a workpiece on the rotary table and set a work coordinate system aftermeasuring a position of workpiece if the rotary table has rotated before starting cutting, thework coordinate system should be set again by measurement of a position of w...

  • Page 77

    5 - 153Parameter for effective/ineffective of fixture offset for each axis (No. 1208, #0)Set 1 for the axis to be effective of fixture offset.4Type of fixture offset (No.1200, #1)When a vector of fixture offset has changed (command of G522 or when a rotary axisis moved during a command of G522),s...

  • Page 78

    5 - 16(3) Program example and notionparameterNo.12854 (C axis)No.12861 (X axis)No.1208, #0 (X) =1 (X axis is effective)No.12872 (Y axis)No.1208, #0 (Y) =1 (Y axis is effective)Data of n= 1X=-10.0Y=0C=180.0 (standard angle)ProgramXYCXYCXYCN1 G90 G00 X0 Y0 C90.; 0090.0 090.000N2G 522 P10090.01...

  • Page 79

    5 - 17(5) Screen of fixture offsetTo select the Fixture offset screen, use F6/FIXTURE OFFSET or F4/WORKCOORDINATE .ACT at the upper left of the screen displays the currently selected fixture offset number (P)and fixture offset vector.(6) Input/output of fixture offset amountSetting and inpu...

  • Page 80

    5 - 18(b) If a parameter or standard fixture offset amount are changed during the G522 mode, itbecomes effective after a command of next G522.(c) If the following command is executed for a rotary axis during the G522 mode, acalculation for vector of fixture offset is not executed.Also, command th...

  • Page 81

    5 - 19No.1200, #3 = 0Enables only the fixture offset axis setting parameters in the 1st set.= 1Enables the fixture offset axis setting parameters in the three sets.No.1208, #0 = 0Disables fixture offset (for each axis).= 1Enables fixture offset (for each axis).No.1285Fixture offset target r...

  • Page 82

    5 - 20

  • Page 83

    6 - 16.COORDINATE6-1Absolute/Incremental Programming (G90,G91)In programming, you can select either absolute progaramming which causes an axial movefollowing the axial address to move to the specified position of the coordinate system, orincremental programming which causes it to move to the incr...

  • Page 84

    6 - 26-2Polar Coordinate Input (G15,G16)This command allows you to specify the end point coordinate value of the mochining programin terms of radius and angle.(1) G codeG15 :Polar coordinate command cancelG16 :Polar coordinate command ON(2) Command formatG16 ;Polar coordinate command ON : ...

  • Page 85

    6 - 3(c) The angle is given as follows (i)When the angle is given by absolute programming, it will be exactly the anglespecified in the block.(ii)When the angle is given by incremental programming, it will be added to theangle set in the previous block.(3) Sample programG17 ;G54 G90 G00 X0 Y0 ...

  • Page 86

    6 - 4(4) Cautions(a) The following G codes are invalid in the polar coordinate command mode.G04, G10, G52, G92, G53,G22, G68, G511, G501, G51(b) The radius for circular interpolation and helical cutting in the polar coordinatecommand mode should be specified by radius designation on arc.

  • Page 87

    6 - 56-3Inch/Metric Input (G20, G21)With a G20 or G21 command, either inch or metric system can be selected as the incrementsystem of program command.(1) Command formatG20 ; Inch systemG21 ; Metric sysytem(Note) Specify this in an independent block at the beginning of the program.(2) The followin...

  • Page 88

    6 - 6(4) Associated parametersNo. 1000, #0 = 0The increment system is metric.1The increment system is inch.(5) Associated alarms

  • Page 89

    7 - 17.SPINDLE FUNCTION (S FUNCTION)With the number of revolution of the main spindle (rpm) being commanded in a numericalvalue of max. 5 digits following Address S, binary code signals, strobe signals (SF), analogsignals corresponding to the spindle motor rpm, gear signals, etc. are sent out to...

  • Page 90

    7 - 2

  • Page 91

    8 - 18.TOOL FUNCTION (T FUNCTION)With a value of max. 8 digits following Address T being command, code signals of BCD 8digits and strobe signals (TF) are output in Machine side.(1) Specify a set of T command in one block.(2) Program example:T01;Tool No. 01 is set to Standby :G30 G90 X0 Y0 Z0 M19...

  • Page 92

    8 - 2

  • Page 93

    9 - 19.Miscellaneous Function (M FUNCTION)9-1Miscellaneous Function (M Function)If the address M followed by an up to 8-digit numerical value is specified, the BCD 8-digit codesignal and strobe signal (MF) are output to the machine side.(1) Specify a set of M command in one block.(2) The followin...

  • Page 94

    9 - 2(3) Sample programG30 G91 X0 Y0 Y0 M19;T01 M06 ;Tool changeM03 ;Spindle forward rotationG54 G90 G00 X0 Y0 ;G43 Z0 H01; : :M05 ;Spindle stopM30 ;Program end %(4) Cautions(a) If M00, M01, M02 or M30 is specified, the NC unit stops prereading.(b) When M98 or M99 is specified, the code sign...

  • Page 95

    9 - 3(4) Associated parametersNo.1020Command address of the 2nd miscellaneous function(5) Associated alarms

  • Page 96

    9 - 4

  • Page 97

    10 - 110.Canned Cycle10-1 Canned Cycle (G73, G74, G76, G80 - G89)This function allows you to specify the machining cycle such as drilling, tapping, boring, etc. inone block.The canned cycle is cancelled if you specify G80 or the G code of Group 01 (G00, G01, G02,G03, etc.) during the canned cycle...

  • Page 98

    10 - 2(Note 1) Single block operation is prohibited in the movements 4 , 5 and 6 .(Note 2) The ,R-Point command is allowed in the following cycles:• G81, G82 (Drilling cycle)• G73, G83 (Peck drilling cycle)If the ,R-command is omitted, the movement 4 (feed rate F) will be executedafter...

  • Page 99

    10 - 3(Note 1) The ,R-point is at a position incremental from the R-point.(6) Plane of the drilling position and drilling axisThe plane of the drilling position is determined with a G17, G18 or G 19 command. Thedrilling axis is the X, Y or Z axis which does not constitute the plane of the drillin...

  • Page 100

    10 - 4where ; I : Initial value of the depth of cut (positive value)J : Decremental value in 2nd cut onward (positive value)K : Final value of the depth of cut (positive value)(Note 1)When there is a Q command before specifying the variable pitch withI, J and K, specify Q.(Note 2)Dwell operation ...

  • Page 101

    10 - 5(Note 3) Giving a ",C" command withdraws the tool halfway drilling.G73 X_ Y_ Z_ R_ , R_Q_P_L_F_E_, C_;The following figure shows an operational example of initial point return.",C" denotes an incremental amount from the R-point top the Z-point.A sign is invalid.The too...

  • Page 102

    10 - 6(b) G74 (counter tapping) G74 X_ Y_ Z_ R_ P_ L_ F_ E_;[G98] [G99.](M03) : Spindle forward(M04) : Spindle reverse(Ppr) : Dwell (by parameter setting)(Note 1)By parameter setting, (Ppr) is invalidated.(Note 2)Feed hold And override are prohibited during cutting.G98G99{ ...

  • Page 103

    10 - 7Initial PointR PointZ pointInitial PointR PointZ pointInitial PointR PointZ point,R PointInitial PointR PointZ point,R Point(M03): Spindle forward(p): Dwell(M19): Spindle index stop: shift (rabid traverse linear interpolation)(Note 1)By parameter setting, specify the shift amount with I, J ...

  • Page 104

    10 - 8(e) G82 (Drilling) G82 X_ Y_ Z_ R_ ,R_ P_ L_ F_ E_ ;[G98][G99](f)G83 (Peck drilling)[ Fixed pitch ] G83 X_ Y_ Z_ R_ ,R_ I_ J_ K_ P_ L_ F_ E_ ;[G98] [G99]Initial PointR PointZ point,R PointInitial PointR PointZ point,R Point(X, Y)(P)(X, Y)(P)G98G99{ ...

  • Page 105

    10 - 9[Variable pitch] G83 X_ Y_ Z_ R_ ,R_ I_ J_ K_ P_ L_ F_ E_ ; [G98] [G99]pr : parameter settingWhere;I : Initial value of the depth of cut (positive value)J : Decremental value in 2nd cut onward (positive value)K : Final value of the depth of cut (positive value)(Note 1)When there is a ...

  • Page 106

    10 - 10(i)G86 (Boring) G86 X_ Y_ Z_ R_ L_ F_;[G98][G99]G98G99(h) G85 (Boring) G85 X_ Y_ Z_ R_ L_ F_;[G98] [G99]Initial PointR PointZ pointInitial PointR PointZ point(X, Y)(X, Y)(M03) : Spindle forward(M04) : Spindle stopInitial PointR PointZ pointInitial PointR PointZ point(X, Y)(M0...

  • Page 107

    10 - 11(j)G87 (Back boring) G87 X_ Y_ Z_ R_ P_ Q_ L_ F_ ;[G98] [G99](Note 1) If the Z axis is reached and the spindle stops after swell, the machine results in thesingle block stop state. Manual feed is allowed by selecting the manual mode.Operation can be continued by selecting the automat...

  • Page 108

    10 - 12(l)G89 (Boring) G89X_ Y_ Z_ R _ P_ L_ F_ ;[G98][G99](8) Sample programG17 G54 G90 G00 X0 Y0 ;G43 Z0 H01 ;M03 S1000 ;Spindle forwardG73 Z-50. R-5. Q5. L0 F200 ;Stores the machining data of the canned cycle.G99 X25. Y25. ;Peck drilling cycle 1 .X50. ;Peck drilling cycle 2 .Y50. ;Peck ...

  • Page 109

    10 - 13(9) Caution(a) When the SINGLE BLOCK button is turned on, the tool stops at each end point of themovements 1 , 2 , 3 , 6 and 7 .In this case, the FEED HOLD lamp is turned on at each end point of the movement 1 ,2 , 3 , and 6 , and the movement 7 when the number of repeats ...

  • Page 110

    10 - 14(h) The spindle can be switched to the high-speed gear in the movement 1 of G74/G84.The S value to switch to is set with the parameter.( i ) The numerical values of P. Q. I. J. K. L and F should be given in positive values.

  • Page 111

    10 - 15(10) Associated parametersNo.1401, #5= 0Dry run is valid for tapping command.1Dry run is invalid for tapping command.No.3407, #0= 0Does not make single block stop for each canned cycle for drilling.1Makes single block stop for each canned cycle for drilling.No.5100, #0= 0Drilling axis of c...

  • Page 112

    10 - 1610-2 Direct Tap (G741, G841)This function synchronizes the; spindle with the feed axes and allows high-speed high-accuracytapping.Conventional tappers are unnecessary.(1) Command format X_ Y_ Z_ R_ P_ Q_ L_ S_ F_ E_ ;G841: Forward direct tap (Note 6)G741: Rivers direct tap (Note 6)G98/G99 ...

  • Page 113

    10 - 17(Note 5) S/F commands are made valid in a block where G841 (G741) has been specified,serving to determine feed rate and pitches.Example :G841 Z_ R_ F_ S_ ;X_ Y_ ;· When specifying feed rata, F/S=pitchX_ Y_ ;· When specifying pitches, F x S=feed rateG80 ;(Note 6) Direct tap G-codes (G84l,...

  • Page 114

    10 - 18(3) Feed rate sitting and pitch setting (F-command)The direct tap has different meanings of F-command between the feed per minute mode(G94) and feed per revolution mode (G95).• G94 mode : F represents a drilling axis feed rate. (mm/min., in./min.)• G95 mode: F represents tap pitches....

  • Page 115

    10 - 19(4) Pecking cycle functionWhen performing deep tapping in direct tapping, it may be difficult due to entangled cuttingchips or increased cutting resistance.In that case, this function allows you to perform cutting, dividing between the R-point and Z-point into several sections.When paramet...

  • Page 116

    10 - 20(5) Notes(a) The description in this section assumes a drilling position to be on the XY plane, and adrilling axis to be the Z-axis.(b) Dwell operation can be enabled/disabled by parameter setting.(c) During tapping, feed rate override and spindle override are fixed at 100%. Dry run canbe ...

  • Page 117

    10 - 21No.5105, #4 = 0Returns to the R-point through pecking operation. =1Returns by the amount specified by a parameter(No. 5157) throughpecking operation.No.5200, #4 = 0In direct tapping, override on returning operation is invalid. =1In direct tapping, overri...

  • Page 118

    10 - 2210-3 Drilling Pattern Cycle (G70, G71, G72, G77)[Purpose]When drilling the holes at equal intervals on the circumference, this function automaticallycalculates the orthogonal coordinate value with the radius and angle and positions the tool tothat position.(1) Command formatG70 X_ Y_ I_ J_...

  • Page 119

    10 - 23(3) Description of the movements in the canned cycle(a) G70 : Bolt hole cycleG70 X_ Y_ I_ J_ L_ ;Example) G70 G91 X90. Y30. I40. J20. L6 ;(b) G71; Arc cycleG72 X_ Y_ I_ J_ K_ L_ ;Example) G71 G91 X30. Y10. I100. J30. K15. 2 L7 ;(c) G72 : Line at angle cycleG71 X_ Y_ I_ J_ L_ ;Example) ...

  • Page 120

    10 - 24(d) G77 : Grid cycleG77 X_ Y_ I_ J_ K_ C_ A_ L_ ;Example) G77 G91 X20. Y10. I25. J30. K60. C25. A4 L3 ; (4) Cautions(a) G70, G71, G72 and G77 are non-made G codes.(b) Be sure to specify G70, G71, G72 and G77 in the canned cycle mode.(c) Be sure to cancel G70, G71, G72 And G77 by specifyi...

  • Page 121

    10 - 2510-4 True Circular Cutting (G302 ~ G305)In one block, you can specify a series of actions to cut the inside or outside of a true circle.(1) G codeG302 : True circular cutting inside CW (clockwise)G303 : True circular cutting inside CCW (counterclockwise)C304 : True circular cutting inside ...

  • Page 122

    10 - 26Tool center path : 0→1→2→3→4→5→6→7→8→9→10→0*1=R - (D) + U -I(2) Command format(a) True circular cutting ID (G302, G303) I_ U_ Q_ L _ D_ F_ ;where;I: Radius of the finished circle.I + = Approach in the plus direction,I - = Approach in the minus directionR ...

  • Page 123

    10 - 27Tool center path : 0→1→2→3→45→6→7→8→9→0(b) True circular cutting 0D (G304,G305) I_ K_ U_ Q_ L _ D_ F_ ;G304G305R_J_where;I: Diameter of the approach circle.I + = Approach in the plus direction,I - = Approach in the minus directionR : R designa...

  • Page 124

    10 - 28(D10) : Offsetamount(D10) : Offsetamount(3) True circular cutting planeSpecify the true circular cutting plane with G17,G18, or G19.G17 : XP-YP planeG18 : ZP-XP planeG19 : YP-ZP planewhere;XP : X axis or its parallel axisYP : Y axis or its parallel axisZP : Z axis or its parallel axis(Note...

  • Page 125

    10 - 29G303 I50. D10 F500 ;G303 I-50. D10 F500;G304 I40. K30. D10 F500 ;G304 I-40. K30. D10 F500;G305 I40. K30. D10 F500 ;G305 I-40. K30. D10 F500;(D10) : Offsetamount(D10) : Offsetamount(D10) : Offsetamount(D10) : Offsetamount(D10) : Offsetamount(D10) : Offsetamount

  • Page 126

    10 - 30(D10) : Offset amountHigh-speedfeed sectionR30. - (D10)(D10) : Offset amountHigh-speedfeed sectionR30. - (D10)Repeats the finished circle twice.(Note) The final finished circle is repeated in case of spiral true circular cutting.(D10) : Offset amount(b) R ...

  • Page 127

    10 - 31Q : Arc increment(D10) : Offset amountI50. -(D10)I50. +(D10)Q : Arc incrementXY(D10) : Offset amount(e) Designation of spiral true circular cutting (U, Q)G302 I40. U70. Q10. D10 F200 ;G304 I50. K50. U20 Q10. D10 F200 ;

  • Page 128

    10 - 32(5) Cautions(a) Specify the G302 ~ G305 commands in the tool diameter compensation cancel mode(G40).(b) G302 through G305 are non-modal G codesThe numerical values of the addresses other than D and F specified in the same blockare valid only in the block where they are specified.(c) The nu...

  • Page 129

    10 - 33(6) Associated parametersNo.5101, #0 = 0The true circular cutting plane is always the X-Y plane.No.5159True circular cutting speed in the high-speed feed section(7) Associated alarmsNo.135True circular cutting error(#002)I command not available (G302 ~ G305)(#003)K command not available (...

  • Page 130

    10 - 3410-5 Square Outside Cutting (G322,323)A series of square outside cutting actions can be specified in one block.(1) G codeG322 : Square outside cutting CW (clockwise)G232 : Square outside cutting CCW (counterclockwise)(2) Command format X_ Y_ Z_ R_ Q_ I_ J_ K_ P_ A_ C_ D_ F...

  • Page 131

    10 - 35(3) Initial pointMachining start point of the G322/G323 command. When a series of actions is completed,the X, Y and Z axes return to the start point.(4) R point and Z pointThe R and Z points are as follows by the G90/G91 command.[ G90 ][ G91 ](5) Square outside cutting planeThe square outs...

  • Page 132

    10 - 36(6) Sample programG17:G90 G322 X50. Y-100. Z-50. R-10. Q20. I80.J40. K8. P30. A2. C15. D10 F200 ;(7) Cautions(a) G322/G323 applies tool diameter compensation regardless of the tool diametercompensation commands (G41, G42). Therefore, specify them in the tool diametercompensation cancel (G4...

  • Page 133

    10 - 37(8) Associated parametersNo.5101, #0= 0The square outside cutting plane is always the X-Y plane.1The square outside cutting plane depends on the specified one of theG17~ G19 commands.No.5115Finish speed override value (1 to 100 %)No.5152Finish allowanceNo.5153Clearance amount(9) Associated...

  • Page 134

    10 - 38(1) Square plane cutting (G324)[Purpose]This function collectively machines the square plane by single/doubledirectional cutting.(a) command formatG324 X_ Y_ Z_ R_ I_ J_ K_ Q_ P_ C_ D_ E_ U_ F_;G324: Square plane cuttingX, Y: Start point coordinate value of the plane. Enter it based on G...

  • Page 135

    10 - 39(b) MovementsThe start point and cutting direction can be changed by changing the sign of I and J. Whenthe cutting width K is a negative value, the cutter center is projected outside by theapproach amountYFinish Allowance(N. 5152)(X, Y)PKJIRZQCZZYXX

  • Page 136

    10 - 40Double Directional Cutting (|Q| C)Single Directional Cutting (|Q| < C)Approach AmountPPYZXJIApproach AmountRFull line : Cutting feedDotted line : Rapid traverseYZX1st Cut + Q2nd Cut + Q3rd Cut (Z - Finish Allowance)>=

  • Page 137

    10 - 41Double Directional Cutting (|Q| C)Single Directional Cutting (|Q| < C)(c) Sample programG324 X-15. Y-10. Z-30. R-10. 130. J20. K8. Q10. P5. P10 F200PKPKPKIKPTool center path 1→a→b→2→3→4→5→6→c→7→d→2→3→4→5→6→e→7→f→2→3→4→5→6→g→7Initial ...

  • Page 138

    10 - 42(2) Square plane l-directional (G325)[purpose] Capable of performing multi-directional cutting and specifying the end surface.(a) Command formatG325X_ Y_ Z_ R_ I_ J_ K_ Q_ P_ C_ D_ E_ U_ F_ ;G325: Square plane l-directionalX,Y: Start point coordinate value of the plane. Enter it based on...

  • Page 139

    10 - 43(b) MovementFinish Allowance(N. 5152)Finish Allowance(N. 5152)C2C3C4(X, Y)KC1PXYZXYZZRQIApproach AmountPJ

  • Page 140

    10 - 44C1C2C3C4X, YX, YX, YX, YX, YX, YX, YX, Y1)X,Y approach point, rapid traverse to the R point↓2)Rapid traverse to the Z axis cut-in height↓3)Machining in the I-specified axis direction↓4)Machining in the J-specified axis direction, K ="+" : rapid↓traverse, K = "-"...

  • Page 141

    10 - 45R Point(C) Sample programG324 X-15. Y-10. Z-30. R-10. 130. J20. K8. Q10. P5. C1 D10 F200Tool center path 1→a→b→2→3→4→5→6→c→7 →d→2→3→4→5→6→e→7 →f→2→3→4→8→9→g→10InitialPointZ PointCutting feedRapid traverseP5.I 30.P5.J20.aegb c...

  • Page 142

    10 - 46(d) Cautions(d. 1) When each depth of cut(Q) is a negative value(-), no finishing is performed.(plane included) Machining is performed only once in case of (|R - Z|) |Q|.(d. 2) The tool cuts in by each depth of cut(Q) from the R point.(d. 3) The length in the J direction isalways po...

  • Page 143

    10 - 47(b) MovementsFinishAllowance(N. 5152)FinishAllowance(N. 5152)(X, Y)KPIJRZQXYZXYZFinishAllowanceFinish Surface1245

  • Page 144

    10 - 48InitialPointR PointZ PointCutting feedRapid traverseaegb cdfprQ 10.1Cuts on the start point side, leaving the side finish allowance.↓2Leaves the side finish allowance on the end poing side.↓3Cuts in on the start point side, from the position where the side finish allowance wasleft.↓3...

  • Page 145

    10 - 49 IJC1 C2-++--+--(X, Y)(X, Y)(X, Y)(X, Y)(X, Y)(X, Y)(X, Y)(X, Y)

  • Page 146

    10 - 50G_: Mode(X, Y): Reference point of the X and Y axesZ: Z pointR: R pointQ: Each depth of cut in the Z axis } Refer to the description of each function.D: Tool offset numberF: Cutting feed ratepr1: Finish allowance (parameter setting)pr2: Clearance amount (parameter set...

  • Page 147

    10 - 51Z0 PositionInitial PointZ PointR PointInitial PointZ Point(3) Initial pointMachining start point of the G327 ~ G333 commands. All of the X, Y and Z axes return tothe start point when a series of actions is completed.(4) R and Z pointsThe R and Z points are set as follows by the G90/G91 com...

  • Page 148

    10 - 52(6) Cautions(a) Give the G327 to G333 commands in the cutter compensation cancel (G40) mode.(b) G327 through G333 are non-modal G codes.(c) When D and F are omitted, already specified D and F are validated.(Note 1) For detailed description of each function, refer to separate document.(7) ...

  • Page 149

    10 - 53(8) Associated AlarmsNo. 137Pocket cutting command error(#009)I command not available (G327~G333)(#010)J command not available (G328~G332)(#011)K command not available (G327~G333)(#012)P command not available (G330~G332)(#013)Q command not available (G327~G333)(#014)A command not available...

  • Page 150

    10 - 54(#044)[A command - tool diameter] > [J command/2] (G328)[A command + tool diameter] > [J command/2] (G331)(#043)Finish allowance > [J command/2] (G328)(#044)[A command - tool diameter] > [J command/2] (G328)[A command + tool diameter] > [J command/2] (G331)(#045)Tool diamete...

  • Page 151

    10 - 55Finish Allowance(N. 6224)Finish Allowance(N. 6224)Approach PointXYZXYZZRQ(X, Y)10-7-1 Circular Poketing (G327)[Purpose] Used for pocketing inside the circle with an end mill.For detailed description in case of G17 (X, Y plane), as follows.(1) Command formatG327 X_ Y_ Z_ R_ I_ J_ K_ Q_ D_...

  • Page 152

    10 - 56(X, Y)Each Depth of Cut: QApproach PointQR PointFull line: Cutting feedDotted line : Rapid traverse(2) Movements1.Moves to the X, Y point at the rapid traverse rate.↓2.Moves to the Z axis approach point at the rapid traverse↓(R Point + each depth of cut(Q) in the Z axis direction)3.Rap...

  • Page 153

    10 - 57InitialPoint(3) Sample programG327 X50. Y50. Z-50. R-10. I50. J20. K8. Q20. D10 F200Tool center path 1→a→b→c→2→3→4→5→6→7→d→8 →e→f→2→3→4→5→6→7→g→8 →h→i→2→3→4→5→6→7→9→10→11→8 →j→k→8R PointZ PointCut...

  • Page 154

    10 - 58(4) Cautions(a) When the cutting width(K) is a negative value, finishing is not performed in the X axisand Y axis directions.(Fig. 7.1)(b) If the radius (J) of the lower hole is -/, a profile (Figure 7.2) leaving the radius (J) isobtained.(c) When each depth of cut(Q) is a negative value i...

  • Page 155

    10 - 59PremachinedHoleFinish AllowanceXYZZRQ(X1, Y1)I10-7-2 Square Poketing (G328)[Purpose] Used when machining inside the square bar with an end mill. The corner R can bealso specified.(1) Command formatG328 X_ Y_ Z_ R_ I_ J_ K_ Q_ C_ A_ D_ E_ U_ V_ F _ ;G328: Square pocketX, Y: Start point co...

  • Page 156

    10 - 60(2) MovementsCutting PatternThe cutting direction can be changed with the sign of I and J.Approach PointR PointX, YX, YX, YX, Y

  • Page 157

    10 - 611.Moves to the X, Y point at the rapid traverse rate.↓2.Moves to the Z axis approach point.↓(R Point + each depth of cut(Q) in the Z axis direction)3.Moves to the workpiece center in the side direction at the rapid traverse rate.↓4.Rapid traverse to the R point↓5.Cuts in by each de...

  • Page 158

    10 - 62(3) Sample programG328 X-50. Y-25. Z-50. R-10. I100. J50. K8. Q20. C15. D10Tool center path 1→a→2→b→c→3→4→5→6→7→8→d→9 →e→f→3→4→5→6→7→8→g→9 h→i→3→4→5→6→10→11→12→j→k→9InitialPointQ20.R PointQ20.Z PointCutting feedRapid t...

  • Page 159

    10 - 63Final Profile(4) Cautions(a) When the workpiece has a premachined hole, specify the removal amount (C)of singlewall.When (C) is not specified, the tool cuts from the center, assuming that there is nopremachined hole. (Fig. 7.3)(b) When the cutting width (K) is a negative value, no finishin...

  • Page 160

    10 - 6410-7-3 Track Inside (G329)You can specify in one block a series of actions which cuts the inside of the track, using an endmill. The following describes the case of G17 (X-Y plane).(1) Command formatG329 X_ Y_ Z_ R_ I_ J_ A_ C_ K_ Q_ D_ V_ E_ U_ F_ ;(X, Y): Reference point of the X and Y a...

  • Page 161

    10 - 65(2) Sample programG17 ;G90 G329 X50. Y-100. Z-50. R-10. Q20. I50. J20. A50. C15. K8. D10 F200;Tool center path: 0→→→→→1→→→→→a→→→→→ b→→→→→2→→→→→3→→→→→4→→→→→5→→→→→6→→→→→7→→→→...

  • Page 162

    10 - 66(3) Cautions(a) Specify the numerical values of the addresses V, E and U without a decimal point. (incase of the metric system)(b) An alarm results in case of tool offset amount ((D)) > arc radius (A).(c) An alarm results if you specify I = 0 and J = 0.(d) When the address C is omitted,...

  • Page 163

    10 - 6710-7-4 Circle outside Pocketing (G330)[Purpose] Used when cutting the outside of the circle with an end will. For detailed descriptionin case of G17 (X, Y plane), as follows.(1) Command formatG330 X_ Y_ Z_ R_ I_ J_ K_ Q_ P_ D_ E_ U_ V_ F_ ;G330: Circle outsideX, Y: Coordinate value of the...

  • Page 164

    10 - 68Approach Point:QCutting Start Point(2)MovementsR PointZ PointFinish Allowance(N. 5152)XYZQRZ(X, Y)

  • Page 165

    10 - 691.Moves to the X, Y point at the rapid traverse rate.↓2.Moves to the Z axis approach point at the rapid traverse rate. (R Point + each↓depth of cut(Q) in the Z axis direction)3.Moves to the approach point at the rapid traverse rate, considering the cutting↓width of the removal amount...

  • Page 166

    10 - 7010-7-5 Square Outside Cutting (G331)[Purpose] Used when cutting the outside of the square with an end mill.It is also possible to specify the corner R.For detailed description in case of G17 (X, Y plane), as follows.(1) Command formatG331 X_ Y_ Z_ R_ I_ J_ K_ Q_ P_ C_ A_ D_ E_ U_ F_ ;G33...

  • Page 167

    10 - 71R PointZ PointApproach Point(X, Y)(X, Y)(X, Y)(X, Y)IJIJIJIJ(X, Y)Q(2) MovementsCutting PatternFinish Allowance(No. 6224)R PointZPoint

  • Page 168

    10 - 721.Moves to the X, Y point at the rapid traverse rate.↓2.Moves to the Z axis approach point at the rapid traverse rate.↓(R Point + each depth of cut (Q) in the Z axis direction)3.Moves to the 1st cutting-in position in the side direction at the rapid traverse rate.↓4.Rapid traverse to...

  • Page 169

    10 - 7310-7-6 Track Outside (G332)You can specify a series of action which cuts the outside of the track with an end mill. Thefollowing describes the case of G17 (X-Y plane).(1) Command formatG332 X_ Y_ Z_ R_ I_ J_ A_ C_ K_ Q_ P_ D_ E_ U_ F_ ;(X, Y): Reference point of the X and Y axesZ: Z point...

  • Page 170

    10 - 74(2) Sample programG17 ;G90 G332 X50. Y-100. Z-50. R-10. Q20. I50. J20. A50. C15. K8. P5. D10 F200 ;Tool center path: 0→→→→→1→→→→→2→→→→→a→→→→→b→→→→→3→→→→→4→→→→→5→→→→→6→→→→→c→→→→→P1→→→...

  • Page 171

    10 - 75(3) Cautions(a) Specify the numerical values of the addresses E and U without a decimal point. (incase of the metric system)(b) An alarm results if you specify I = O and J = O.(c) An alarm results if P = O is specified.(d) When the address C is omitted, the arc radius is taken as the remov...

  • Page 172

    10 - 7610-7-7 Circle (G333)You can specify in one block a series of actions which cuts the inside of the true circle using anend mill. The following describes the case of G17 (X-Y plane).(1) Command formatG333 X_ Y_ Z_ R_ I_ Q_ C_ K_ D_ U_ V_ W_ E_ F_ ;(X, Y): Reference point of the X and Y axe...

  • Page 173

    10 - 77InitialPointR PointZ PointWhere ; Rapid traverseCutting feedFinishAllowance(Start Point)aebcdTool center path :0→→→→→a→→→→→b→→→→→1→→→→→2→→→→→3→→→→→4→→→→→5→→→→→6→→→→→c → → → → ...

  • Page 174

    10 - 7810-7-8 Special Fixed Cycles (G322 ~ G333) Type 2There are the following two types of special fixed cycles (G322~G333):Parameter No. 5101,#1=0 ... Type 1 (operation as mentioned before)=1 ... Type 2 (unified specifications)For type 2, all operations at special fixed cycles are performed acc...

  • Page 175

    10 - 7910-8 ATC Canned Cycle (MO6)A series of ATC operations (tool change) can be specified in one block.(1) Command format{ T_ } M06 { B_ } { P_ } { X_ } ; { ~ } →→→→→ OmissibleT_ : Tool number to be called.When omitted, a stand by tool is called.T00 delivers the spindle tool.B...

  • Page 176

    10 - 80(3) ATC position of the table• At ATC time, the table can be moved to a specified position.Method 1 : In the same block as M06, specify a table position in terms of machinecoordinates.Method 2 : With 1 being set in table axis #0 of Parameter No. 5109, the table is shifted toplace se...

  • Page 177

    10 - 81(5) Related alarmsNo. 162(#???) An M-code command for canned cycle has an error.(6) Notes• { T_ } M6 { B_ } { P_ } { X_ } ; command should be specified in a singleblock.• If the ATC canned cycle is specified in the canned cycle mode (when a G-code in theG09 group is other then...

  • Page 178

    10 - 82Standby ToolChange Position(Y- and Z-axis 2nd Reference Point)Start Position10-8-1 ATC Canned Cycle, Type A (VK, VKC, VG, VkII)(1) Command format{ T_ } M06 { B_ } { X_ } ; { ~ } →→→→→ OmissibleT_ : Tool number to be called.When omitted, a standby tool is called.T00 delivers...

  • Page 179

    10 - 83 No.Description1226X--YATC change position(Machine coordinated[mm])ZATC change position(Machine coordinated[mm])5103#1Set 0.#2Set 0.5109 #0 0No shifting of table/additional axes.5161Shifted to position set with Parameter 5161.5161X-axis ATC position(Machine coordinated[mm/inch])...

  • Page 180

    10 - 84 2 Z-axis 2nd reference pointX-axis 2nd reference point 1Start point 3 4 610-8-2 ATC CANNED CYCLE TYPE E (VM40III)(1) Command Format{ T_ } M06 { B_ } { Y_ } ;{ ~ } → → → → → OmissibleT_ : A tool No. called out.When omitted, call a standby tool.For T00, a spi...

  • Page 181

    10 - 85(3) Associated Parameters* As for parameters relating to additional axes, see Item 7-8 (4).No.Details1226XATC change position(Machine coordinates[mm])Y--ZATC change position(Machine coordinates[mm])1227XATC change position(Machine coordinates[mm])Y--Z--5130#1Set 0.#2Set 0.5109 #0 =0 Y-a...

  • Page 182

    10 - 8610-8-3 ATC CANNED CYCLE TYPE F (HG)(1) Command Format{ M_ } M06 { B_ } ;{ ~ } → → → → → OmissibleT_ : A tool No. called out.When omitted, a standby tool is called out.With T00, a spindle tool is discharged.B_: 2nd auxiliary functionSee Item 13-4.* For additional axes, see...

  • Page 183

    10 - 8710-8-4 ATC Canned Cycle, Type G (HK)(1) Command format{ T_ } M06 { B_ } ;{ ~ } → → → → → OmissibleT_ :Tool number to be called• When omitted, a standby tool is called.• TOO Delivers the spindle tool.B_ : 2nd auxiliary function. See Section 10-4.* For an additional ax...

  • Page 184

    10 - 88(3) Associated parametersNo.Description1226XATC approach position(Machine coordinates [mm])YATC change position(Machine coordinates [mm])ZATC Change position(Machine coordinates [mm])5103 #1Set 0. #2Set 0. #3 =1 Results in an alarm if the specified tool and the sp...

  • Page 185

    10 - 8910-8-5 ATC Canned Cycle, Type I (Initial HS500)(1) Command format{ T_ } M06 { B_ } ;{ ~ } → → → → → OmissibleT_ :Tool number to be called• When omitted, the standby tool is called.• T00 Delivers the spindle tool.B_ : 2nd auxiliary function. See Section 10-4. For ...

  • Page 186

    10 - 90(3) Associated parametersNo.Description 1226XATC approach position(Machine coordinates [mm])YATC approach position(Machine coordinates [mm])ZUnused(Machine coordinates [mm]) 1227XTool change position(Machine coordinates [mm])YTool change position(Machine coordinates [mm])ZTool change posit...

  • Page 187

    10 - 9110-8-6 ATC Canned Cycle, Type J (VS)(1) Command format{ T_ } M06 { B_ } { Y_ } ;{ ~ } → → → → → OmissibleT_ :Tool number to be called• When omitted, the standby tool is called.• T00 Delivers the spindle tool.B_ : 2nd auxiliary function. See Section 10-4. For a...

  • Page 188

    10 - 92(3) Associated parametersNo.Description 1226XATC approach position(Machine coordinates [mm])YATC approach position(Machine coordinates [mm])ZUnused(Machine coordinates [mm]) 1227XTool change position(Machine coordinates [mm])YTool change position(Machine coordinates [mm])ZTool change posit...

  • Page 189

    10 - 9310-8-7 ATC Canned Cycle, Type K(HS630)(1) Command formatM06 { T_ } { B_ } ;{ ~ } → → → → → OmissibleT_ :Tool number to be called• When omitted, the standby tool is called.• T00 delivers the spindle tool.B_ : 2nd auxiliary function. See 10-4. For an additional axis...

  • Page 190

    10 - 94(3) Related parametersNo.Description1226XATC approach position(Machine coordinate [mm])YATC approach position(Machine coordinate [mm])ZUnused(Machine coordinate [mm])1227XTool change position(Machine coordinate [mm])YTool change position(Machine coordinate [mm])ZTool change position(Machin...

  • Page 191

    10 - 9510-8-8 ATC Canned Cycle, Type L (New HS500)(1) Command formatM06 { T_ } { B_ } ;{ ~ } → → → → → OmissibleT_ :Tool number to be called• When omitted, the standby tool is called.• T00 delivers the spindle tool.B_ : 2nd auxiliary function. See 10-4. For the additiona...

  • Page 192

    10 - 9610-8-9 ATC Canned Cycle, Type M (VS 16-tool)(1) Command formatM06 { T_ } ;{ ~ } → → → → → Omissible(2) MovementsNote: A number enclosed by the brackets (<>) represents an origin number.T-code command = Spindle T-code or Spindle T-code = For standby T-codeWhen the Sp...

  • Page 193

    10 - 97When the Spindle T-code Is “0”; 14 M127 15 X<1> M107Outputs M127.Moves the X-axis to the 1st reference point.Outputs M107.Moves to the point which assumes this valueto be the coordinates, when Parameter 5173is not “0”.Command 1 { T_ } ; 2 M06 3 M125 4 Z<1> 5...

  • Page 194

    10 - 9810-8-10 ATC Canned Cycle, Type N (MS400H)(1) Command format { T_ } M06 { B_ } { S_ } ;{ ~ } → → → → → OmissibleT_ :Tool number to be called• When omitted, the standby tool is called.• T00 delivers the spindle tool.B_ : 2nd auxiliary function. See 10-2. For the addi...

  • Page 195

    10 - 9910-9 High-Speed Machining Cycle10-9-1 Trochoid Cycle (G334)To perform fluting in circular cutting through use of an end mill.(1) Command FormatG334 X_ Y_ Z_ I_ J_ K_ A_ W_ R_ C_ P_ Q_ D_ F_ V_ ;X, Y: Coordinate value of the reference point (When in default, current position)Z: Z-axis co...

  • Page 196

    10 - 100(2) Flute Width (W)Flute width is commanded with an address W. With W not assigned, flute width gets equalto (A x 2).(a) With W command(b) Without W command(3) Circular Flute (R, C)When addresses R and C are commanded, a circular flute is obtained. The circular fluteradius is assigned by ...

  • Page 197

    10 - 101Work start positionWork end positionWork start positionWork end positionWork start positionWork end positionWork startpositionWork end position(4) Approach Volume (P, Q)When address P or Q being commanded, work start position is automatically calculatedbased on the reference points on X a...

  • Page 198

    10 - 102(5) Plane of Trochoid CyclePlanes for the trochoid cycle are assigned with G17, G18, and G19:G17 : XY planeG18 : ZX planeG19 : YZ plane(6) Cautions(a) When using G334 command, set the cutter compensation to Cancel (G40) state.(b) G334 is a non-modal G code.(c) Without assignment of D and ...

  • Page 199

    10 - 103Full line: Cutting feedDotted line: Quick feed10-9-2 Helical Drilling Cycle (G812, G813)To perform drilling in helical interpolation through use of an end mill. G812/G813 remain validuntil it is cancelled with a modal G code (09 group).(1) Command Format X_ Y_ Z_ R_ , R_ I_ J_ K_...

  • Page 200

    10 - 104Z0 positionInitial pointR point,R pointK pointZ pointInitial pointR point,R pointK pointZ point(2) Movement(a) Where I > 0 and Q > 0; 1 Shifted in quick feed to the X/Y axis drilling place. 2 Shifted in quick feed to R point on Z axis. 3 Circular cutting to the X/Y axis cutting s...

  • Page 201

    10 - 105(4) Return PointThe return point of the helical drilling canned cycle is commanded with the following Gcode:G98: Returned to the initial point levelG99: Returned o R point level(Note 1) The initial point indicates the drilling axis position when mode has changed intoHelical Drilling Cycle...

  • Page 202

    10 - 106(f)Conical cutting, for which the circular center and the radius are changed by eachcircular diving angle having been set with parameters, cannot achieve a perfect conein the strict sense of the word.(8) Associated ParametersNo. 5117 Circular dividing angles (1 to 90)(9) Associated Alarms...

  • Page 203

    10 - 10710-9-3 High Speed Side Face Cutting Cycle (G335)To perform side face cutting through use of an end mill.(1) Command FormatG335 X_ Y_ Z_ R_ I_ J_ K_ P_ C_ D_ F_ V_ ;X, Y: Reference point coordinate value (When in default, the current position)Z: Z point coordinate valueR: R point coordin...

  • Page 204

    10 - 108(2) Cutting Start Position and Cutting DirectionCutting start position and the direction are assigned through use of address C and I codes.C1C2C3C4I +I -(X, Y)I(X, Y)I(X, Y)I(X, Y)I(X, Y)I(X, Y)I(X, Y)I(X, Y)I

  • Page 205

    10 - 109(X, Y)P(X, Y)P(3) Approach PositionApproach position is changed by the address K code. With it being negative, the cuttercenter is located outside only by the distance equal to the approach volume.(a) K+(b) k-(5) Planes for High Speed Face Cutting CycleThe planes for the high speed side f...

  • Page 206

    10 - 110(7) Associated ParametersNo. 5101, #0= 0Plane selection always applies to XY plane.1Plane selection conforms to G17 to 19 commands.(8) Associated AlarmsNo. 222High speed side face cutting cycle command error(#001)Without Z command(#002)Without I command or I command = 0(#003)Without J com...

  • Page 207

    10 - 111RZJIQA(X, Y)10-9-4 Z Feed Fluting Cycle (G336)To perform fluting through use of oblique cutting.(1) Command FormatG336 X_ Y_ Z_ R_ I_ J_ A_ Q_ F_ ;X, Y: Cutting start point coordinate value (When in default, the current position.)Z: Z point coordinate valueR: R point coordinate value (Whe...

  • Page 208

    10 - 112(2) R Point and Z PointWith G 90/ G91 command, R and Z points are made as follows:(a) G90(b) G91(3) Planes for Z Feed Fluting CycleThe planes for the Z feed fluting are assigned with G17, G18, and G19.G17 : XY planeG18 : ZX planeG19 : YZ plane(4) Cautions(a) Command G336 while tool length...

  • Page 209

    10 - 11310-9-5 Corner Pocket Cycle (G337)To work corners through use of an end mill.(1) Command FormatG337 X_ Y_ Z_ R_ I_ J_ K_ C_ D_ F_ V_ ;X, Y: Corner reference point coordinate value (When in default, the current position.)Z: Z point coordinate valueR: R point coordinate value (When in defaul...

  • Page 210

    10 - 114(2) QuadrantA corner quadrant is assigned through use of an address C value. When the address C isspecified, the address B is ignored.(3) R Point and Z PointWith G 90/ G91 command, R and Z points are made as follows:(a) G90(b) G91(5) Planes for Corner Pocket CycleThe planes for the corner...

  • Page 211

    10 - 115(6) Associated ParametersNo. 5101, #0= 0Plane selection always applies to XY plane.1Plane selection conforms to G17 to G19 commands.No. 5158Feed speed for high-speed feed section(7) Associated AlarmsNo. 224Corner pocket cycle command error(#001)Without Z command(#002)Without I command o...

  • Page 212

    10 - 11610-9-6 Square Pocket Cycle (G338)To work the square pocket through use of an end mill.(1) Command FormatG338 X_ Y_ Z_ R_ I_ J_ A_ B_ K_ D_ F_ V_ ;X, Y: Pocket center coordinate value (When in default, the current position.)Z: Z point coordinate valueR: R point coordinate value (When in...

  • Page 213

    10 - 117(2) R Point and Z PointWith G 90/ G91 command, R and Z points are made as follows:(a) G90(b) G91(3) Planes for Square Pocket CycleThe planes for the square pocket cycle are assigned with G17, G18, and G19.G17 : XY planeG18 : ZX planeG19 : YZ plane(4) Cautions(a) Command G338 while tool le...

  • Page 214

    10 - 118

  • Page 215

    11 - 111.COMPENSATION FUNCTION11-1 Tool Length Compensation (G43, G44, G49)This command adds the offset amount specified with an H code to or subtracts it from theposition of the move end point against one optional axis.(1) G codeG43 : Tool length compensation in the "+" direction (end ...

  • Page 216

    11 - 2(4) Sample program[End Point Position][Tool Length Compensation]G54 G90 G00 X0 Y0 ;G40 Z0 H01 ;Z axis : 200.+200.offsetG01 Z-30.F500 ;Z axis : 170.Z-100. ;Z axis : 100.G44 G00 Z0 H02 ;Z axis : -150.-150.offsetG01 Z-30. F500 ;Z axis : -180.Z-100. ;Z axis : -250.G49 ;Z axis : -250.CancelG00 Z...

  • Page 217

    11 - 3[Sample Program][End Point Position] [Tool Length Compensation]G54 G90 G00 X0 Y0 ;G43 Z0 H01 ;Z axis : 200.+200.offsetG01 Z-30.F500 ;Z axis : 170.H02 ;Z axis : 120.+150. offsetZ-100.;Z axis :50.H00 ;Z axis :50.CancelG00 Z0 ;Z axis :0.Axis move to cancel:-150.Where;H01 : 200.H02 :150.(6) Ca...

  • Page 218

    11 - 4•In case of the parameter No.5002, #5 = l(clear the tool length compensation vector by reset), the tool length compensationvector is cleared by pressing the RESET button.Whether the reset state is the G43 or G44 mode, therefore, it is necessary tospecify G43, G44 or H to establish the t...

  • Page 219

    11 - 5(7) Associated parametersNo.5002, #0Change in offset amount is made effective starting with:= 0the block in which D/H codes are next specified.= 1the block in which next buffering takes place.No.5002, #4 = 0Tool length compensation is always for Z axis.= 1Tool length compensation is always ...

  • Page 220

    11 - 6Extends by the offsetamount.Contracts by the offsetamount.Extends doubly by the offsetamount.Contracts doubly by theoffset amount.11-2 Tool Offset (G45 - G48)This command extends or contracts the program-given stroke by the specified offset amount. Incase of arc, however, tool offset can be...

  • Page 221

    11 - 7 (3) Sample programG17 G54 G90 G00 X0 Y0 ;G01 G91 F200 ;N1 G46 X20. Y20. D01 ;Contracts the X and Y axes by the offset amount.N2 G45 X40. ;Extends the X axis by the offset amount.N3 G45 G03 X20. Y20. J20. ;Extends the X and Y axes by the offset amount.N4 G45 G01 Y20. ;Exten...

  • Page 222

    11 - 8(5) Associated parametersNo. 5002, #1 = 0The offset number for tool offset is a D code.1The offset number for tool offset is an H code.No. 5002, #2 = 0Disables an arc command for tool offset.1Enables an arc command for tool offset.(6) Associated alarmsNo. 161Tool offset was specified in the...

  • Page 223

    11 - 911-3 Tool Diameter Compensation (G38 - G42)This command can offset the tool center path outside or inside the programmed path by the toolradius value specified with a D code.If the tool radius value is specified with the D code when machining the outer figure or innerfigure with an end mill...

  • Page 224

    11 - 10This command places tool diameter compensation in the start-up state.α_ β_ ;This command cancels tool diameter compensation. G38α_ β_ ;With this command, tool diameter compensation offset vector can be retained. G38 I_ J_ K_ ;With this command, tool diameter com...

  • Page 225

    11 - 11(4) Offset directionThe offset direction for tool diameter compensation is determined by the G41/42 and thesign of the tool radius value specified with a D code.Offset DirectionG CodeSign of Tool Radius ValueOffset to leftG41+G42-Offset tool rightG41-G42+Advance DirectionAdvance DirectionO...

  • Page 226

    11 - 12(5) Sample program for tool diameter compensation[Offset to left]where; D10 = 20.G90 G00 X0 Y0 ;N1 G17 G01 G90 G41 X50. Y50. D10 F200;Start-upN2 X100.;N3 G02 X150. Y100. 150.;Offset modeN4 G01 G40 X200.;Cancel[Offset to right]where; D10 = 20.G90 G00 X0 Y0 ;N1 G17 G01 G9...

  • Page 227

    11 - 13(a) Offset vector hold G38 α_ β_ ;This command holds the offset vector at the end point position of the previous blockwithout creating the offset vector.[Sample Program]where; D10 = 20.G54 G90 G00 X0 Y0 ;N1 G17 G01 G42 X50. Y50. D10 F200 ;N2 X100.;N3 G38 X150. ;Offse...

  • Page 228

    11 - 14(7) Tool diameter compensation corner arc (G39)During the offset mode, a G39 command allows the tool to move along an arc at thecorner.(a) G39 ; If I, J and K are omitted in the block containing G39, the tool moves along acorner arc which allows its end point vector to be perpendicular to ...

  • Page 229

    11 - 15(d) If you specify 3 or more blocks, which do not contain an axis move command, duringthe offset mode, the workpiece may be partly left uncut or cut too much.(e) If the following commands are given during the offset mode, an alarm results. G31 , G37 G53 , G73, G74, G76, G81...

  • Page 230

    11 - 16Programmed PathTool Center PathααααrSSSrrS(d) When the move axis, whose stroke is not 0, has been specified in the offset plane ofthe next block. (The next block is the block skipping the block with no move axis withinthe con-tinuous blocks following the next block.)(e) When the offset...

  • Page 231

    11 - 17αSLrαSLrαSLrLSLLLα(b) When the tool moves outside (90° α < 180°)(c) When the tool moves outside at an acute angle (α < 90°)(d) When the tool moves inside (359° α or α < 1°)(i)When the tool moves inside in case of line-to-line, and the offset vector islarge.(a ...

  • Page 232

    11 - 18(ii) When the tool moves inside in case of line-to-arc, arc-to-line or arc-to-arc, and theoffset vector is large or cannot be obtained.(359° α or α < 1°)(3) CancelIf the block which satisfies even one of the following conditions is executed during offsetmode, tool diameter com...

  • Page 233

    11 - 19(4) Special uses(a) When the offset direction is changed over by specifying G41/G42 during the offsetmode, an intersecting point is obtained.(b) When the offset direction is not changed over by specifying G41/G42 during the offsetmode, the vector is created perpendicularly to the end point...

  • Page 234

    11 - 20G17 G41 G91 G00 X10. Y10. D10 F200 ;N1 G01 X50. Y50. ;N2 M09 ;N3 G04 X1. ;Blocks with no axisN4 Z-50. ; move commandN5 X50. ;N6 X50. Y-50. ;(e) The tool relief direction can be specified with I, J and K bygiving G40 α_ β_ I _ J _ K _ ;G17 G41 D10 ; : ...

  • Page 235

    11 - 21(5) Move at the corner(a) When 2 or more offset vectors are created at the end point of the block and they arealmost matching, the latter vector is invalidated.When the next block is an arc, however, the offset vector perpendicular to the startpoint of the next block becomes invalid. (i) ...

  • Page 236

    11 - 22An interference results because the movedirections of VIV2 and PIP2 forms an angleof 180°.→ →V1V2P1P2An interference results in caseof r R.rR(6) Interference checkIf tool diameter compensation is applied, the tool may cut in the workpiece when it has aspecial shape. With...

  • Page 237

    11 - 23Interference check at V14 and V21: Erases V14 and V21 due to interferenceInterference check at V13 and V22: Erases V13 and V22 due to interferenceInterference check at V12 and V23: Erases V12 and V23 due to interferenceInterference check at V11 and V24: No interference(Note) The tool m...

  • Page 238

    11 - 24S LLααSLG41G41LSLLαSG41G41LαLii)When the tool moves outside (90° α < 180°)(iii)When the tool moves outside (1° α <90°)(b) Type B cancellation(i)When the tool moves inside (180° α)SαSG41G41αTool Center PathProgrammed PathSαSG40G40α(iv)When the tool moves ou...

  • Page 239

    11 - 25(ii)When the tool moves outside (90° α < 180°)(iii)When the tool moves outside (1° α 90°)(iv)When the tool moves outside (α 1°)(8) Associated parametersNO. 5003, #0 = 0The start-up and cancellation methods are Type A.1The start-up and cancellation methods are Type ...

  • Page 240

    11 - 26(9) Associated alarmsNO.115Tool diameter compensation start-up or cancel has been specified in codeother than G00/G01.NO.117Excessive cutting has occurred in tool diameter compensation.(#001)Arc radius < Tool diameter compensation amount(#002)Other interferenceNO.118No intersection exis...

  • Page 241

    11 - 2711-4 3-D Tool Offset (G40 - G41)This command can offset the tool center path outside or inside the program path by the toolradius value in accordance with the 3-D vector.If this function is used, the tool can be offset by the spherical radius value when machining the3-D curved surface by u...

  • Page 242

    11 - 28(3) Designation of the 3-D tool offset axisThe axis to which 3-D tool offset is to be applied is determined by the address of the moveaxis specified in the G41/G42 specified block.G41 X _ I _ J _ K _ ;X, Y and Z axesG41 U _ I _ J _ K _ ;U, Y and Z axes(4) Offset vector of 3-D tool offsetIn...

  • Page 243

    11 - 29(5) Cautions(a) The X, Y and Z addresses can be omitted in the G41/G42 specified block. However,the parallel axis cannot be omitted.(b) Be sure to specify I, J and K in the G41/G42 specified block. If even one of them isomitted, tool diameter compensation results.(c) When XP , YP and ZP ar...

  • Page 244

    11 - 30(6) Associated parametersNo.5026Denominator constant (P) by 3-D tool offsetP = i2 + j2 + k2 when setting is 0.(7) Associated alarmsNo.158The format for 3-D tool offset has an error.(#001)G code which cannot be specified exists in Compensation mode.(#002)The axis does not exis...

  • Page 245

    11 - 3111-5 H and D FunctionsThe tool offset number is specified with a 4-digit number following the address H or D.(1) Command formatH _ ; or D _ ;This command validates the offset amount specified with an H code and that specified witha D code. The H and G codes are modal.Once they are specifie...

  • Page 246

    11 - 32(3) Function using the H and D codesTool length compensation: H codeTool offset: H code or D codeTool diameter compensation: D code(Note) Whether the H or D code is used for tool offset depends on parameter setting.(4) Cautions(a) The offset amount specified with the H or D code are valida...

  • Page 247

    11 - 3311-6 Tool Offset by Tool NumberThis function automatically selects tool length compensation and tool diameter compensationfor the spindle tool.(1) Sample program (basic use)T02 M06;.... 1G43 G90 G00 Z100.; .... 2 1 Call the No.2 tool to the spindle. Upon completion of M06 operation, tool o...

  • Page 248

    11 - 34(3) Compensation by Spindle Tool Number(a) Tool length compensationThe work coordinate system is shifted by the difference of the tool lengthcompensation amount corresponding to the spindle tool number from the previousoffset amount.The work coordinate system is shifted in the following ca...

  • Page 249

    11 - 35(b) Tool diameter compensationTool diameter compensation is validated from the G41/G42 specified block.[Example]T06 M06 ;::G41 .... ;::G40 ;Tool diameter compensation is appliedwith the offset amount of T02.

  • Page 250

    11 - 36(4) Multiple offset (Compensation by H code, D code)(a) Tool length compensationWith H ? ;, tool length compensation is applied with the offset amount specified with anH code, not the spindle tool number. The work coordinate system is shifted just bythe tool length offset amount.H _ ... ; ...

  • Page 251

    11 - 37Tool diameter offset is applied withthe offset amount of D102.Tool diameter compensation is appliedwith the offset amount of T02.:::::::::::(b) Tool diameter compensationWith the command D _ ; tool diameter compensation is applied with the offset amountspecified with an D code, not the spi...

  • Page 252

    11 - 38(5) Cautions(a) Note that the D code (or H code) used in tool offset is taken as that for multiple offset.(b) Multiple offset is cancelled upon completion of ATC (M06) operation.(c) A tool change M code (M06) cannot be specified together with other M code in thesame block.(6) Associated pa...

  • Page 253

    12 - 112.CONVERTING FUNCTION12-1 Programmable Mirror Image (G501, G511)With this command given, mirror image is applied for each axis to the shape specified workprogram.(1) G codeG511 : Programmable mirror image ONG501 : programmable mirror image cancel(2) Command formatG511 X a Y b X c ... ;This...

  • Page 254

    12 - 2(5) Cautions(a) Specify the G511 and G501 commands in the independent block.Otherwise, an alarm will result.(b) Position display indicates the coordinate value after the programmable mirror image isapplid.(c) When the programmable mirror image and setting mirror image are applied, theformer...

  • Page 255

    12 - 3(6) Associated parametersNo.3406, #1 = 0Mirror image processing is performed before scaling and coordinaterotation.1Mirror image processing is performed after scaling and coordinaterotation.No.3406, #2For mirror image coordinate rotation, axis switching, etc., with themiddle point (G28, G30...

  • Page 256

    12 - 4X-axis MirrorImage ONMirror Image CancelMirror Point70.YX12-2 Setting Mirror ImageThe mirror image can be applied to each axis by on/off operation in the Setting screen or byturning on/off an external input signal(PC →→→→→ NC).(Note) Whether absolute/incremental programming is use...

  • Page 257

    12 - 5(4) Cautions(a) On/off switching of mirror image is made effective in the next buffering block on.(b) Position display indicates the coordinate value after the setting mirror image is applied.(c) When the programmable mirror image and setting mirror image are applied, theformer works first,...

  • Page 258

    12 - 6(5) Associated parametersNo. 3406, #1 = 0Mirror image processing is performed before scaling and coordinaterotation.1Mirror image processing is performed after scaling and coordinaterotation.No. 3406, #2For mirror image, coordinate rotation, axis switching, etc., with themiddle point (G28, ...

  • Page 259

    12 - 712-3 Scaling (G50, G51)This command allows you to enlarge/reduce the profile given by the machining program at thespecified scale factor.(1) G codeG50 : Scaling cancelG51 : Scaling ON(2) Command formatG51 Xa Yb Zc ... [P _ ];[ ] is omissibleThis command causes the move commands after the ...

  • Page 260

    12 - 8(6) Cautions(a) Scaling is not applied to the offset amounts for tool diameter compensation, tool lengthcompensation and tool offset.(b) Specify the G51 command in the independent block. Otherwise, an alarm results.(c) When scaling is applied to one axis in the plane, do not specify an arc ...

  • Page 261

    12 - 9(7) Associated parametersNo.3405, #1 = 0Scaling factor increment 0.001-fold1Scaling factor increment 0.00001-foldNo.3416, #4 = 0Disables the scaling factor of each axis1Enables the scaling factor of each axisNo.3416, #3 = 0Disables scaling of each axis.1Enables scaling of each axis.No.3460S...

  • Page 262

    12 - 1012-4 Coordinate Ratation (G68, G69)This command can rotate the profile specified by the machining program by the specified angle.There are the following two kinds of coordinate rotation.(a) When assuming the center of rotation as the work coordinate system zero point..........................

  • Page 263

    12 - 11(2) Command formatG68 α_ β_ R_ ... ; (Coordinate rotation Type B)With this command, shift command for the next block on is made into a format as havingbeen turned by the angle assigned with R centering around (α_ β_) position.α/β are specified in absolute values for the two axes on ...

  • Page 264

    12 - 12(3) Sample programG17 G54 G90 G00 X0 Y0 ;G68 X30. Y20. R45. ;Coordinate rotation Type B ONG68 ;Coordinate rotation Type A ONN1 G01 G90 X30. Y20. F200 ;N2 G91 X60.;N3 Y30. ;N4 X-60. ;N5 Y-30. ;G69 X-30. Y-20. ;Coordinate rotation cancel(4) When you use coordinate rotation to...

  • Page 265

    12 - 13(5) When specifying repeatedlyBy setting the parameters, you can register one program as a subprogram and call thatprogram, changing the angle.G17 G54 G90 G00 X0 Y0;G68 X0 Y0 R0;M98 P100;M98 P200 L3;G00 G90 X0 Y0;G69;0100;G90 G01 G42 X0 Y-10.D10; ... (1)X10.; ... (2)Y0; ... (3)G40;M99;...

  • Page 266

    12 - 14(7) Associated parametersNo. 3405, #0 = 0The coordinate rotation angle is always of absolute programming.1The coordinate rotation angle depends on G90/G91.No.3405, #2 = 0The input increment of the coordinate rotation angle is 0.001 degree.1The input increment of the coordinate rotation ang...

  • Page 267

    12 - 1512-5 Optional Angle Chamfering/Corner R (, C, R)Chamfering or corner R can be inserted by specifying:, C" or ",R" in linear interpolation orcircular interpolation.(1) Command format(a) Optional angle chamfering , C_ ;G01G02G03(b) Optional angle corner R ...

  • Page 268

    12 - 16(b) Optional angle corner RG17 G54 G90 G00 X0 Y0 ;N1 G03 X50. Y50. R50., R20. F200 ;N2 G01 X90.,(5) Cautions(a) If the plane is switched by specifying plane selection(G17, G18, G19).(b) A single block stop results in the end point of the newly inserted block for chamferingcorner ...

  • Page 269

    12 - 17(6) Associated parameters(7) Associated alarmsNO.124The original specified range is exceeded in optional angle chamfering/corner R.(#001),C/,R command value is in minus.(#002)Both ,C and ,R exist in one block.(#003)Current block is not G01~G03.(#004)No axis shift takes place inside plane o...

  • Page 270

    12 - 18

  • Page 271

    13 - 113.MEASURMENT13-1 Skip Function (G31)Linear interpolation is performed by a G31 command. If an external skip signal is input duringlinear interpolation, the program proceeds to the next block, stopping the axes and discardingthe remaining stroke.(1) Command formatG31 X _ Y _ Z _ ... F _ ...

  • Page 272

    13 - 2(4) Associated parameters(5) Associated alarms

  • Page 273

    13 - 313-2 Automatic Measurement of Tool Length (G37)Coordinates at a measuring point specified by G37 is compared with those obtained in actualmeasurement to use its difference as the wear correction of a tool currently used.(1) Command FormatIf Z axis is the measuring axis:G37 Z_ [F_ ] ;Param...

  • Page 274

    13 - 4Corrective calculation :Coordinate values of the estimated measuring point and the actual measuringpoint are compared, whose difference is then substituted as the new wearcorrective value.(3) Cautions(a) Command axis is one of three basic axes.(b) Command is available only in an absolute v...

  • Page 275

    13 - 513-3 Safety Guard (Tool Length)This function measures the tool length of the tool used for the machining program in the AUTOmode.(1) Operation method1Perform zero point return.2Attach a touch probe to the spindle and reference block to the table.3Measure the reference block position.(Omissi...

  • Page 276

    13 - 6(3) Sample program00001 ;N1 G54 G90 G00 X0 Y0 ;N2 G30 G91 X0 Y0 Z0 ;N3 T01 M06 ;........ Executes T01 and M06.N4 G00 G90 X100. Y100. ;N5 G43 Z-100. H1 ;........ Measures the H1 tool length.N6 M98 P2 ;N7 T02 ;........ Executes T02.N8 G30 G91 X0 Y0 Z0 ;N9 M06 ;.........

  • Page 277

    13 - 7(4) Description of Measuring OperationTool length measurement1The X and Y axes move to the reference blockposition at rapid traverse rate.2Bring the Z axis close to the reference block by themanual pulse generator or jog feed.(Operate just in the automatic mode.)3Apply the Z axis to the ref...

  • Page 278

    13 - 8(6) ParametersRefer to 14-4 Safety Guard (Comparison).(7) AlarmsNo.213Safety guard tool length operation error [#001]“Tool length” button has been pushed except in reset state. [#002]After tool length measurement is started , prior to resetting (M02, M30, Resetkey, %) being applied, ...

  • Page 279

    13 - 913-4 Safety Guard (Comparison)This function executes the machining program in the AUTO mode with the X and Y axesmoving and the Z axis machine-locked, measures the workpiece profile (Z-axis direction) in anoptional Z-axis positioning block, and checks for an interference with workpiece.(1) ...

  • Page 280

    13 - 10(2) Sample programO0001 ;N1 G54 G90 G00 X0 Y0 ;N2 G30 G91 X0 Y0 Z0 ;N3 T01 M06 ;N4 G00 G90 X100. Y100. ;N5 G43 Z-100. H1 ;........ ComparisonN6 M98 P2 ;N7 T02 ;N8 G30 G91 X0 Y0 Z0 ;N9 M06 ;N10 G00 G90 X200. Y200. ;N11 G43 Z-100. H2 ;........ ComparisonN12...

  • Page 281

    13 - 11(3) Comparison movements1Bring the Z axis close to the workpiece by the manual pulse generator or jog feed.2Apply the Z axis to the workpiece by the manual pulse generator or jog feed. Thebuzzer sounds and the workpiece profile is measured.3Retract from the block by the manual pulse gener...

  • Page 282

    13 - 12(4) ParametersNo.6243, #0 = 0Compares only first G00 Zxx coming after a T command.1Compares all G00 Zxx.#1 = 0The measurement position Z of comparison is the differencebetween a command value and a measured value.1The measurement position Z of comparison is the workcoordinates of the touch...

  • Page 283

    13 - 13(6) Cautions1Operate safety guard comparison with the SINGLE BLOCK switch turned off.2Be sure to perform zero point return after operating safety guard comparison.3Perform operation with machine-lock OFF.4Perform verification as holding Auto mode.5Collation does not accommodate the program...

  • Page 284

    13 - 14

  • Page 285

    14- 114.DATA SETTING14-1 Data Setting (G10)14-1-1 Tool offset amount settingThe tool offset amount can be set by a program command.(1) Command formatG10 L10 P_ R_ ;Sets the tool length profile offset amount.G10 L11 P_ R_ ;Tool length wear offset amount settingG10 L12 P_ R_ ;Sets the t...

  • Page 286

    14 - 2G10 L21 P_ X_ Y_ Z_ ... R _ ;Sets the common zero point shift amount.where ;P0 - P5: Common zero point shift amount numberX, Y, Z ... : Common zero point shift amount of each axisR: Length of attachment (effective only for P5)(2) Cautions(a) The following commands are also possible.G10 L2...

  • Page 287

    14- 314-2 Programmable Parameter Input (G10)The parameters of the NC unit can be input by a program command.(1) Command formatG10 L50 ;Programmable parameter input ONN _ P _ R _ ;Programmable parameter input modeG11 ;Programmable parameter input OFFwhere ; N _ ;Parameter numberP _ ;Axis number (...

  • Page 288

    14 - 4(3) Associated alarmsNo.100G10 command has an error. (#011)Parameter No. error (N) (#012)Parameter axis No. error (P) (#013)Parameter bit No. error (Q) (#014)Parameter set value error (R) (#015)Unnecessary command exists. (#016)Unwritable parameter has been specified.

  • Page 289

    14- 514-3 Plotting Parameter SettingIt is possible to set plotting parameters by the G10 command.(1) Command FormatG10 L80 P0 ;Plotting screen clearG10 L80 P1 R_ ;Plotting plane selectR0:XYZ R3:ZXR6 XZR1:XYR4:YXR7:XZYR2:YZR5:ZYR8:XYXZG10 L80 P2 R_ Q_ ;Plotting rotation angleR_ : Horizontal rotati...

  • Page 290

    14 - 6

  • Page 291

    15 - 115.SOFT OT15-1 Soft OT (Stored Stroke Limit 1)Each axis has the outside stroke disabled area set by soft. If the axis enters the set disabledarea, distribution stops in case of automatic operation, and a move in the disabled directionstops in case of the JOG or HANDLE mode.(1) If even one ...

  • Page 292

    15 - 2(4) Associated parametersNo.1320+ directional coordinate value of the stroke limit 1 of each axisNo.1321- directional coordinate value of the stroke limit 1 of each axisNo.1300, #6During a period from supply of power to manual reference pointrecovery ;= 0Soft OT checking is performed.= 1Sof...

  • Page 293

    15 - 3Prohibited areaProhibited area15-2 Stored Stroke Limits 2 and 3 (G22 and G23)The prohibited area of stored stroke limit 2 can be specified by the G22 command.With input from the set page, stored stroke limit 2/3 disabled areas can be set.Upon entering the specified prohibited area, distribu...

  • Page 294

    15 - 4(b) Setting of Stored Stroke Limit 2G22 X_ Y_ Z_ I_ J_ K ;X : Plus-side boundary of X axisY : Plus-side boundary of Y axisZ : Plus-side boundary of Z axisI :Minus-side boundary of X axisJ : Minus-side boundary of Y axisK : Minus-side boundary of Z axisInside or outside of the set boundary i...

  • Page 295

    15 - 5(5) Cautions(a) The coordinate values of stored stroke limits at each axis is in the position of themachines coordinate system.(b) Stored stroke limits 2 and 3 are effective only for axes that have completely beenreturned to the reference point.(c) The distance required for the axis to stop...

  • Page 296

    15 - 615-3 Soft-OT before MoveIn auto operation, when the end coordinate of a block to be executed has entered the setdisabled area, distribution is stopped with an alarm indication.In manual operation, it will be invalidated.(1) When the “soft-OT before move” alarm results, press the RESET s...

  • Page 297

    15 - 7(4) Associated parametersNo.1301, #2 = 0G31 block is subject to checking.= 1G31 block is not to checking.No.1301, #7 = 0The soft stroke limit before move is invalidated.= 1The soft stroke limit before move is validated.(5) Associated alarmsNo.F510By the stroke check before move, the axis wa...

  • Page 298

    15 - 8

  • Page 299

    16 - 116.AXIS CONTROL16-1 Rotary Axis Controlling FunctionIt is possible to specify to rotate the rotary table by setting parameters.(1) Command Format(a) If Incremental CommandThe command value becomes the moving amount.A720. ; Rotates 720. deg in the positive direction (CCW).A-720. ; Rotates 72...

  • Page 300

    16 - 2(3) Example of Program of Type BG90 A0;Moves to the position of 0 degree.A390. ;Moves to the position of 30 degrees by rotating 30 degrees in the positivedirection.A300. ;Moves to the position of 300 degrees by rotating 90 degrees in the negativedirection.A-45. ;Moves to the position of 315...

  • Page 301

    16 - 3(5) Associated ParametersNo.1012, #0 = 0Type A for each axis’ rotary axis control1Type B for each axis’ rotary axis controlNo.1012, #1 = 0Rotary axis control of each axis follows No.1012, #0.1Rotary axis control of each axis follows Type C.No.1010, #0 = 0Axis (linear axis) requiring inc...

  • Page 302

    16 - 416-2 Oscillation Function (G113, G114)With this command, one of the reference axes X, Y and Z in other than the plane specified withG17, G18 or G19 (plane selection) can be reciprocated over the width specifiedasynchronously.(1) The reciprocating axes are as follows :Oscillation AxisG17 ;Z ...

  • Page 303

    16 - 5(3) Sample programN1 G17 ; ............................................................ Specifies the oscillation axis.N2 G90 G00 X0 Y0 Z100. ; ............................... Turns on the oscillation function.N3 G113 U-4. V30. E1000 ; ..............................N4 G01 X100. F200 ; ........

  • Page 304

    16 - 6StartpointEnd pointStartpointEnd pointStartpointEnd pointStartpointEnd pointEnd pointStartpointEnd pointStartpoint(k) G113 command operates as follows according to U,V command marks and parametersetting :Parameter N0.8656, #0=0Parameter N0.8656,#0=1V mark is ignoredV command mark used.(Abso...

  • Page 305

    16 - 7(n) To carry out oscillation in machine-locked state, do not rewrite the relative coordinatesystem. If machine-lock is turned ON/OFF in Oscillation mode, alarm starts.(5) Associated ParametersNo.8656, #0The second operation of oscillation axis:= 0makes return by amount equal to V absolute ...

  • Page 306

    16 - 816-3 Normal Direction Control (G411, G421, G401)With the G411 or G421 command, the rotary axis (C-axis) is always controlled in the normaldirection during cutting with respect to X- or Y-axis contouring.(1) G-codeG411Normal direction control left ONG421Normal direction control right ONG401N...

  • Page 307

    16 - 9(5) Sample programG54 G90 G00 X20. Y20. ;F421 ;N1 G01 G90 X100. F500 ;N2 G02 Y70. R25. ;N3 G01 X20. ;N4 Y20. ;G401 ;(6) Cautions(a) In the normal direction control mode, the rotary axis (C-axis) always takes a shortcutmovement which forms an angle of 180° or less.(b) In the normal directio...

  • Page 308

    16 - 10

  • Page 309

    19- 119.AUTOMATIC OPERATION19-1 Program RestartThe program can be restarted from the given block by specifying the sequence number and thenumber of repeats.There are two types of block restart ; P and Q types.P type : When the tool is brokenQ type : When the power is turned downWith this function...

  • Page 310

    19- 2(2) Q type (When restarting machining later in the following cases)(a) When the power is turned down.(b) When the EMERGENCY STOP switch is pressed(c) When the coordinates are altered after interrupting automatic operation.· When G92 is given from MDI· When the coordinate system is shifted...

  • Page 311

    19- 35Pressing the SEARCH key starts a search.6When the search is completed, the values at [RESTART DATA] disappear.7Turn off the Program Restart switch of the machine operation panel.8When you look at the screen and there are the M, S, T and B codes you want tooutput, select the MDI mode and...

  • Page 312

    19- 4(5) Program/Block Restart screenRest position ................. Indicates the machining restart position.Rest distance ................ Indicates the distance from the current tool position to themachining restart position.M ................................... Displays the M codes specified ...

  • Page 313

    19- 5(e) An alarm results when the sequence number cannot be collated.(7) Associated parametersNo.8703Order of the axes which are moved by dry run in restarting the program.(8) Associated alarmsNo.140Program restart operationis erroneous.(#001)Reset start has not been created on start of resumed ...

  • Page 314

    19- 619-2 Block RestartWhen a trouble such as tool breakage takes place during machining and automatic operation isinterrupted, you can manually relieve the tool from a machining break point, changes the tools,alter the tool offset amount, move the tool to the start point or halfway point of the ...

  • Page 315

    19- 7(h) Press ACTIVATE with BLOCK RESTART on.(i)Turn off BLOCK RESTART after automatic run is restarted.There are the following two types of block restart :(a) When the BLOCK RESTART switch is pressed in the manual mode, the start point ofthe interrupt block is calculated.(b) When the C...

  • Page 316

    19- 8(b) During the canned cycle (G73, G74, G76, G81 ~ G89)The start point is always a newly calculatedR point.(Note) With an arc command in the tool diameter offset mode, when the start point ofthe interrupted block is located inside the corner, the workpiece may be cut inor left uncut.[Program/...

  • Page 317

    19- 9(2) When the CYCLE START switch is pressed in the automatic mode with the BLOCK RESTART switch turned on. [Operation method](a) A trouble such as tool breakage occurred.(b) Operate in the same manner as when the BLOCK RETURN switch is pressed in themanual mode mentioned in (1) above, or ...

  • Page 318

    19- 10(b) During the canned cycle (G73, G74, G76, G81 ~ G89)Automatic operation restarts again from thecurrent tool position toward the newlycalculated R point.[End point of the interrupted block] The end point of the interrupted block is calculated as follows.[Programmed absolute coordinates ...

  • Page 319

    19- 11Programmed PathRETURN SW ON(Automatic Mode)Manual ModeCYCLE START SW ON(Automatic mode)RETRACT SW ON(f)When the portion from the R point to the machining break point (area ranging from themovement 3 through 5 ) is covered by dividing it into 50 times or more during thecanned cycle (G73, ...

  • Page 320

    19- 12(2) Operational procedure1A trouble such as tool breakage occurred. (This function is disabled by pressing theRESET switch.)2Press RETRACT on the machine operation panel while automatic operation is beingstarted, stopping, or suspended. The tool moves to the retract position specified w...

  • Page 321

    19- 13(3) Cautions(a) During the canned cycle (G73, G74, G76, G81 ~ G89) mode, all the retract positionsare the R point in the section between the movements 3 and 5 (single blockdisabled). A return continues again from the R point.However, machining break point return is disabled in the move...

  • Page 322

    19- 1419-4 Reverse MovementIf the RETRACE switch is turned on during automatic operation, the tool can be movedbackward from the end point of the executed block along the tool path where it has passed.If the RETRACE switch is turned off, the tool can be moved along the original tool path from...

  • Page 323

    19- 15(b) When automatic operation is being suspended1Press the FEED HOLD switch of the machine operation panel.Automatic operation is suspended.2Turn on the RETRACE switch.The RETRACE lamp of the machine operation panel is illuminated and “*” isadded to REVERSE on the Program/Block Res...

  • Page 324

    19- 16(b) During the reverse mode, the M, S, T and B codes are output from the NC unit to themachine.(c) The tool can move along the tool path in the backward direction at the speed set withthe parameter.(d) Any blocks containing the following commands cannot move backward during thereverse mode....

  • Page 325

    19- 17(3) Associated parametersNo.3474Sequence number for sequence number comparison and stop

  • Page 326

    19- 1819-6 Reset (Reset Associated with Automatic Operation)Pressing the RESET switch resets the NC unit. The NC does the following.(a) Deletes the preread buffer and execution buffer.(b) Initializes the G command.(c) Cancels tool length compensation and tool diameter compensation (does not perf...

  • Page 327

    19- 19(b) The numerical values of the addresses 0, N, M and B2 are held.(c)The numerical values of the addresses H, S, T and F follow the parameter No.2402, #7.(4) Tool diameter compensation and 3-D tool offset are cancelled (no offset is performed).(5) Tool length compensation follows the parame...

  • Page 328

    19- 20

  • Page 329

    20 - 120.MANUAL OPERATION20-1 Manual Absolute ON/OFFIf manual absolute is turned on, the stroke by manual operation is added to the programcoordinate value (work coordinate, machine coordinate, relative coordinate), and the thenmanual intervention amount is generally processed at next block execu...

  • Page 330

    20 - 2(b) When the FEED HOLD switch is pressed during execution of the N2 block, and theCYCLE START switch is pressed again after making manual operation intervene tomove the Y axis by +80.(2) When the X and Y axes are moved by intervention of manual operation at manual absoluteON, only the axis ...

  • Page 331

    20 - 3(4) Associated parametersNo.3403, #4 = 0The G91 specified block next to manual intervention at manualabsolute ON assumes the same path as G90.1Same path as at manual absolute OFFNo.3403, #6 = 0To return the manual intervention amount, a command block tomove the axis.1To return the manual in...

  • Page 332

    21 - 121.TEST RUN21-1 Miscellaneous Function LockIf the miscellaneous function lock of the machine operation panel is turned on, the M- , S- , T-and B-code (2nd miscellaneous function) commands are invalidated.This is normally combined with the machine lock function to check the NC program.(1) If...

  • Page 333

    21 - 2(3) Associated parametersNo.3017Strobe signal delay timeNo.3018Miscellaneous function finish (FIN) acceptance width(4)Associated alarms

  • Page 334

    22 - 1O8000 ; ~M99M98 P8000 ;G65 P9000 ;<argument> ;O8000 ;X#1 ;M99 ;22.CUSTOM MACROS22-1 OutlineA pattern, which is repeatedly used in the program, is registered in the memory as asubprogram in advance. That registered subprogram can be called with a representativeinstruction and ex...

  • Page 335

    22 - 2ParentChild22-2 Call Commands and Return CommandThe following table shows the program call and return commands.No.Call/ReturnCode Used1Subprogram callM982Macro simple callG653Macro modal callG66, G674Arbitrary G code callGxx (parameter)5M code macro callMxx (parameter)6M code subprogram cal...

  • Page 336

    22 - 3(2) Macro simple callM65 P ..... L ..... < argument > ;This command calls program whose program number was specified with P and executesit L times. If L is omitted, the program is executed once. The argument can be specifiedSpecify G65 before all the address other than O and N.Mu...

  • Page 337

    22 - 4Parameter G Code CallingPRA 6030O90106031 90116032 90126033 90136034 90146035 90156036 90166037 90176038 90186039 9019When parameter setting is 0, arbitrary G code call is not done. That is, the macro cannotbe called with G0. When parameter setting is a positive number...

  • Page 338

    22 - 5(6) Subprogram call by M codeMxx ;This command can call the subprogram. No argument can be specified. In this case, any9 sets of M codes can be set in the parameters out of M01 through M999999.The MF and M codes are not sent out.Parameter G Code CallingPRA 6050O90016042 90026043 90036...

  • Page 339

    22 - 6(8) Subprogram call by the S codeSxx ;This command calls the program O9029 as the subprogram.The S code becomes the argument of the common variable #147.Other arguments than the above cannot be specified.SF and S codes are not sent out.Parameter7 0PRA6000SCSSCS = 0 : Does not call the subpr...

  • Page 340

    22 - 7(10) Return from the programM99 ;This command causes you to return from the currently executed subprogram or macroprogram to the parent program.When the same block as M99 contains the address other than O, N, P and L, themachine stops at that block(single block stop); otherwise, it does not...

  • Page 341

    22 - 822-2-2Multi-call(1) MultiplicityThe custom macro can be called up to the quadruple level. The Subprogram can becalled up to the octuple level in combination with the multiplicity of the custom macro.(2) Modal multi-callWhen modal macros are multiply specified, the next macro is called ever...

  • Page 342

    22 - 9(3) Macro multiplicity and local variableIf the macro is called, macro multiplicity (level) increases by one. The local variable levelalso increases by one, accompanying it.Main ProgramMacroMacro(Level 0)(Level 1)(Level 2) Local Variable (Level 0)(Level 1)(Level 2)1If the macro is ...

  • Page 343

    22 - 10(4) Modal call and local variable successionThe local variable of the macro called by modal call is succeeded to during thatmodal call mode.With the parameter, it is possible to disable local variable succession. In this case,<argument> data in the G66 block is transferred at every ...

  • Page 344

    22 - 11(5) When making the special call multiplyArbitrary G code call, M code macro call, M code subprogram call, T code subprogramcall, S code subprogram call, and 2nd miscellaneous function code subprogram call arereferred to special calls.Identical special call cannot be made multiply. For ex...

  • Page 345

    22 - 12Parameter70PRA6012Arbitrary G Code macro CallPRA6013M Code Macro CallPRA6014M Code Subprogram CallPRA6015T Code Subprogram CallPRA6016S Code Subprogram CallPRA60172nd Miscellaneous Function Codesubprogram CallIn G Code MacroIn M Code MacroIn M Code SubprogramIn T Code SubprogramIn S Code S...

  • Page 346

    22 - 1322-2-3Argument DesignationArgument designation means to assign a real number to the local variable used in thecustom macro.There are two types of argument designation ; Type and Type . Both can be used freely.(1) Argument designationAddressCorrespondingVariableA#1B#2C#3I#4J#5K#6D#7E#8F...

  • Page 347

    22 - 14(2) Argument designationAddressCorrespondingVariableA#1B#2C#3I1#4J1#5K1#6I2#7J2#8K2#9I3#10J3#11K3#12I4#13J4#14K4#15I5#16J5#17K5#18I6#19J6#20K6#21I7#22J7#23K7#24I8#25J8#26K8#27I9#28J9#29K9#30I10#31J10#32K10#33II

  • Page 348

    22 - 15(3) Argument’s decimal point positionIn argument designation, signs and a decimal point can be used for the addresseswhere they are not allowed originally.< Example >G65 P1 H-2.0 M-9.6 ;The following table shows the decimal point positions when the decimal point is omitted.Addre...

  • Page 349

    22 - 16Subtable b.MetricInch(G21)(G20)inverse time33(G93)Feed per minuteMM1 = 0 0IM2 = 0 1(G94)MR1 = 1 1*IM2 = 1 2Feed perMR3 = 0 2IR4 = 0 3revolutionMR3 = 1 3IR4 = 1 4(G95)Thread cuttingMS6 = 0 5IS7 = 0 6(G33)MS6 = 1 6IS7 = 1 7· 0 when the parameter F61 is ‘‘1’’· All ar...

  • Page 350

    22 - 17(4) Cautions a.Argument Assignment I and II can be used as combined. When a variable has beenargument assigned by more than twice, the one assigned last is made valid. b.For both Argument Assignment I and II, assign Addresses I, J, and K only inalphabetical order. c.For the custom macro ca...

  • Page 351

    22 - 1822-3 VariablesWith a variable specified to a certain address within the macro program instead of directlygiving a numerical value to it, when this variable is called during execution, a variable valuecan be taken out to be as an address value. There are local variables, common variablesand...

  • Page 352

    22 - 19The 32-point input signals can be read at one time by reading#1032 ~ #1035.SystemPointsInterface Input SignalVariable#103232UI000~UI031#103332UI100~UI131#103432UI200~UI231#103532UI300~UI331 20#1032 ∑{1000 + i} ∗ 2i - #1031 ∗ 231 i=0 30 #[1032 + n] = ...

  • Page 353

    22 - 20The 32-point input signals can be sent all at one time by substituting the values for#1132 through #1135.SystemPointsInterface Input SignalVariable#113232UI000~UI031#113332UI100~UI131#113432UI200~UI231#113532UI300~UI33 20#1132 ∑{1100 + i} ∗ 2i - #1131 ∗ 231 ...

  • Page 354

    22 - 214Alarm (#3000)When a condition occurs in the program, which you want to be an alarm, thesystem can be placed in the alarm state.#3000 = n (<alarm message>) ; (n 4095)This command specifies the alarm message (up to 32 characters) enclosed by thealarm number n and ‘‘(‘‘,‘...

  • Page 355

    22 - 227Feed hold, feed rate override, exact stop check enabled/disabled (#3004)The following controls can be provided by substituting the values shown in the tablebelow for #3004.#3004Feed HoldFeed Rate OverrideExact Stop Check0EnabledEnabledEnabled1DisabledEnabledEnabled2EnabledDisabledEnabled3...

  • Page 356

    22 - 239Operational condition information (#3010)By reading #3010, the then operational condition can be known. Each conditioncorresponds per bit at the time of binary display.7654321 0 #3007Single blockProgram restartDry runMiscellaneous function lockMachine lockSafety guardTool offse...

  • Page 357

    22 - 2413Modal information (#4001 ~ #4120, #4201 ~ #4330)By reading the values of #4001 ~ #4120, the modal commands specified so far (upto the preceding block) can be known.By reading the values of #4201 ~ #4320, the modal commands in the block beingexecuted can be known.The unit at the time of g...

  • Page 358

    22 - 2515Position information (#5001 ~ #5108)Various position information can be known by reading the values of #5001 through#5108. The unit at the time of giving the command is assumed.SystemPosition InformationRead inVariableMove#50011st-axis block final position(ABSIO)#50022nd-axis block fina...

  • Page 359

    22 - 2616Work offset amount (#5200 ~ #5328)The offset amount can be known by reading the values of #5200 ~ #5328, and itcan be altered by substituting the values for them.VariableControlled AxisCoordinateNo. System#5200Coordinate rotation angle#52011st-axis work offsetExternal#52022nd-axis work...

  • Page 360

    22 - 2717Common work zero point offset amount (#7220 ~ #7328)The common work zero point offset amount can be known by reading the values of#7220 ~ #7328, and it can be altered by substituting the values for them.VariableControlled AxisCoordinateNo. System#7220Coordinate rotation angle#72211st-a...

  • Page 361

    22 - 2817Additional work offset amountG540 - G599 work offset amount can be known by reading the values of #7400 -7998, and it can be altered by substituting the values from them.VariableControlled AxisCoordinateNo. System#7400Coordinate rotation angle#74011st-axis offset#74022nd-axis offsetG54...

  • Page 362

    22 - 2919Life Management Information (#21001 - #24999)It is possible to know the tool life management information by reading #21001 ~#24999. It is also possible to rewrite the information by substituting values.Tool No.VariableRemarksSetting1#210010:Minuteunit2#210021:Time::2:Length998#219883:Ho...

  • Page 363

    22 - 3020Axis names (#3041 to #3048)Each axis name can be learned by reading #3041 to #3048.System VariableDescriptionreturn Value and Meaning#30411st axis name88:X67:C#30422st axis name89:Y85:U#30433st axis name90:Z86:V::65:A87:W#30488st axis name66:B21Axis numbers (#3061 to #3069)Each axis numb...

  • Page 364

    22 - 3122-4 Representation of VariablesThe variable is represented by the variable number following ‘‘#’’ as follows ;#i (i = 1, 2, 3, .....)#1, #2, #3Or, it is represented by using the < expression > as follows ;#[< expression >]#[#100], #[#500 + 1], #[#20/2]In the following ...

  • Page 365

    22 - 3222-6 Undefined VariablesThe value of an undefined variable is null. #0 is always used as a null variable.the undefined variable occurs in the following cases ;1)Local variable for which no argument has been designated in the macro call command.2)Common variables #100 through #1XX when the...

  • Page 366

    22 - 3322-7 Expression and ComputationThe expression refers to a general numerical expression where constants and variablesare combined with operators, or simply numerical values or variables.In the following description, the constants may be used instead of #i and #j.(1) Addition type computatio...

  • Page 367

    22 - 34(4) functionsSIN[#i]Sine(unit: degree)COS[#i]Cosine(unit: degree)TAN[#i]Tangent(unit: degree)ASIN[#i]Inverse sine(unit: degree)ACOS[#i]Inverse cosine(unit: degree)ATAN[#i]/[#j]Inverse tangent (unit: degree)ABS[#i]Absolute valueSQRT[#i]Square rootEXP[#i]Exponent with “e’’ as a base.LN...

  • Page 368

    22 - 35(b) Functions dealing with tool life managementIf the tool runs out of life under tool life management, the programmed tool numberwill not match the actually used tool number. In that case, the actually called orused tool number can be learned by using these functions.1 SPX [x] x: Call ...

  • Page 369

    22 - 36(5) Combination of computationsComputations and functions can be combined. Computations are given priority in theorder of function multiplication type, addition type, and relative computations.#iEQ#j+#k∗SIN [ #l ]1234(6) Alteration of computation order by square brackets ([ ])Using squ...

  • Page 370

    22 - 3722-9 Branch CommandControl jumps to the block having the sequence number “n’’ within the same program byspecifying “GOTO n ;’’The < expression > can be used instead of “n’’ When this is done, the value of the< expression > is obtained and control jumps to the...

  • Page 371

    22 - 3822-10Repeat CommandDO m ; (M = 1, 2 or 3) ~END m ;By specifying as above, the blocks between DOm and ENDm are repeatedly executed. Thefollowing special uses are also available.(1) Conditional repeatWHILE < expression > DOm ;(m = 1, 2 or 3) ~ENDm ;By specifying as above, the b...

  • Page 372

    22 - 39< Error-incurring programs >(a) DO1 ;DO1 ;There is no corresponding DOEND1 ;(b) DO1 ;END1 ;There is no corresponding DO.(c) DO1 ;DO2 ;END1 ;The loop cannot intersect.END2 ;(d) DO1 ;E100 ;END1 ;GOTO100 ;22-11 Naming CommandPart of the common variables can be named within 12 characters...

  • Page 373

    22 - 4022-12IF Command(1) 1-line formatIF < expression > THEN macro commandThis command allows a conditional branch. When the value of the < expression > istrue (not 0), the macro command is executed, and when the value is false (0), nothing isdone.Here, the macro command refers to t...

  • Page 374

    22 - 41(2) Block formatIF <expression 1> THEN ;1ELSE IF <expression 2> THEN ;2ELSE ;3ENDIF ;Continues to ENDIF onwardIf the value of <expression 1> is true, the program will branch to the block next to ENDIFafter executing 1 . If false (0), the program will branch to the next ...

  • Page 375

    22 - 4222-13External Output CommandsIt is possible to output messages and the NC’s internal data to the external unit via theRS232C data input interface. They are printed out if the external unit is a printer.(a) PRINT(b) BPRNT(c) DPRNT(d) POPEN(e) PCLOSSpecify in the following order. 1Open co...

  • Page 376

    22 - 43b)Specify the number of digits above the decimal point and that below the decimalpoint of the numeric to be output subsequently to address P. The specificationmethod: the unit digit of data P is the number of digits below the decimal point andits 10th digit is that above the decimal point...

  • Page 377

    22 - 44PRINT P43 D#0 ;If PRT = 0, output as follows. signdigits below the decimal pointdigits above the decimal pointWhen the <expression> overflows, output ‘∗’for the number of significant digits.PRINT P53 D#1 ;When #1 + overflow+ ∗ ∗ ∗ ∗ ∗ ∗ ...

  • Page 378

    22 - 45Example) PRINT P34(X=)D#1(Y=)D#2 P25(Z=) D#3 ; #1= 738.196451 #2=-48.8 #3= 338.4171Parameter PRT = 0 D8 BD A0 B7 33 B8 2E B1 39 36 35 738.1965X= 59 BD 2D A0 B4 B8 2E B8 30 30 30- 48.8000Y= SA BD 2B AA AA AA AA AA AA AA AA 0ALF+∗∗∗∗∗...

  • Page 379

    22 - 46a)As the character, the specified character is just output. The following charactersthe specificable.· Alphabet (A - Z)· Numeric characters· Special characters (*, /, +, -)‘‘*’’ is output in the space code, however.b)Specify the number of significant lines below the decimal ...

  • Page 380

    22 - 47(4) Data command 3DPRNT [ B #2 [ 43 ] · · · ]The number of below decimal pointThe number of above decimal pointvariable numbercharactersIn the DPRNT, output the variable number of each figure number, using ISO, EIA, ASCIIcode.a)Same as the explanation in Item a), c), d) of the B...

  • Page 381

    22 - 481If parameter PRT=0, output as follows.C3 A0 A0 A0 B2 39 39 2E B7 39 B2 299.792CC5 2D A0 A0 A0 B1 36 2E 30 B2 30- 16.020E4A A0 30 B2 0ALF 02N2If parameter PRT=1, output as follows.C3 2D 39 39 2E B7 37 B2299.792CC5 2D B1 36 2E 30 B2 30-16.020E4A 30...

  • Page 382

    23 - 123.Interrupt Type Custom MacroOther program can be called by inputting an interrupt signal (UNIT) from the machine side whilerunning a program.<Applications>(1) Starting processing at tool error detection, using an external signal.(2) Allowing other machining to interrupt a series of ...

  • Page 383

    23 - 223-2 How to Specify(1) Enabling conditionsa.Automatic operation, MDI, DNC modeb.STL ONc.Custom macro interrupt operation is already over(2) Command formatM96Enables the interrupt signal(UNIT) (Can be set with the parameter)M97Disables the interrupt signal(UNIT) (Can be set with the paramete...

  • Page 384

    23 - 3InterruptStatus TriggerInterruptEdge TriggerNo additional interrupt is not generated while running the custom macro interrupt program, butthat state is cancelled by reading M99. However, it is not cancelled until an NC command isstarted immediately after that.23-5 Reversion and Modal Infor...

  • Page 385

    23 - 4(4) The modal information in the block interrupted in #4201 to #4320 can be read.(5) #4001 to #4120 continues to hold the original program’s information until an NC statementappears.23-7 Custom Macro Interrupt and Custom Macro Modal CallWhen a read program is called, a custom macro modal ...

  • Page 386

    23 - 5b.Type-IIThe interrupt program runs after finishing one block (one block created inside the NCunit). After the interrupt program is finished, the tool is positioned to the alreadycalculated next block. If an offset amount is altered, the tool will be offset.(2) Canned cycle for drilling (...

  • Page 387

    23 - 6b.Type-IIAfter drilling is finished(at R-point return), the interrupt program runs. After theinterrupt program is finished, the tool is positioned to the next drilling position. If anoffset length is altered, the tool will be offset.(3) Tapping cycle (G84, etc.)There is no distinction bet...

  • Page 388

    23 - 7(5) Special canned cycles (plane machining, pocket machining, etc.)a.Type-IWhen an interrupt takes place, the interrupt program runs, cancelling a move. Afterthe interrupt program is finished, the tool is positioned to the scheduled end pointposition of the interrupted block. The tool is ...

  • Page 389

    24- 124.MEMORY OPERATION IN OTHER COMPANIES’ FORMATS24-1 Memory Operation in FS15 FormatThe programs in the FANUC’s Series 15 data format can be run by setting “1” in the parameterno.3409' #7. The following commands can be operated. For the other data formats, it isnecessary to comply w...

  • Page 390

    24- 224-2 Memory Operation in i80M FormatThe programs in the YASUKAWA ELECTRIC’s Series i80 data format can be run by setting “1”in the parameter no.3409' #6. The following commands can be operated. For the other dataformats, it is necessary to comply with the Σ10M.(1) Operatable command...

  • Page 391

    1

  • Page 392

    2INSTRUCTION MANUALPROGRAMINGSEIKI-SEICOS Σ10M/16M/18MVersion 1.01 6-2000 First Edition 2-1998

x