Navigation

  • Page 1

    SEIKI-SEICOSI 10M/16M/18MINSTRUCTION MANUALPROGRAMMING12- 1998..QSEIKI Hitachi Seihi Co., Ltd.

  • Page 2

    |;:lIt.:'

  • Page 3

    CONTENTS1. G CODEList G Code Groups (SEICOS-I 10M)List G Code (SEICOS-I 10M)1-11-22. INTERPOLATION FUNCTION2.1Positioning (GOO)*2.2Linear Interpolation (G01)2.3Circular Interpolation (G02, G03)2.3.1Radius Designationon Arc2.4Helical Interpolation (G02, G03).2.5Virtual Axis Interpolation (G07)—2...

  • Page 4

    4. FEED FUNCTION4.1Feed per Minute (G94)4.2Feed per Rotary (G95).4.3InverseTime (G93)4.4Exact Stop (G09)4.5Exact StopMode (G61)4.6Automatic CornerOverride (G62)4.6.1Automatic Override in InnerCorner Area4.6.2Inner Arc Cutting SpeedChange4.7Tapping Mode (G63)4.8Cutting Mode (G64)4.9AutomaticAccele...

  • Page 5

    9.TOOLFUNCTION (TFUNCTION)9-1.10. MISCELLANEOUS FUNCTION (M FUNCTION)10.1MiscellaneousFunction (M Function)10.22ndMiscellaneousFunction (B Function)10-110-211. CANNED CYSLE11.1Canned Cycle (G73, G74,G76, G80-G89)11.2Direct Top (G741, G841)11.3Drilling Pattern Cycle (G70, G71, 0,12, Oil) .11.4True...

  • Page 6

    12.3.1Detailed Description of ToolDiameter Compensotion12.43-D Tool Offset (G40-G41)12.5H and DFunctions12.6ToolOffset by Tool Number12- 1512- 2712- 3112- 3313. CONVERTINGFUNCTION13.1Programmable Mirror Image (G501, G511)13.2SettingMirror Image13.3Scaling (G50, G51)-••13.4Coordinate Rotation ...

  • Page 7

    19. FIVE-FACE MACHININGVnavailable20.AUTOMATICOPERATION20.1Program Restart20.2Block Restart20.3MachiningBreak Point Return (G206)20.4ReverseMovement20.5Sequence Number Comparison and Stop20.6Reset (ResetAssociated with Automatic Operation)20-120-620- 1120- 1420- 1620- 1821.MANUALOPERATION21.1Manu...

  • Page 8

    24-424.7 Custom Macro Interruptand Custom MacroModal Call24.8 InterruptTiming andReturnPosition in Each Modal24.9 Associated Parameters24-424-725-125.MEMORY OPERATION IN OTHERCOMPANIES’ FORMATS25.1 Memory Operationin FS15 Format.25.2 Memory Operationin i80M Format25-125-2

  • Page 9

    1. List of GCode Groups (SEICOSI 10M)GroupFunctionRemarks00Non-modalPositioning/liner interpolation/circular interpolation0102Plane designationAbsolute programming/incremental programming03Storedstroke check04Inversetime/feed perminute/feed per revolution05Inch/metric conversion0607Tooldiameter c...

  • Page 10

    j2.List of GCodes (SEICOSI 10M);GroupFunctionRemarksCodePositioningGOOGO 1Linear interpolation01Circular interpolation/helical interpolationCWG02Circular interpolation/helical interpolation CCWG03DwellG04High-precision profile controlG05Virtual axis interpolationG0700G08Antecedent controlG09Exact...

  • Page 11

    GroupCodeFunctionRemarksG43Tool length compensation +08G44Tool length compensation-G45Tooloffset extensionG46Tool offset contraction00G47Tool offsetdouble extensionG48Tool offsetdouble contraction08G49Tool length compensationcancelG50Scalingcancel11G51ScalingG52Local coordinate systemsetting00G53...

  • Page 12

    IfCodeFunctionGroupRemarksCanned cyclecancelG80G81Drilling cycle,spot boringG82Drilling cycle,counterboringPeck drilling cycleG83G84Tapping cycle09G85BoringcycleG86Boring cycleG87Back boring cycleG88BoringcycleG89Boring cycleG90Absolute programming03G91Incremental programmingWorkcoordinate system...

  • Page 13

    FunctionGroupCodeRemarksInvolute interpolation CWG222*1G223Involute interpolation CCW*101G232Exponential function interpolation CW*1G233Exponential function interpolation CCW*1Machining plane0 selectionselectioÿcancel)*1G240*1G241Machining plane1 selection*1G242Machining plane2 selection24*1G243...

  • Page 14

    FunctionRemarksCodeGroupG331Square outside(pocketing)(pocketing)Track outsideG332(pocketing)G333Circle00G334Trochoid cycleHigh-speedside cutting cycleG335G336Zfeed fluting cycleG337Corner pocket cycleG338Squarepocket cycleG401Normaldirection control cancel mode*119G411Normal direction controlleft...

  • Page 15

    ,:2.1Positioning (GOO)Each axis moves toa program-specified positionat an independent rapidtraverse rate toperform positioning.(1)CommandformatG90GOOXYZG91(2)Sample program(b)Incremental programmingG91GOOX100.Y50.(a)Absolute programmingG90GOOX100.Y50.:100.1.End point-M>//50.------Endpoint/50./...

  • Page 16

    ( 4 )Associated parametersNo.1401,#6=0Dryrun madeinvalid for rapidtraverse command.1Dryrun madevalid for rapidtraverse command.No.1401,#1=0Non-linear interpolationas positioning interpolationsystem1Linear interpolationas positioninginterpolation systemNo. 3402,#0=0GOO modein reset state1 G01 mode...

  • Page 17

    G01G91XIOO. C90.F200 :Cuttingfeed rate in the rotary axis(C axis) direction:90', x 200End PointCv-.b StartIPointI(deg/min)where;L= /l00. 2 + 902(mm)Fc=L\/V(4)Cautions(a)An alarmresults when no Fcode has been specified in theG01blockor before.(b)Exponentialtypeacceleration/deceleration is applied....

  • Page 18

    (2)Sampleprogram(a)Absolute programmingG17 G90 GOOX13.397 Y70. F200 :G02 X100. Y120. 186". 603J-50. :•(b)Incremental programmingG17 G91 G02X86.603 Y50186.603 J-50. F200 :Y)ÿi \En3 Point120.EndPoint120.-C02GO 2,Startnoint186. 603Startpoint186. 603J-50.J-50.oeCenter100.100.(3)Arc rotating d...

  • Page 19

    (6)Cuttingfeed rateThe cuttingfeed rate specified with an F code isthe speed atwhich thetoolmoves on thearc.(7)Cautions(a)An alarmresults whenno F code has been specified in theG02/G03 blockor before.Analarm results if an arc radius= 0 is specified.10, JO and KOare omissible.Whenthere is no end p...

  • Page 20

    (1)Command format(a)Xp -Yp planeG02G17 {} XpYp_R± _F:G03(b)Zp-Xp planeGO2} Zp_Yp_R i_FG18 {:G03i(c)Yp -Zp planeG02G19 {} Yp_Zp- R±F:G03where;Xp : X axisor its parallel axisYp : Y axisor its parallel axisZP : Z axis or its parallel axisR+: Arcof less than180°R- : Arc of over180°Ii(2)Sample pro...

  • Page 21

    (5)Associated alarmsNo.131Anarc radius Rwith which arc center positioncannotbe calculated has been commanded.2.4Helical Interpolation (G02, G03)If anarc command and anyone axisfor other than arcare specified,helical interpolation isenabled by control which performs linearinterpolation synchronous...

  • Page 22

    (2)Sample program:G17G91G03 X-100. Y-100.R100. Z50. F200 :2f•End PointStartPointTool Pathx-V.YX(3)Theaxes for other than circular interpolation can be specifiedup to2axes in thesame block.(Example)G17 G91G03 1-100.Z100. V50.F200 :1-100.Z100.V50.;The V axis mustbeparallel with theY axis.//'///YY...

  • Page 23

    (5)Associated parameters(6)Associated alarmso

  • Page 24

    Virtual AxisInterpolation (G07)2.5Ifthe axis isspecifiedas a virtual axis,it doesnotmove.Interpolationcan be performed with this axis and otherone.(1)CommandformatGO 7a 0 ;Sets thea axisas the virtual axis.The a axis is the virtual axisin this section.G07a1 ;Cancels thea axisas the virtual axis.w...

  • Page 25

    (4)Associated parameters(5)Associated alarmsNo. 139Twoor more virtual axes have been specified.-X

  • Page 26

    2.5.1SIN Interpolation (G02, G03, G07)SIN interpolationcan be performed by assuming one ofaxes for an arccommandas a virtual axis in helical interpolation.(1)CommandformatG87aO;Sets the virtual axis.riiiSpecify helical interpolation.i!IIJL,.Cancels the virtual axis.a isanyone axisfor thearc comma...

  • Page 27

    (b)For the modal G code:G60XYZSingle direction*positioningXYZGOO;CancelsG60 if any G code inGroup01 other thanG60 is given.(2)Sampleprogram(a)When movingin the+ direction(b)When moving in the- directionG60G91X100.;G60G91X-100. ;End PointStart PointO1oOcEndStart PointPointApproachAmount«-Approach...

  • Page 28

    (5 )Associated parametersNo.3458Single positioning direction and approachamount ofeachaxisG60is the Gcodeof Group00 (one-shot).G60 is the Gcodeof Group01 (modal).No. 3400,#2=01*:!vt!2-14

  • Page 29

    2.7InvoluteInterpolation (G222, G223)This function allowsmachining alongan involutecurve.It alsoprovidescutter compensation.(1) InvolutecurveTheinvolutecurve in the X-Y planeis definedas follows.X( 0 )= R [cose+(0- 0 0) sin0 ] +X0Y( 0 )= R [sin0+ (0- 0 0) cos0 ] +Y0where ;X0,Y0: Centralcoordinate...

  • Page 30

    (2) Command format(a) Xp-YpplaneG222G223(b) Zp-Xp planeG222G223(c) Yp-Zp planeG222G223G17XP_YPI_J_ R_F_;G18ZP_YP_K_ J_ R_ F_;G19YP_ZP_J_K_ R_F_;where;: Clockwise involute interpolation: Counterclockwiseinvolute interpolationXp, Yp, Zp:Coordinate valueof the end point: X-axisor its parallel axis:Y...

  • Page 31

    (5 ) FeedrateA feed rate forinvolute interpolationassumes a cutting feed ratespecified withan F-code, anda speed along the involutecurve (speedin the tangent direction of the involute curve) is controlledto beaspecified feedrate.(6) Cutter compensationCutter compensationcan be appliedto the invol...

  • Page 32

    (8) Modesavailable for involute interpolationInvolute interpolationis allowedeven during the following G-codemodes.G41 : Cutter compensationto the leftG42 : Cutter compensationto therightG511: Programmable mirror imageG68 :Coordinate rotation(9) Limitations(a) Rpm of theinvolutecurveBoth start po...

  • Page 33

    2.8CylindricalInterpolation (G271)If the move amount of thelinear axis and the angleofthe rotary axisare given bya program command, themove amount of the rotary axis givenin terms of anglewill beinternally convertedintoa distanceon thecircumference.Since the distanceon the circumferencecan be con...

  • Page 34

    !Cylindrical Interpolation Applied Axes‘Setin the parameters (no. 3426 for the linear axis, andno. 3427 forthe rotary axis) thelinear axis androtary axisto which you want toapply cylindrical interpolation.Asetting range for both parametersis 1 to thenumber of controlled axes; theymustnot haveth...

  • Page 35

    2.8.6Cautions(1)uiWhenspecifying cutter compensation,start up/cancel during thecylindricalinterpolation mode.(2) The plane (selected by G17 to G19) existing priorto entering thecylindricalinterpolation modeis canceledonce during thecylindricalinterpolation mode and revivedat the endof thecylindri...

  • Page 36

    (8) In the cylindricalinterpolation mode, the angleof the rotary axisis converted into the distanceon thecircumference and convertedback into the angleafter interpolation.Whenthis is done,a slightconversion error results.(9) If circular interpolation with smallcirculararc radius is executedduring...

  • Page 37

    2.9Polar Coordinate Interpolation (G120, G121)Polarcoordinate interpolation isa function to providecontour controlby convertinga command programmedin the orthogonal coordinate systemintoa linear axismove (tool move) and rotary axismove (workrotation).COrthogonalCoordinate System><PolarCoord...

  • Page 38

    iPolar Coordinate Interpolation PlaneAG121 command effectuates the polarcoordinate interpolation mode,assumes the zero pointof the workcoordinate system to be that of thecoordinate system, and selectsthe plane(polar coordinate interpolationplane) which assumes the linear axisto the first axis of ...

  • Page 39

    (5) For a feed rate,use an F-code to specifya toolmove rate in thepolar coordinate interpolation plane ( orthogonal coordinate system).Normally,it is specified in feed per minute (G94); the unit for theF-code will bemm/min. or in./min.2.9.6Sample Program (X-axis: Linear Axis, C-axis: Rotary Axis)...

  • Page 40

    2.9.7Feed Rate ClampThe maximum cutting feedrate at polar coordinate interpolationcan beset ina parameter (no. 3464).If any feedrate higher than thisoneis specified during polarcoordinate interpolation, it will be clampedIf aset value is 0, it will be clamped by the normalto thisrate.maximum cutt...

  • Page 41

    (3) The plane priorto G121 (the plane selected with G17, G18,or G19) iscancelledonce by specifying G121 and restored by specifyingG120.(4) The following lists the G-codes whichcan be specified during theG121mode.GOO, G01,G02,G03 , G04, G09, G40, G41, G42,G65,G66, G67, G98,G99(5) Anyaxis outside t...

  • Page 42

    2.9.11 Associated AlarmsNo.113A polarcoordinate interpolation command hasanerror.(#001)G120 or G121 hasnot been independently specified.(#002)WhenG120 or G121was specified,cutter compensation hadnot been cancelled.(#003)When the workcoordinate valueof the linearaxiswasnegativeat G121,a G-codeothe...

  • Page 43

    4. FEED FUNCTION4.1Feedper Minute (G94)Until G95 is specifiedafter G94 was specified, the stroke per minute(mm/min., inch/min.) is directly specified with a numerical valuefollowing F.Ii->Feed rateF is thestroke per minuteMetric system:mm/minInch system: inch/min.7 //7 / 7 7(i)CommandformatG94...

  • Page 44

    I!iNo. 3401,#2=0F31 for feed per minute in the inch system(inch/min. )F52 for feedper minute in the inch system(inch/min. )F60 for feed per minute in the metric system(mm/min. )F61 for feedper minute in the metric system(mm/min. )1No. 3401,#3=01(7)Associated alarms4.2Feedper Rotary (G95)UntilG94 ...

  • Page 45

    (5)Associated parametersF23 for feed perrevolution in theinch system(inch/rev. )F24 forfeed per revolution in theinch system(inch/rev.)F32 for feedperrevolution in the metricsystem (mm/rev.)F33 forfeed per revolution in the metricsystem (mm/rev.)No. 3401,#0=01No. 3401,#1=014.3Inverse Time (G93)Wh...

  • Page 46

    (5)Cautions(a)In G93 mode,F code must be instructed per block.When F code is omittedbecomes valid.a previously instructedF code4.4Exact Stop (GO9)If aG09 command is specified in thesame blockas amove block, itdecelerates and stopsthe machine upon completion ofone block, andafter confirmingthat th...

  • Page 47

    (2)SampleprogramN1G61G91G01X100. F500 ;N2Y- 50. ;100. ;>Exact stop effective blocksN3XG64 ;N4Thecorner has an edge when theG61 modeis effective.Thecorner is rounded whenthe G61 isineffective.N 1tN2N3:(3)Cautions4.6Automatic CornerOverride (G62)When tool diameter compensation is applied, since ...

  • Page 48

    (3)Cautions4.6.1Automatic Override in InnerCorner AreaWhen the following conditionsare met in thecorner during the tooldiameter compensation mode,an override is appliedto cutting feedautomatically.[The conditionsare as follows for the blocks having thecornerbetween them.](a)Whenthe G codeof Group...

  • Page 49

    (2)Sample program(DIO= 10.)N1G62G42G91GOOX20. Y50.DIO;N2G01X50. F200;N3G03X30. Y-30. R30.;N4G64G40GOOX20.;An overrideisapplied fromthepointa through“ipoint b.N250.a7N47(/50.100.(3)Cautions(4)Associated parametersNo.1711Innercriterion angleof .automaticcorneroverrideOverrideamount of automaticco...

  • Page 50

    (1)SampleprogramN1G62 G41 G91GOOX50. DIO;N2 G03Y50. J25. F200;N3 G64G40 GOO X-50. ;, >N3\\Override isapplied to theN2 blockIINZ//•rNI(2)Cutting feed ratewhen automaticcorner override overlaps innerarc cuttingRcF x— x (Automaticcorner override) x(Feed rate override)Rp(3)Cautions(a)By parame...

  • Page 51

    4.7Tapping Mode (G63)The control stateofthe NC unit isas follows untilG61, G62 orG64is specified afterG63 is specified.(a)Cutting feed rate override fixed at100 %(b)Feed hold disabled(c)Spindle override fixed at100 %(d)Single block disabled(e)Decelerated stop disabled at the joint of theblocks (i...

  • Page 52

    4.8Cutting Mode (G64)Until G61,G62 orG63 isspecified afterG64 was specified, the programmakes the nextblock executed continuously without declerating to astop between the blocks.When cuttingis performed in theG64 mode, the corner may be rounded atthe timeof cutting feed.Programmed. '- Actual Tool...

  • Page 53

    4.9AutomaticAcceleration/DecelerationAspost-interpolation acceleration/deceleration apply automaticallytoall commands,no special consideration isnecessary.Rapidtraverse (GOO):Linear typeacceleration/decelerationCutting feed (G01,G02, G03):Exponential type acceleration/deceleration[Lineartypeaccel...

  • Page 54

    (2)Sample programG94G04P2000 ;G04X2.Dwell time2 secondsDwell time2 seconds(3)Cautions(a)By parameter setting,youcan specify by time even duringthe feed per revolution mode.(4)Associated parametersNO. 3400, #5-0G04 always specifies by time.G04 followsG94or G95.14-12

  • Page 55

    5.1Automatic ReferencePoint Return (G28)After positioning theaxes specified by theprogram to the intermediatepoint, a G28 commandcan automatically return them tothe1streferencepoint.(1)CommandformatG28XYZ(2)SampleprogramG28G91X-50. Y100.;Intermediate Point4/(Positioning) j/(ÿ(Positioning)/\/\\St...

  • Page 56

    ;(5)Associated parameters(6)Associated alarmsi5.2Reference Point ReturnCheck (G27)After positioning theaxes to the program-specified position,a G27command checks whether they have returned tothe1st reference point,and when they havenot returned tothe1st reference point, an alarmresults.(1)Command...

  • Page 57

    (4)Associated parameters(5)Associated alarms:'jf5-3

  • Page 58

    5.3Returnfrom Reference Point (G29)AG29 command positions the program-specifiedaxes from the referencepointto the intermediate point ofG28 or G30 specified just before,and then, positions them tothespecified position.1(1)CommandformatG29XYZ(2)SampleprogramN1G28G91X- 50.Y100.;N2G29G91X50. Y50. ;''...

  • Page 59

    5.42nd-4thReference Point Return (G30)AG30 commandcan automaticallyreturn theaxes specified in the programto the 2nd to 4t.h reference point after positioning them to theThe 2nd, 3rd, and4th reference pointsare thepositionsspecificto the machine andset with the parameters.intermediate point.(1)Co...

  • Page 60

    (A)Associated parametersNo.12262ndreference pointof each axis3rd reference pointof each axis4th reference pointof each axisNo.1227No.1228!t:(5)Associated alarmsyoIj5-6

  • Page 61

    5.5Reset of Floating ReferencePoint (G301)G301 instruction may be automaticallyresetto the flowing referencepointafteran axis instructed by theprogram is positioned at a middlepoint.The floating reference point isa selected pointon the machine.The floatingreference pointcan beset in accordance wi...

  • Page 62

    i;!'1rrr:’:.)1r

  • Page 63

    6.1Machine Coorfinate SystemSelection (G53)When aG53 command,theaxesare positioned tothe positionofthemachinecoordinate systemspecified by theprogram.(1)CommandformatG90G53XYZ(2)SampleprogramG90G53X20. Y10.;t \Start Point2,_•*- X/ WorkCoordinate System(GOO],End10.PointCK--'•:! 20.ia- XMachine...

  • Page 64

    6.2Work Coordinate SystemSelection (G54- G59)Six peculiar coordinate systemscan be set by specifying G54- G59,respectively.Before specifyingG54- G59, settheoffset amount(machine coordinate system position when the toolnose is positionedtothezero point ofthe work coordinate system) from the machin...

  • Page 65

    (3)Cautions(a)TheG54 work coordinate system is selected in the resetstate.TheG54 coordinate systemis set upon completion ofzero pointreturn.When the offset amountof the work coordinate system is changed,thenew work coordinate system isset when correspondingG34-G59 is specified nexttime.WhenG54- G...

  • Page 66

    (2)SampleprogramN1G540G90GOOXOYO ;MachineCoordinateSystem_where;G540 offset amountis;-210.X- 210.Y- 260.Start PointON\Thiscommand positions theaxes to (0, 0) of the workcoordinate system; the thenpositionof themachinecoordinate system will be(-210., -260.).N,\\-260.G540 WorkCoordinate Systemil(3)...

  • Page 67

    6.4LocalCoordinate SystemSetting (G52)One additional coordinate systemcan be set in the selected workcoordinate system by specifyingG52.(1)CommandformatG54XYZLocal' coordinate system settingOffset Amountof Local Coordinate System SettingLocalCoordinateSystemLocal CoordinateSystem Offset AmountWor...

  • Page 68

    (4)Cautions(a)In the reset state,thelocal coordinate systemis cancelled.(b)The local coordinate systemof the axis specified withG92 iscancelled.(c)An alarm results ifG52 is specified during the tool diametercompensationmode.(d)G52 isa one-shotcommand.The local coordinate systemcreatedwithG52 rema...

  • Page 69

    ( 4 )Associated parametersNo. 3402,#5=0Theresetstate is the G17 mode.Theresetstate is the G18 mode.1(5)Associated alarms;ÿNo. 106A plane selection (G17- G19) commandhasan error.%:ÿ8 ikl :6- 13

  • Page 70

    I6-9Rotary Table Dynamic Fixture OffsetWhenloading a workpiece on the rotary table and seta work coordinatesystem after measuring a position of workpiece if the rotary table hasrotated before starting cutting, the work coordinate system should beset againby measurement of a positionof workpiece o...

  • Page 71

    When it is0, it moves. (Work coordinate is notchanged and machinecoordinate ischanged.)When it is1, itdoes not move. (Work coordinate is changed and machinecoordinate is notchanged.)(2) Command formG522 Pn ;n : No. of fixtureoffset amount (1- 8)By acommand ofG522 Pn ;, calculate a fixture offset ...

  • Page 72

    !Workcoordinateva lueXZBMachinecoordinate valueXZBFixture offsetamountProgramXZBN1G90 GOO XO ZO BO000-60.00000N2 G522 PI0000-45.0015.0t 0-15.00090.[-15.090.00180.[015. 180.0]0-60.90.015.N3 A9015.-60.90.15.00030-60.90.0-75. 180.15.0N4G91 A900-15.00]0-15.0-60. 180.N5 G522 PO00180.0-60. 180.000In th...

  • Page 73

    (6) Input/output of fixture offsetamountSetting and input/output of data inaprogram with outside isavailable.(a) Setting of standard fixture offset amountby G10Standard fixtureoffset amount or standard angle inaprogram can beset.G10L22 P_X_Y_Z_;PI- P8:Fixtureoffset No.X, Y, Z... : Standard fixtur...

  • Page 74

    i(8) Related parameter:When a vector offixture offset ischanged.Itmoves.=1It does notmove.No. 1208,#0=0Fixture offset isineffective (for each axis).Fixture offset iseffective (for each axis).Rotary axisNo. tobe done fixture offsetAxis No.oflinear axis1 constructed a place to beexecutedfixture off...

  • Page 75

    7.1Absolute/Incremental Programming (G90, G91)!In programming, youcan select either absolute programming whichcausesan axialmove following theaxialaddress tomove to the specifiedpositionofthecoordinate system,or incremental programmingwhichcauses it tomove tothe incremental position of thecurrent...

  • Page 76

    7.2Polar Coordinate Input (G15, G16)This command allows you tospecify the end point coordinate valueofthemachiningprogram in termsof radius and angle.(1)GcodeG15 :Polar coordinate command cancelG16 :Polar coordinate commandON(2)CommandformatG16 ;Polar coordinate commandONPolar coordinate command ...

  • Page 77

    !(c)Theangle is givenas follows.(i)When the angle isgiven by absolute programming, it willbe exactlythe anglespecified in theblock.(ii)When the angle is given by incremental programming, itwill be added tothe angleset in thepreviousblock.0PWhen the AngleIs Incremental\Whenthe AngleIs AbsoluteEndP...

  • Page 78

    fJ(A)Cautions(a)The following Gcodes are invalid in the polar coordinatecommand mode.GOA,G10, G52, G92, G53,G22 , G68 , G511,G501, G51(b)The radiusfor circular interpolationand helical cutting inthepolar coordinate command modeshould be specified byradius designationon arc.7-4

  • Page 79

    7.3Inch/Metric Input (G20, G21)WithaG20orG21 command,either inchor metric systemcan beselectedas the increment systemof program commands.(1)Command formatG20;G21 ;Inch systemMetric system(Note)Specify this inan independent block atthe beginningof the program.The following systemsof unitsare chang...

  • Page 80

    I.(4)Associated parametersTheincrement systemis metric.The increment systemis inch.No. 1000,#0=01(5)Associated alarms7-6

  • Page 81

    8. SPINDLE FUNCTION (S FUNCTION)With the number ofrevolution of themain spindle (rpm) being commandedina numerical value ofmax. 5 digits following Address S,binary codesignals, strobe signals (SF), analog signals correspondingto the spindlemotor rpm,gear signals,etc. are sent outto Machine side.(...

  • Page 82

    Hiv:ImfI'i:.ft-5-:3#liIS: isSiaaM?MIIli:iss?HiIIII-V«mSi1IIa*iIIImmm.t§II§®§HImlit liHiaas•&iIIilvli:laiiI:i-.-v= -V

  • Page 83

    9. TOOL FUNCTION (T FUNCTION)Witha value ofmax. 8 digits followingAddress Tbeing commanded,codesignals of BCD 8digits andstrobe signals (TF)are output inMachine side.(1) Specifyaset of Tcommandinone block.(2) Program example:T01;Tool No.01isset to Standby.G30 G90 X0 Y0 Z0 M19;T01MO6;Toolchange (T...

  • Page 84

    i.i:!"

  • Page 85

    10. Miscellaneous Function (M Function)10.1Miscellaneous Function (MFunction)If the address M followedbyan up to 8-digit numerical value isspecified, the BCD 8-digit code signal andstrobesignal (MF)areoutputto themachine side.(1)Specify a setof M command in one block.(2)The followingM commands ar...

  • Page 86

    (3)SampleprogramG30G91XOYOYOM19 ;TOlMO6;MO3 ;G54G90GOOXOYO;G43ZOHOI ;!Tool changeSpindle forward rotationM05 ;M30 ;Spindle stopProgram end1(4)Cautions(a)If MOO, M01,M02or M30 is specified, the NC unitstopsprereading.(b)WhenM98 or M99 is specified, the code signal and strobesignalare not sent out....

  • Page 87

    (4)Associated parametersNo. 1020Command address of the 2ndfunctionmiscellaneous(5)Associated alarms110-3

  • Page 88

    .<

  • Page 89

    11. Canned Cycle11.1Canned Cycle (G73, G74, G76, G80- G89)This function allows you tospecify the machining cycle suchas drilling,tapping,boring, etc.inone block.The canned cycle is cancelled if you specifyG80 or the G codeof Group01 (GOO, G01, G02,G03, etc.) during the canned cycle inode.(1)G cod...

  • Page 90

    (3)Machining cycleThe canned machining cycle generallyconsists of the followingmovements $ through©.Kv<D :Positioningto the drillingposition© ;Rapidtraverse to the Rpoint© : Cutting feed to the ,Rpoint(Feedrate E)(D : Drillingto the Z point(Feedrate F)© : Movementat the Z point© : Return ...

  • Page 91

    (5)"R-point," "Z-point," and ",R-point"The R-point and Z-point will beas follows in theG90 andG91 commands,but the ,R-point will be alwaysof incremental command.[ G91 ]t G90 ]zoPositionInitialPointO.....>o oO.....>o oAt RzR*o oRPointOoRPoint4-.I,RO,RPointO,RPoi...

  • Page 92

    (7)Description of themovements in the canned cycleThe followingdescription of themovements in the canned cycleassumes the drilling positionto beon the X-Y plane, andthe drillingaxis to be the Zaxis.(a)G73 (High-speed peckdrilling drill)G98[Fixed pitch]G73X_Y_Z_R_,R_Q_ P_L_F_E_;[ G 99 ]{}G99[ G9 8...

  • Page 93

    (b)G74 (Counter tapping)G98G74X__YZRPLFE{}G99[ G9 9 ]t G 98 ](X, Y)(X, Y)Initial PointOO-jrInitial Point(Ppr)(Ppr)(M04)(M04)*ORPointRPointO-TTFEFEVoZ PointZPointO(Ppr)(Ppr)(M03)(M03)(M03) : Spindle forward(M04) : Spindlereverse(Ppr) : Dwell (by parametersetting)(Note 1)Byparameter setting,(Ppr) i...

  • Page 94

    (c)G76 (Fine boring)G98{}G76X_Y_Z_R_P_QLFG99[G 9 8 ](X, I)(MO 3)[G 9 9](X, Y)InitialPointOInitial Point->o*(MO 3)VORPointORPointOZPointZPointO(P)(P)(M19)9(M19)Q(M03): Spindle forward(P): Dwell(Ml9): Spindle index stop: Shift (rapid traverse linear interpolation)(Note1)By parameter setting, spe...

  • Page 95

    (e)G82 (Drilling)G98(}G82X_Y_Z_R_,R_P.L_F_ E_;G99[ G9- 9 ]C G 98 ](X.Y)-—xp(X,Y)Initial PointInitial Point—*?2RPoint9RPoint,RPoint,RPointo 606ZPointZPoint(P)(P)(P) : Dwell(f)G83 (Peckdrilling)G98[Fixedpitch]G99G83X_Y_Z_R_,R_ I_J_K_ P_L_F_E.{;[ G98 ][ G9 9 ](X,Y)-—>9( X , Y)Initial PointI...

  • Page 96

    [Variablepitch]G83X_Y_Z_ R__,R_I_J_K_P_L_F_E_G98{G99;[ G98 ](x, Y)[ G9 9 ](x, Y)—-Initial7 Point•X?'Initial PointX9* ; A ! "AimrrX RPointRPointVoo,RPoint,RPointj\AII;xJ.1AAI-JI-J-Y.jJfPrftPr$' rY//>S' 1T *S' •*-1”I-2JI-2Jy,p7£I py±1O-*— ZPointipr : Parameter settingwhere;I : I...

  • Page 97

    (h)G85 (Boring)liG98{}G85XYZRLF>G99[ G98 ]t G 9 9 ]InitialPointInitialPoint(X. Y)(X.Y)--*<?-—*?IIII15-TR PointR PointZ Point66Z Point(i)G86(Boring)G98{)G86XYZRLFG99[ G 98 ][ G 99 ](X.Y)(X.Y)--*ÿ9-7InitialPoint(MO 3)InitialPointii(MO 3)4i-tR PointR Point>/lvZ PointZ PointO6(M05)(M05)(H...

  • Page 98

    (j)G87 (Backboring)G98}G87X_Y_Z_R_P_QLF{G99[ G 98 ](X,Y)(M 19 )[ G9 9 ]OoInitial PointA(M03)Unused(P)ZPoint(M19JOADwellSpindle forwardSpindle stopShift (rapidtraverselinear interpolation)(P)(M03)(M19)vRPoint(M03)OQ(Note 1)Byparameter setting, youcan specify theshift amountwith I,J andK insteadof ...

  • Page 99

    (2.)G89 (Boring)}G98 }G89XYZRPLF{G99[ G9 9 ][ G 98 ]I(X. Y)(X.Y)InitialPointInitialPoint—*?—*91i6c5R Point.R Point-Z Point6Z Point6(P)(P)(P) : Dwell(8)Sample programG17G54G90GOOXOYO;G43ZOHOI ;HO3S1000 ;G73Z-50.R-5. Q5. LOF200Spindle forwardStoresthe machining dataof thecannedcycle.Peck drilli...

  • Page 100

    (9 )Cautions(a)Whenthe SINGLE BLOCKbutton is turned on, the toolstops at eachend pointof themovements (D, (S), ® , © and©.Inthis case, the FEED HOLD lampis turnedon at each end pointof themovements (D, © , © and© , and themovement© whenthe numberof repeats is left incomplete.Byparameter se...

  • Page 101

    When the numberof repeats (L) has been specified, M, Sand Taresent out in the first time only.(h)The spindlecan be switchedto the high-speedgear in themovement® ofG74/G84.The Svalueto switchto isset withthe parameter.(i)The numerical valuesof P. Q. I.J. K. L and Fshould be givenin positive value...

  • Page 102

    (10)Associated parametersNo.1401,#5=0Dryrun isvalid for tapping command.Dryrun isinvalid for tapping command.Doesnot make single block stop for each canned cyclefor drilling.Makes single block stop for each canned cyclefordrilling.Drilling axisof canned cycleis always Z.Drilling axis of canned cy...

  • Page 103

    11.2Direct Tap (G741, G841)This function synchronizes the spindlewith the feed axes andallowshigh-speed high-accuracy tapping.Conventionaltappersareunnecessary.(1)CommandformatG74 1G98G94)"Y_z_ R_p_ Q_L_s_ F_E.) (G99G84 1G95: Forward direct tap (Note 6): Reversedirect tap (Note 6)G98/G99: In...

  • Page 104

    (Note 5)S/F commands are madevalid in a block where G841 (G741) has beenspecified, servingto determinefeed rate and pitches.Example:jG841Z_R_F_S_;X_ Y_;X_ Y_ ;- • When specifying feed rata,F/S=pitch•Whenspecifying pitches, F x S=feedrateG80 ;(Note 6) Direct tap G-codes (G841, G741)can be made...

  • Page 105

    (3)Feed rate settingand pitch setting (F-command)Thedirect taphas different meangingsofF-command between the feedper minutemode (G94) and feed perrevolution mode (G95).•G94 mode:F representsa drilling axis feed rate.(mm/min., in. /min.)•G95 mode:F represents tappitches, (mm, in.)E representst...

  • Page 106

    (4)Pecking cycle functionWhen performing deep tapping indirect tapping, it may be difficultdue to entangled cutting chips or increased cutting resistance.In that case,this function allows you toperform cutting,dividingbetween the R-pointand Z-point into several sections.G741G98) (G94X_Y_Z_R _P_Q ...

  • Page 107

    (5 )Notes!(a)The description in this sectionassumes a drilling position to beon the XY plane, and a drilling axisto be the Z-axis.Dwell operationcan beenabled/disabled byparameter setting.During tapping, feedrate override and spindle override are fixedat 100%.(b)(c)Dryrun can beenabled/disabled b...

  • Page 108

    In direct tapping, overrideon returning operationis invalid.Indirect tapping,overrideon returning operationis valid.Indirect tapping, Feed HoldandSingle Blockareinvalid.Indirect tapping, Feed Holdand Single Blockarevalid.Returnvolumeof pecking cycleOverride valueon returningoperationin directtapp...

  • Page 109

    11.3Drilling Pattern Cycle (G70, G71, G72, G77)[Purpose]When drilling theholes atequal intervalson the circumference,thisfunction automatically calculates the orthogonal coordinatevalue withthe radius and angle and positionsthe tool to that position.(1)Command formatG70XYIJL;G70:Bolthole cycle:En...

  • Page 110

    i1(3)Description of themovements in the canned cycle(a)G70 : Bolt hole cycleG70XYIJLExample)G70G91X90. Y30. 140. J20. L6 ;23I *M0mm1 1X= 90.•»20*]TY=30.4JEnd PointO6StartPoint5(b)G71 ; Arc cycleG71X_Y_I_J_K_L_;Example)G71G91X30. Y10. 1100.J30.K15. 2L7 ;54321TÿIOO.J-3O:3Start Point10.o-30.(c)G...

  • Page 111

    (d)G77 :Grid cycleYIJKCALG77XExample)G77G91X20.Y10. 125. J30. K60. C25. A4L3 ;121= 25,11C= 25IQ.96K= 60!jyL=3738A= 4•21= 30*.) Y=10.o-StartPointX=20.(4)CautionsG70, G71,G72 and G77 are non-made G codes.Be sure to specify G70, G71,G72 and G77 in the canned cyclemode.Besure tocancel G70,G71, G72 ...

  • Page 112

    11.4TrueCircular Cutting (G302~G305)In one block, youcan specifya seriesof actionsto cut theinsideoroutsideofa truecircle.(1)G codeG302True circular cuttinginsid'eCW (clockwise)True circular cutting insideCCW (counterclockwise)True circular cutting insideCW (clockwise)True circular cutting inside...

  • Page 113

    (2)Commandformat(a)Truecircular cuttingID (G302, G303)G302{R - } U{}IQ_LDFG303J.64QJR-(D)'12%%X0I%*19,10\JfTool centerpath:0—*4-*5—>6-»7—>8—>9-*1 0-0%l-(D)<e5K1= R-(D)+U-iU-(D)Uwhere;I :Radius ofthe finished circle.I+= Approach in the plus direction,I- = Approach in the minus...

  • Page 114

    (b)True circular cutting OD (G304, G305)G304R}I_{"}KU_Q__L__D_F{G305J39iagmi,X7R-(D).(D)CUTool centerpath:0-*-l+2-»-3-*-45-*-6-*-7+8 +9-*-0cHP);Ki(D)!+Kwhere ;Diameterof the approach circle.I+= Approach in the plus direction,I- = Approach in the minusdirectionR designation for the high-spee...

  • Page 115

    (3)True circular cutting planeSpecifythe true circular cutting plane with G17,G18 orG19.G17 :X p -Y p planeG18 :G19 :where;Xp :X axisor its parallel axisYp:Y axisor its parallel axisZp:Z axisor its parallel axisZ p -X p planeY p-Z p plane(Note)Itis impossible tospecify theUaxis for thecircular cu...

  • Page 116

    G3031 50.D1 0F 5 0 0 ;G303 1 -50. DIO F50U :sY/ \A/350.150655]Z/> XZ/V12a4.3/V(DIO): Offsetamount(DIO): Offsetamount///G304140. K30. DIO F500;G3041-40. K30.D10 F500;YY; i/ 143v/V/ IJQyS/K30./25* X* XZ5Z/4(DIO) : Offsetamount(DIO): Offsetamount140.1-40.G305 140.K30. DIO F500;G3051-40. K30. DIO ...

  • Page 117

    (b)R designationfor the high-speedfeed sectionG3-02150. R30. DIOF500 ;G304140. R30. K30. DIOF500 ;Y/A/ >3J/50.K30./Iyy6 577vly\6y3(DIO): Offsetamount-y(D10) : OffsetamountHigh-speedfeed sectionR30. - (DIO)High-speedfeed sectionR30,- (DIO)(c)J designationfor the high-speedfeed sectionG302150. J...

  • Page 118

    (e)Designation of spiral truecircular cutting (U,. Q)G302140. U70. Q10. DIOF200 ;iA4.1mQ: A:c increment2Xm-<DK)J251(DIO): Offset amountG304150.K50. U20. Q10. DIOF200 ;!3Q: Arcincrement12,0*X!Z21(DIO): OffsetamountIQ8160. + (DIO)150. -(DIO)kr-—--11- 30

  • Page 119

    (5)Cautionsr(a)Specify theG302 vG305 commands in the tool diameter compensationcancel mode (GAO).G302 throughG305 are non-modal G codes.The numerical values ofthe addresses other thanD andF specifiedin thesame blockare valid only in the block where theyarespecified.(c)The numerical values of R, J...

  • Page 120

    ( 6 )Associated parametersNo. 5101,#0=0The true circular cutting planeis alwaysthe X-Yplane.Truecircular cutting speedin the high-speed feedsectoinNo.5159( 7 )Associated alarmsTruecircular cuttingerrorIcommand not available(G302~G305)K command not available(G304, G305)U commandnot available(G304,...

  • Page 121

    11.5SquareOutside Cutting (G322, G323)A series of square outside cutting actionscan be specified in one block.(1)GcodeG322 :Squareoutside cuttingCW (clockwise)G232 :Squareoutside cuttingCCW (counterclockwise)(2)Command formatG322}XYZR{Q_I_J_K_P_A_C_D_FG323Initial; Pointi—R Point©-I71Q:J:_ vtQC...

  • Page 122

    (3)Initial pointMachining start pointoftheG322/G323 command.actionsis completed, the X, Y andZaxes return to the startpoint.Whena series of(A)R point andZ pointThe R andZ pointsareas follows by theG90/G91 command.[ G9 0 ][G 9 1 ]ZO PositionInitialPointInitial PointYl°1RiIIVIR Point°H-Ri5iIPoint...

  • Page 123

    (6)SampleprogramG17:G90G322X50. Y-100. Z-50. R-10. Q20.180.J40. K8. P30. A2. C15. DIOF200 ;;3->InitialPointS9-Trra.ib,R Point”HIT8 MI2(11"4f . ei vhiic1vi-<rdl,iZ Point<r<ÿ65V.JO'*- ' '030RapidtraverseCuttingfeedwhere ;0-> 1—>a—*b—+2—+3—»6—>c~>d—*2-&...

  • Page 124

    (8 )Associated parametersNo. 5101,#0=0The square outside cutting plane is always the X-Yplane.The square outside cutting plane dependson thespecifiedone ofthe G17~ G19 commands.Finish speedoverride value (1to 100 %)Finish allowanceClearanceamount1No.5115No.5152No.5153(9 )Associated alarmsNo.136(#...

  • Page 125

    11.6Plane Cutting Cycle (G324,G325, G326)There are3 kindsof canned cyclefor plane cutting; square plane cutting(G324), square plane1-directional (G325) andsquare plane2-directional(G326).These canned cycles are convenient when cutting theplaneor groove,usinga facemill oran end mill.In these cycle...

  • Page 126

    IA* *- __KJQ' •(X. Y)YPXR/\QT. ti_*‘/ 1z --*ÿTFinish Allowance(N. 5152)Z-/ VY<&» X(b)MovementsX.Y/oG-IIIItIGGX, Y$I= ©I=©I=©I= ©J= ©:J= SJ= Qj=eThe start point and cutting directioncan be changedby changingWhenthe cutting widthK is a negative value,the cuttercenter is projected ...

  • Page 127

    I->07PPYApproach AmountApproach AmountA'z &- XR1st Cut+ Q2nd Cut+ Q3rd Cut ( Z- Finish Allowance)ZY<&XFull line : Cutting feedDotted line : Rapidtraverse\\"A9.-is--"_-N ]1 Qÿ~- -- -_Li2? _7\!\\;8. 16. 2412. 24. 3ERVr"7I->5T18/'12- 5ITi3¥ÿt.i,, n£- ~,23iV-- U _,...

  • Page 128

    Cutting (|Q| £ C)Single Directional CuttingC j Q| < C)Double DirectionalQQppp r K= ©K= ©G=fQP fK= ©K= ©(c)SampleprogramG324X-15. Y-10. Z-30. R-10. 130. J20.K8. Q10. P5. DIOF200InitialPoint130.9-kaR Point:>o2t5*K8.6J20.b cQ10.&eo—6-Y-'" K8.4fd-d'- ‘4°±2—6pr> Cutting ...

  • Page 129

    (2)Square plane1-directional (G325)[Purpose] Capable of performing multi-directional cuttingand specifyingthe endsurface.(a)Command formatG325X_Y_Z_R_I_J_K_Q-P_C_D_E_U_F;G325X, Y: Squareplane 1-directional: Start point coordinate value of the plane.Enter it basedonG90/G91.: Zaxis corrdinate value...

  • Page 130

    I-?Finish Allowance(N. 5152)' ~sIC3 t\JJ-----Af~Tft \K;:iIGiif(X. Y)YCl(C4 )+P*z ©ÿX*R4:ÿ'r:Q*JczJe.ZtAFinish Allowance(N. 5152)YXr ;';'| '(b)Movements.A,>PApproach Amount11- 42

  • Page 131

    1)X, Y approachpoint, rapid traverse to theR point+2)Rapid traverse tothe Zaxis cut-in height43)Machining in the I-specified axisdirection+4)Machining in the J-specified axis direction, K= "+" : rapidtraverse,K=: machining+5)I-J plane, 3) and A) repeateduntil the endof machining+6)Retur...

  • Page 132

    (c)SampleprogramG324X-15. Y-10. Z-30. R-10. 130. J20.K8. Q10.P5. Cl DIO F200InitialPointIaAAvDIO.— R Point9it8r&Q§55J20.bc;o—6Q1 0-&e5io\::= =L= -J.idf~ V ~ ~SoV,o—6-±t2pr*0-6-Z PointT;1-> Cutting feed> Rapidtraverse6130.P5.P5.Toolcenter path1_»a_»2 -*3 -*4 -*5 -*6 -*•c ...

  • Page 133

    ( d )CautionsWhen each depthof cut(Q) isa negative value (-), nofinish-ing is performed.(plane included)Machining is performedonlyonce incase of(|R— Zj ) S| Q|.The toolcuts in by each depth of cut(Q) from the R point.The length in theJ direction is always positive regardlessofthe signWhenK isa ...

  • Page 134

    vm,w/M),JnrTIIKI« tI©if(X. Y)YHFinishAllowance(N. 5152)YPI<-Z&> XR/ *r•\Qyj1' tzzt/»FinishAllowance(N. 5152)YX(b)MovementsCD©Finish—AllowanceJTJT1<IIUIIu-jFinish Surface©©i1tii,iL.11- 46

  • Page 135

    0©IILCutson thestart point side, leaving theside finish allowance.I©Leaves the sidefinish allowanceon the endpoing side.1!'©Cutsin on thestart point side, from the position where thesidefinish allowancewas left.Leavestheside finish allowanceon the end point side.1@1©Finishes theside and botto...

  • Page 136

    - IT*11G(A‘X>(A‘X>GGWWMM(A‘X)+GI(A 4X)1G+IIji<A‘X>Gr#—\Q1(A4X)(A‘X>GiIIrIi+!WMMWAI;rs oI 3I

  • Page 137

    11.7Poketing (G327~ G333)A series ofinside/outside cutting actionsfor circle, track,square,etc.can be specified in one block.(1)GcodeG327Circle insideSquare insideTrack insideG328G329G330Circle outsideG331SquareoutsideTrack outsideG332G333Circle(2)Command formatGXY_Z_R_Q_I_J_KP_ACUVWEDF;Initialpo...

  • Page 138

    (3)Initial pointMachiningstart pointoÿf theG327G333 commands-Zaxes return to thestart point when a seriesof actions is completed.All of the X, Y and(4)R and Z pointsTheR andZ pointsare setas follows by theG90/G91 command.[ G90 ][ G 9 1 ]ZO PositionInitial PointInitialPointO—iI4?1RIii• tYR Po...

  • Page 139

    (6)Cautions(a)Give theG327 to G333 commands in thecutter compensationcancel (G40) mode.(b)G327 throughG333 are non-modal G codes.(c)WhenD andF are omitted, already specified D and Farevalidated.(Note 1)For detailed description of each function,refer toseparate document.(7)Associated parametersNo....

  • Page 140

    (8) Associated AlarmsPocketcutting commanderrorIcommandnot available (G327~G333)J commandnot available (G328~G332)K commandnot available (G327~G333 )P commandnot available (G330~G332)Q commandnot available (G327~G333)Acommandnot available (G329,G332)Z commandnot available (G327,G328,G330,G331 )I ...

  • Page 141

    (#044)[A command- tool diameter]> [Jcommand/ 2] (G328)[A command +tool diameter]> [J command/2] (G331)Finish allowance> [J command/2] (G328)[A command- tool diameter]> [Jcommand/ 2] (G328)[A command +tool diameter]> [J command/2] (G331)Tooldiameter> [ (Jcommand/2)- finish allowa...

  • Page 142

    11.7.1 Circular Poketing (G327)[Purpose]Usedfor pocketing inside thecirclewith an endmill.For detailed descriptionin case ofG17 (X, Y plane), as follows.(1)CommandformatG327XY_ Z_R_ IJ_ K_ Q_ D_ E_ U_V_ F_;G327X,YCircular pocketCenter coordinate valueof the center.Enter itbasedonG90/G91.Coordinat...

  • Page 143

    (2)Movements/1 /Uf— (x, Y)Each Depth of Cut: QIi2|i“Approach Pointi3 '23J Q12-S'-----RPoint4221121796lots1ill2016ill1S(17(1 5(ZYFull line: Cutting feedDotted line: RapidtraverseX1.Moves to theX,Y point at the rapid traverse rate.+2.Moves to theZ axis approachpoint at the rapid traverse(R Poin...

  • Page 144

    ( 3 )SampleprogramG327 X50 • Y50. Z-50. R-10.150. J20. K8. Q20. DIO F200InitialPoint9-a ivAAb !Q20.kVRPointcd; e •!f%' hV*o—o*118Q20.10J20.+%!5',\3;42K8./'150.priZPointJprDIOCutting feedRapidtraverse1- a-*-hr* c->2-* 3-* 4-*5-* 6-* 7ÿ d-8-* e-*f-* 2-* 3-* 4-*5- 6-* 7-* gÿ8-*h-*i-* 2-* ...

  • Page 145

    ( 4 )Cautions(a)When the cutting width(K) isa negative value, finishing isnotperformed in theXaxis andYaxis directions.(Fig. 7.1)(b)If theradius (J) of the lower holeis-/, a profile (Figure7.2) leaving theradius (J) is obtained.(c)Wheneach depthofcut(Q) is a negative valuein theZ axisdirection, f...

  • Page 146

    11.7.2Square Poketing (G328)[Purpose]Used when machininginside the square bar with an endmill.Thecorner Rcan be also specified.(1)CommandformatG328X_Y_Z_R_I_J_K_QC_ADEUVF;G328X,'Y:Squarepocket:Startpointcoordinate value of the plane.Enter it basedonG90/G91.:Coordinate valueof the pocket finishing...

  • Page 147

    (2)MovementsCutting Patterni= ej=©i= ©j= ©i=©i= 0J= ©J= ©iX, YX, Y0000J*X, YX, YThe cuttingdirectioncan be changed with thesignof I andJ.Iir'2'V___0 _Approach Point0-*iQ4135I19.344,-pr R Point518. 33147*8<ÿ1/7 12I159J»1/t10->1620294-23287fan2130,V?2632253111- 59

  • Page 148

    Moves totheX, Y point at the rapid traverserate.1.+2.Moves tothe Zaxis approachpoint.(R Point +each depthofcut(Q) in theZaxis direction)Moves to the workpiece center in the sidedirection at the rapidtraverse rate.+3.+4.Rapid traverse totheR point+Cutsin by each depthof cut Qin theZ axis direction...

  • Page 149

    ( 3 )SampleprogramG328X-50.Y-25. Z-50. R-10. 1100. J50. K8. Q20.C15. DIOInitialPointo-1100.avoo XAJ80bQ20.kRPoint6—o—o—o—o-A; A;c d; e >&;,v ,-o—6-A9Q20.12% :"4nr3105Vf: ho—6Z Pointj*h'K8pr—> Cutting feedRapidtraverseC20.DIO pr'2mToolcenter path1—a— 2—b—c—3...

  • Page 150

    ( 4 )Cautions(a)When theworkpiece hasa premachined hole, specify theremoval amount (C) of single wall.When (C) is not specified, the tool cuts from the center,assuming that there isno premachined hole.(Fig. 7.3)(b)When the cutting width (K) isa negativevalue,no finishingis performed in the side d...

  • Page 151

    11.7.3TrackInside •(G329 )You can specify in one block a seriesof actions which cutsthe insideofthe track, usingan end mill.G17 (X-Yplane).The following describes thecase of(1)CommandformatG329X_Y_Z_R_I_J_A_C_KQDVEUFInitialPoint?Ic \KIPClR Point! I!JLQ-*j-Zÿr Ii II Pr2pt1 ~r\ \tVI/1 H/i/iit /'...

  • Page 152

    (2)SampleprogramG17;G90G329X50. Y-100. Z-50. R-10. Q20. 150. J20. A50.C15.K8. DIO F200;/LJ-lInitialPoint?////JL/ / /nsTaiR Pointf /:3I II/ 71clI—b/1/ /' '//II(X.Y))d2•12el5//Tv!fi:/4\!/iTz/- \\// /7 7 / 7 //IIPoint//77iK\r/vRapidtraverseCuttingrapidtraversewhere ;0 (Start Point)Tool centerpat...

  • Page 153

    (3)Cautions(a)Specify the numericalvalues ofthe addresses V,E andUwithout a decimal point, (in case of the metricsystem)An alarm results incase oftooloffset amount((D))> arcradius (A).An alarm results ifyou specify 1=0 andJ= 0.When theaddress C is omitted, thearc radius is takenas theremovalam...

  • Page 154

    11.7.4Circle outside Pocketing (G330)[Purpose]Used when cutting the outside ofthe circle withan end mill.Fordetailed description in case ofG17 (X, Y plane), asfollows.(1)CommandformatG330X_Y__Z_R_I_J_K_Q_P_D__E_U__V_F;G330: CircleoutsideX, Y: Coordinate value of thecircle center.: Zcoordinate val...

  • Page 155

    . /\J---RL_(X, Y)fT"T~TiiQiiiiIIiiiii*zzY4Finish Allowance(N. 5152)X(2)Movements1rII 2I3J.Approach PointCutting Start Point'V!4: Q133i~3r “'R Point/I' 1 1 9. 25/ I15. 1 124y10///20/!6(X, Y)fI11723198i'i/22 I; 2iiti3171IIiU'AA/20/I16////Z Point2sf261215|i 27i/2814!ÿ1311- 67

  • Page 156

    :Movesto theX, Y point at therapid traverse rate.1.4Moves to theZaxis approachpoint atthe rapid traverse(R Point +each depthof cut(Q) in the Zaxis2.4rate.direction)3.Moves tothe approach point at the rapidtraverse rate,considering the cutting widthofthe removal amount.44.Rapidtraverse to theR poi...

  • Page 157

    11.7.5SquareOutside Cutting (G331)[Purpose]Used when cutting theoutside ofthesquare withan end mill.It is also possible tospecify thecorner R.Fordetailed description in caseofG17 (X, Y plane), as follows.(1)CommandformatJ_K_Q_P_C_A__D_E_U_FG331XYZRI;: Squareoutside: Start point coordinate value o...

  • Page 158

    Finish Allowance(No. 6224)R pointnr::” "T "•-T_TrQ'1J1III.III1{liiZiii7-pointY®-* X(2)MovementsCuttingPatternii©©J.(x, Y)(X, Y)J4J©©II-R-©© *..(X, Y)(X, Y)"v1JJ©©Vf-'2»3xA*- ~Approach Point(X, Y)354,19. 34.. 28,33ih'i'jir "— Rpoint4 \825I-e5'1Q10239I24n*20721!X...

  • Page 159

    Moves totheX, Y point at the rapid traverserate.1.+2,Moves tothe Zaxis approachpoint at therapid traverserate.(R Point +eachdepthof cut(Q) in the Zaxisdirection)+3.Moves tothe1st cutting-in position in the side direction attherapid traverse rate.+4.Rapidtraverse to theR point.+5.Moves by each dep...

  • Page 160

    11.7.6 TrackOutside (G332)Youcan specifya seriesof action which cutsthe outsideofthe trackThe following describes thecase ofG17 (X-Y plane).withan end mill.(1)CommandformatG332X_Y_Z_R_I_J_A_C_KQPDEUFInitialPointoC? pr 1iRPoint___N\\\I/Q1/-4-*/. ',7-\iJ(X.Y )h ryI\1UQ' Wii( A< 0 )/ ?0-1- ZPoint...

  • Page 161

    (2)Sample programG17;G90G332X50. Y-100. Z-50. R-10. Q20.150. J20. A50. C15.K8. P5.DIOF200 ;.InitialPoint?'Ta i$4R PointTMillU*HH*H i1' iidih| 'j!8 r7////Mr,/.6;if0-J.-*-19l/xZ Point]5(Start Point)73RapidtraverseCuttingrapidtraversewhere;— —P3P2PI(Approach Point)Toolcenter path:0 +l+ 2 +a +b +...

  • Page 162

    (3)Cautions(a)Specify the numerical values ofthe addresses E andU without adecimal point, (incase of the metric system)Analarmresults if you specify1=0 andJ= 0.An alarmresults ifP= 0 is specified.When theaddress C is omitted, thearc radius is takenas theremoval amount.For thenumerical valuesof th...

  • Page 163

    !11.7.7Circle (G333)You can specify in one block a seriesof actions which cutstheinsideThe following describes thecaseofthe truecircle usingan endmill.of G1 7 (X-Yplane).(1)Command formatG333X_YZ_RIQCKDUVWEFInitialPoint9~iIlR PointT'/ r\\S7Z11ii\\Cii\ i'/iii i(vL'I1 !/)—.- r jz ~ni7ix. i)/ ipr1...

  • Page 164

    (2)SampleprogramG17 ;G90G333X50. Y-100.Z-50. R-10. Q20. 150. C15.K8. DIOF200 ;InitialPointOl/f/a !6R Point8/74b77//,7€/\A2(Startc5Point)\>/0// /A//7/\cFinishAllowaiy:eÿ/d3Z PointTT7/Rapid traversewhere (Cuttingfeed!O +a +b +l +2+ 3+ 4 +5+6 +c+1’ +2' +7+8+5'+61 +dToolcenter path :Bottom fi...

  • Page 165

    11.7.8Special Fixed Cycles (G322~ G333) Type2Thereare the following two types of special fixed cycles {G322—G333):Parameter No. 5101,#1=0... Type1 (operationas mentioned before)= 1... Type2 (unified specifications)For type 2,all operationsat special fixed cyclesare performed accordingto thesame...

  • Page 166

    11.8ATCCanned Cycle (M06)A seriesof ATC operations (tool change)can be specified inone block.(1)Command format{ T_ }M06{ B_}{ P_ }{ X_ };{~ }- Omissible:Toolnumberto becalled.When omitted,a stand by toolis called.TOO delivers the spindle tool.B_: 2nd auxiliaryfunction.P__: Operationparameter.Spec...

  • Page 167

    ( 4 )ATC position of the additional axis•At ATC time, theadditional axis can be returnedto thereferencepoint.Set theaxis you to return and the desired reference pointtothe parameter No.5109.No. 5109,#0=0Doesnot return to the reference pointReturnsto thereference point= 1No. 5109,#2: #1= 0:0= 0:...

  • Page 168

    (5)Related alarmsNo.162 (#???) An M-code commandfor canned cycle hasan error.!Causeand Countermeasure???ATC canned cycle hasbeen executedwhile in canned cycle.Cancel canned cycle andexecute M06.001ATCcanned cycle has been executedwhile in normal alignment.After executing G4501,execute M06.002ATC ...

  • Page 169

    11.8.1ATCCanned Cycle, Type A (VK, VKC, VG, Vkll)( 1Command format( T)M06( B})-*•OmissibleT_ :Tool number tobe called.When omitted, a standbytool iscalled.TOO delivers thespindle tool.B_ : 2nd auxiliary function.Refer toPage13-4.X_ : X-axis (table) ATC position.When omitted, the tablemoves in a...

  • Page 170

    (3)Related parametersDescriptionNO.1226iXATC change position (Machine coordinated [mm ] )ATC change position (Machine coordinated [mm ] )YZ5103 i#1Set 0.#2Set 0.No shifting oftable/additional axes.Shifted to positionset with Parameter 5161.5109 !#0 :0X-axis ATC position ( Machine, coordinated [mm...

  • Page 171

    11.8.2ATCCANNED CYCLE TYPE E (VM40III)(1) Command Format{ T_ }M06{ B_ }{ Y_ };T_ : A tool No.calledout.When omitted, calla standby tool.For TOO,a spindle toolis discharged.B_ : 2nd auxiliary functionSeeItem13-4.{~ )-*•CtaissibleY _:Y-axis (table) ATC positionWhen omitted, table shifting follows...

  • Page 172

    (3) Associated ParametersDetailsNo.( Machine coordinates [ mm ] )ATCchange position1226XY(Machinecoordinates [ mm ] )ATCchange positionZATC changeposition( Machine coordinates [ mm ] )1227XYZ5130 i#1Set0.#2Set0.Y-axis not shifted in ATCcanned5109 i#0 : =0Y-axis command,ifany, is preceded.cycle.Y-...

  • Page 173

    11.8.3ATC CANNED CYCLE TYPE F (HG)(1) Command Format{ T_ }MO6{ B_ }T_: A tool No.calledoutWhen omitted,a standby toolis calledout.With TOO,a spindle toolis discharged.B_ :2nd auxiliary functionSeeItem13-4.* Foradditional axes,see Item 7-8(4).)-»ÿOmissible.;( 2 ) OperationCommandOperationG91 G30...

  • Page 174

    11.8.4ATC Canned Cycle, TypeG (HK)(1) Commandformat{ T_ }M06{ B_}: Tool number to be called•When omitted,a standby tool is called.•TOODelivers the spindle tool.: 2nd auxiliaryfunction.SeeSection 10-4.Foran additional axis,see Section 11-8, (4).I';{~ }-»Omissible;TBDuetoa reduced cycle time, ...

  • Page 175

    (3) Associated parametersDescriptionNO.1226ATC approachposition( Machine coordinates [mm ] )XATC change position(Machine coordinates [mm] )YATC change position( Machine coordinates [mm ] )Z#1Set 0.5103#2Set 0.Results inan alarm if the specified tool and thespindle toolare thesame.#3=1=0Doesnot re...

  • Page 176

    11.8.5ATCCanned Cycle, Type I (HS)(1) Commandformat{ T_ }MO 6{ B_ }: Tool number to be called•When omitted, the standby toolis called.• TOO Delivers thespindle tool.B_: 2nd auxiliaryfunction.SeeSection 10-4.Foran additional axis,see Section 11-8, (4).{~ }Omissible;T(2) Movements (Conventional...

  • Page 177

    ( 3 ) Associated parametersDescriptionNo.1226ATC approachposition(Machine coordinates [mm])XATC approachposition(Machine coordinates [mm] )YUnused(Machine coordinates [mm] )ZToolchange position1227(Machine coordinates [mm] )XToolchange position(Machine coordinates [mm])YTool change position(Machi...

  • Page 178

    11.8.6ATCCanned Cycle, TypeJ (VS)(1) Command format{ T_ }M06{ B_}{ Y_ );T_: Tool numberto be called•When omitted, the standby toolis called.•TOO Delivers the spindle tool.B_:2nd auxiliary function.SeeSection 10-4.•%. Foran additional axis,see Section 11-8, (4).{~ )-*•Omissible(2) Movement...

  • Page 179

    (3) Associated parametersDescriptionNo.(Machine coordinates [mm])ATC approach position1226X(Machine coordinates [mm])ATC approach positionY( Machine coordinates [ mm ] )UnusedZ(Machine coordinates [mm])Toolchange position1227X4(Machinecoordinates [mm])Tool changepositionY(Machinecoordinates [mm])...

  • Page 180

    11.10High-Speed Machining Cycle11.10.1Trochoid Cycle (G334)Toperform fluting in circular cutting through use ofan endmill.(1) Command FormatG334X_Y_Z_I_J_K_A_W_R_C_P_Q_D_F_V_ ;X, Y:Coordinate value of the referencepoint (Whenin default,currentposition)Z:Z-axis coordinate value (Whenin default,cur...

  • Page 181

    (2 )FluteWidth (W)Flutewidthis commandedwith an address W.width gets equalto (Ax 2).(a)With WcommandWith Wnot assigned, flute(b) Without Wcommandr—Ass\\\\\N\\\lrrA x 21I\WIIi\A/\\/\/\I/xXA/\VXWMmmWMZtm./\vWMMMMMZm.(3)Circular Flute (R,C)Whenaddresses R and Care commanded,a circular fluteis obta...

  • Page 182

    (4) Approach Volume (P, Q)WhenaddressPorQbeingcommanded,workstartpositionisautomatically calculated basedon the reference pointson X and Yaxes.Without assignment of P and Q,the workstart position is takenat thereferencepoints ofX/Y axes.As the workstartposition fora circular fluteis locatedon the...

  • Page 183

    (5) Plane ofTrochoid CyclePlanesfor thetrochoid cycle are assigned with G17,G18,and G19:G17 : XY planeG18 :ZXplaneG19sYZplane(6 )Cautions(a) Whenusing G334 command,set thecutter compensation to Cancel (G40)state.(b) G334 is a non-modal Gcode.(c) Without assignment of Dand F,thepreviously set Dand...

  • Page 184

    11.10.2Helical Drilling Cycle (G812, G813)To performdrillingin helical interpolation throughuse ofan endmill.G812/G813 remain valid until it is cancelledwith a modal Gcode (09group).(1 )Command FormatG812 ][]J L G99 J[X__Y_Z_R_, R_ I _J_K __Q_D_, C_L__F;G813G812: Helicaldrilling cycle (CW)G813: H...

  • Page 185

    (2 )Movement(a )Where I> 0 and Q> 0;'© Shiftedin quick feed to theX/Y axis drilling place.© Shifted in quick feed to R pointon Zaxis.® Circular cuttingto theX/Y axis cuttingstart point.® Conical cutting to Z point. (Note1)© X/Y axis fullcircle cutting.© Circular cutting toX/Y axis dri...

  • Page 186

    (4 )Return PointThereturn point of thehelical drilling canned cycle is commandedwiththefollowing Gcode:G98 :Returnedto theinitial point levelG99 :Returned o R point level(Note 1 )Theinitial point indicates thedrillingaxis position when modehas changed into Helical Drilling Cycle mode from Cancels...

  • Page 187

    exceeds thelimit value.(f) Conical cutting, forwhich thecircular center andthe radius arechangedbyeachcirculardividinganglehavingbeensetwithparameters, cannot achievea perfectcone in thestrictsense of theword.( 8 )Associated ParametersNo. 5117Circular dividing angles (1to 90)(9 )Associated Alarms...

  • Page 188

    A11.10.3High SpeedSide FaceCutting Cycle (6335)Toperformside facecutting through use ofan endmill.(1 ) Command FormatG335X_Y_Z_R_I_J_K_P_C_D_F_V_;X,Y:Referencepointcoordinate value(Whenin default, thecurrentposition )Zpoint coordinate valueR pointcoordinate value (Whenin default, thecurrent posit...

  • Page 189

    (2) Cutting StartPosition and Cutting DirectionCutting start position and thedirectionare assigned through use ofaddress Cand Icodes.1+I-II-53*Kg-Cl«*ÿG*-(X, Y)(X, Y)G(X, Y)44AAiiiiii’ .''IIC2'afIIIInm vriV(X, Y)(X, Y)(X, Y)*C3IIQ(X, Y)AAiiiIiiu,uIIIa 1 jC4IIIImmiiV\i( X , Y)(-t-*11- 101

  • Page 190

    (3) Approach PositionApproachposition is changed bythe address K code.With it beingnegative, the cuttercenter is located outside only by thedistanceequal to the approach volume.(a) K+(b )K-m!ÿih(X, Y)(X, Y)<ÿ->< >-PP(4)R Point and ZPointWith G90/ G91 command, Rand Z pointsare madeas...

  • Page 191

    ( 7 )Associated ParametersNo. 5101,#0= 0Planeselection always applies to XYplane.Plane selection conformsto G17to G19commands.1(8 )Associated AlarmsNo.222High speedside face cutting cycle commanderrorWithout Z commandWithout Icommandor I command= 0Without J commandor Jcommand= 0Without K commando...

  • Page 192

    11.10.4Z FeedFluting Cycle (G336)Toperform fluting throughuse ofoblique cutting.( 1) Command FormatG336X_Y_Z_R_I_J_A_Q_F_;X,Y:Cutting start point coordinate value(Whenin default,thecurrent position.)Zpoint coordinate valueRpoint coordinate value(Whenin default, the current position. )Z :R :I, J:C...

  • Page 193

    (2 )RPoint and ZPointWith G90/ G91 command, R and Zpoints are madeas follows:(a)G90(b) G91Z0positionInitial pointRInitial point--BDRpointA-*—X.kRRpointZzvMZpointZpoint(5) Planesfor Z FeedFluting CycleThe planes for the Z feedflutingare assigned with G17, G18, andG19.G17 : XYplaneG18 : ZXplaneG1...

  • Page 194

    11.10.5CornerPocket Cycle(G337)Towork corners through use ofan endmill.(1 )Command FormatG337X_Y_Z_R_I_J_K_C_D_F_V_;X,Y:Corner referencepoint coordinate value (Whenin default, thecurrent position.)Z point coordinate valueRpoint coordinate value (Whenin default, thecurrent position. )Initialcorner...

  • Page 195

    (2 ) QuadrantAcorner quadrantis assigned throughuse ofan address Cvalue.ClC2C3C4(X, Y)(X, Y)/4b4-%2/4*A\IV/,(X, Y)(X, Y)( 3 )R Point and ZPointWith G90/ G91 command, Rand Zpoints are madeas follows:(a)G90Z0positionInitial point— R8gR point(b) G91Initial point--8•aRpoint-4-{—Y-R\lZZii>a\f...

  • Page 196

    ;ÿ( 6 )Associated ParametersNo. 5101,#0= 0Plane selection always applies to XY plane.Plane selection conforms to G17 to G19 commands.Feedspeed forhigh-speed feedsection1No.5158(7 )Associated AlarmsNo.224(#001)(#002)(#003)(#004)(#005)(#006)(#007)Corner pocket cycle commanderrorWithout Z commandWi...

  • Page 197

    11.10.6Square Pocket Cycle (G338)Towork the square pocket through use ofan endmill.(1 )Command FormatG338X_Y_Z__R_I_J_A_B_K_D_F_V_;X,Y s Pocketcenter coordinate value (When in default, the currentposition. )Z point coordinate valueRpoint coordinate value (Whenin default, thecurrent position. )Len...

  • Page 198

    I(2 )R Point and ZPointWith G90/ G91 command, Rand Zpointsare made as follows;(b ) G91(a) G90Z0 positionInitial point 4-ÿRInitialpoint0R point-3R8§4:__iavR pointZ99ZvZpoint-*-Z point(3) Planesfor SquarePocket CycleTheplanes for thesquare pocket cycle are assigned with G17,G18, andG19.G17 ;XYpla...

  • Page 199

    12.1ToolLength Compensation (G43, G44, G49)This commandadds the offset amount specified withan H code toorsubtracts it from the positionofthemove end point againstoneoptional axis.(1)GcodeG43 : Tool length compensation in the"+" direction (end pointposition+ offsetamount byan H code)G44...

  • Page 200

    (4)Sampleprogram[End Point Position] [Tool LengthCompensation]G54G90GOOXOYO ;G40ZOHOI ;G01Z-30. F500 ;Z-100. ;G44GOOZOH02 ;G01Z-30. F500 ;Z-100. ;G49 ;GOO ZO ;Z axis200.+200. offset170.Z axisZ axisZ axis100.-150.-150. offset-180.Z axisZ axis-250.Z axis-250.CancelZ axis0.Axismove tocancel:150.H01 ...

  • Page 201

    [Sample Program][End Point Position] [Tool Length Compensation]G54G90GOOXOYO ;G43ZOHOI ;G01Z-30. F300 ;H02 ;Z-100. ;H00 ;GOOZO;Z axis: 200+200. offsetZ axis : 170.Z axis : 120.+150. offsetZ axis:50.Z axis :50.Cancel0.Z axis :Axismove tocancel:-150.where;H01 : 200,HO2 : 150.(6)Cautions(a)Ifthe fol...

  • Page 202

    •In case of the parameter No.5002, #5=1(clear the tool length compensation vector by reset),the tool length compensationvector is cleared bypressingthe RESETbutton.Whether thereset state istheG43 orG44 mode,therefore,it is necessary to specifyG43, G44 or H to establish thetool length compensati...

  • Page 203

    (7)Associated parametersNo.5002,#0Change in offsetamount is madeeffective startingwith:the blockin whichD/H codesare next specified.the blockin whichnext buffering takes place.Toollength compensation is alwaysfor Zaxis.Tool length compensation is always foraxisassigned byprogram.Toollengthcompens...

  • Page 204

    12.2ToolOffset (G45- G48)This commandextends or contracts the program-given strokeby the spec¬ified offset amount-;-Incase of arc, however,tool offset can bespecified onlyfor1/4 and3/4 circles orthogonal totheaxes.(1)G codeG 4 5Extends by theoffset amountc>G46Contracts by theoffset amount.G 4...

  • Page 205

    (3)Sample programG17G54G90GOOXOYO ;G01G91F200 ;N1G46X20.Y20. D01 ;Contracts theX andYaxes by theoffset amount.Extends theX axis by theoffsetamount.Extends theX and Yaxes by theoffset amount.Extends theY axis by theoffsetamount.Extends theX axis doubly by theoffset amount.Extends theY axis doubly ...

  • Page 206

    (5)Associated parametersNo. 5002,#1=0Theoffset number for tooloffset is aD code.Theoffset number for tooloffset isanH code.1No. 5002,#2=0Disablesan arc commandfor tooloffset.Enablesan arc commandfor tooloffset.1(8)Associated alarmsNo.161Tooloffset was specified in theG02/G03 mode.!ÿ12-8

  • Page 207

    12.3Tool Diameter Compensation(g38- G42)This commandcan offset the tool center path outsideor inside the .programmed path bythe tool radius value specified witha D code.Ifthe toolradius value is specified with theD codewhen machiningthe outer figureor innerfigure withan end mill, using this funct...

  • Page 208

    This command places tool diameter compensationin thestart-upstate.G40GOO{}(}6a;G01D00This command cancelstool diameter compensation.GOOf} G380 -a?G01With this command,tooldiameter compensationoffset vectorcan beretained.GOO{} G38IJK;G01Withthis command,tooldiameter compensationoffset vectorcan be...

  • Page 209

    (A)Offset directionTheoffset directionfor tool diameter compensation isdeterminedby theG41/42 and the signofthe tool radius value specified witha D code.Offset DirectionGCodeSignof Tool RadiusValueG41+Offset toleftG42G41Offset torightG42+Advance DirectionAdvance DirectionbWorkpiece,Workpiece/rrOf...

  • Page 210

    (5)Sample program fortool diameter compensation[Offset to left]G90GOOXOYO;N1G17G01G90G41X50. Y50. DIOF200;N2X100. ;N3G02X150. Y100. 150.;N4GOlG40X200.;where;DIO= 20.Start-upOffset mode;•‘-Cancel[Offset to right]G90GOOXOYO.;N1G17GOlG90G42X50. Y50. DIOF200;N2X100. ;N3GO 2X150. Y100. 150.;N4GOlG...

  • Page 211

    (a)Offsetvector holdGOO}G38{6aG01This command holds theoffset vector at the end point positionofthe previous block without creating theoffset vector.[Sample Program]G54G90GOOXOYO ;N1G17G01G42X50. Y50. DIOF200;N2X100. ;N3G38X150. ;N4G38X200. Y100.;N5X250. ;where;DIO= 20.Offset vectorholdOffset vec...

  • Page 212

    (7)Tool diameter compensationcorner arc (G39)During theoffset mode, aG39 command allows the tool tomove along anarc atthecorner.(a) G39 ; If I,J and K are omitted in the block containing G39, the toolmoves along acorner arc whichallows its end pointvector tobeperpendicular tothe start point ofthe...

  • Page 213

    (d)If you specify3or more blocks,which do not contain an axismovecommand, duringthe offset mode,the workpiecemay be partly leftuncutor cut toomuch.(e)Ifthe following commands are given during theoffset mode,analarm results.:G31 ,G37G53 ,G73 , G74, G76 , G81v G89G45 v G48G302 vG305G322 v G333(f)Du...

  • Page 214

    (d)Whenthemove axis,whose stroke is not0,. has been specifiedin the offset planeof the nextblock.(The next block is theblock skipping theblock with no move axiswithin thecon¬tinuousblocks following the next block.)(e)Whentheoffset amount specified witha D code is not0.Ss://r/r/Programmed Path/V3...

  • Page 215

    (b)Whenthe toolmoves outside (90° £a < 180°)SS L//r\s\/-— y/raaSL“is srr\ss\N./X\/r/\N \aaH(c)Whenthe toolmoves outside atan acute angle (a < 90°)/\—L/L///seX\a\\X\\r.\r\\\x\xxX\X/L/___L////i.I.aaX1>.rS\\Ns\\\\\\\\(d)Whenthe toolmoves inside (359° £a or a < 1°)(i)When the...

  • Page 216

    (ii)Whenthe toolmoves inside incase of line-to-arc, arc-to-lineorarc-to-arc,and theoffset vector is large,or cannot be obtained.(359° £ aora < 1°)L•s\L\r\IArL"s "ya= 0\(iii)When the toolmoves inside incase of line-to-arc, arc-to-lineorarc-to-arc, andthe normaloffsetvector can be...

  • Page 217

    (4)Specialuses(a)Whentheoffset direction is changed over by specifyingG41/G42during theoffset mode,an intersecting point is obtained.G42SV/r/ G4M/r/G42vTG 41/rV(b)Whentheoffset direction isnot changedover by specifyingG41/G42during theoffset mode, the vector is created perpendicularly totheend po...

  • Page 218

    G17G41G91GOOXIO. YIO.DIOF200 ;N1GOlX50. Y50. ;N2M09 ;N3G04XI. ;N4Z-50. ;N5X50. ;N6X50. Y-50. ;>Blocks withno axismove command\/\/\/N5\\//\/N2.N3.N4N1 (Pre-Block)N6(e)Thetool relief directioncan be specified with I,J and K bygiving G40 a_/? _I_JK;G17G41DIO;GOlX50. ;X-50. Y-50. 130. J30. ;G91G40...

  • Page 219

    (5)Move at thecorner(a)When2or more offsetvectorsare created at the end pointof theblock and theyare almost matching, thelatter vectorisinvali¬dated.When the nextblock isan arc, however, theoffset vector per¬pendicular tothestart pointof thenextblock becomes invalid.[Conditions ]AX S (Parameter...

  • Page 220

    (6)Interference checkIftool diameter compensation is applied, the tool may cut in the work-piecewhen it has a special shape.With this function used,youcancheck whetherthetool may cut into the workpiece before execution andpreventcut-in.However,all cut-ins cannotbe prevented.does not actuallytake ...

  • Page 221

    V ,,v «V ,,V ,,V.s/*V 15/V ,,/N3N!V ,,V,,N2Interference check atV14 and V21Interference check at V 13 and V 22Interference check at V12 and V23Interference check atVu and V24Erases V 14 and V 21 due tointerferenceErases V13 and V22 dueto interferenceErases V12 and V23 due tointerferenceNo interf...

  • Page 222

    (ii)When the toolmoves outside (90° S a < 180°)i///lS /sL,---9-/////G 4 1/G4I//aa//////Lb(iii)Wien the toolmoves outside (1° £a < 90°)I//ll /L////h\aal vL XSSNG4 1ÿG4Iÿ(iv)Whenthe toolmoves outside ( a < 1°)r//ssrvsG4 1G4 1sa(b)Type B cancellation(i)When the toolmoves inside (180...

  • Page 223

    (ii)Whenthe tool moves outside (90° £a<180°)\\s‘l\\\\C40\a\G40\\\a\(iii)When thetoolmoves outside (1° £a£ 90°)\\SLS\L' L\\\-paa,--"G40(iv)Whenthe toolmoves outside (a £ 1°)\\sST-a>1G40/G40/I1/ri/TFT(8)Associated parametersNo. 5003,#0=0The start-upand cancellation methodsare ...

  • Page 224

    1( 9 )Associated alarmsNo.115Tool diameter compensationstart-upor cancelhasbeen specified in codeother thanG00/G01.Excessive cutting has occurredin tooldiametercompensation.Arc radius< Tooldiameter compensationamountOther interferenceNointersection exists in ToolDiameterCompensation mode.Anerr...

  • Page 225

    12.43-D ToolOffset (G40- G41)This command can offset the tool center path outside or inside theprogram path by the tool radius value in accordance with the3-DIf this function is used,the toolcan be offset by the spherical radiusvalue when machining the3-D curved surface by using a ball end mill.v...

  • Page 226

    (3)Designation of the3-D tooloffset axisThe axis towhich3-D tool offset isto be applied isdeterminedby the addressofthemove axisspecified in theG41/G42 specifiedblock.G4iX_I_J_KG41UIJKX,Y andZaxesU,Y andZ axes(4)Offset vector of3-D tooloffsetIn the3-D tooloffset mode, theoffset vector iscreated i...

  • Page 227

    (5)CautionsThe X, Y andZ addressescan be omitted in theG41/G42specified block.However, the parallel axis cannot beomitted.(a)Be sure tospecify I,J andK in theG41/G42 specified block.If even one of them is omitted, tool diameter compensationresults.(b)When Xp , Yp and Zpare allomitted in theG40 sp...

  • Page 228

    (6)Associated parametersDenominator constant (P) by 3-D tool offsetNo.5026P= / i2 + j2 +k2when setting is 0.(7 )Associated alarmsNo. 158(#001)Theformat for 3-D tooloffset hasanerror.Gcodewhichcannot be specified exists in Compensationmode.Theaxis doesnot exist among the three baseaxes(X/Y/Z axes)...

  • Page 229

    12.5Hand D FunctionsThe tooloffset number is specified witha 4-digit number following theaddress H or D.(1)Command formatHDorThiscommand validates theoffset amountspecified with an H codeand that specified with a D code.Once theyare specified, they remain effective until the nextcommand is given....

  • Page 230

    (3)Functions using theH and DcodesTool length compensationTool offsetTool diameter compensationH codeH codeor D codeD code(Note)Whether theH or D code is usedfor tooloffset dependson parameter setting.(A)CuationsTheoffsetamount specified with the H or D codeare validatedwhen the H or D code speci...

  • Page 231

    12.6 ToolOffset by ToolNumberThis function automatically selects tool length compensationand tooldiameter compensationfor the spindle tool.(1)Sampleprogram (basic use)T02M06 ;G43G90GOOZ100. ;® Call theNo. 2 tool tothe spindle.operation,tooloffset No. 2 iseffected.© Thetoolnose moves toZ100 ofth...

  • Page 232

    (3)Compensation by Spindle Tool Number(a)Tool length compensationThework coordinate systemis shifted by thedifference ofthetool lengthcompensationamount corresponding tothe spindletool number from the previousoffsetamount.Thework coordinate systemis shifted in the followingcases.(i)At completion ...

  • Page 233

    (b)Tool diameter compensationTool diameter compensation isvalidated from theG41/G42specified block.[Example]T06MO6 ;G41... ;Tool diameter compensationis appliedwith the offset amountofT02.G40 ;M'12- 35

  • Page 234

    (4)Multiple offset (Compensation by H code,D code)(a)Tool length compensationWith H ?;, tool length compensation is applied with theoffset amountspecified with an H code, not thespindletool number.The work coordinate systemis shifted just bythe tool length offset amount.HTurns on multiple offset ...

  • Page 235

    (b)Tool diameter compensation; tool diameter compensation isapplied with theoffset amount specified with an D code,not thespindle tool number.sameas the H00 command.With thecommand DTheG49 command becomes theDTurnson multiple offset withan D code.Cancels multiple offset withan D code.D00... ;(Not...

  • Page 236

    ( 5 )Cautions(a)Note that theD code (or H code) used intool offset is takenas that for multiple offset.(b)Multiple offset is cancelled upon completionof ATC (M06) operation.(c)A tool changeM code (M06) cannotbe specified together withother M code in thesame block.(6)Associated parametersNo. 3407,...

  • Page 237

    13.1ProgrammableMirror Image (G501, G511)With this command given, mirror imageis applied for eachaxis to theshapespecified work program.(1)GcodeG511 :Programmable mirror image ONG501 :Programmable mirror image cancel(2)Command formatG311XaYbZc... ;Thiscommand applies the mirror image, with thepos...

  • Page 238

    YX-axis mirrorImage ONN4--5-0t \Mirror Image CancelN4—\R20-/\\N 5N3N5,N3\\sG02n‘\\ 'N2NlxHIIXX™7Mirror Point(5)CautionsSpecify the G511 andG501 commandsin the independent block.Otherwise,an alarmwill result.Position display indicates the coordinate valueafter thepfogrammable mirror image is...

  • Page 239

    (6 )Associated parametersNo. 3406, #1=0Mirror image processing is performed before scalingandcoordinaterotation.Mirror image processing is performedafter scalingandcoordinate rotation.Formirror imagecoordinate rotation, axisswitching , etc.,being specified withan incremental command,middle point ...

  • Page 240

    13.2Setting Mirror ImageThe mirror imagecan beapplied to each axisbyon/off operation in theSettingscreenor by turningon/off an external input signal (PC -*ÿNC).(Note)Whetherabsolute/incremental programming is used, the mirrorimage is applied takingas the mirror pointthe coordinate valuewhen it i...

  • Page 241

    (4)CautionsOn/off switching ofmirror image is made effective in thenextbuffering blockon.Position display indicates thecoordinate valueafter the settingmirror image is applied.When theprogrammable mirror image and settingmirror imageareapplied, the former works first, and then, the latter.The fol...

  • Page 242

    (5 )Associated parametersNo.3406, #1=0Mirror image processing is performed beforescaling andcoordinate rotation.Mirror image processing is performedafterscaling andcoordinate rotation.Formirror image, coordinate rotation, axisswitching , etc.,with the middle point (G28, G30) being specifiedwithan...

  • Page 243

    13.3Scaling (G50, G51)This commandallows you to enlarge/reduce the profile givenby themachiningprogram at the specified scale factor.(1)G codeG50 : Scaling cancelG51 : Scaling ON(2)CommandformatG51XaYb ZC... [ P_] ;] is omissibleThis commandcauses themove commands after the nextblocktoenlarge/red...

  • Page 244

    Profile of Machining ProgramProfile after ScalingX---T-'\*-f40.IScaling Center: (50, 40)Magnification Factor: 0.5,o-f4.50.(6)Cautions(a)Scaling is notapplied tothe offset amountsfor tooldiameter compensation, tool length compensation and tooloffset.Specify theG51 command in the independentblock.O...

  • Page 245

    (7)Associated parametersNo.3405, #1=0Scaling factorincrement0.001-foldScaling factorincrement0.00001-foldDisables the scalingfactor of each axisEnables the scalingfactor of each axisDisables scaling of each axis.Enables scaling ofeach axis.Scaling factor when Pis omitted in the blockcontaining G5...

  • Page 246

    13.4Coordinate Ratation (G68, G69)This commandcan rotatethe profile specified by the machiningprogramby the specified angle.There are the following twokindsof coordinate rotation.(a)When assuming thecenter of rotationas the work coordinatesystemzero pointType A(b)Whenspecifying thecenter of rotat...

  • Page 247

    ( 2 )CommandformatG6Ra0R(Coordinate rotation Type B)Withthis command,shift command for thenext blockon is madeinto•.. ;a formatas having been turned by the angle assigned with Rcenteringaround (a_ 0 _ ) position.a10 are specified in absolute valuesfor thetwo axes on theplane assinged byG17/G18/...

  • Page 248

    (3)Sample programG17G54G90GOOXOYO;G68X30. Y20. R45. ;G68 ;N1GOlG90X30. Y20. F200;N2G91 X60. ;N3Y30. ;N4X-60. ;N5Y-30. ;G69X-30. Y-20. ;Coordinate rotation TypeB ONCoordinate rotation Type A ONCoordinate rotation cancelYProgrammed Profile Rotated byType Aafter Rotated by TypeBr"ii/\Programmed...

  • Page 249

    (5)When specifying repeatedlyBy setting theparameters, youcan registeroneprogram as asubprogram and call that program, changingthe angle.G17 G54 G90 GOO XO YO;G68 XO YO RO;M98 P100;M98 P200 L3 ;GOO G90 XO YO;Programmed Profileafter Coordinate RotationG69 ;//0100;G90 G01 G42 XO Y-10.D10;—(1)-(2)...

  • Page 250

    ( 7 )Associated parametersNo. 3405,#0=0Thecoordinate rotation angle is always ofabsolute programming.The coordinate rotation angledependsonG90/G91.The input increment of the coordinate rotationangleis 0.001 degree.The input increment of thecoordinate rotationangle is0.00001 degree.With "G68;...

  • Page 251

    13.5Optional Angle Chamfering/Corner R (, C, R)Chamferingorcorner Rcan be inserted by specifying:,C" or ",R" inlinear interpolationor circular interpolation.(1)Commandformat(a)Optional angle chamferingG01G 02G0 3-. c _;/•u-fc. End Point ofSpecified Block(b)Optional anglecorner RG...

  • Page 252

    (b)Optional anglecorner RG17G5AG90GOOXOYO ;N1G03X30. Y50. R50., R20. F200;N2G01X90. ;Y'End Point ofN1 BlockH2R20.N 1(5)Cautions(a)Ifthe planeis switched by specifyingplane selection(G17, G18, G19).(b)A single block stop results in the end pointof the newlyinsertedblock for chamferingcorner R.Anal...

  • Page 253

    (6)Associated parameters(7)Associated alarmsNO.124Theoriginal specifiedrange is exceededinoptional angle chamfering/corner R.,C/,R command valueis in minus.Both ,Cand ,Rexist inone block.Current block isnot G01~ G03.Noaxis shift takes place inside plane ofcurrentblock.ErroneousG codeexists incurr...

  • Page 254

    1

  • Page 255

    14.1Skip Function (G31)Linear interpolationis performed bya G31 command.If an external skipsignal is input during linear interpolation, the program proceeds tothenextblock, stopping theaxes anddiscarding the remaining stroke.(1)CommandformatG31XYZ... F(2)Sample programN1G91G31X100. F200 ;N2X50. Y...

  • Page 256

    (4)Associated parametersf(5)Associated alarms14

  • Page 257

    I14.2Automatic Measurement of Tool Length (G37)Coordinates ata measuring pointspecified by G37 is comparedwiththose obtainedin actualmeasurementtouse its differenceas the wearcorrection ofa tool currently used.(1) Command FormatIf Zaxis is the measuring axis:G37Z_[ F_ ] ;omission,see Parameter No...

  • Page 258

    Corrective calculation :Coordinate valuesof the estimated measuring pointandthe actual measuring pointare compared , whosedifference is then substitutedas the newwearcorrective value.(3 )Cautions(a) Command axis isone of threebasicaxes.(b) Commandis available onlyinan absolute value.(c) With H co...

  • Page 259

    14.3Safety Guard (Tool Length)Thisfunctionmeasures the toollength of the tool usedfor themachining program in the AUTOmode.(1)Operation method(DPerform zero pointreturn.© Attach a touch probeto the spindle anda reference blockto thetable.© Measurethereference block position.(Omissible if having...

  • Page 260

    (3)Sample program00001 ;N1G54G90GOOXOYO ;N2G30G91XOYOZO ;N3T01M06 ;N4GOOG90X100. Y100.;N5G43Z-100.HI ;N6M98P2 ;N7T02 ;N8G30G91XOYOZO;N9HO 6;N10GOOG90X200. Y200. ;NilG43Z-100.H2 ;N12M98P2 ;N13M30 ;ExecutesT01 andM06.Measures theHI tool length.ExecutesT02.i:Measures theH2 tool length.Clears the dat...

  • Page 261

    (4) Descriptionof Measuring OperationTool lengthmeasurement© The Xand Yaxes moveto tehreferenceblock positionat rapidtraverse rate.Bring the Zaxis closeto thereferenceblock bythe manual pulse generator orjog feed.(Oprate just in theautomatic mode.)Apply the Zaxisto thereference blockby the manua...

  • Page 262

    (6 )ParametersReferto 14-4 Safety Guard (Comparison).( 7 )AlarmsNo.213[#001][#002]Safety guard tool length operationerror"Tool length" button has been pushedexcept inreset state.After tool lengthmeasurement is started,priortoresetting (MO2, M30, Reset key, %) being applied, "toolle...

  • Page 263

    14.4Safety Guard (Comparison)This function executes the machiningprogram in the AUTO modewith theX and Yaxes moving andthe Zaxis machine-locked , measures theworkpiece profile (Z-axis direction) inan optional Z-axis positioningblock, andchecks foran interference with workpiece.(1)Operationmethod...

  • Page 264

    (2)Sampleprogram00001;N 1G5 4G9 0GOOXOYO;N 2G30G9 1XOYOZO;N 3TO 1 MO6;N 4GOOG9 0X1 00.YIOO.N 5 G43Z-IOO.HI;N 6M98 P 2;N 7TO 2;N 8G3 0G9 1 XOYOZON 9MO6;N 1 0GOOG9 0X200.Y200.NilG43Z-IOO.H 2;N 1 2M98P 2;N 1 3M3 0;ComparisonComparisonClears the dataon thescreen.%00002;N 1 0 0G01 G91X10.F 2 0 0;N 1 0...

  • Page 265

    (3)ComparisonmovementsTouch Sensor©*© IPosition when theprogram is actuallyexecutedComparison does notresult inan error(not interfering)jlpcjlb-@w-U-JLri-iT-'1 1Comparison resultsin anerror(interfering)(Workpiece)(J)Bringthe Zaxis close to the workpiece by themanual pulsegeneratoror jogfeed.QE)...

  • Page 266

    ( 4 )ParametersNo. 6243,#0=0Compares onlyfirstGOO Zxx coming aftera Tcommand.Comparesall GOO Zxx.Themeasurement position Zof comparison is thedifference between a command value anda measuredvalue.Themeasurement position Zof comparisonis theworkcoordinates of the touch position.Dosenot positionto ...

  • Page 267

    (6 )CautionsCDOperate safety guardcomparison with the SINGLE BLOCK switch turnedoff.©Besure to performzero pointreturn after operating safetyguardcomparison.(S)Perform operation with machine-lock OFF.@Performverification as holding Automode.(DCollation does not accommodatethe program using the s...

  • Page 268

    T.- •;:W,~--r£-•V:‘•.:*V::-

  • Page 269

    15.1Data Setting (G10)15.1.1Tooloffsetamount settingThe tooloffsetamountcan beset bya program command.(1)CommandformatG10L10P_ R_; Setsthe toollength profile offsetamount.G10LllP_R_; Tool lengthwear offsetamount settingG10L12P_R_; Setsthe tool diameter profile offset amount.G10L13P_ R_; Tool leng...

  • Page 270

    G10L21P_X_Y_Z_... R_; Setsthecommon zero pointshiftamount.where ;PO- P5 : Common zero point shiftamount numberX, Y,Z...: Commonzero pointshiftamount of each axis: Lengthof attachment (effective onlyfor P5)R( 2 )Cautins(a) The following commandsare also possible.G10L2P_X_Y_Z_... R__; SetsG54- G59....

  • Page 271

    15.2Programmable Parameter Input (G10)The parametersofthe NCunit can be input bya programcommand.(1)Command formatG10L50 ;NPRProgrammable parameterinput ONProgrammableparameter input mode;Programmable parameter inputOFFParameter numberAxis number (1ÿ8: For axis typeparameter)Gil ;where;N;pRParam...

  • Page 272

    ( 3 )Associated alarmsG10 command hasanerror.Parameter No.error (N)Parameter axis No.error (P)Parameter bit No.error (Q)Parameter set valueerror (R)Unnecessarycommand exists.Unwritable parameter has been specified.No. 100(#011)(#012)(#013)(#014)(#015)(#016)15-4

  • Page 273

    15.3Plotting ParameterSettingIt is possibleto set plotting parameters by the G10 command.(1)Command FormatG10 L80 PO ;Plottingscreen clearG10 L80 PI R_;R0:XYZR3: ZXR6:XZPlotting plane selectR1:XYR4:YXR7:XZYR2:YZR5:ZYR8:XYXZG10 L80 P2 RR_:Horizontal rotation angle(deg)Q_:ertical rotation angle(deg...

  • Page 274

  • Page 275

    16.1 Soft OT (Stored StrokeLimit 1)Each axis hasthe outside strokedisabledarea set by soft.enters theset disabled area, distribution stops incase ofautomaticoperation, and amove in thedisabled direction stops incase oftheJOGor HANDLE mode.Ifthe axis2nd Axis/Disabled Area/////- + Directional Coord...

  • Page 276

    ( 4 )Associated parametersNo. 1320+directional coordinate valueof thestroke limit1 ofeachaxis- directional coordinate valueof the strokelimit1 of eachaxisDuringa period from supplyof power to manualreference point recovery;Soft OT checking is performed.Soft OT checking isnot performed.When therei...

  • Page 277

    16.2Stored StrokeLimits 2 and3 (G22 and G23)The prohibitedarea of stored strokelimit 2 can bespecified by theG22 command.With inputfrom thesetpage, stored strokelimit2/ 3 disabledareascan beset.Upon entering the specified prohibited area, distribution is stopped intheautomatic operation mode andm...

  • Page 278

    (b) Settingof Stored StrokeLimit 2G22X_Y__Z_I_J__K_;X:Plus-side boundaryof XaxisY:Plus-side boundaryof YaxisZ:Plus-side boundaryof ZaxisI:Minus-side boundaryof XaxisJ :Minus-side boundary of YaxisK :Minus-side boundaryof ZaxisInside or outside oftheset boundaryis thedisabled area.Whetherit is to ...

  • Page 279

    (5) Cautions(a) The coordinate values of stored strokelimits at each axis is in thepositionof the machins coordinate system.(b) Storedstrokelimits 2 and3are effective onlyforaxes that havecompletely been returnedto thereference point.(c) Thedistance required for theaxisto stop after entering thep...

  • Page 280

    16,3Soft-OT before MoveInauto operation, when the endcoordinate ofa blockto be executedhas entered the set disabled area, distribution is stoppedwith analarmindication.In manual operation,it will beinvalidated.2nd Axis/yf pE°/idnt/DisabledArea////If the end point of theblocktobeexecuted is withi...

  • Page 281

    (4) Associated parametersNo.1301,#2=0G31 blockis subjectto checking.G31 block is not to checking.Thesoft stroke limit beforemove isinvalidated.Thesoft stroke limit beforemove is validated.= 1No. 1301,#7=0= 1(5) Associated alarmsNo. F510Bythe strokecheck before move, the axis wasfound in the disab...

  • Page 282

  • Page 283

    17.1 RotaryAxis Controlling FunctionItis possibleto specifytorotate the rotary table by settingparameters.(1) CommandFormat(a) If Incremental CommandThe command valuebecomes the movingamount.; Rotates720. degin the positive direction (CCW).A-720. ? Rotates720. degin thenegative direction (CW).(b)...

  • Page 284

    (3) Exampleof Program of Type BG90AO ;A390. ;Moves to the position of 0 degree.Movesto the position of 30 degrees by rotating 30degreesin the poaitive direction.Movesto the position of300 degrees byrotating90degreesin the negative direction.Moves to the position of315 degrees byrotating 15degrees...

  • Page 285

    (5) Associated ParametersNo. 1012,#0=0TypeA foreachaxis' rotary axis controlType Bfor eachaxis' rotary axis controlRotaryaxis controlof each axis follows No.1012,1No. 1012,#1=0#0.Rotaryaxis controlof each axis follows TypeC.Axis (linear axis) requiringinch-metric switchingAxis (rotary axis)not re...

  • Page 286

    17.2Oscillation Function (G113, G114)With this command,one of the referenceaxes X,Y andZ in otherthanthe planespecified with G17,G18 or G19 (plane selection) canbereciprocatedover the width specified asynchronously.(1)The reciprocating axes are as follows :Oscillation AxisZ axisincase of Xp -Yp p...

  • Page 287

    (3)Sample programSpecifies theoscillation axis.Turnson theoscillation function.N1G17 ;N2G90 GOO XOYOZ100. ?•N3 G113 U-4. V30. E1000 ?N4G01 X100.F200 ;Inthe osillation mode(Z axis reciprocating)Cancels theosillation functionN5 Gil 4 ;@ End point--- % Start point (N2)U-40.i \% Topdead%center>...

  • Page 288

    (k) G113 command operatesas followsaccordingto U,Vcommand marksandparameter setting :Parameter No. 8656,#0=0Vmarkis ignored(Absolute value recovered.)Parameter No. 8656,#0=1V command mark used.(Mil interchangeable)V(+) commandV(-) commandV(+ ) commandV(-) commandSameas left.'A' -A--A"A"...

  • Page 289

    (n) To carry out oscillation in machine-lockedstate, donot rewrite theIf machine-lock is turnedON/OFF inrelative coordinate system.Oscillation mode, alarmstarts.(5) Associated ParametersNo. 8656,#0The second operationof oscillationaxis:makesreturn byamount equal to Vabsolute value.shiftsin Vmark ...

  • Page 290

    17.3NormalDirection Control (G411, G421, G401)With the G411or G421 command,the rotary axis (C-axis) is alwayscontrolledin the normal direction during cuttingwith respectto X-orY-axis contouring.(1) G-codeG411G421G401(2) Command formatG411Normal direction controlleft ONNormaldirection controlright...

  • Page 291

    (5) Sample programG54 G90 GOOX20. Y20.F421;N1G01G90 X100. F500 ;N2 GO 2 Y70. R25. ;N3 G01 X20. ;N4Y20. ;G401 ;;\b-z*iy(\iX(6) Cautions(a) In thenormal direction control mode, the rotary axis (C-axis)always takesa shortcutmovement whichformsan angle of180° or less.(b) In the normal direction cont...

  • Page 292

  • Page 293

    18.1Multibuffer (G251)In normal automatic operation,one block is preread.however,prereadsup to14 blocks.This function makes it possible toavoid a stop time between theblockswhen executingthe program havingvery small continuous blocks.This command,(1)Command formatG251PO ;orG251 ;G251PI ;Multibuff...

  • Page 294

    (4)Associated parametersNo. 3402,#6=0Multibuffer mode OFF at power-on and resettimeMultibuffer modeON at power-on andresettimei1(5)Associated alarmsNo.130(#001)The command inthe block hasan error.G25/command isnot foran independent block.18-2

  • Page 295

    18.2Feed Rate Clamp by Circular ArcRadiusWhenhigh-speed cutting in circular arcinterpolation,occurs in theactual path toward thecircular arc centerfor thespecified path.it.This function automatically converts thefeed rateaccording tothespecified circular arcradius tocontrol theerror duetoservofol...

  • Page 296

    18.3PRECONTROLLINGThis functionserves to attain high-speed high-precision working.Throughuse ofthis function, delay in acceleration/deceleration aswellas delayin servo systemcan be controlled.This enables a toolto correctly follow the command value,thusreducing resultanterror in machined shape.(1...

  • Page 297

    18.3.1PRE-INTERPOLATION LINEARACCELERATION/DECELERATIONConcerning cutting feed command,linear acceleration/deceleration canbeappliedto the pre-interpolation speedor command speed.This canserve to eliminateerror in machined shape caused by delayinacceleration/deceleration. Further, time required f...

  • Page 298

    18.3.2AUTO CORNER DECELERATIONThis function serves to automatically control the feed rate forcorner machining accaordingtocorner angle between machined blocksandthe speeddifference betweenaxes.(1) EffectiveConditionsThis is madeeffective in G64 mode(Cutting mode) andin Ablockwhichinvolves a cutti...

  • Page 299

    (3 ) Associated ParametersNor. 1602, #4Autocorner deceleration function is:control byanglecontrol by speeddifferenceAcceleration/deceleration forautocornerdeceleration by angleCriteria speedto performcorner deceleration byangleAllowable speeddifference ofcorner decelerationby speeddifference (all...

  • Page 300

    18.4HIGH PRECISION PROFILECONTROLAmongmachining errors,one which is caused by CNCis machiningerrorbyacceleration/deceleration after interpolation.Toeliminate thiserror, the function mentioned below hasbeen realizedat high speedofRISC processors.(D Pre-interpolationacceleration/deceleration functi...

  • Page 301

    (4) Restricted Items(a) Mode Applicable for CommandThe modal command valueto specifyGOB P10000 hasto beas follows:G01~ G03Linear/arc interpolationFeed per minuteTooldiameter compensation cancelCanned cycle cancelScaling cancelCutting modeMacromodal calling cancelProgrammablemirror image cancelCoo...

  • Page 302

    18.5 Smooth InterpolationBasedon the program command,this function determines whether theprofile requires accuracy like acorneror smoothness becauseof itslargecurvature radius, and;•Machines the profileas programmedif accuracy likea corner isrequired,or•Generatesa smoothcurve from the specifi...

  • Page 303

    (5) Sample programGO5P10000G91 ;G05.1 Q2XOYO ZO ;N01GOl XIOOO Z-300 ;N02XIOOOZ-200 ;NO3XIOOOZ-50 ?N04XIOOOZ50 ;N05XIOOOZ50 ;N06XIOOOZ-25 ;NO7XIOOOZ-175 ;NO8XIOOOZ-350 ;N09YlOOO ?NIOX-IOOOZ350 ;NilX-IOOOZ175 ;N12X-IOOOZ25 ;N13X-IOOOZ50 ;N14X-IOOOZ50 ;N15X-IOOOZ50 ;N16X-IOOOZ200 ;N17X-IOOOZ300 ;G05...

  • Page 304

    18.6 NURBS InterpolationThis function allows a NURBScurve representationformat to be directlyspecifiedto the CNC unit.Createa NURBScurve witha toolholder lengthor tool offset suchastooldiameter added through the CAMfor the NURBS representation outputfrom the CAD,and specify 3 parametersto define ...

  • Page 305

    5116SPL: ErrorThere isa programerror in the preread block.The knotsarenot increasing monotonously.An acceptable mode has been specified during the NURBSinterpolation mode.SPL:ErrorThe 1st NURBScontrol point hasanerror.5117(4) Sample programGO5P10000;G90;:G06.2KO. XO. ZO. ;KO.X300. Z100. ;KO. X700...

  • Page 306

    18.7 SHGMachiningParameterssuitableto machiningaccuracycan be selectedin high-speed,high-accuracy machining.(1)Advancedcontrol mode ONGO8PIQ_GO8PO;?Advanced control mode OFF;High-accuracycontour control mode ONHigh-accuracycontour control mode OFFGO5P10000Q__GO5POQ_: Machining modeselection numbe...

  • Page 307

    20.1ProgramRestartThe program can be restarted from the given block byspecifying thesequence number and the numberof repeats.There aretwo types of blockrestart ; Pand Qtypes.P type : When the toolis brokenQtype : Whenthe power is turned downWiththis function used, machiningcan be restartedfrom th...

  • Page 308

    (2) Qtype (When restarting machining later in the following cases)(a) When thepower is turned down.(b) When the EMERGENCYSTOP switch is pressed(c) Whenthecoordinates are altered after interrupting automaticoperation.•WhenG92 is givenfrom MDI*Whenthecoordinatesystem is shifted•Whentheautomatic...

  • Page 309

    (DPressing the© Whenthe search is completed, the valuesat [RESTART DATA] disappear.© Turnoff theSEARCHkeystarts a search.switch of the machine operation panel.® When you lookat thescreen andthereare the M, S,T and B codes youProgramRestartwant to output, select the MDI mode andoutput the M,S, ...

  • Page 310

    (5)Program/Block Restart screen,. Indicates the machiningrestart position.... Indicates the distance from thecurrenttool position tothe machiningrestartposition... Displays the H codes specified in therecent•v32 t ime s... Indicates thetool numberof the toolsetin the spindle... Indicates thetoo...

  • Page 311

    (vi)Whenthe coordinate systemis set,alteredor shifted aftercompletinga search.Note thatnone of the abovecases results in an alarm.(e)Analarm results when the sequence number cannotbe collated.(7)Associated parametersNo.8703Order oftheaxes which are moved by dryrun in restarting the program.(8)Ass...

  • Page 312

    20.2Block RestartWhena trouble such as tool breakage takes placeduring machining andautomatic operation is interrupted, you can manually relieve the toolfrom a machiningbreak point, changes the tools, alter the tooloffsetamount,move the tool tothestart pointor halfway point ofthe inter¬ruptedblo...

  • Page 313

    (h)PressACTIVATE ] withBLOCK RESTART1(i)Turnoff | BLOCK RESTART | after automatic runis restarted.on. .Thereare the following twotypes of block restart :(a)When the ) BLOCK RESTARTj switch is pressedin themanualmode, thestartpoint of theinterrupt blockiscalculated.(b)When the[~CYCLE START | switc...

  • Page 314

    (b)During the canned cycle (G73, G74, G76, G81 v G89)Q___.Thestart point is alwaysanewlycalculated R point.Initial PointNewly CalculatedR PointR Point--0 “xI*l*1Start PointIMachiningBreak Point “*Z Point(Note)With anarc command in the tool diameteroffset mode,when thestart pointof the interru...

  • Page 315

    (2)When the | CYCLE START1 switchis pressedin the automatic modewith the | BLOCK RESTART1 switch turnedon.•[Operation method](a)Atroublesuch as tool breakage occurred.(b)Operatein thesame manneras when the BLOCK RETURN switchispressed in the manual mode mentioned in (1) above,or operateasfollow...

  • Page 316

    (b)During the canned cycle (G73, G74, G76,G81 n. G89)x Retract PositionAutomatic operationrestarts againfrom thecurrent toolpositiontoward the newlycalculated R point.Initial PointlINewly Calculated R Point--—-R Point-<S'< BreakPointiZ Point[End pointofthe interrupted block]The end pointo...

  • Page 317

    (f)When the portionfrom the R pointto the machining break point (arearangingfrom themovement (3) through(5) ) is covered by dividingit into50 timesor more during the canned cycle (G73, G74, G76,G81 vG89), an alarm results.20.3Machining BreakPoint Return (G206)When the tool isbroken during machini...

  • Page 318

    (2)Operational procedure©(This function isAtrouble suchas tool breakage occurred.disabled by pressing theRESET switch.)© Press the j RETRACT | switch of the machine operation panelwhile automatic operation is being started, stoppedor suspended.Execution ofthe block is interrupted and the toolmo...

  • Page 319

    (3)Cautions(a)During the canned cycle (G73, G74, G76, G81G89) mode, all theretract positionsare theR point in -the section between themovements(3) and(3) (single block disabled).againfrom theR point.However, machining break point return isdisabled in the movements(3) through (5) ofG74/G84/G87.A r...

  • Page 320

    20.4Reverse MovementIf the1 RETRACE | switch is turned on during automaticoperation,thetoolcan bemoved backward from the end point of theexecuted blockalong thetool path where ithas passed.Ifthe1 RET RACE| switch is turned off, the toolcan bemoved alongtheoriginal tool path fromthecend point ofth...

  • Page 321

    (b)Whenautomatic operation isbeing suspended0 Pressthe1 FEED HOLDswitch ofthe machine operation panel.Automatic operationis suspended.Turn on the|RETRACE"] switch.RETRACE-] lamp of the machine operation panel isilluminated andisadded to REVERSEon the Program/BlockRestartscreen.0The0CYCLESTAR...

  • Page 322

    (b)Duringthereverse mode, the M, S, T and B codes are outputfrom the NC unittothe machine.(c)The tool can move along the tool path inthe backward directionat thespeedsetwith the parameter.(d)Anyblocks containing the following commands cannotmove back¬ward during thereverse mode.(e)The numberof b...

  • Page 323

    (3)Associated parametersSequencenumberfor sequence number comparisonand stopNo. 347420- 17i

  • Page 324

    20.6Reset (Reset Associated with Automatic Operation)Pressing the RESETswitch resets the NC unit.The NC does thefollowing.(a)Deletes thepreread buffer and execution buffer.Initializes the G command.Cancelstool length compensation and tool diameter compensation(does notperform offset operation).Er...

  • Page 325

    (b)The numerical values ofthe addresses 0,.N,M and B2 areheld.(c)Thenumerical valuesof the addresses H, S,T and Ffollowthe parameterNo. 2402,#7.(4)Tooldiameter compensationand3-D tooloffset are cancelled(no offset is performed).(5)Tool length compensationfollows the parameterNo. 6000,#5.(6)Associ...

  • Page 326

  • Page 327

    21. MANUAL OPERATION21.1ManualAbsoluteON/OFFIf manual absolute is turned on, the stroke by manual operation isadded tothe program coordinate value (work coordinate, machinecoordinate,relative coordinate), and the then manual interventionamountisgenerally processedat next block execution time.If m...

  • Page 328

    (b)When theFEED HOLD switch is pressed duringexecutionof theN2 block, andtheCYCLE START switch is pressed againafter makingmanual operation intervene tomove theY axisby+80.(250.. 180.)(400. .200.)\(300.. 150.)0ÿ(250.. 125.)(200..100.)(2)When the X and Yaxes are moved by intervention of manualope...

  • Page 329

    23. CUSTOM MACROS23.1OutlineA pattern,which is repeatedly used in theprogram, is registered in theThat registered subprogramcan becalled with a representative instruction and executed.instruction isreferred toasa subprogramcall command.memory as a subprogram in advance.This representativeMainProg...

  • Page 330

    JEParentChild23.2Call Commands and ReturnCommandThe followingtable shows theprogram call andreturn commands.Call/ReturnCode UsedNo.Subprogram callMacro simple callMacro modalcallArbitrary Gcode callM codemacro callM code subprogram callT code subprogramcallScode subprogram call2nd miscellaneousfu...

  • Page 331

    (2)Macro simplecallM65PL< argument >;This command calls theprogram whose program numberwas specifiedIf L isomitted, theprogram iswithP andexecutes itL times.The argumentcan be specifiedSpecifyG65 before all theaddress other than 0 andN.Multiplicityof local variables increases byone.Multipli...

  • Page 332

    ParameterGCode Calling090 1090 119 0129 0139 0 149 0 1590 169 0 179 0 189 0 19PRA 6 03 060 3 16 0 3260 3 36 0 3 46 0 3 56 0 3 66 0 3 76 0 3 86 0 3 9When parameter setting is 0, arbitrary Gcode call is notdone.That is, the macro cannotbe called withGO.When parametersetting is a positive number, si...

  • Page 333

    (6)Subprogramcall byM codeMxx ;No argumentcan be specified.In this case,any 9 sets of M codescan be set in the parametersoutofM01 throughM999999.The MF and M codesare notsent out.This command can call the subprogram.ParameterG Code Calling0900 19 00 2900 39 0049 0 059 0 0 69 0 0 790 0 89 0 0 9P R...

  • Page 334

    (8)Subprogram call bythe S codeSxx;This command calls the program 09029as the subprogram.TheS codebecomes the argumentofthecommon variable#147.Other arguments thanthe abovecannot be specified.SF andS codes are not sent out.I:VhParameter70P RA 6 00 0SCSSCS= 0 : Does notcall thesubprogram by the Sc...

  • Page 335

    (10)Return from theprogramM99 ;Thiscommand causes you toreturn from the currently executedsubprogramor macroprogram tothe parentprogram.When thesame blockasM99 contains theaddress other than0,N,P and L, the machine stopsatthat block (single blockstop); otherwise, itdoes notstop.WhenM99 ; is speci...

  • Page 336

    23.2.2Multi-call(1)MultiplicityThecustom macrocan be called up to the quadruple level.Thesubprogramcan becalled up totheoctuple level in combinationwith the multiplicityof thecustommacro.!(2)Modal multi-callWhenmodalmacros are multiply specified, the nextmacro is calledevery time amacro move comm...

  • Page 337

    (3)Macro multiplicity and localvariableIf themacro is called,macro multiplicity (level) increases byThe local variable level also increases by one,accompanyingone.it.Macro(Level 2)Main Program(Level 0)Macro(Level 1)02000 ;G65P400004000 ;G65P2000<argument>;<argument>;M99 ;M99 ;LocalVar...

  • Page 338

    (4)Modal call and local variable successionThe local variable ofthe macro called by modal call issucceededto duringthat modalcall mode.LocalVariableParent ProgramLocal VariableChild Program#1=0G66P1 000A1. 0 ;111= 0Argumenttransfer1111= 0O 1 0 0 0 ;in= 0_rZ 1 0 00 ;#1=#1 + 1 ;M 9 9 ;111= 2:111 = ...

  • Page 339

    (5)When makingthe specialcall multiplyArbitrary Gcode call,M codemacro call, M code subprogram call,T code subprogram call,Scode subprogram call, and 2ndmiscel¬laneous function code subprogram callare referred tospecialcalls.Identical special call cannotbe made multiply.arbitrary Gcode call is s...

  • Page 340

    ;I.ilParameteri:70!PR A6 01 2Arbitrary G Codemacro CallIPR A 6 01 3M CodeMacro CallP R A 6 01 4M CodeSubprogram CallP R A 6 01 5T Code Subprogram CallP R A 6 01 6S CodeSubprogram Call2nd Miscellaneous FunctionCodesubprogram CallP R A6 01 7IIn GCodeMacroIn M CodeMacro;InM Code SubprogramInT Code s...

  • Page 341

    23.2.3Argument DesignationArgument designation means to assign a realnumber to thelocal variableused in thecustom macro.There are two types of argument designation;TypeI and Type II.Bothcan be used freely.(1)Argument designationICorrespondingVariableAddress#1A#2B#3C#4I#5J#6K#7D#8E#9F# 1 1# 1 3# 1...

  • Page 342

    i:(2)Argument designation IICorrespondingVariableAddress# 1#2AB#3CTT4#5TT6#7#8#9I 1J.K,I 2J?Ks# 1 0#1 1# 1 2# 1 3# 1 4# 1 5# 1 6# 1 7# 1 8# 1 9#20# 2 1#22#23#24#2 5#26#27#28#29#30#3 1#3 2#3 3I 3J3K3I 4JiK.I 5JsKsI 6J6Ke1 1J 7KTI 8JsKsI 9JsKsI I 0J I 0K iB- 14

  • Page 343

    (3)Argument's decimal pointpositionIn argument designation, signs anda decimal pointcan be used fortheaddresses where theyare not allowed originally.<Example >G65PIH-2.0M-9.6 ;The followingtable shows the decimal point positionswhen thedecimal pointis omitted.AddressDescriptionA, B, C,U, V,...

  • Page 344

    Subtable b.Metric(G21)Inch(G20)Inverse time(G93)33Feed per minute(G94)MM1= 00MR1= 11*IM2= 01IM2= 12Feed perrevolution(G95)MR3= 02MR3= 13IR4= 03IR4= 14Thread cutting(G33)MS6= 05MS6= 16IS7= 06IS7= 17•0 when the parameterF61 is"1".•All are"0" incase of pocket calculator typed...

  • Page 345

    (4) Cautionsa. ArgumentAssignment I and IIcan be usedas combined.variable has beenargument assigned bymore than twice, theoneassigned lastis made valid.b. Forboth ArgumentAssignment I and II,assign Addresses I,J,and Konlyin alphabetical order.c. For thecustommacro call command,assigna call code p...

  • Page 346

    23.3VariablesWitha variable specifiedto a certain address within themacro programinstead of directly givinga numerical value to it, when this variable iscalled during execution,a variable valuecan be taken out to beas anThereare local variables, common variables and systemvariables, andtheiruses ...

  • Page 347

    The 32-point input signalscan be read atone time by reading#1032 v#1035SystemVariable'PointsInterfaceInput SignalUI 00OMJ 103 1UI 1 0 0—UI 131UI 200-UI 231UI 3 0 0-U13 3 1£10 3 2#1033#1034#103 53 232323233#10321 { 1 00 O-T- i } * 2‘-# 1 03 1 * 2 3 1i•333#Cl032-rrO=X { 2' * V i } -23,*V3 i;...

  • Page 348

    The 32-point input signalscan be sent all atone time by substituting thevalues for#1132 through#1135.SystemVariablePointsInterface Input Signal#1132#1133#1134#113532UOO 0O—UO 03 13 2UO 1 00--UO13132U0200-U02313 2i U0 3 00-U03 3 130# 1 1 32 Z { 1 1 0 0 -5-i } *2:—#1131*23i; .333#Cl 132+ n) =X ...

  • Page 349

    © Alarm (#3000)Whena conditionoccurs in theprogram, which you want to be an alarm,the systemcan be placed inthealarm state.#3000 = n (<alarm message>); (nS4095)This command specifiesthe alarm message(up to32 characters) enclosedby thealarmnumber n and "(", ")".For the a...

  • Page 350

    (?)Feed hold, feed rate override,exact stopcheckenabled/disabled (# 3004)The following controlscan be provided by substituting the values shownin the table below for#3004.#3004FeedHoldFeedRate OverrideExact StopCheckEnabledEnabled0EnabledDisabled1EnabledEnabledEnabled2DisabledEnabledDisabled3Disa...

  • Page 351

    (9)Operationalcondition information (#3010)By reading #3010, the then operational condition can be known.Each condition correspondsper bit atthe timeof binarydisplay.76543210#3007Single blockProgram restartDry runMiscellaneous function lockMachine lockSafety guardDisabled (0)/enabled (1) is indic...

  • Page 352

    ©Modalinformation (#4001 * # 4120,#4201 v #4330)By reading the values of#4001#4120, the modalcommands specifiedsofar (up tothe preceding block)can be known.By reading the valuesof#4201 v#4320, the modal commands in theblockbeing executedcan be known.The unitat the timeof giving the command is as...

  • Page 353

    ©Position information (#5001 v#5108)Various positioninformation can be known by readingthe values of#5001through#5108.The unit at the time of giving the command isassumed.SystemVariableRead inMovePositionInformation#5001#5002#5003lst-axisblock final position2nd-axisblock final position3rd-axis b...

  • Page 354

    ©Workoffset amount (# 5200 vII5328)Theoffset amount can beknown by readingthe values ofII 5200 vII 5328,and itcan be altered bysubstituting thevalues for them.VariableCoordinateSystemControlledAxisNo.II5200#5201II5202Coordinate rotating angle1st axis workoffset2nd axis workoffsetExternaloffsetII...

  • Page 355

    Common workzero pointoffsetamount (#7220 'u#7328)Thecommon work zero pointoffset amountcan be known by reading thevaluesof#7220 'u#7328, anditcan be altered by substituting thevaluesfor them.©VariableNo.CoordinateSystemControlled Axis#7220# 7221#7222Coordinate rotation angle1st axisoffset2nd axi...

  • Page 356

    ©Additional workoffsetamountG540- G599 workoffset amountcan be known byreading the valuesof# 7400- 7998, and it can bealtered bysubstituting the valuesfrom them.VariableNo.CoordinateSystemControlled Axis#7400#7401#7402Coordinate rotation angle1st axisoffset2nd axisoffsetG540# 74188th axisoffsetC...

  • Page 357

    :©Life Management Information (#21001- #24999)It is possible toknow the toollife managementinformation byreading #21001~ #24999.information by substituting values.Itis also posibleto rewrite theVariableRemarksTool No.#21001#220020:Minute1:Time2: Length3: HoleSettingunit12:#21998#21999998999Setti...

  • Page 358

    © Axisnames (#3041to #3048)Eachaxisnamecan be learned by reading#3041 to #3048.SystemVariableDescriptionReturn Valueand Meaning#3041#3042#30431st axisname2ndaxisname3rd axisname88 : X67 : C89 : Y85 ;U90 : Z86 : V65 : A87 : W::8th axisname66 : B#3048© Axis numbers (#3061to #3069)Each axis number...

  • Page 359

    23.4Representation of VariablesThe variable is representedby thevariable number following"#" asfollows ;#i (i= 1,2, 3,#1,#2, it3)Or,it is represented by using the < expression >as follows ;it[< expression >]#[#100],#[#500+1],#[#20/2]In the following description,It ican be re...

  • Page 360

    i23.6Undefined Variables:#0 is always usedas a nullThe valueofan undefined variable isnull.variable.theundefined variableoccurs in the followingcases ;|1)Local variablefor whichno argument hasbeen designated in themacrocall command.2)Common variables#100 through#1XX when the power is turnedon.3)V...

  • Page 361

    23.7Expression and ComputationThe expressionrefers to a general numerical expression where constantsand variables are combined with operators,or simply numerical valuesorvariables.Inthe following description, theconstants may be usedinstead of#i and(1)Addition type computation#i +#j#i- #j#iOR#j#i...

  • Page 362

    (4)functionsSIN [ 0i]COS [ // i ]TAN [0i ]ASIN[0i]ACOS [0i]ATAN[0i]/[0 j]ABS [0i ]SQRT[0i]EXP [0i]LN [0 i ]ROUND [0i]FIX[0i]FUP [ 0i ]BIN [ 0i]BCD[0i]ADP [// i ]SPA[#i]SPB[#i](unit: degree)(unit: degree)(unit: degree)(unit: degree)Inverse cosine (unit: degree)Inverse tangent (unit: degree)Absolut...

  • Page 363

    (b) Functions dealingwith toollife managementIf the tool runs out of life under toollife management, theprogrammed toolnumber willnot match the actually used toolnumber.Inthat case, the actually calledor used toolnumbercan be learnedby using thesefunctions.® SPX [x]x: CallnumberWhen the toolis s...

  • Page 364

    (5)Combination of computationsComputations andfunctionscan be combined.Computations are givenpriority in the orderoffunction multiplication type, additiontype, and relative computations.#iEQ#j+#k*SIN [# 1 ]LJJ(6)Alteration of computationorder bysquare brackets ([])Usingsquare brackets,youcan encl...

  • Page 365

    23.9Branch CommandControl jumps tothe block having thesequence number"n" within thesame program by specifying"GOTO nThe < expression >can be used instead of"n".value ofthe < expression > is obtained and control jumpsto theblockhaving that valueas thesequence n...

  • Page 366

    23.10RepeatCommandDOm;(M= 1,2 or 3)ENDm ;iBy specifying as above, the blocks between DOmandENDmare repeatedlyThe followingspecialuses are alsoavailable.executed.(1)Conditional repeat(m= 1, 2 or 3)WHILE <expression >DOm;VENDm ;!By specifyingas above, the blocks between DOm andENDm arerepeate...

  • Page 367

    < Error-incurring programs >(a)D01 ;D01 ;END1 ;There is no correspondingDO(b)D01 ;END1 ;END1 ;*There is no corresponding DO.(c)D01 ;D02 ;END1;END 2 ;The loop cannotintersect.(d)D01 ;E100 ;END1;GOTO100 ;23.11NamingCommandPart ofthecommon variablescan be named within12 characters,respectively...

  • Page 368

    23.12IF Command(1) 1-line formatIF <expression >THENmacro commandThis commandallows a conditional branch.When the value ofthe< expression >is true (not 0), themacro command is executed, and whenthe value is false (0), nothing is done.Here, themacro command refersto the substitution co...

  • Page 369

    (2) BlockformatIF Expression 1>THEN ;©ELSEIF Expression 2>THEN ?©1ELSE;©ENDIF;Expression 1 rTruefalseExpression 2True:False©©©IContinuesto ENDIF onwardIf the valueof Expression 1>is true, theprogram will branch to theblocknext to ENDIFafter executing©.branchto thenext ELSEstatemen...

  • Page 370

    :i23.13External OutputCommandsItis possible to output messages and theNC's internal data totheexternalunit via theRS232C datainput interface.outif theexternal unit is a printer.(a) PRINT(b) BPRNT(c) DPRNT(d) POPEN(e) PCLOSTheyare printedSpecifyin the following order.©Open commandPOPENConnection ...

  • Page 371

    b)Specify the numberofdigits above thedecimal, point and thatbelow the decimal point of thenumeric to be output subsequently.to address p.Thespecification method: theunit digit of data Pis the number ofdigits below thedecimal point andits 10thdigit is that above thedecimal point.Data of the looth...

  • Page 372

    PRINTP43 D#0 ;If PRT= 0, outputas follows.c;signI;digits below thedecimal pointdigits above thedecimal pointLWhenthe <expression> overflows, outputfor the numberofsignificant digits.PRINT P53D#1 ;When#1 +overflow-f- ##5}C* *sign- digits below thedecimal point- digits above the decimal point...

  • Page 373

    PRINT P3 4(X= )D# 1 (Y= )D# 2 P25(Z= ) D # 3 ;#1= 738. 196451#2= -48,8#3= 338. 417m)© Parameter PRT= 0D8BDAOB733B82EB1 393635738.1965IX=59BD2DAOB4B82EB8303030-ÿ 48.8000Y=SABD2BAAAAA AAAAAAAAAAAOALF- +********z=© Parameter PRT= 1D8BDB733B82BB1393635738.1965X=59BD2DB42EB8303030-48.8000y=5ABD2BAA...

  • Page 374

    a)Asthe character, the specified characteris just output-following characters the specif icable.. Alphabet (A- Z). Numeric characters. Special characters (*,/, +, -)is outputin the space code, however.Theb)Specify the number ofsignificant lines below thedecimal pointsubsequentlyto thevariable com...

  • Page 375

    (4)Data command 3DPRNT[B#2[43] • • •]The numberof below decimal pointThe numberof abovedecimal pointvariable numbercharactersIn the DPRNT, output thevariable numberof each figure number, using ISO,EIA, ASCII code.Sameas the explanation in Item a), c), d) of theBPRNT.a)b)When outputting thev...

  • Page 376

    ©If parameterPRT=0, output a$follows.C3AOAOAOB239392E B739B2299.792C:C52DAOAOAOB1362E 30B230“ÿÿÿ16.020E4AAO30B2OALF02N©If parameterPRT=1, outputas follows.C32D39392EB737B2299.792LcC52DB1362E 30B230T-16.020F4A30-B20ALF02N(5)Close CommandPCLOSOutputs theDC4 control codefrom the NCside.(6)Res...

  • Page 377

    24.Interrupt TypeCustom MacroOtherprogram can be called byinputtingan interrupt signal (UNIT) fromthe machine sidewhile runninga program.<Applications>(1) Starting processingat toolerror detection, usingan externalsignal.(2) Allowing other machiningto interrupta series of machining withoutc...

  • Page 378

    24.2Howto Specify(1) Enabling conditionsa. Automatic operation, MDI, DNCmodeb. STL ONc. Custommacro interrupt operation is alreadyover(2) CommandformatM96Enables the interrupt signal (UINT) (Can beset with theparameter )Disables theinterrupt signal (UINT) (Can beset with theparameter )M97M96Pxxxx...

  • Page 379

    InterruptuStatus TriggerInterruptEdgeTriggerNoadditional interruptisnot generatedwhile running thecustommacrointerrupt program, butthat state is cancelledby reading M99.it is not cancelled untilan NCcommand is started immediatelyafter that.However ,24.5Reversionand ModalInformationToreturn fromth...

  • Page 380

    (4) The modalinformation in the block interrupted in #4201 to #4320 canbe read.(5)#4001 to #4120 continuesto hold the original program'sinformationuntilan NCstatement appears.Custom Macro Interruptand Custom MacroModal CallWhena read program is called,a custommacro modal callis temporarilyIf it i...

  • Page 381

    b. Type-EThe interruptprogram runs afterfinishingone block (one blockcreatedinside the NC unit).Afterthe interruptprogram is finished,the toolis positionedto the already calculatednext block.Ifanoffsetamount is altered, the toolwill beoffset.Tool RetractInterrupt 0N._---Tool ReturnOffset Amountbe...

  • Page 382

    b. Type-!After drilling is finished (at R-point return), the interruptprogramruns.After the interruptprogram is finished, the toolis positionedto the next drilling position.If an offset length is altered, thetool will beoffset.Tool Retract/Tool Return (New ToolLength)ReturnPositionInterrupt ON(3)...

  • Page 383

    (5) Specialcanned cycles(plane machining, pocket machining, etc.)a. Type-IWhenan interrupt takes place, the interruptprogram runs, cancellingAfterthe interruptprogram is finished, the toolispositionedto the scheduled endpoint position of the interruptedThe toolisnot offseteven ifan offsetamount i...

  • Page 384

    iI

  • Page 385

    25MEMORY OPERATION IN OTHER COMPANIES’ FORMATS25.1 MemoryOperation in FS15 FormatThe programs in theFANUC's Series 15 dataformatcan berun bysettingThe following commandscan beForthe other data formats,it isnecessary to complywith“1" in the parameterno. 3409' #7.operated.the £ 10M.(1) Op...

  • Page 386

    25.2Memory Operationin i80M FormatTheprograms in the YASUKAWAELECTRIC's Series i80 data formatcan berun by setting"1" in the parameterno. 3409' #6.The followingcommandscan be operated.Forthe other dataformats, it isnecessaryto complywith the £ 10M.(1) Operatable commands(a) Workcoordin...

x