Navigation

  • Page 1

    ME00-001-R1 P-(i)SAFETY PRECAUTIONSSAFETY PRECAUTIONSThe machine isequipped withsafetydevices which serve toprotectpersonnel andthe machine itselffromhazards arisingfrom unforeseen accidents. However, operatorsmust not rely exclusively on thesesafety devices:they mustalso become fully familiar wi...

  • Page 2

    MEOO-001-R1 P-(ii)SAFETY PRECAUTIONS2.POINTSTO CHECK BEFORE TURNING ONTHE POWER(1)Close allthe doors of theelectrical control cabinetand operation panel topreventthe entryofwater,chips,and dust.(2)Make absolutely sure that there is nobody nearthe moving partsofthe machine, and thattherearenoobsta...

  • Page 3

    ME00-001-R1 P-(iii)SAFETY PRECAUTIONS4.PRECAUTIONSRELATING TO THE ATC(1)Thetool clamps of the magazine,spindle, etc.,are designed forreliability, but it is possible thatatool could bereleased and fall inthe eventof anunforeseen accident, exposing you todanger: do nottouchor approachthe ATC mechan...

  • Page 4

    ME00-001-R1 P-(iv)SAFETY PRECAUTIONS6.PRECAUTIONS DURING MAINTENANCEINSPECTION AND WHENTROUBLE OCCURSIn order topreventunforeseen accidents, damage tothe machine, etc.,it is essential toobserve thefollowing pointswhen performingmaintenance inspectionsor during checking whentrouble hasoccurred.(1)...

  • Page 5

    MEO0-O01-R1 P-(v)SAFETY PRECAUTIONS(11)Periodic Inspection of theElectrical Control Cabinet(a) Cleaningthe coolingunitThe cooling unit in thedoor of theelectrical controlcabinet serves toprevent excessivetemperaturerise insidethe electrical control cabinetand increasethereliability of the NC unit...

  • Page 6

    ME00-001-R1 P-(vi)SAFETY PRECAUTIONS8.symbols used inthis manualThe following warningindications are usedin this manual todraw attention toinformation of particularimportance. Read the instructions markedwith these symbols carefully andfollow them.ADANGER :Indicates an imminent hazard which, if n...

  • Page 7

    4186-E P-(i)FOREWORDFOREWORDBefore reading this manual, pleaseread thisForeword which describes the features of the NC,configuration ofthe manual and the items tobeattended to forreading the manual.

  • Page 8

    4186-E P-(i)TABLE OF CONTENTSTABLE OF CONTENTSPAGESECTION 1PROGRAM CONFIGURATIONS11.Program Types andExtensions2.Program TapeFormat3.Block Configuration4.Word Configuration5.Numeric Value (Inch/Metric Convertible)6.Program Name7.SequenceName8.Mathematical Operation Functions9.OptionalBlock Skip10...

  • Page 9

    4186-E P-(ii)TABLE OF CONTENTSPAGE3.Circular Interpolation (G02, G03)4.Helical Cutting (G02, G03) (Optional). ..5.Feed Functions5-1.RapidFeedrate5-2.Cutting Feed5-2-1.Feed perMinute (G94)5-2-2.Feed perRevolution (G95)...5-2-3.F1 Feed Function (Optional). .6.AutomaticAcceleration andDeceleration28...

  • Page 10

    4186-E P-(iii)TABLE OF CONTENTSPAGE3.Coordinate SystemConversion Functions (Optional)3-1.Parallel Shift and Rotation of Coordinate Systems (G11, G10)3-2.Copy Functions (COPY, COPYE)4.Workpiece Geometry Enlargement orReduction Functions(G51, G50)(Optional)80808284SECTION 5 FIXED CYCLES861.Table of...

  • Page 11

    4186-E P-(iv)TABLE OF CONTENTSPAGE3.Details of Coordinate ConversionFunction(Pattern Function)3-1.Omit (OMIT)3-2.Restart (RSTRT)3-3.Line at Angle (LAA)3-4.Grid (GRDX, GRDY)3-5.Double Grid (DGRDX, DGRDY)3-6.Square (SQRX, SQRY)3-7.BoltHole Circle (BHC)3-8.Arc (ARC)115115116117118119121122123SECTION...

  • Page 12

    4186-E P-(v)TABLE OF CONTENTSPAGESECTION 9SUBPROGRAM FUNCTIONS1501.Simple Call (CALL)2.Subprogram Call after AxisMovement (MODIN)3.G and M CodeMacroFunctions152155159SECTION 10USER TASK1621.User Task 1162Branch Functions1-1-1.GOTOStatement .1-1-2.IF Statement1-2.Variable Function1-2-1.CommonVaria...

  • Page 13

    4186-E P-(vi)TABLE OF CONTENTSPAGESECTION 11OTHERFUNCTIONS2201.Table Index Specification1-1.5-Degree Index Commands1-2.1-DegreeIndexCommands1-3.0.001 DegreeCommands (Optional)2.Schedule Programs2-1.PSELECTBlock2-2.Branch Block2-3.VariablesSetting Block2-4.Schedule Program Termination Block3.File ...

  • Page 14

    4186-E P-1SECTION 1PROGRAM CONFIGURATIONSSECTION 1PROGRAM CONFIGURATIONS1.Program Types andExtensionsFour types of programsare used:schedule programs, mainprograms, subprograms, and libraryprograms.(1)Schedule ProgramThe scheduleprogram specifies howmany times the program is tobe executed andthe ...

  • Page 15

    4186-E P-2SECTION 1PROGRAM CONFIGURATIONSListof extensionnames:1)SDF scheduleprogram file2)MIN mainprogram file3)MSB maker’ssubprogram file4) SSB systemsubprogram file5)SUB user's subprogram file6)LIBlibrary subprogram fileFordetailson file management,see Section 11,3.“FileManagement".2....

  • Page 16

    4186-E P-3SECTION 1PROGRAM CONFIGURATIONS(b)Main programsProgramsectionC LC LM02orC L%%$A.MINR p01000N001R FM03R FProgramend blockThe program endblock mustcontaineither the M02or M30code.(c) SubprogramsProgram sectionC LC LCM02orL%%$A.MINR p01000N001R FM03RFProgramend blockTheRTScommand mustbespe...

  • Page 17

    4186-EP-4SECTION 1 PROGRAM CONFIGURATIONSExample:Supposethe puncher key “[ ]" isdetermined for punchingthe “=” code, andthat thearrangement of punched holes by thiskey operation is asbelow.87654321ChannelOO O c>O OFeed holeSet this arrangement ofpunchedholes by a “1" and a ...

  • Page 18

    4186-E P-5SECTION 1 PROGRAM CONFIGURATIONS3.BlockConfigurationA program is composed ofseveral commands, one unitofwhich isreferred toas ablock.An end ofblock(EOB) codeis placedas adelimiter betweenblocks.(1)Theend of block code isdifferent depending on the coding systemselected, ISO orElA:ISO ......

  • Page 19

    4186-E P-6SECTION 1PROGRAM CONFIGURATIONS5.Numeric Value (Inch/Metric Convertible)The unit system includesmillimeters (inches), degrees, and seconds, along with thedecimal specification.(1)Notes onDecimal Point Specification(a) Theaddress characters 0,N, G, andM cannotuse numeric values withdecim...

  • Page 20

    4186-EP-7SECTION 1PROGRAM CONFIGURATIONS(3)Examples of Unit Systems(a) Metric systemParameterBit No. 3TimePeriod(Sec)LengthFeedrate(mm/rev)No. 4AngleFeedrate(mm/min)(mm)0(deg)76543210101* * * * * *1111*000000000.0010.00110.010.1*000001000.010.00110.010.1*0010000.001000.0010.10.010.1*000001010.001...

  • Page 21

    4186-EP-8SECTION 1PROGRAM CONFIGURATIONS(4)Thetable below shows examples of how numerical values arehandled. (Unit:Table 1-2CommandNumerical ValueMetric SystemFactorX100100p.m100 p.m100mm100 mm200mmX =100X100.decimal pointdecimal pointexpressionexpressionexpressionexpressionexpressionexpressionva...

  • Page 22

    4186-E P-9SECTION 1PROGRAM CONFIGURATIONS(5)Programmable Range ofAddress CharactersThe programmable range of numericalvalues ofindividual address characters are shownin thefollowingtable.Table 1-3Programmable RangeFunctionAddressRemarks.MetricInchOProgram nameSameasmetric0000- 9999Alphabeticchara...

  • Page 23

    4186-E P-10SECTION 1PROGRAM CONFIGURATIONS6.ProgramNameAprogram name orprogram number is assigned toeach program. Operations can be carried outjustbycalling the program.Ifthe program namecontains onlyalphabetic characters,it iscalled aprogram label. If it containsonlynumbers, it iscalleda program...

  • Page 24

    4186-EP-11SECTION 1PROGRAM CONFIGURATIONS7.Sequence NameA sequencename isdefinedas aname assigned toa block. Numericor alphabetic characters followingafter “N” are designated for asequence name.A sequencenamemakes it possible touse asequence search function, a sequence stopfunction, and abran...

  • Page 25

    4186-EP-12SECTION 1PROGRAM CONFIGURATIONSTable 1-4Mathematical OperationFunctionsOperationOperatorCategoryRemarksExclusive ORLogicalORLogical ANDNegationEORLogicaloperation0110 = 1010—EOR— 11001110=1010 —OR—11001000=1010—AND— 11001010 = NOT —0101OR(See *3.)ANDNOTAdditionSubtractionM...

  • Page 26

    4186-E P-13SECTION 1 PROGRAM CONFIGURATIONS(a)Exclusive OR (EOR) c = a _EORbIf the two correspondingvalues agree, EOR outputs 0.If the twovalues do not agree, EOR outputs 1.bac000011011011(b) Logical OR (OR) c = aOR _bIf bothcorresponding valuesare 0,OR outputs 0.If not,OR outputs 1.bac0000111011...

  • Page 27

    4186-EP-14SECTION 1PROGRAM CONFIGURATIONS9.Optional Block Skip(1)Function(a) Blockspreceded by M/n" are ignored during automaticmodeoperationif the BLOCKSKIP “n”switch, onthe machine operation panel, hasbeen pressed. Ifthe switch isoff (press again),theblocks areexecuted normally.The ope...

  • Page 28

    4186-E P-15SECTION 1PROGRAM CONFIGURATIONS[Supplement]1.In operation methodB (large-capacity operation mode), use asequence labelname tospecifythe branch destination.2.The program branchfunction hasthesame restrictions as the branch function ofUser Task 1.3.A program branch command (IFVPBR1 N*** ...

  • Page 29

    4186-E P-16SECTION 1PROGRAM CONFIGURATIONS13.Label Skip FunctionInformation,such asworkname, partscodenumber, etc.,may be added tothe start of the program tape toassist in later identification by operators.Forthis to bepossible, alabel skipfunction hasbeen built into themachine. The label skipfun...

  • Page 30

    4186-E P-17SECTION 1 PROGRAM CONFIGURATIONS(b)When“1” is set (OperationMethod B)The program tobe executed iscalled tothe operationbuffer in several segments.This methodisused whenthe program islarger than the operation buffer capacity.Sinceschedule programs, subprograms, andlibrary programs a...

  • Page 31

    4186-E P-18SECTION 2COORDINATES AND COORDINATE COMMANDSSECTION 2COORDINATES AND COORDINATECOMMANDS1.Controlaxis(1)The following tablelists theaddresses necessary tocontrol the axis.AddressContentsX.Y.ZBasic axisAddresses corresponding tothe three axisorthogonal toone anotherU, V, WParallel axisAd...

  • Page 32

    4186-E P-19SECTION 2COORDINATES AND COORDINATE COMMANDS(6)The positivedirections ofthe linear and rotaryaxes are definedas follows:+ W+ Z+ Xi+C.+A+Be+YThe definitionof the coordinateaxes anddirections conforms toISO (International StandardsOrganization)R841.2.Unit Systems(1)Minimum InputUnitThe m...

  • Page 33

    4186-E P-20SECTION 2COORDINATES ANDCOORDINATE COMMANDS3.Coordinate Systems and Values(1)DescriptionInorder tomove the tool toa target position,a coordinate system mustbeestablished tospecify thetarget position usingcoordinate values inthecoordinate system.Three different coordinate systemsareused...

  • Page 34

    4186-E P-21SECTION 2COORDINATES AND COORDINATE COMMANDS(a)The origin of therequiredlocalcoordinate systemis referenced totheorigin of the presentlyselectedwork coordinate system.This coordinate value, alongwith the angleof rotation fromthe work coordinate system tothelocal coordinate system is pr...

  • Page 35

    4186-E P-22SECTION 2COORDINATES ANDCOORDINATE COMMANDS4.Travel Limit Commands (G22, G23) (Optional)The NC is equippedwith absolute positionencoder, which iscapable of setting thelocation ofthe travellimit,as anabsolute value, usingsoftware instead of ahardware limitswitch.Thetravel limit location...

  • Page 36

    4186-E P-23SECTION 2COORDINATES AND COORDINATE COMMANDS(3)SettingMethodThe settingmethod usingprograms ispresentedbelow.Programming format:G22X_Y_Z_a:_p_y_l_J_K_P_Q_R_X ____Programmable limitalongthe Pdirection ofX-axisY ____Programmable limit along the Pdirectionof Y-axisZ ____Programmable limit...

  • Page 37

    4186-EP-24SECTION 2COORDINATES AND COORDINATE COMMANDS5.Home Position Command (G30)The home position refers to a particular position preset onevery machine. It isused asthe tool and palletchanging position. Thehome position isdefined using acoordinate valueon the machine coordinatesystem,and can ...

  • Page 38

    4186-EP-25SECTION 2COORDINATES AND COORDINATE COMMANDS6.Absolute and IncrementalCommands (G90, G91)The absolute andincremental dimensioning commandsare used tospecify the mode of axis movement.(1)Absolute Command, G90The G90 commandspecifies theabsolute dimensioning mode.In this mode,it is necess...

  • Page 39

    4186-E P-26SEOTION 3MATH FUNCTIONS AND AXISMOVEMENT COMMANDSSECTION 3MATH FUNCTIONS AND AXISMOVEMENT COMMANDS1.Positioning(GOO)Each axismoves independently from its currentposition tothe target position atits ownrapid feedrate. Foran axis movement,an axis is automatically acceleratedanddecelerate...

  • Page 40

    4186-EP-27SECTION 3MATH FUNCTIONSAND AXIS MOVEMENT COMMANDS2.Linear Interpolation (G01)The G01command specifiesthe axes tomove directly from the currentposition tothe specified coordinatevalues atthe specifiedfeedrate.Programming format: G01P_F_P: Target point (end point)F:Feedrate.The command re...

  • Page 41

    4186-E P-28SECTION 3 MATH FUNCTIONS ANDAXIS MOVEMENT COMMANDS3.CircularInterpolation (G02, G03)Circularinterpolation can beused to generatea cutting path whichfollows an arc.Programmingformat:Arc onXp-Yp plane(G03}XP-YP-{l_J.)G17F_Arc onZp-Xp planeJzp.xp.p:i_}G02G18F_G03Arcon Yp-Zp planeG02R_Yp_Z...

  • Page 42

    4186-E P-29SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS(2)Rotary DirectionsThe two rotary directions,clockwise and counterclockwise, are defined whenviewing the planefrom the positive directionof the third axis onXp-Yp (Zp-Xp, Yp-Zp)plane, as shown in the diagramsbelow.ZpXpYpG03G03G0302\''G...

  • Page 43

    4186-E P-30SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDSExample:The left expressiondefines aclockwise arcwhose radius is 100,center at (0, 0), startingpoint at(-70.711,-70.711)and end point at(70.711,-70.711).X—70.711 Y-70.711 F200G02 X70.711 170.711 J70.711X-70.711 Y-70.711 F200G02 X10170...

  • Page 44

    4186-EP-31SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS(7)FeedratesThe feedrate during circular interpolation isthe feedrate component tangential tothearc.[Supplement]1. To omit thevalues ofI, J,or K, entera zero “0”.2.An arcwith radius 0 cannotbe specified.3.If the valuesforXp, Yp, andZ...

  • Page 45

    4186-E P-32SECTION 3MATH FUNCTIONSAND AXIS MOVEMENT COMMANDS5.Feed FunctionsRapid FeedrateDuring therapid feedrate mode, eachoftheaxes isfed atthe specifiedrapid feedrate independently ofothersimultaneously-fed axes. (Rapid feedrate isdiffer depends onthemachine specification.)Consequently, theva...

  • Page 46

    4186-E P-33SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS5-2-3.F1FeedFunction (Optional)The F1 feed function has twotypes of control:Switch-type control:In aprogram feedrate commandsare written byF1 through F8and theactual feedrate is setbythe corresponding settingswitches (up to8sets)provide...

  • Page 47

    4186-E P-34SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS6.Automatic Acceleration andDecelerationAcceleration atthe start ofanaxis movementand deceleration atthe endof anaxis movementisautomatically incorporatedinto axis movements.(1)PositioningMode and Manual Feed ModeDuring positioning mode...

  • Page 48

    4186-E P-35SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS7.FollowingError CheckFollowing error is definedas the difference between the command value from the NC andthe detectedposition value.The DIFF-over alarm will be activated if afollowing error(ODIFF) reaches acertain value duringrapid or...

  • Page 49

    4186-E P-36SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS9.AngleCommand FunctionThe angle commandfunctioncan be used tomove the axes toadesired point defined byone coordinatevalue and anangle. The axis coordinate value must beon theselected plane andtheangle is measuredfromthehorizontal axis ...

  • Page 50

    4186-E P-37SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS10.Manual Shift Amount Cancel CommandThisfunction can beused to cancel the totalmanual shirt amountfrom pulse handle overlap or manualintervention operation.Thefunction isperformed by incorporating acommand in theprogram; no manualaxis ...

  • Page 51

    4186-E P-38SECTION 3MATH FUNCTIONS AND AXIS MOVEMENT COMMANDS2)Details of axismotionN100Axes arepositioned at “X = 450,Y = 350,Z = 0"in the work coordinatesystem.Commanded values andcalculated valuesare both “X = 400,Y =300,Z = 0".“X = 450,Y = 350,Z0" aretaken ascalculated va...

  • Page 52

    4186-E P-39SECTION 3MATHFUNCTIONS AND AXIS MOVEMENT COMMANDS[Supplement]1. An alarmwill be activated if theMITCANcommand is executed during cutterradiuscompensation or 3-D offset mode.TheMITCAN command may only be carried out before, and not during, asequence restart operation.The manual shift am...

  • Page 53

    4186-E P-40SECTION 4PREPARATORY FUNCTIONSSECTION 4PREPARATORY FUNCTIONSG codesare used to specify particularfunctions whichare tobe executedin individual blocks.Every Gcode consists oftheaddress UG" plusa 3-digit number (00to 399),although some G codes usemnemonics* (alphabetic commands).*Mn...

  • Page 54

    4186-E P-41SECTION 4PREPARATORY FUNCTIONS(4)Either thebasic axis system(X, Y, Z)orthe parallel axis system (U,V, W) isselected byspecifying the particular axis addresses inthe blockcontaining G17, G18 or G19.Examples:G17X_Y_ XY planeG17U_Y_ UY planeG18Z_X_ ZX planeG18W_X_ WX planeG19Y_Z_ YZ plane...

  • Page 55

    4186-EP-42SECTION 4PREPARATORY FUNCTIONS1-2.Unidirectional Positioning (G60) (Optional)(1)Thenormal positioningcommand, GOO, allows an amount ofbacklash in mechanical systemtooccuraround the target positiondue tothedifference between the twopositioningdirections,positive andnegative. The backlash...

  • Page 56

    4186-E P-43SECTION 4PREPARATORY FUNCTIONS1-3.Exact Stop Check Function (G09, G61, G64)(1)Duringaxis teed control, NC operationis capable of processinga block faster than the actualaxis movementscan be performed. Ifthe nextblock isexecuted before the actual valuereachesthe first target point,axis ...

  • Page 57

    4186-EP-44SECTION 4PREPARATORY FUNCTIONS1-4.Skip Function (G31)(Optional)The skip function canbe used tointerrupt axis movementsand causethe control to“skip" tothe nextblock.Theskip command isa one-shotfunction which iseffective only inthe programmedblock. The skipfunctionis activatedby an...

  • Page 58

    4186-EP-45SECTION 4PREPARATORY FUNCTIONS(1)The actual stateofthemirror image functionbasedon thespecification of G62and theMIRRORIMAGEswitch setting is displayed in thetable below.G62 CommandSwitch SettingActual StateNormalNormalMirrorimageMirror imageNormalMirrorimageNormalMirror imageNormalMirr...

  • Page 59

    4186-E P-46SECTION 4PREPARATORY FUNCTIONS(b) Setting “0” for OptionalParameter (bit) No. 34,bit 2 (localcoordinate system)/kYY305-5->X-301-6.Selection of Work Coordinate System (G15, G16)(1)Thestandard number ofworkpieces coordinate systemsis 20 sets,andthis canbe expandedto 50 setsor 100 ...

  • Page 60

    4186-EP-47SECTION 4PREPARATORY FUNCTIONS1-7.Change ofWork Coordinate System (G92)(1)Thework coordinate system may be changed usingthe G92command.(2)Programming format: G92P_The G92commandautomatically changes the workzero offsetvalue of the work coordinate systemtothe coordinate values specified ...

  • Page 61

    4186-E P-48SECTION 4PREPARATORY FUNCTIONS2.Compensation Functions2-1.Tool LengthOffsetFunction (G53- G59)(1)The tool lengthoffset function compensates forthe position of a cuttingtoolso that the tipof thecutting islocated atthe programmed position.Available G CodesG CodeFunctionG53Cancel toolleng...

  • Page 62

    4186-E P-49SECTION 4PREPARATORY FUNCTIONS2-2.Cutter Radius Compensation (G40, G41, G42)2-2-1.FunctionProgramming the geometryofaworkpiece as it is will not result in a correct final product, because the size(diameter) of the tool is nottaken intoconsideration. It would, however,be extremely compl...

  • Page 63

    4186-E P-50SECTION 4PREPARATORY FUNCTIONS[Supplement]4.The terms"inside” and “outside” aredefined asfollows:Inside cuttingresults rf the angle between the movecommands is atleast 180degrees as measuredfrom the workpiece side, andoutside cuttingrefers to anyangle between 0and 180 degree...

  • Page 64

    4186-E P-51SECTION 4PREPARATORY FUNCTIONS2-2-2.Tool Movement in Start-up(1)Inside Corner Cutting (0180°)(a) Straightline- straight line8G42ID1sL"" L(b) Straight line- arce:DG42L,1.'s \c1(2)Obtusely Angled Corner- Outside Cutting (90° g 6 §180°)(a) Straightline- straight lineCPL7&quo...

  • Page 65

    4186-E P-52SECTION 4PREPARATORY FUNCTIONS(3)Acutely angled corner- outside cutting (0 < 90°)(a) Straight line- straightlineSLr i\ueG41li'D\L(b) Straight line- arcSL~ÿ'TV\\:DJ\}G41VLe///T(c)ExceptionOutside cutting at an acuteangle of 0.1degreesor less is considered tobe “inside” asshown ...

  • Page 66

    4186-E P-53SECTION 4PREPARATORY FUNCTIONS(4)Start-upwith Imaginary Approach DirectionIfl_, J_, andK_ values belonging tothe offset plane arespecified in ablock which startsthe cutterradius compensationmode,a different tool centerpath will be chosen.In the G17plane, values forl_ andJ_ will create ...

  • Page 67

    4186-EP-54SECTION 4PREPARATORY FUNCTIONS2-2-3.Tool Movement inCutter Radius Compensation ModeNOTICE: This sectiondescribes how thetool movesafter the cutterradius compensationmode hasbeen established untilthat mode is canceled. The cutterradius compensation isavailablein four differentmove modes:...

  • Page 68

    4186-E P-55SECTION 4PREPARATORY FUNCTIONS(1)Inside Cutting (0 s 180°)(a) Straightline- straight line(b) Arc- straight line6e:DD2---l-—SG42S/cG42A • pLL..DfV//L/I(c) Straightline- arc(d) Arc- arcc"'T‘T\DX/X/-pVr PD/NTSS/O. P TG41G41G41ee(e) Straight line- straightline (0 <0.1°)Ther...

  • Page 69

    4186-EP-56SECTION 4PREPARATORY FUNCTIONS(f) Straightline- arc (0 = 0°)The processing shown in part e islimited tothe straight line- straightline configuration. In othercases, such asthe straightline- arcshownhere, theordinary method isused.ciiL____>-C . P6=0°rs:DG41(2)Obtusely Angled Comer- ...

  • Page 70

    4186-EP-57SECTION 4PREPARATORY FUNCTIONS(3)Acutely Angled Corner- Outside Cutting (0 < 90°)(a) Straightline- straight line(b) Straightline- arcST'\DG42I7LAXDr!\Ie\/i/6X*IVD.I:L\•4G41TLL\r1IIS(c) Arc- straight line(d) Arc- arcT/G42T\G42Ti\I/Ti6\6T/i_~CÿD'VKVDV/A4\L\/LL(4)InsideCutting,with ...

  • Page 71

    4186-E P-58SECTION 4PREPARATORY FUNCTIONS2-2-4.Tool Movementwhen CutterRadius Compensation isCanceledAG40 commandgiven during the cutterradius compensationmode will causethe mode toend.Programming format:G40 GOO (G01) Xp_ Yp_The cancelcommand requires that the transient mode beGOO orG01.(1)Inside...

  • Page 72

    4186-E P-59SECTION 4PREPARATORY FUNCTIONS(c) ExceptionOutside cutting at an acuteangle of 1degree orless isconsidered tobe "inside" as shown below.L0ÿ1°G41MG40(4)Independent G40 CommandA G40 commandgivenindependently will position theaxes at apoint shifted in the vertical directionby ...

  • Page 73

    4186-E P-60SECTION 4PREPARATORY FUNCTIONS(5)Cancel with Imaginary ApproachDirection(a)Ifl_, J_, and K_ values belonging totheoffset plane are specifiedinthesame block as G40, adifferent tool centerpath willbe chosen. In the G17 plane, values forl_ and J will createanimaginary (target)approach dir...

  • Page 74

    4186-E P-61SECTION 4PREPARATORY FUNCTIONS2-2-5.Changing Compensation DirectionDuring CutterRadius CompensationModeThe directionof compensation maybe changed duringthe cutter radius compensation mode by issuingaG41or G42command orby reversingthe sign (positive or negative) of the compensation amou...

  • Page 75

    4186-E P-62SECTION 4PREPARATORY FUNCTIONS(c)Arc- straight lineG 42C•1)V\\L1SuG 4 1(d)Arc - arcC-\T\G 42\:DG 41N/D\(2)WithoutCross Point(a) Straightline- straight lineLSK:D\Lrl\G42G42G42PG41G41\\\\rDSL(b) Straightline -arcSG42'VDG41'D/DG41LTS

  • Page 76

    4186-E P-63SECTION 4PREPARATORY FUNCTIONS(3)Circular Arc ForminganOverlapping CircleThe tool path may forman overlapping circle after compensationdirection has been changed. Thecutter will movealong an arcandreach the target pointwithout forming afull circle. To avoid this,thecommands should be g...

  • Page 77

    4186-E P-64SECTION 4PREPARATORY FUNCTIONS(2)Change of Compensation AmountIfthe compensation amountis changedduring the compensation mode,thechange will becomeeffective starting attheend ofthat block.Lt/NlG41X-Y-D1D1/\D2:\\LN7N6:\(ai.bi)(a2,bl)N6XBI Ybl,AN7XaZD2D2\G41\N8Xa3 Yb3N8(a3, b3)(3)Actual ...

  • Page 78

    4186-EP-65SECTION 4PREPARATORY FUNCTIONS(6)Suggestions for Corner Cutting(a)NormalcomerTo cut an outsidecorner, apolygonal tool pathcan be generated.Themove mode andfeedrate atthecomers will follow the commandin the next block, exceptforthe G02 and G03 modes, inwhichcaseG01is assumed.SThis travel...

  • Page 79

    4186-E P-66SECTION 4PREPARATORY FUNCTIONS(c) Cornerwith full circleThe processing method usingdelta-V is ineffective whenthe nextblock forms a full circle.P2 P3PKs*6\/ÿ\\\\\\Poÿ\In thefigure shown above, correct movementshould be made asfollows:Straight lineStraightlineFull circlePo - Pt - P2P2...

  • Page 80

    4186-E P-67SECTION 4PREPARATORY FUNCTIONS(7)InterferenceOf1'NOTICE: Interference refersto problems inwhich a cutting tool over-cutsor makes toodeep a cutintoa workpiece. Interferencesare always checked by theNC.The NC concludes thataninterference has occurredif:Thedifference between thedirection ...

  • Page 81

    4186-E P-68SECTION 4PREPARATORY FUNCTIONS(b)Interference check resulting in apath changeP7_P2P1P8D/' D\N4N5TTP6P3N6PSP4In this example, thefollowing directions of travel arechecked andneglected, becauseinterferenceisdiscovered: N4 -ÿN5,P4 -*P5, P3 -»P6 and P2 -ÿP7. However, since thedirection ...

  • Page 82

    4186-E P-69SECTION 4PREPARATORY FUNCTIONS(e) Minutearc andquasi-full circleA minutearc isdefined asan arc inwhich thehorizontal and verticaldistances from beginning toendis smaller than the data setin NC optional parameter (long word)No. 9.A quasi-full circle isdefined as anarc which is close to ...

  • Page 83

    4186-E P-70SECTION 4PREPARATORY FUNCTIONSQuasi-full CircleQuasi-full circleP2! P1;=<.P2 is neglectedand a fullcirclefromP1 is formed./\//\/\i\ili/i/\/\/\/\(8)Input Command from the Keyboard(a) Commands can be enteredfrom the keyboard inMDI modeafter the cutterradiuscompensationmode has already...

  • Page 84

    4186-EP-71SECTION 4PREPARATORY FUNCTIONS(c) ExampleSupposethat MDI modehas been established whileblock N1 is being executed.The CRTdisplaysthe programas shown in Figure 1. Operation continuesuntil block N4 hasbeen reached.Figure 2 shows theCRTdisplay atthis point.::::t HIX10N1X1DN2Y3DN2Y30N3X30N3...

  • Page 85

    4186-E P-72SECTION 4PREPARATORY FUNCTIONS(b) During compensationmodeChanging the compensation amount (D, offset data) tozero during cutterradius compensationmode willneithercause anoffset cancel nor result inthe cancel mode.The effect is thesame aswhenthe compensation amountischangedas explainedi...

  • Page 86

    4186-E P-73SECTION 4PREPARATORY FUNCTIONS2-3.Cutter RadiusCompensation Mode Override Function(1)Automatic Override atCornersDuring cutterradius compensation mode,the cut depth may increase while cutting theinside of acorner,resulting in anincreased tool load. To reduce theload applied tothe tool,...

  • Page 87

    4186-EP-74SECTION 4PREPARATORY FUNCTIONS(b) The followingtable liststhe possiblerange of values along with theinitially setvalues:€e€s0Y0- 99999.999mm0- 9999.9999inch0- 99999.999 mm0- 9999.9999inchSetting Range1- 100%1- 179°Initial Setting90°00100%(c) RequirementsThe overridefunctionwill be...

  • Page 88

    4186-E P-75SECTION 4PREPARATORY FUNCTIONS(a)In the example above,thereare twoactual feedrates possible.yc/yp x 100 parametersetting:Actualfeedrate = Programmed feedrate xyc/ypyc/yp x 100 < parametersetting:Actual feedrate = Programmed feedrate x Parameter setting(b) The parameter, therefore, s...

  • Page 89

    4186-E P-76SECTION 4PREPARATORY FUNCTIONS(b)If none of the X, Y,and Z axes have been specified, the axis moves bythe tool offset amount,D.Tool path""'N2N1G44I- J_ >LX_ Y_ Z_HZN1//;MThree-dimensionaloffset vectorProgrammed path(c) During start-up, if none of theI, J, andK values have ...

  • Page 90

    4186-E P-77SECTION 4PREPARATORY FUNCTIONS(a)Vector expressionsThe vectorsareexpressed by the following equations:Xp-axis vector component:Vx = i xy/pYp-axis vector component:Vy = j x y/pZp-axis vector component: Vz = k xy/pI,j, kare the values specified bytheaddresses I, J,and K; yisthe tool offs...

  • Page 91

    4186-E P-78SECTION 4PREPARATORY FUNCTIONS(f) Once a G44block has been given which specifies thethree-dimensional space, furthercommandswhich specify an additional,parallel axis will beignored. No alarm willbeactivated.N1 G44W_I_J_K_X_Y_Specifies XYW spaceN1N3Z_No offset forthe Z-axis possible (Co...

  • Page 92

    4186-E P-79SECTION 4PREPARATORY FUNCTIONS(4)Actual Position Data DisplayThe coordinate values onthe positiondisplay pageindicate the actual toolpath withoffset.(5)FeedrateThefeedrate iscontrolled sothat theaxes movealong the offsettool path ata programmedtoolpath.(6)Relationship toOtherCommands(a...

  • Page 93

    4186-E P-80SECTION 4PREPARATORY FUNCTIONS(b) Cutter radius compensation (G40 toG42)Analarmwill beactivated if a cutterradius compensationcommand (G41or G42) is specifiedduring thethree-dimensional tool offset mode,or if athree-dimensional tool offset command (G44)isissuedduring cutterradius compe...

  • Page 94

    4186-EP-81SECTION 4PREPARATORY FUNCTIONSExample:Alocal coordinate systemmay be used effectively tomachine a part asshown inthe example below.YN3N455rN8mpN10N740°20°(0.79)NirN1N5/!TSk15N2/•60(2.36)-\LMachine(CoordinateXSystem/25t~Origin ofLocal'Coordinate SystemOrigin of WorkCoordinate System8...

  • Page 95

    4186-E P-82SECTION 4PREPARATORY FUNCTIONS3-2.Copy Functions (COPY, COPYE)The copy functions may beused tosimplify the cutting programming ofa workpiece which consists of thesame patternrepeated with a parallelshift or rotation. First, set alocalcoordinate systemfor thereferencepatternor geometry ...

  • Page 96

    4186-E P-83SECTION 4PREPARATORY FUNCTIONSExampleYLocal coordinate systemY. 302530°30X*15Workcoordinate systemx/G11X15Y25P-30G01X30F100M03COPY Q4G01X30Y0G03X0Y30I—20J10G01X0Y30COPYE(Positioning point agrees with point (A) inthe second and later positioning)(A)P90Nocircular interpolation command...

  • Page 97

    4186-EP-84SECTION 4PREPARATORY FUNCTIONS4.Workpiece Geometry Enlargementor ReductionFunctions(G51, G50) (Optional)(1)Workpiece geometry function canbe used toenlarge or reduce workpiece geometries withrespect toa point specified by a localor work coordinate value, using a machining program.Progra...

  • Page 98

    4186-E P-85SECTION 4PREPARATORY FUNCTIONSExample 1:Cutter radius compensationandenlargement andreduction of workpiece geometry0Po- Po000Example 2:Setting thelocal coordinate systemand enlargement andreduction ofworkpiece geometryN1G17 G11X50Y30 P45N1G90 G51 X20Y10 P0.5N3G01X40Setting of local coo...

  • Page 99

    4186-E P-86SECTION 5FIXED CYCLESSECTION 5FIXED CYCLESA fixed cycle refers toafunction which iscapable ofdefining blocks of commands,likedrilling, boring andtapping, formotions alongthe tool axisdirection. Machining from the secondon may be accomplished justby specifying the hole position.1.Tableo...

  • Page 100

    4186-E P-87SECTION 5FIXED CYCLESM codes used to select the returnlevel:M52.....Return toupper limit levelM53Return toa specified pointlevel setby G71Return to the pointR levelM542.Fixed CycleOperationsAll fixed cycle functionsare composedof thefollowing six operations:Operation 1Positioning tohol...

  • Page 101

    4186-E P-88SECTION 5FIXED CYCLESAfterthe positioning planehas been selected, twodifferent cycle axes are possible.The cycle axisisdetermined byan axisaddress (not on the positioning plane)included in theblock containing thefixed cycle modeG code (G73- G89).Wrong:617x_ Y_681X_ YZW_ RF_The G81block...

  • Page 102

    4186-E P-89SECTION 5FIXED CYCLES(3)Fixed CycleMode(a)A fixed cycle mode is specified by ahole machining definition command, (G73through G76,andG81 through G89). Thefixed cyclemodemay becanceledusing one of the following Gcodes:GOO,G01, G02, G03or G80(b) If a second holemachining definition comman...

  • Page 103

    4186-EP-90SECTION 5FIXED CYCLES(b) Cycle axisoperation notpossibleCycle axis operation willbe preventedduringthe following modes, even if the aboveconditionshave beenmet. The following modes areused togetherwith a coordinate computationfunction.1)NCYL (NO CYCLE)If theNCYL modeis specified duringf...

  • Page 104

    4186-EP-91SECTION 5FIXED CYCLES(b) Zp:Specifies the hole bottomposition.During theabsolute programming mode (G90), the hole bottomposition should be specified as anabsolute value. During the incremental programming mode (G91),the distance between the pointR level and the hole bottom should be spe...

  • Page 105

    4186-E P-92SECTION 5FIXED CYCLES3-2.Command Items Necessary for Fixed Cycle FunctionCommandsThe table below was set upusing thd'ffFplane as the positioning plane, andthe Z-axis asthecycle axis._ •;gnirnn.r _PointRetrac-CommentItemHolePositionShiftAmountDwellTimePeckingAmountFeed-ZRtionrateLevel...

  • Page 106

    4186-EP-93SECTION 5FIXED CYCLES[Supplement]8.The valuesforP, Q, I, J, and K must bespecified in a block where acycle axisoperation isperformed. If one of thesevalues is specified in ablock withouta cycleaxis operation, nomodal data will beestablished.9.The shift amount mustbe specified for the G7...

  • Page 107

    4186-E P-94SECTION 5FIXED CYCLES3-4.Positional Relationship among Return Point Level,Point R Level and PointZLevelThe positional relationship among thethree levels alongthe cycle axisdirection mustbe one ofthe twocasesshown below. (Theonlyexceptionis G87 back boring,where the pointR and pointZlev...

  • Page 108

    4186-E P-95SECTION 5FIXED CYCLESI, J,and K CommandsI, J,and Kcommandsare sued whenthe cycle axis has not beenfixed. The shift amountanddirection of the tool axismay be specified using (I, J),(K, I),or (J, K) depending onthe selectedpositioning plane.The shift direction isdefined in the machine co...

  • Page 109

    4186-E P-96SECTION 5FIXED CYCLES3-7.Relationships betweenFixed Cycle Functions andOther Functions(1)AxisMovement CallMode (MODIN, MODOUT)If thefixed cyclemode andthe axis movementcall mode overlap,the command MODIN will calltheaxis movementafterthe cycle axis operationhas been completed.(2)Unidir...

  • Page 110

    4186-E P-97SECTION 5FIXED CYCLES(5)Coordinate CalculationFunctionIf acoordinatecalculationfunction commandwith an M52code is specified during the fixedcyclemode,the Z-axis will be returned tothe upper limit level.Example:G81X_ Y_Z_ R_ F_IAAXYIK IKJM52>ÿ— The Z-axis is returned to the upperl...

  • Page 111

    4186-E P-98SECTION 5FIXED CYCLES(4)Single Block Mode OperationDuring singleblock mode operation,thecyclemotion will stop attheend of operations 1and 5,whencode M54has been programmed, or atthe endof operation 6,whencode M52 orM53 has beenprogrammed, and atthecompletion of the cycle.Operation 1/__...

  • Page 112

    4186-E P-99SECTION 5FIXED CYCLES4.Detailsof Fixed CyclesIn the following explanations, it has beenassumed that theXY plane is the positioningplane and theZ-axisisthecycle axis. However, theexplanations may also be applied tothe otherplanes.4-1.Specification of Return Level (G71)The G71command spe...

  • Page 113

    4186-E P-100SECTION 5FIXED CYCLES4-2.High Speed Deep Hole Drilling Cycle (G73)(1)Programming FormatG73X YZ R P Q FX,Y : Hole locationZ: Hole bottom levelIn G90 mode:Referenced from zero ofthe selected coordinatesystem referenced fromzero ofthe selectedcoordinate systemIn G91 mode:Referenced from ...

  • Page 114

    4186-E P-101SECTION 5FIXED CYCLES4-3.Reverse Tapping Cycle (G74)(1)ProgrammingFormatG74X Y ZR P QFX, Y: Hole locationZ:Hole bottom levelIn G90 mode:Referenced from zero ofthe selected coordinatesystemIn G91 mode:Referenced from thepointRlevelR: Point R levelP: Dwell time athole bottomQ:Dwell time...

  • Page 115

    4186-EP-102SECTION 5FIXED CYCLES4-4.Fine Boring (G76)(1)Programming formatG76X_ Y_ Z_ R_ Q_ (l_ JJ P_ F_X, Y: HolelocationZ: Hole bottomlevelR:Point R levelQ:Shift amount(Seeexplanation below.)I,J : Shift amount(See explanation below.)P: Dwell time athole bottomF:Feedrate21Return point level----R...

  • Page 116

    4186-E P-103SECTION 5FIXED CYCLES(b) Shift amount,I and JThe I andJ values are usedwhen the positioningplane hasbeen selected using theG17command. If the G18or G19 commandhasbeen used toselect the positioning plane, then the K,Iand J,Kvalues canbe used, respectively.G17I. JG18K, IG19J.KAll I, J, ...

  • Page 117

    4186-E P-104SECTION 5FIXED CYCLES4-6.DrillingCycle (G81.G82)(1)ProgrammingFormatG81X_Y_2_R_P_FG82 X_Y_ Z_ R_ P_ FX,Y : HolelocationZ:Hole bottom levelR: Point RlevelP: Dwell time atholebottomF: Feedrate9...if-Return point levelPoint R level---RapidfeedO- Cutting feedCDPoint Z levelDwell for P sec...

  • Page 118

    4186-E P-105SECTION 5FIXED CYCLES4-7.Deep Hole Drilling Cycle (G83)(1)Programming FormatG83X_ Y_Z_ R_Q_ (l_ JJ P_F_(2)With QCommandX,Y: Hole locationZ: Hole bottom levelR: Point RlevelQ:Packing amount(Positive, incremental~ Return pointV level<?;valve)Point R levelHiI:Packing amountJ:Tool tip ...

  • Page 119

    4186-EP-106SECTION 5FIXED CYCLES(4)Machining Sequence(a)With Qvalue1) Positioning isperformed along theX- and Y-axis ata rapidfeedrate.2) Positioning isperformed tothe pointRlevel ata rapid feedrate.3)Drilling isperformed up to the pecking amountspecified by Q atacutting feedrateand with thespind...

  • Page 120

    4186-E P-107SECTION 5 FIXED CYCLES4-8.Tapping Cycle (G84)(1)ProgrammingFormatG84X_ Y_ Z_ R_ (PJ (QJ F_X, Y : HolelocationZ: Holebottom levelR:Point RlevelP: Dwell time athole bottomQ: Dwell time at pointRlevelF:FeedrateCL-Return point levelPoint R level---Rapidfeed- Cutting feedThespindle rotates...

  • Page 121

    4186-E P-108SECTION 5FIXED CYCLES4-9.BoringCycle (G85, G89)(1)ProgrammingFormatG85X_ Y_Z_ R_P_ F_ FA=_G89X Y Z R P FFA=X,Y: Hole locationZ: Holebottom levelR: Point RlevelP:Dwell time athole bottomF: FeedrateFA:Return speed-Return point levelPoint R level---Rapidfeed- Cutting feedCDFFACDPoint 2 l...

  • Page 122

    4186-E P-109SECTION 5 FIXED CYCLES(2)Machining Sequence(a)Positioning isperformed along theX- andY-axis ata rapidfeedrate.(b) Positioning is performed tothepointR level ata rapid feedrate.(c) Cutting isperformed up tothe pointZ level ata cuttingfeedrate andwith the spindle rotatingintheCWdirectio...

  • Page 123

    4186-E P-110SECTION 5FIXED CYCLES(f)The cutting tool dwells atthe pointZlevel for P seconds,the Z-axis is retracteddown byanamount setwitha parameter, and the spindle stops atanoriented position.The tool is thenshifted in thedirection oppositethe bitpositionby theshift amount Q.(g) The tool isret...

  • Page 124

    4186-E P-111SECTION 6COORDINATECALCULATION FUNCTION (OPTIONAL)SECTION 6COORDINATE CALCULATIONFUNCTION (OPTIONAL)This functioncalculates the coordinate valuesof points on aline,grid, or circumference usingonecommand.Combiningthisfunction with thefixed cyclefunction andthe axis movementcall functio...

  • Page 125

    4186-E P-112SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)(a) Reference pointfor starting coordinatecalculationThe reference point is specified using the namesof axeswhich constitute the currently selectedplane.The relation of planeselection toHp (horizontal axis) andVp (vertical axis) is as...

  • Page 126

    4186-E P-113SECTION 6COORDINATECALCULATION FUNCTION (OPTIONAL)(b) Parameters usedforcoordinate calculationParametersused incoordinate calculation mustbe designatedinthesame block ascorresponding mnemonic codes.These parametersareeffective only inthe block where they aredesignated, and arecleared ...

  • Page 127

    4186-E P-114SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)(2)Plane onWhich Coordinate Calculation isMade andMotion AxesCoordinatevalues arecalculated on theplane whichis selected when a pattern command isdesignated, and positioning ateach calculated point isaccomplished usingthe axes which a...

  • Page 128

    4186-EP-115SECTION 6COORDINATECALCULATION FUNCTION (OPTIONAL)Detailsof Coordinate Conversion Function(Pattern Function)3.3-1.Omit (OMIT)This functionis normally used incombination with other coordinatecalculation functions and deletesoutput ofthe coordinate valuewhich iscalculated using thecoordi...

  • Page 129

    4186-E P-116SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-2.Restart (RSTRT)This function restarts machining from the required coordinatepoint which is calculated using thecoordinate calculation function.Generally, restartdata isentered intheMDI mode.Programming format: RSTRT RnR: Coordinat...

  • Page 130

    4186-E P-117SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-3.Line atAngle (LAA)Thisfunctioncalculates the coordinate values of points placed at irregularintervals (d1, d2,and soforth)on a line whichforms an angle 6 tothehorizontal axis. Here,the actual positionvalueor commandedcoordinate va...

  • Page 131

    4186-E P-118SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-4.Grid (GRDX, GRDY)Thisfunction calculates the coordinate values of a grid which is composed ofthe points (nx) placed ataninterval of (dx)in parallelwith the horizontal axis andof thepoints (ny)placed atan interval of (dy) inparalle...

  • Page 132

    4186-E P-119SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-5.Double Grid (DGRDX, DGRDY)This function calculates thecoordinate valuesof a gridwhich is composed of the points(nx) placed atregularintervals (dx-i) in parallelwiththe horizontal axis andof the points (ny)placed at regularinterval...

  • Page 133

    4186-E P-120SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)Example 1: Double grid along thehorizontal axisDGRDX XQY0 I20 J-15K3P2 Q13 R-8_dx, = 20mm(0.79 in.)H~CiX2«:_|13mm3 (Oft in-)Start point (XQ, XQ)nx=32I1e-e©cX} dy2 = -8mmdyi =(0.31 in.)—15mm(0.59 in.)——O 4tsItTTio°iiiE9\Til121...

  • Page 134

    4186-EP-121SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-6.Square (SQRX, SQRY)This functioncalculates thecoordinate values of asquare which iscomposed of the points (nx) placed atregularintervals (dx)inparallel withthehorizontal axis andofthe points (ny) placed atregularintervals (dy)in pa...

  • Page 135

    4186-E P-122SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-7.Bolt Hole Circle (BHC)Thisfunction calculates the coordinate values ofthe points (npoints)whichare placed at regularintervalson thecircumference ofa circlewhich hasthe actual position value orcommandedcoordinate value as thecenter...

  • Page 136

    4186-E P-123SECTION 6COORDINATE CALCULATION FUNCTION (OPTIONAL)3-8.Arc (ARC)This functioncalculates thecoordinate valuesof the points (n points) whichare placed atirregularintervals(A01, A02) onthe circumferenceof acircle which has the actual position value or commanded coordinatevalueas the cent...

  • Page 137

    4186-E P-124SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)SECTION 7AREA MACHINING FUNCTIONS(OPTIONAL)Area machining functions are used tomachine the top,periphery or insidesurface of arectangular areawith asingle command. The area tobe machined mustbe formed by four straightlineswhich intersect atr...

  • Page 138

    4186-E P-125SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(2)Tool Movement(a)Face milling (FMILR)(b) Facemilling (FMILF)1cbcuTPoint R level—jReference pointPoint RlevelReference pointJII(c)Round milling (RMILO)(d) Roundmilling (RMILI)cb---19 co*Point R levelU2PointR level/_/Reference pointReferen...

  • Page 139

    4186-E P-126SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)3.AreaMachining Plane and InfeedAxis(1)The areamachining planeis selected with a planeselection command G17, G18, or G19.Operations 1and 4,defined in 2. “AreaMachining Operations”,are performed onthis plane.(2)Theinfeed axis is perpendic...

  • Page 140

    4186-E P-127SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)[Supplement]1. Xp, Yp,and Zp representthe X-axisor U-axis,the Y-axis orV-axis, and the Z-axisor W-axis, respectively.2.The Xp and Yp addressesshould designate the axeswhich definethe areamachining plane.3.The Zpaddress should designate thein...

  • Page 141

    4186-E P-128SECTION 7AREAMACHINING FUNCTIONS (OPTIONAL)4-3.Data Entryin Incremental/Absolute Mode(1)Four addressesfor an area machining function mustbespecified depending on theselecteddimensioning mode,incrementalor absolute.They are: the coordinate values of the referencepoint (Xp, Yp), thefini...

  • Page 142

    4186-EP-129SECTION 7AREAMACHINING FUNCTIONS (OPTIONAL)4-5.Definition ofMachining AreaThe machining area is defined byI and Jwords. Shown beloware the four different possibleareas, whichdepend onthe signs of the I and J words.This definition is independent of the direction ofthe axisinfeed as expl...

  • Page 143

    4186-E P-130SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)5.Details of AreaCutting FunctionsThe following explanations assume that the area machining planeis theXY plane andthat theinfeed axisisthe Z-axis. Theexplanation is similar for theother planes.5-1.Face Milling Functions (FMILR, FMILF)Thefac...

  • Page 144

    4186-E P-131SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(1)FMILR (Tool remainson workpiece)Example:FMILR XO YO ZOI500 J300 K0.2 P70 Q5R12 D01 F4005mm(0.20 in.)J = 300Cutting width = (J + 5)/nC »l\v Starrting point (Xp, Xp)I = 5005mm(0.20 in.)5mm(0.20in.)—— RapidfeedP= 70%(cuttingwidth ratio)...

  • Page 145

    4186-E P-132SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(2)FMILF (Toolmoves off of workpiece)Example:FMILF XO YOZ I0 JO K P QR D F5mm(0.20 in.)fLG o-1EFiDC»±Starting point A (Xp, Xp)lo5"mm(0.20 in.)5mm(0.20 in.)DuringFMILF mode, althoughthe Z-axis moves in thesameway as during theFMILR mod...

  • Page 146

    4186-E P-133SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)3) l=JForboth theFMILR andtheFMILF function,cutting isperformed in the Xdirection when IequalsJ.(c) Cuttingposition inworkpiece narrower positionfromreference pointShorterside length+ 5 mm (0.20 in.)x i- Cutterradius compensation amountn(i =...

  • Page 147

    4186-E P-134SECTION 7AREA MACHININGFUNCTIONS (OPTIONAL)2) End-of-machiningpointMachining continuesuntil the cutterOD is 5mm (0.20in.) away from the workpiece.5mm(0.20 in.)_ Starling\ pointX. Y5mm(0.20 in.)5mm(0.20 in.)5-2.Pocket MillingThe pocketmilling function may be classified into two types:z...

  • Page 148

    4186-E P-135SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)I: Length ofhole fromthe starting pointin the X-axis directionJ : Length of hole from the startingpointin theY-axis directionK : Finish allowance ineach of the X,Y, andZ directionsDefault value is 0.P ;Percentage of cutting widthThis is the ...

  • Page 149

    4186-E P-136SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(d) The inner rectangle is cyclicallymachined in a zigzagpattern.The F command specifiesthe feedrate tobeusedduring this cycle ofmachining. Note that thecuttingwidth is different fromthe commanded valueas indicated below:Shorter sidelength- ...

  • Page 150

    4186-E P-137SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)5-2-2.Pocket Milling Spiral Function (PMILR)The pocket milling function,PMILR, uses the specifiedcoordinate values as a reference pointandcyclically machines a rectangle (hole) specified by the X and Y-axis lengths (I and J) in the workpiece...

  • Page 151

    4186-E P-138SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)P : Percentage of cuttingwidthThis is the ratio ofthe cuttingwidth tothe cutterdiameter. Although thevalue is a percentage,the percent symbol is notincludedin the command. Default value is 70 percent.Q: Depthof cutin one cycleDefault value i...

  • Page 152

    4186-E P-139SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(b) The infeed axisZis positioned tothe commandedpoint R level atarapid feedrate.(c) Starting atthe point R level, infeeding ismade tothecommandeddepth of cut,Q, inthe Z-axis directionat the feedrate programmed byFB.Point R levelFBfx]V° \s?...

  • Page 153

    4186-E P-140SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)5-3.Round MillingFunctions (RMILO,RMILI)Theround milling functions, RMILO and RMILI,uses the specifiedcoordinatevalues asa reference pointand cyclically machines arounda rectangle which has amachining allowance (Q) on its circumference,speci...

  • Page 154

    4186-E P-141SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(1)RMILO- External CuttingExample:RMILO XO YO Z-50 I500 J300K0.2 P70 Q40 R2 D01 F400FA=800©tTJ *=300(11.81)(A)0®rv?D 040 (1-57)Reference pointj.K= 0.2\(XO.YO)--(aooe)D: tool offset number= 01 (offset value= 40/2)5-|•(0-20)Q= 400-57)I= 50...

  • Page 155

    4186-EP-142SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(2)RMILI- Internal CuttingExample:RMILI XO YO ZO JO KO PQO RO DF FAySIIdoj|5mm (0.20 in.)mJoKo--5mm (0.20 in.)rfr\JXo Y0lorhrjRoZoThe first positioning point (A)islocated wherethe cutterODis 5mm (0.20 in.)away from the blankendface.[Supplemen...

  • Page 156

    4186-E P-143SECTION 7AREA MACHININGFUNCTIONS (OPTIONAL)(4)Cutter Positioning(a)Rrst positioningExternal cutting (RMILO):The cutteris positioned toapointwhere thecutting width (cutterdiameter x P) from theworkpieceend surface inthe narrower workpiecedirectioncan be assured.In addition,thepoint mus...

  • Page 157

    4186-E P-144SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)(d)Cuttingsurface on a plane fromsecond timeonward.I iIi,111% Reference pointtI! |(X.Y)S7////////W/W//////iiIIT)Cuttingwidth;Reference point(X, Y)RMIURMILO(e)Final infeedThe finalinfeed applies only totheRMILI function.(T)Machiningwithmore t...

  • Page 158

    4186-E P-145SECTION 7AREA MACHINING FUNCTIONS (OPTIONAL)® Without Q(stock) commandiI i11I iII 5mm(0.20 in.)I1I I1 iI1I5mm (0.20 in.)1I KReference point (Xp. Y0)(f) Retraction fromworkpieceDuring theRMILI (internal cutting) mode,the cutterretracts inwardlyfrom the workpiece asitis in contactwith ...

  • Page 159

    4186-E P-146SECTION 8 S, T,AND M FUNCTIONSSECTION 8S, T, AND M FUNCTIONSThe S, T,and M functions specify thenecessary machine operationsother than axis movementcommands.S : SpindlespeedT: Tool number fortool change cycleM :Turning solenoidsand other similar devices onandoffFor eachone of these ty...

  • Page 160

    4186-E P-147SECTION 8 S,T, AND M FUNCTIONS(a) M02,M30 (end of program)These M codesindicate the end ofa program.When M02 or M30is executed,the mainprogram endsand the resetprocessingisexecuted. Theprogram is rewind tothe startoftheprogram. (Inthecaseof a scheduleprogram, execution ofM02or M30 int...

  • Page 161

    4186-E P-148SECTION 8S, T, AND M FUNCTIONS(h) M201 toM210 (Mcode macro)By setting the programnames which correspond toM201 toM210for the parameters,the subprogram canbe executedby specifying the M code.Fordetails ofM codemacro, refer toSECTION 9, 3. “G and M CodeMacroFunctions".(i) M238,M2...

  • Page 162

    4186-E P-149SECTION 8 S, T, AND M FUNCTIONS(q) M134,M135 (spindle speed override ineffective/effective)Even in the statuswhen spindle speed override fromthe PLC iseffective, the spindle speedoverride functioncan be made ineffective (M134) or effective (M135) withthese commands.(r) M136, M137 (axi...

  • Page 163

    4186-EP-150SECTION 9SUBPROGRAM FUNCTIONSSECTION 9SUBPROGRAM FUNCTIONS(1)Programming sometimes repeatssimilar patternsor uses patternsfrom other programs.Instead of continually rewritingany repeatedlyused programs, correctandrapid programmingmay beimplemented by thesubprogram function. In this way...

  • Page 164

    4186-E P-151SECTION 9SUBPROGRAM FUNCTIONSExample 1:P-SELECT commandwhere the subprogram file is notspecified:01IEffectiveRTSFilename MD1: A.SSBCALL 0101IneffectiveiRTS01Filename MD1: B.SSBIneffectiveIRTSExample 2:Program having aprogramname:!01CALL01IGOTOII02CALL 02*!RTSiIfa program namediffering...

  • Page 165

    4186-E P-152SECTION 9SUBPROGRAMFUNCTIONS[Supplement]1. The totalnumber of subprograms used orcalledin one program is 63.2.Intheblock which contains a CALL command,only a program name,7” (blockskip) and/or asequence name,may be programmed before the CALL command. Ifother commandsare written befo...

  • Page 166

    4186-E P-153SECTION 9SUBPROGRAM FUNCTIONSExample:In the following case,numerical values of LB, LC, and LD are:LB = 10,LC = 10,LD = 2001N1 LA=10N2 CALL 02 LA=20 LB=LAN3 LC=LAM02_:Local variable of01= : Local variable of0202N1 LD=LARTSWhen the number of subprogram repetitions, specified by a Q word...

  • Page 167

    4186-E P-154SECTION 9SUBPROGRAM FUNCTIONSSubprogram (Positioning):OSUBN11LC=LPN12 CALL OSQRLX=LX LY=LY l_Z=l_ZN13 LC=LC-1N14IF [LCLEO] N17N15G91G00X=LIN16 GOTO N12N17G91G00Y=LJN18 Ll=—LIX-direction positioningY-direction positioningDirection reversedon X-axisRTS\UFunction of OSUB'24f3LISubprogr...

  • Page 168

    4186-E P-155SECTION 9SUBPROGRAM FUNCTIONS2.Subprogram Call after AxisMovement (MODIN)(1)Acall afteran axis movecommand establishes the callafteran axismove mode. The executionof axis movementisfollowed by a subprogram runeach time an axismove command isissueduntil it iscanceled.(2)In case the cal...

  • Page 169

    4186-E P-156SECTION 9SUBPROGRAM FUNCTIONS(b) Within aprogram, whenone call after axismove command isfollowed by another, orwhen acall after axis movecommand is programmed inthe subprogramcalled by a call commandother thana callafter axismove command,then the calledsubprograms are executed inthefo...

  • Page 170

    4186-E P-157SECTION 9SUBPROGRAM FUNCTIONSExample:Multiple call after axis movement commands; executionsequence and call nesting levelSubprogramMain Program010AODN1MODIN OAN100X_ Y_N 400X_ Y_HZX_Y_N3MODIN OBI N4x_ Y_W5MODOUTRTSRTSj—OBL_N200 XYN6X_Y_N7MODIN OC!X_ Y_! iiL- N9MODOUT1---N10 MODOUTNi...

  • Page 171

    4186-E P-158SECTION 9SUBPROGRAM FUNCTIONSUpon the axis movementof N3,subprogram 02 iscalled. When 01 is calledwith theaxismovement command inN10, variablesare set:but thisresultsin analarm because noLA isdefinedin thesubprogram 02. Therefore, the N2 block mustbespecifiedas follows:N2 MODIN02LA=LA...

  • Page 172

    4186-E P-159SECTION 9SUBPROGRAM FUNCTIONS(8)It is possible to program afixed cyclewithin asubprogram called afteraxis movement.Example:<Main Program><Subprogram>MODIN OAOAG81It is impossible>. toprogram afixed cyclewithin thisrange.X_Y_G80MODOUTRTSNOTICE• When the fixed cycle is ...

  • Page 173

    4186-E P-160SECTION 9SUBPROGRAM FUNCTIONS(2)M Code Macro(a) Asubprogrammay becalled usinganM code in place ofa CALL command. Note thatvariables-setting is notperformed.This is alsoprogrammed in a block without othercommands.Programming format: M_M201- M210:Same inmeaning as CALL0_However,that the...

  • Page 174

    4186-EP-161SECTION 9SUBPROGRAM FUNCTIONSAcommand of“G111X30Y20I10J30K5” gives the result shown below:Y54£r130* /200X30

  • Page 175

    4186-E P-162SECTION 10USERTASKSECTION 10USER TASK1.User Task 1Theuser task 1allowsuser access tothe high speed processing function,oneof the many importantfeatures provided by the NC.The usertask 1consistsof thefollowing threefunctions:- Branchfunction- Variablefunction- Math function1-1.BranchFu...

  • Page 176

    4186-E P-163SECTION 10USER TASK(7)Ifoperation method A isselected by the settingof a parameter,branching can bedone quicklyby designatingsequence labels as the destination of abranch command. However, this quickbranching ispossible onlyup to 30sequence labels from thebeginning of aprogram. Forseq...

  • Page 177

    4186-E P-164SECTION 10 USER TASK1-1-2.IF StatementThis is abranchfunction whichcauses aconditional jump.If thecondition is satisfied, the executionsequence jumps tothe specifieddestination. Ifthecondition is notsatisfied, the execution sequencemoves tothe nextsequence.Programming format:IF [quali...

  • Page 178

    4186-E P-165SECTION 10USER TASK(1)Variables may be assigned to theaddresses other than O and N and theextended addresses.“=", blank orHT should be used asa delimiter tobe placedbetweenan address and avariable.(2)If the variable assigned is outof a specifiedrange, determined by individual a...

  • Page 179

    4186-E P-166SECTION 10USER TASK3)In case anundefined variable is usedin the qualification“EMPTY" isdifferent from 0,only when EQandNE areused.VC1 = EMPTYVC1 =0N1 IF [VC1 EQEMPTY] N10‘N1IF [VC1 EQEMPTY] N10N2IN2Branching toN10To the nextN2N1IF [VC1 NEO] N10N1IF [VC1 NEO] N10N21N2lBranchin...

  • Page 180

    4186-E P-167SECTION 10USER TASK1-2-1. Common VariablesThis refers to thevariables, whichare common toschedule programs and subprograms, andthey may bereferenced orupdated inany ofthese programs.CommonVariable\7ScheduleprogramMainSubprogramprogram(1)FormatType 1:VCNumericsRange for numerics: 1 to ...

  • Page 181

    4186-E P-168SECTION 10USER TASK1-2-2.LocalVariablesThis variablemay be set,referenced, or updated by amain programor subprogram.The value is valid onlyfora particular program. Normallythe local variable set byone program cannotbereferenced orupdatedby another program.When the variable is setby an...

  • Page 182

    4186-E P-169SECTION 10 USER TASK(5)Listof LocalVariable ReservedWordsDGRDXABSGRDYNOTRTMDIDGRDYANDGRERORRTIDINAGGROFPCIRRTSDRAWARCGRONPMILSAVEDROUNDATANGRSKPMILRSINEINATAN2GRSTPRINTSPRINTEMPTYBCDGTRCIRISORTEQBHCHARCIROSQRxEORHBBINRMILISQRYFACALLHCRMILOTANFBCLEARIFRHTLCOFCCOPYLAAROUNDTLFRFIXCOPYELE...

  • Page 183

    4186-E P-170SECTION 10USER TASK2.UserTask 2Theuser task 2 allowsthe use of systemvariables, logical andfunction operations,in addition tothefunctions available with the user task 1. Selection of I/O variable function isalso possible.2-1.SystemVariablesThis variablewhich isdetermined by the system...

  • Page 184

    4186-E P-171SECTION 10USER TASK(5)AList of System VariablesSystemVariableNameRange ofSet ValueInch/metricConversionReferFormatSubscriptRead/WritetoZero offsetVZOF*[expression]0-WorkcoordinatesystemnumberTool lengthoffset numberCutter radiuscompensationnumberRead/Write*1175±99999.999Tool lengthof...

  • Page 185

    4186-EP-172SECTION 10USER TASKSystem VariableNameRange ofSetValueInch/metricConversionReferFormatSubscriptRead/WritetoNexttool numberNumber ofcoordinate systemsandtool data sets(NC specificationcodeNo. 2)Spec, codeforsubprogram(NCspecificationcodeNo. 24)Machine lock3D graphic viewingangle (horizo...

  • Page 186

    4186-E P-173SECTION 10USER TASKSystem VariableNameRange ofSetValueInch/metricConversionReferFormatSubscriptRead/WritetoOperating timecounterWork counterVDTIMReadonlya: 1- 5b: 1- 2a: 1- 4b: 1- 2*2201[a.b]VWRKCRead only*2201[a. b]Synchronizedtapping torquemonitor parameterVTMNO1-5Read/Write*2183No....

  • Page 187

    4186-EP-174SECTION 10USER TASKSystemVariableNameRange ofSetValueInch/metricConversionReferFormatSubscriptRead/WritetoNumberof tools forATCVSPTNRead only*2207PPC parametersPPC pallet numberVPPCPVPLNOVPLDT[expression]VECWMReadonlyRead onlyRead only*2208*2207PPC parameter (bit)1- 12*2208dataAutomati...

  • Page 188

    4186-E P-175SECTION 10USER TASKSystemVariableNameRange ofSetValueInch/metricConversionReferFormatSubscriptRead/WritetoMOPControl 3VMPC3Binary, 8bits(1byte)Binary, 8bits(1 byte)Binary, 8bits(1 byte)Read/Write*2187MOPControl 4VMPC4Read/Write*2188MOPControl 5VMPC5Read/Write*2189VIRD[expression]VORD[...

  • Page 189

    4186-EP-176SECTION 10USER TASK(2)Tool Length OffsetValueVTOFH[expression]Expression:Tool length offsetnumberAllowable range: 1 toNo. of tooldata sitesIt ispossible for the expression toindicate read and write operations of thetool length offset value forthe tool length offset number.For this sett...

  • Page 190

    4186-E P-177SECTION 10USER TASKExample 2: Reading cutterradius compensationvalue at No. 10VC1 = VTOFD[10]If cutterradius compensation value atNo. 10is 20 mm,(a) rim unit systemVC1 = 20000(b)mm unit systemVC1 = 20For details,refer to 2-1-4.“General Rule for Conversion betweenInches andMillimeter...

  • Page 191

    4186-EP-178SECTION 10USER TASK(5)NegativeProgrammable Travel LimitVNPL*AxisnameIt is possible forthe axis name toindicate read and writeoperations ofthe programmable travel endlimit (-)value. This isthe parameterasuser parameterUN PROGLIMIT WRK” accessible in theparameter setting mode. Forthis ...

  • Page 192

    4186-E P-179SECTION 10USER TASKExample:To output only “code 31 (1Fin hexadecimal)" tothe printerwithout linefeed, enteras indicatedbelow.VPCNT=31SPRINT VPCNT(7)Automation Spec. JudgmentResult 1VOK1Setting range: Binary, 8bits (1 byte); 0- 6,10- 16This isused with aprint statement.Toprintth...

  • Page 193

    4186-E P-180SECTION 10USER TASKNOTICE: The setting range is 0- 255if the setting ismade only for VOK2.If it isused incombinationwith thePRINT statement, setting mustbe “1" or “2” andif other value is set,it causes analarm.(9) MeasuringNumberVNUMSettingrange: 0- 9999This isused witha pr...

  • Page 194

    4186-E P-181SECTION 10USER TASK(11) PrinterControlVPRTSettingrange: Binary, 8bits (1 byte); 0- 255Specify the outputdestination and output unit for outputtingthe characterstring setwiththe printstatement.Unit of VariableOutputDestinationMinimum Unit SystemStandard Unit SystemVPRT = 0No outputVPRT...

  • Page 195

    4186-EP-182SECTION 10USER TASK(12) Tool Length/Breakage Switching FlagVFSTSetting range: Binary, 8bits (1 byte); 0- 255Designationof thebasic operation mode for automatictool length compensation and automatic toolbreakage detection ispossible.The relationship between each bit and the operation mo...

  • Page 196

    4186-E P-183SECTION 10USER TASK(14) Synchronized Tapping Torque Monitor Parameter No.VTMNOSettingrange: 1- 5During synchronized tapping, it is possible to read/write the tapping torque monitor parameternumber.Since VTMNO isbacked up,the previously usedvalue remains valid ifno new valueisspecified...

  • Page 197

    4186-E P-184SECTION 10USER TASK(17)F1-digit Parameter Maximum ValueVPF1M[expression]Expression: Specified numberfor F1-digit parameter feedAllowable value: 1- 9It ispossible toread/write the maximum feedrate forthe specifiedF-1 digit parameterfeednumber.Example 1: Writing the maximum feedrate for...

  • Page 198

    4186-E P-185SECTION 10USER TASK(19)Tool Management DataVTLD*[expression]1to 8Expression: Tool Offset numberAllowable range: 1 toNo. of tooldata sitesIt ispossible toindicate read and writeof thetool managementdata with the expression.Theobjective tobereador written is designated by an asterisk (*...

  • Page 199

    4186-E P-186SECTION 10USER TASK(g)VTLD7: Toollife management settingvaluehi :2-byte data1) When toollife is judged byaccumulated cutting time (tool life mode: 1 to 3):0 g hi32767 (unit: min.)2) When toollife isjudged by countdata (toollifemode: 4 to 6):0hi g 327673)When toollife managementis note...

  • Page 200

    4186-E P-187SECTION 10USER TASK(21)MOPControl 1VMPC1It is possible to designate sampling of no-loaddata (forfixed setmethod data).Sampling of no-loaddata iseffective only when VMCP2 = 1and the MOP-TOOL operationmode is“monitoring'’.Bit 71: No-load data sampling ON0:No-load data sampling OFFBi...

  • Page 201

    4186-E P-188SECTION 10USER TASKBit 41: Load data No. 4overload monitoring ON2: Load data No. 4overload monitoring OFFBit 31:Load data No. 5overload monitoring ON2: Load data No. 5overload monitoring OFFBit 21:Load data No. 6overload monitoring ON2: Load dataNo. 6overload monitoring OFFBit 11: Loa...

  • Page 202

    4186-E P-189SECTION 10USER TASKBit 11: Air cutreduction for load data No. 7ON2: Air cutreduction for load data No. 7OFFBitO1: Air cutreduction for loaddataNo. 8ON2 :Air cutreduction for load dataNo. 8OFF(25) MOPControl 5VMPC5Used toturnthe adaptive control function ON/OFFBit 71 : Adaptive control...

  • Page 203

    4186-E P-190SECTION 10 USER TASK2-1-2.Read/Write System VariablesRequiring Special Attention in WritingACAUTION 'systemvar'ables explained below have critical influence over machine operations.- After theyhave been written, the machined surface will deteriorate, or unexpectedinterference will res...

  • Page 204

    4186-E P-191SECTION 10USER TASKExample 1: Reading X-axis travel endlimit (-)Assume that:- Travel end limit (-) is -500 mm (19.69 in.)on thework coordinate system,and- Work zero of the currentlyselected workcoordinate system No. 2 is X = 150 mm (7.09 in.)Reading travelend limit (-) on machine coor...

  • Page 205

    4186-EP-192SECTION 10USER TASK(5)In-positionWidth forHomePositionVHPI*AxisnameIt ispossible toexecuteread and writeoperations ofthe in-positionwidth for home position oftheaxis by indicating theaxisname. This is the same parameteras system parameter“IN POSITION(H)"accessible in the paramet...

  • Page 206

    4186-E P-193SECTION 10USER TASKExample 1: Reading No. 3home position location ofX-axisAssume that No. 3home positionlocation (X-axis) is at457.987 mm.VC1 = VHPPX[3](a) |imunit systemVC1 = 457987(b)mm unit systemVC1 =457.987(8)Sensor Contact ValueVSAP*Axis nameX to Z,UtoW, AtoCItis possible toenga...

  • Page 207

    4186-E P-194SECTION 10USER TASK(10)NextTool NumberVTLNNIt ispossible toexecutereadand writeoperations of the nexttool number.Example 1:Reading ofthe nexttool numberVC1 = VTLNN: Read only forthemachinewith ATC specifications.NOTICE

  • Page 208

    4186-E P-195SECTION 10USER TASK2-1-3.Read Only SystemVariables(1)CalculatedValueVRCO*AxisnameThe calculated value (CON) of the axisdesignated by the axis name canbe read. Forthis setting,unit systemis as set bythe NC optional parameter(bit)No. 3.Thevalue is referenced to thezeroposition ofthe pos...

  • Page 209

    4186-E P-196SECTION 10USER TASKVC1 = VAPAIActual value read from positionencoder(referenced to thezero position ofthe position encoder)Read value isconverted into the value onthe machinecoordinate systemReading thenumber ofthe presentworkcoordinatesystemVC4 = VC2- VZOFX[VC3]Value converted into t...

  • Page 210

    4186-E P-197SECTION 10USER TASKTool number76543210bit98*:0or 1Example 1: Reading the managementnumber ofthe active tool (Normal tool with the toolnumber 10)VC1 = VATOLVC1 = 10(#0000000000001010)Example 2:Reading the managementnumber ofthe active tool (Normal tool with the toolnumber 10)VC1 = VATO...

  • Page 211

    4186-EP-198SECTION 10USERTASKTool number0bit987654321*:0or 1Example 1: Reading the managementnumber ofthe next tool (Normal tool with the toolnumber 10)VC1 = VNTOLVC1 = 10Example 2: Readingthe managementnumber of the next tool (Normal toolwith the toolnumber 10)VC1 = VNTOLVC1 = 32778Example 3: Re...

  • Page 212

    4186-E P-199SECTION 10USER TASK(7)Spec. Code for Subprogram (NC Specification CodeNo. 24)VSPSBIt is possible to readthe 1-byte specification code data whichindicates the makersubprogramspecifications.The relationshipbetween thebit dataand the specifications isindicated inthefollowing table.Bit No...

  • Page 213

    4186-E P-200SECTION 10USER TASKFeedrate ClampValueVFMDXIt ispossible to executeread operationfor thefeedrate clamp value (the data setfor NC optionalparameter (long word)No. 10).Example:Reading the feedrate clamp value(11)VC1 = VFMDXProgram Unit SystemVINCHReading and writingoperations of the uni...

  • Page 214

    4186-E P-201SECTION 10USER TASK(13)Sequence Restart FlagVRSTTThe flag is turned onwhen the restartsearch command (RS) is executed inthe automatic mode;it isturned off afterthe designated sequence is located. The flag statecan nowbe read.Setting range: Binary 8bits (1byte)Example 1:Duringsequence ...

  • Page 215

    4186-E P-202SECTION 10 USER TASK(16) G CodeVGCOD[expression]The mode ofthe presentGcodegroups can be read.The expressionis used todesignatethe groupnumber of theGcode.The range ofselectable G codes isfrom 1 to 96. The value tobe read is the numerical value ofa Gcode. However,“254” isread for ...

  • Page 216

    4186-E P-203SECTION 10USER TASK(17)M CodeVMCOD[expression]The modeof the presentM codegroups can beread.The expression isused todesignate the groupnumberof the M code.The selectable rangeof theM code isfrom 1to 64.The value toberead isthe numerical value ofanM code. However, "254" is re...

  • Page 217

    4186-E P-204SECTION 10USERTASK(19)F CodeVFCODThe command value of the presentfeedrate (F) canbe read.Setting ofthe feedrate overridedial is ignoredand theunit of the data to beread is 0.1mm/min (forfeed per minute mode)or 1n/rev (for feed per revolution mode).Note that conversion tothe English sy...

  • Page 218

    4186-E P-205SECTION 10 USER TASK(22) Mirror ImageVMRIIt ispossible toreadthe present status of the mirror imagefunction. The data isof one-bytelengthand eachaxis corresponds toeachbitMirror image ONMirrorimage OFF: 0: 1bit6075432100*****6thaxis5th axis4th axisZ- axisY- axisX-axis*:0 or 1Example:C...

  • Page 219

    4186-E P-206SECTION 10USER TASK(24) Manual Intervention Shift AmountVMSF**: AxisnameManual shift amount of the axisindicated by the axisname canbe read.For the setting, theunitsystem is as set bythe NC optional parameter(bit)No. 3.Example:Reading manualshift amountAssumethat manual shift amount(X...

  • Page 220

    4186-E P-207SECTION 10USER TASK(27)Number ofTools for ATCVSPTNIt ispossible toreadthe numberof tool potsin theATC magazine.Example:Reading the numberof tool potsin the ATCAssume thatthe numberof tool potsinthe ATC magazine is“50”.VC1 = VSPTNThus, VC1 = 50.(28)PPC Pallet Number (for PPC specif...

  • Page 221

    4186-E P-208SECTION 10USER TASK(29) PPC Parameters (forPPC specification)PPC parameter (word) dataPPC parameter (bit) dataWhen multiple number of workpieces is seton apallet with PPC set ON, this systemis used toindicate the positions where the workpieces are set.The parametermustbe setfromthe PP...

  • Page 222

    4186-E P-209SECTION 10USER TASKSystem variables VPLDT[1] through VPLDT[12] and VPPCP are setasbelow where individualprograms areexecuted. These settings canbe referenced from partprograms.01000 executed02000 executed00700 executed00800 executedVPLDT[1]1000VPLDT[2]1000VPLDT[3]1000VPLDT[4]1000VPLDT...

  • Page 223

    4186-E P-210SECTION 10USER TASK(31) Active Attachment NumberVATNTIt ispossible to readthe number ofthe currentlymounted attachment.Setting range: 1 tonumberof attachmentsExample:Whenthe activeattachment number is 301:VC1 = VATNTThus, VC1 = 1.2-1-4.Genera! Rulefor Automatic Conversion between Inch...

  • Page 224

    4186-E P-211SECTION 10USER TASKExample 2:VC1 = VTOFH[1](Only bit 2 = 1)VC1 = 520 when VTOFH[1] = 5.2mm (0.20 in.)(4)NO OptionalParameter (Bit) No. 3Bit 6(a)Millimeters or inchesare selected for systemvariables disregarding theuse of adecimal pointwhenthesetting is “1”.(b)If the setting is 0,t...

  • Page 225

    4186-EP-212SECTION 10USER TASKBit No.ExampleNo.65743210me VTOFH[1] = 4.2mm= VTOFH[1] VC1 = 4200- VTOFH[1] = 5 (5.0)VTOFH[1] = 0.005mm- AssuVC101000****- AssumeVTOFH[1] = 1.5in.VC1 = VT0FH[1] VC1 = 15000- VTOFH[1] = 1 (1.0)\TTOFH[1] =0.0001in.02001****- AssumeVTOFH[1] = 4.2mmVC1 = VTOFH[1]VC1 = 4....

  • Page 226

    4186-E P-213SECTION 10USER TASK2-2.Math FunctionsVarious types of operationsusing variables are possible.Programming forthis function can be madein thesame manneras with general calculations.Programming format:Address character,Variables = ExpressionSince themath functions available withtheuser t...

  • Page 227

    4186-EP-214SECTION 10 USER TASKOperationMath NameOperation ExampleVC1RemarkDROUNDUnit integerimplementation(rounding)VC1 =DROUND[13.26462]13.265(Supplement 8)VC1 = DFIX[13.26462]DFIXUnit integerimplementation(truncation)13.264(Supplement 8)DFUPUnit integerimplementation(raising)VC1 = DFUP[13.2646...

  • Page 228

    4186-E P-215SECTION 10USER TASK2-3.I/O VariableThe I/O variable canreference or updatean I/O signalexternal tothe system,whilethe systemvariable isused asinternal data.(1)TheI/O variable isalso bedetermined by the system and may be referenced (input variable) orupdated (output variable)in aschedu...

  • Page 229

    4186-E P-216SECTION 10USER TASK2-3-1.InputVariables (VDIN)InputVariableNo.nData ContentsInputDeviceBitdata read at 16pointsof input signals1 (ON), 0 (OFF)bit |15|14l13|12|11110| 9l8|7|6|5|4|3|2|1|0|n = 16 15 14 1312 11 10 9 8 7 6 5 4 32 1I/O unit input1 to 161 byte data; n = 9to 16corresponds tob...

  • Page 230

    4186-EP-217SECTION 10USER TASK2-3-3.Alarm MessageUser designated sub messages foruser defined alarmscan be displayedon thescreen.Designation of submessagescan be set atsystem variable VUACM.A briefexplanation if the systemvariableVUACM is providedbelow:(1)VUACM[n]............“n" isa subscr...

  • Page 231

    4186-E P-218SECTION 10USER TASK2-3-4.Supplements(1)VDIN variablescan be designed only attheright part ofan operation command.If they arespecified atthe left part,an alarmoccurs.(2)VDOUT variables can be designatedonly attheleft part ofan operation command. If theyarespecified atthe right part,an ...

  • Page 232

    4186-E P-219SECTION 10USER TASK2-3-5.Application Example of input/output Variables(1)Assumethat the information concerning the kindof data is outputfrom the CNC toan externaldevice andthe correspondingone bytedata is input tothe CNC fromthe externaldevice. Thisinputand outputprocess will requiret...

  • Page 233

    4186-EP-220SECTION 11OTHER FUNCTIONSSECTION 11OTHER FUNCTIONS1.TableIndex SpecificationForadditional axis index specification, 5°index specification and 1° index specification are provided.Thefollowing explanation isgiven assuming that B-axis isinstalled asthe fourth axis.1-1.5-Degree Index Com...

  • Page 234

    4186-E P-221SECTION 11OTHER FUNCTIONS(4)In the G01 mode, aBcommandshould be programmedin blocks notcontaining axismovement commands. In the GOO mode, it canbe programmed withother axis movementcommands in thesame block.An exampleof B-axis rotation within afixed cyclemode isshown left:N..G81G56X.....

  • Page 235

    4186-EP-222SECTION 11OTHER FUNCTIONS(c)With the 0.001 deg. specification, cuttingfeed of B-axis and linear interpolationincludingB-axisis possible in thesame manner as with X, Y,Z-axis. In thiscase, units of feedrate forthe B-axis mustbe attended to.B-axis feedrate:When 6-axis isprogrammed indepe...

  • Page 236

    4186-E P-223SECTION 11OTHER FUNCTIONS(c) Travel limits (P/N) arefixed.Travel limit (P)Travellimit (N)(d)Whether the coordinate values ofthe actual position areupdated toavalue withinthe range of0 to359.999 degreeswhen the control is resetcan be determinedaccording to the setting forNCoptional par...

  • Page 237

    4186-EP-224SECTION 11OTHER FUNCTIONS2-1.PSELECT BlockThis block selects and executes mainprograms for aworkpiece tobe machined.(1)This functionsearchesa specified mainprogram file fora specified mainprogram to beselected as a machiningprogram. This function also searches aspecified subprogram fil...

  • Page 238

    4186-E P-225SECTION 11 OTHER FUNCTIONS(c)fs: Subprogram file name[ ] may beomitted.[ 3characters|:][ 16characters orless][. 3charactersJdevice namefile nameextension1) fs may be omitted when:- no subprogramis called in the mainprogram,- the subprogram called from a mainprogram or subprogram exist...

  • Page 239

    4186-E P-226SECTION 11OTHER FUNCTIONS2)Specification of Aoptionr*~iThespecification ofan A optionalways selects operationmethod Aindependent of the setting ofoptional parameter (word)No. 11.3)Specification ofB optionThe specification of aB optionalways selects operationmethod Bindependent ofthe s...

  • Page 240

    Table 11-1Operation Comparison betweenNormal Storage Capacity Memoryand Large Storage Capacity MemorySelectionand Operation ofNormal Storage CapacityItemSelection and Operation ofLarge Storage CapacityRemarksParametersettingMethod AMethod BMethod SValidSpecification of S option inPROGRAMSELECT co...

  • Page 241

    4186-E P-228SECTION 11 OTHER FUNCTIONS2-2.Branch BlockThe branching function of theschedule program, which isidentical toSECTION 10,1-1.“BranchFunctions”,falls intoGOTO andIF blocks, which provideunconditional branching and conditionalbranching, respectively.(1)GOTO BlockTheGOTO blockuncondit...

  • Page 242

    4186-E P-229SECTION 11OTHER FUNCTIONS3.File Management3-1.Files(1)Programsare executed after they havebeen stored in theNC memory.(2)The memory inthe control has acapability to store40m (131.2ft.) to10240 m (3121.0 ft.)oftape,can also be stored optionally. Therefore, several programsare stored in...

  • Page 243

    System Construction[Explanations]r1Lockora orMemory (data bank)coblnBtsILockers orcablnotouIIJIVarious filesriMain programIri Systom/Sub-/program/’ Mainprogram1 Sub¬programScheduleprogram/Document fitaeor account bookDocument (HashfitefilefileIIniolJi_FiteSubprogram'iCDCompany namehrogram n«m...

  • Page 244

    4186-E P-231SECTION 11OTHER FUNCTIONS(3)Types of files:(a)Main program file(b) Subprogram file(c) System subprogram file(d)Maker subprogram file(e)Library program file(f)Schedule program fileExample:IMain filenameI.MINIMain filenameI. SUBJ . SSBI Main filenameI . MSBMain filp nampIMain filpnamp~l...

  • Page 245

    4186-E P-232SECTION 11 OTHER FUNCTIONS1Main program fileThis isa filewhich basically files main programs.In themain program file, subprograms whichare called from the main programfiled init can also be filed.Example:When filing asubprogram namedFLANGE-A10.SUB inExample 1withthe mainprogram FLANGE...

  • Page 246

    4186-E P-233SECTION 11 OTHER FUNCTIONS3-3.File Name of Paper TapeOn the NC,apaper tapecontaining programs is regarded as a file. This means that afile name canbegiven to paper tapes.The manner for giving a file name toapaper tapeis shown below:%(j)0$FLANGEA10.MINTFood holesFeed holesDollar mart:F...

  • Page 247

    4186-E P-234SECTION 11OTHER FUNCTIONS3-4.Operating Files(1)The roadand program selection are examplesof fileoperations. Inaddition, editing,punching,copying (duplication), etc.areincluded in thefile operation.(a)For instance, the read operation is carried outby thecommand shown below:>Rcinputf...

  • Page 248

    4186-E P-235SECTION 12 NC PROGRAM GRAMMARSECTION 12NC PROGRAM GRAMMARGeneral Rule of Legend:Those enclosed byor()Those enclosed byindicates a character itself.indicates the defined item.(1)Alphabetic Characters©(§)©©©©©(B)(IXZ)®©®®(2XEXSX5)©©©@XXYXZ,(2)Numeric CharactersS>©@®@...

  • Page 249

    4186-E P-236SECTION 12 NC PROGRAM GRAMMAR(7)Hexadecimal Number<£>0©I[I<«>* Theallowable maximum hexadecimal number is 99999999when converted into a decimalnumber.(8)Empty Constants—EMPTY")-(9)Constants without a SignIntegerwithout a signReaJ number with asignHexadecimal numb...

  • Page 250

    4186-E P-237SECTION 12NC PROGRAM GRAMMAR(14)SystemVariable*1—(v)-[Alphabeticcharacter \-qLJ L-(THExpressont~(ZHAlDf.abelic characterNumeric character* Thevalue ofan expressionin ( )is truncated.The range startsfrom “1".The maximum value will vary depending on the typeof systemvariables.T...

  • Page 251

    4186-E P-238SECTION 12 NC PROGRAM GRAMMAR(21) Address WordAddress characterL-IExpression!-UHE?Extended address character* When anexpressionbegins with analphabetic character, placeeither the “=" or a delimiter rightbefore it.When the “=” is notusedin G andM codes, thecannotbe used.(22)...

  • Page 252

    4186-E P-239SECTION 12NC PROGRAM GRAMMAR(25)Mathematical Function NamesSIN| COS| TAN| ATAN| ATAN2 | SORT| ABS|BIN| BCD| ROUND|FIX |FUP |DROUND |DFIX |DRUP| MOD(26)Delimiter-dp>- .* Whenseveral itemswhich begin withan alphabeticcharacter continue, place adelimiter.A statement (..)may beusedas a...

  • Page 253

    4186-E P-240SECTION 12 NC PROGRAM GRAMMAR(29) BlocksNormal sselernemEOBrEOB“TSequence nameIF statementGOTO statementCALL statementMODIN statement[—'MODOUT statement*1: Oneblock can contain up to 158characters, excludingthe EOB code.The block precededbythe “$”code isinterpreted asthe block...

  • Page 254

    4186-E P-241SECTION 12 NC PROGRAM GRAMMAR(36)Repetition Command*1<s>Integerwithout a signE0J*1: From 1 to 9999(37) Main ProgramMain program end block[ÿProgramname blockPBlock(38)ProgramName BlockEOBProgram name(39)Main Program EndBlock*1EOBM02"230*1: 2 or 002 isalso acceptable.*2: 030...

  • Page 255

    4186-EP-242SECTION 12 NC PROGRAMGRAMMAR(45)PSELECT StatementPS£L£CT>—SP.-[ Mainprogram filey-qH gar?SuDpragrem tooProgramnameccmmang* No delimiter isallowedwhere not specified.(46)PSELECT Option Command-®—(47)VSET Statement-( VSET> 4pVariable setting word*1*1:Local variable and param...

  • Page 256

    4186-E P-243APPENDIXAPPENDIX1.EAI/ISO CodeTableEIA CodeISO CodeRemarksHEXChan-Channe!8 7 653 28 7 65 43 2411Char-'2?o oNumerical character 00O030ooO ONumerical character 11O 1OOooB1o oNumerical character 22O2OoB2ooNumerical character 33O0 0 3ooo o33ooNumerical character 4O4oo ooB44ooOO Numerical ...

  • Page 257

    4186-E P-244APPENDIXEIA CodeISO CodeRemarksChanChanHEXno3 287 6 5 418 7 653 2 14Char-'>aaerChar¬acterTOOTAlphabetical character TOo oooD4ooUoouoooo Alphabetical character Uo55oVooO voo oAlphabetical characterVOo56oWo O Owoo oooo o Alphabetical character WD7oXo oOo oo xo oO O OAlphabetical cha...

  • Page 258

    4186-E P-245APPENDIX2.List ofG CodesG CodeGroupFunctionsGroupG CodeFunctionsG00OPositioningG28G01OLinear interpolationG29Circular interpolation- Helicalcutting (CW)G30©G02Positioning tohome position161G31©Skip function17G03Circular interpolation- HelicalCutting (CCW)G32G33G04©DwellG342G05G35G0...

  • Page 259

    4186-E P-246APPENDIXGCodeGroupFunctionsG CodeGroupFunctionsG57Tool length offset, 4th-axisG88G58Tool length offset,5th-axisG89Fixed cycle, Boring1011G59Tool lengthoffset, 6th-axisG90OAbsolute dimensioning G6712G60One-directional positioningG910Incrementaldimensioning1G61Exact stop modeSetting ofw...

  • Page 260

    4186-E P-247APPENDIXG CodeFunctionsGroup:G174Cylindrical side cuttingOFF78G175Cylindrical sidecutting ON=G186Tolerance controlOFF66G187Tolerance controlONG274Synchronized tapping,Reverse tapping cycle11G284Synchronized tapping,Tapping cycle11*: Has already been setwhen power supply isturnedon.@: ...

  • Page 261

    4186-E P-248APPENDIX3.List ofMnemonic CodesMnemonicCodeGroupFunctionsNOEXSpecification ofthesequence notexecuted34CALLSubprogram, Simple callSubprogram, End codeSubprogram, Call after positioning modeONSubprogram, Call after positioning mode OFFRTS27MODINMODOUTGOTOBranch command,Unconditional jum...

  • Page 262

    4186-E P-249APPENDIX4.Listof MCodesMAgainst AxisMovementModal /One-shotGroupFunctionRemarksCodeMOOProgram stopOptional stopAfterone-shot1Spindle coolantStops;selectable withparameterAfterM01one-shotM02End ofprogramAfterNO reset18one-shotSpindle CWSpindle CCWSpindle stopM03Atthe same timeAtthe sam...

  • Page 263

    4186-E P-250APPENDIXMAgainst AxisMovementModal/One-shotGroupFunctionRemarksCodeAAC(F)next attachment clearAAC(F) change preparationAAC(F) no nextattachmentAAC(T) no nextattachmentM44At the sametimeAt thesame timeAt the sametimeAt thesame timeone-shotone-shotone-shotone-shotF :Floor typeT :Table t...

  • Page 264

    4186-E P-251APPENDIXMAgainstAxisMovementModal /One-shotFunctionGroupRemarksCodeM81Automatic W-axis positioning 1Automatic W-axis positioning 2AutomaticW-axis positioning 3Automatic W-axis positioning 4Automatic W-axis positioning 5Afterone-shotone-shotone-shotone-shotone-shot27AfterM82M83AfterM84...

  • Page 265

    4186-E P-252APPENDIXMAgainst AxisMovementModal /One-shotGroupFunctionRemarksCodeSingle blockineffectiveSingleblock effectiveM132M133modalmodalAt the same timeAt the sametime37M134M135Spindle speed override ineffectiveSpindle speed overrideeffectiveAtthe sametimeAt thesame timemodalmodal16Feedrate...

  • Page 266

    4186-EP-253APPENDIXMAgainst AxisMovementModal /One-shotGroupFunctionRemarksCodeM181M182M183M184M185External M signalExternal M signalExternalM signalExternal M signalExternal M signalAtthe same timeAtthe sametimeAtthe sametimeAtthesame timeAt the same time38one-shotone-shotone-shotone-shotone-sho...

  • Page 267

    4186-EP-254/EAPPENDIXThe commanded state of thefollowing M codes maybe displayed in the M code field (BLOCK).- M03, 04, 05,19- M06, 77-M07-M10, 11-M15, 16- M17- M20, 21- M22, 23- M24, 25- M40- 43- M53, 54- M57, 58- M63, 64, 65- M73 - 76-M81 -85- M60, 101- 112, 160,161-M115, 116-M130- 131- M132, 1...

  • Page 268

    LIST OF PUBLICATIONSPublication No.EditionDate4186-EMarch 19981stThis manual may be atvariance with the actualproduct due tospecificationor design changes.Please also notethatspecifications are subject tochangewithout notice.Ifyourequireclarification or furtherexplanation ofany pointin this manua...

  • Page 269

    OKUMA OFFICESDOMESTIC OFFICESREGISTERED OFFICES1-32 Tsujimachi,Kita-kuNagoya 462-0032,JapanWORLD HEADQUARTERS-OGUCHI PLANTOknxnaCorporationOguchi-cho, Niwa-gunAichi, 480-0193,JapanPhone (0587) 95-7825Fax (0587) 95-6074Telex 4573310OKUMAJKANI PLANTOkuma Corporation3-6 Himegaoka,Kani-shi, Gifu-ken,...

x