You are on page 1of 126
PROGRAMMING MANUAL wemmes Applicable Model sammmmm MV-40M MV-40, 40/U MV-45, 45/U MV-55, 55/U MV-65, 65/U MV-80 M-300 M-400 MH-40 MH-50, 50/U MH-63, 63/U SH-50 SH-63 M-25FH M-25FV mee Applicable NC Unit =m MSC-516, MSD-516 MSC-518, MSD-518 Before operation, maintenance, and programming, read the manuals supplied by Mori Seiki, the NC unit manufacturer, and equipment manufacturers carefully so that the information in the manuals are thoroughly understood. Keep the manuals carefully so that they will not be lost. MORI SEIKI PM-CEF16.18M-A2E © The contents of this manual are subject to change without notice due to im- provements to the machine or in order to improve the manual. Consequent- ly, please bear in mind that there may be slight discrepancies between the contents of the manual and the actual machine. Changes to the instruction ‘manual are made in revised editions which are distinguished from each oth- er by updating the instruction manual number. © — Should you discover any discrepancies between the contents of the manual and the actual machine, or if any part of the manual is unclear, please contact Mori Seiki and clarify these ‘before using the machine. Mori Seiki will not be liable for any damages occurring as a direct or indirect consequence of using the machine without clarifying these points. © All rights reserved: reproduction of this instruction manual in any form, in whole or in part, is not permitted without the written consent of Mori Seiki. The product shipped to you (the machine and accessory equipment) has been manufactured in accordance with the laws and standards that prevail in the relevant country or region. Consequently it cannot | be exported, sold, or relocated, to a destination in a country with differ- ent laws or standards. The export ofthis producti subject to the authorization of the govern- ment of the exporting country. Machine Information Description of machine : Machining center Machine serial No. : Representative : Business hours 30 - 17:30 SIGNAL WORD DEFINITION A variety of symbols are used to indicate different types of warning information and advice. Learn the meanings of these symbols and carefully read the explanation to ensure safe operation while using this manual. ‘The warning information is classified into three categories, DANGER, WARNING, and CAUTION. The following symbols are used to indicate the level of danger. Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury. The information described in the DANGER frame must be strictly observed. WARNING | Indicates a potentially hazardous situation which, if not avoided, A could result in death or serious injury. The information described in the WARNING frame must be strictly observed. Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury damages to the machine. ‘The information described following the caution symbol must be strictly observed. ‘sonmano] The format identified by this symbol gives information for programming. S © Indicates the items that must be taken into consideration. NY & co Indicates the page number or manual to be referred to. ‘The number in (_) indicates the section number. Indicates useful guidance relating to operations. FOREWORD To machine a workpiece in a machining center, a program must be created. This manual describes the basic information to be understood before starting programming and several example programs. When reading this manual, always remember the following points. A WARNING @ _ The programmer is requested to read this manual carefully and ‘observe the cautions it contains when creating programs, so as to ensure the safety of the operator during operation. If the cautions in this manual are ignored when creating a program, the machine may operate in an unexpected manner when the program is run, causing accidents involving serious injuries or damage to the machine. Explanation for programs will include the discussion on parameters. The parameters are set on shipment in accordance with the machine specifications; do not change them without first consulting Mori Seiki. If the parameters are changed without consultation, the machine may operate in an unexpected manner, causing accidents involving serious Injuries or damage to the machine. There are two methods for specifying the coordinate values; an absolute ‘command and an incremental command. In this manual, the absolute command is usually being described. Unless otherwise stated, the program can also be created using incremental commands. When a specified method using incremental commands is different from one using absolute commands, or if either an absolute or an incremental command cannot be used, some cautionary notes will be described at that point. For absolute commands and incremental commands, refer to page P-29 (2.3). CONTENTS 1. Before Programming ... 11 1.2 13 14 15 2. Gand M Functions . 24 22 23 24 28 26 27 28 2.9 2.10 24 2.42 Flow Until the Product is Completed Terms for Programming . Axis Control and Direction ... 1.3.1 Movement along the controlled Axes. 1.3.2 Expressing Axis Movement in Programming Workpiece Zero Point . Basic Pattern of Program .. G Code List . 24.1 MSC-516, MSC-518. 21.2 MSD-616, MSD-518. M Code List ... 2.2.1 MV Series, M-300, 400, 25FV 22.2 — MH,SH Series, M25FH ... G90, G91_Dimensioning Modes (Absolute Commands and Incremental Commands) . G54 - G59 Setting the Work Coordinate System G43, G44, G49 Tool Length Offset . G00 Positioning the Cutting Too! at a Rapid Traverse Rate G01 Moving the Cutting Too! Along a Straight Path at a Cutting Feedrate G02, G03 Moving the Cutting Tool along a Circular Arc ata Cutting Feedrate ... G04 Suspending Program Execution (Dwell). G28, G30 Retum the Axes to the First, Second, Third or Forth Zero Point Automatically . . G40, G41, G42 Cutter Radius Offset . G73 - G89 Hole Machining Canned Cycles 2.12.1 M29 G84,M29.G74 Rigid Tepeing Oyelea and Reverse Rigid Tapping Cycle .................... P= 60 24122 GB4.2, GB43 Rigid Tapping Cycle and Reverse Rigid Tapping Cycle . 2.123 Cautions on Programming Rigid Tapping Cycle and Reverse Rigid Tapping Cycle : 2.13 G22, G23 Setting the Tool Entry Inhibited Area 2.14 MOO, M01 Program Stop and Optional Stop .. 2.15 M30 Program End and Rewind 2.16 M03, M04, MOS Spindle Start and Stop 2.17 MOB Tool Change ... 2.18 M08, M09 Coolant Discharge ON/OFF . 2.19 M98, M99. Sub-program Call and Return from Sub-program . 2.20 M19 Spindle Orientation . 7, S, and F Functions . 3.1 T Function .. 3.1.1 Technical Memory Random Method 3.1.2 Fixed Address Shorter Route Random ‘Access Method 3.2 $ Function 3.3. F Function Band C Functions 4.1 M300, 400 . 4.1.1 Absolute/Incremental Commands 4.2 MH, SH Series, M-25FH (APC Specification) 4.2.1 Absolute/Incremental Commands Example Programs . aah 5.1 MV, MH, SH Series, M-300, 400, 25FV, 25FH . 5.1.1 Hole Machining Canned Cycle Program (G81, G76, G84) and Sub-program (M98, M99) 5.1.2 Circular Cutting (Cutter Radius Offset) 5.1.3 Facing, Side Cutting (G41), Hole Machining Canned Cycle (G81, G73, G76) 5.1.4 Facing, Side Cutting (G42), Hole Machining Canned Cycle (G81, G73, G76) 5.2 — MV-40/U, 45/U, S5/U, 65/U.. 5.3 MH-SO/U, 63/0 P= 105 P-108 1. Before Programming 11 Flow Until the Product is Completed The flow of operation, including programming, and the items to be checked in the course of programming and before starting machine operation are summarized in the following tables. Check these items to ensure smooth operation. 1) Reading the drawing Check tems ‘Are tolerances readable on the drawing? ‘Are the symbols used to indicate accuracy understandable? ‘Are the shape and material of the workpiece blank made clear? ‘Are the processes before and after the processes to be carried out on the ‘machining center made clear? '._| Are the keys for machining understandable? Is the workpiece zero point determined? Is the use of the workpiece made clear? Have you read all the dimensions and notes on the drawing? Is the drawing kept clean, with no unnecessary information entered on it? ss 2) Order and conditions of machining ale} py} a |e] x] > Check) Check tems conn 1. Are the order of machining and machining conditions determined in accordance with the shape and material of the workpiece blank? 2._[/Are the workpiece clamping method and the fixtures determined correctly? 3,_[ Are the cutting tools selected correctly? “4. [Are the machining processes appropriate for the shape and material of the workpiece blank? %._| Is machining free of interference? 6._| isthe process chart prepared? + Inputting the program Check tems Is the program being written to sult the shape and material of the workpiece biank? ‘Are programs created in units of machining processes? 1s a decimal point entered in all numerical values? Is the sign (+, -) preceding numerical values correct? ‘Are feed modes (rapid traverse and cutting feed) used correctly? ‘Are approach paths and cutting feed identified? Ts all input data checked for correctness? 1s the program free of errors caused by lack of concentration? = (To the next page) |x| 9] | a) of» s+ 4) Mounting the tools Check tems Column “Are the tool holders and the retention knobs cleaned before mounting a cutting tool? ‘Are cutting tools free of abnormal wear andior breakage? ‘Are tool shape and material proper for intended operation? ‘Are cutting tools mounted to the tool holders correctly? Is the tool overhiang appropriate? ‘When mounting a boring bar in the spindle, is the tooltip set in the direction| opposite to the tool shit direction? ‘Are all cutting tools registered? Ts tool size code entered correctly? ‘Are tool numbers allocated correctly for different size of cutting tools? ‘Are cutting tools mounted taking the maximum diameter of the adjacent * | tools into consideration? 5) Tool ‘Are pots adjacent to a large diameter tool assigned for small diameter tools or left empty? s offset Check Items Is the DOOR INTERLOCK key-ewitch placed in the NORMAL position? Ts the door closed? 1s due consideration given to possible interference during measurement of tool offset data? 1s centering tool speed proper? ge }al eo [ra ‘Are the workpiece Zero point coordinate values set for the work coordinate system? Is the workpiece zero point determined taking the diameter of the centering tool into consideration? ‘When measuring the too! length offset data, is the relative coordinate value set “O° with the Z-axis positioned at the machine zero point? Is the offset direction correct?” Ts the tool offset number correct? 10. ‘Are the tool geometry offset data, tool wear offset data, and coordinate system used for offset identified correctly? 1 ‘Are the cutter radius offset data and tool length offset data used for offset identified comectty? s+ (To the next page) s 6)_Dry run operation Check items ‘Check Column Is the DOOR INTERLOCK key-switch placed in the NORMAL position? Ts the door closed? Is the single block function turned on? ‘Aro the feadrate and spindle speed appropriate for operation? ‘Are the feed modes (rapid traverse and cutting feed) used correctly? Ts the tool retraction direction after cutting correct? Ts tool movement smoath in the calculated area? ‘Are the tools free of interference with the workpiece and fixtures? Can the machine be stopped immediately when necessary? “After the compilation of dry run mode operation, are switches on the ‘operation panel (dty run, feed override, etc.) set to the proper posit s+ 7) Test cutting Check items ‘Check Column Is the DOOR INTERLOCK key-switch placed in the NORMAL position? Ts the door closed? Is the single block function tumed on? ‘Are cutting conditions (depth of cut, width of cut, feedrate, and spindle speed) set properly? ‘Are the order of machining and machining processes determined in accordance with the shape and material of the workpiece blank? 6._| Are cutting tools selected properly? 7._|Isthe selection of fiure correct? ._|Isthe workpiece clamping method correct?” 9._[Isthe progress of cutting been observed? 10. | Are coolant supply volume and direction correct? 11. [Are the cutting tools free of interference with the workpiece and fixtures? 12, [Are the dimensions measured after the rough cutting process? 13. [Are the settings for feed override and rapid traverse override correct? ‘Can the machine be stopped immediately when necessary? + (To the next page) 8) Measuring s+ ‘Check Check items Cohen is the measuring instrument functioning correctly? Ts the choice of measuring instrument correct?” Ts the measuring order correct? Is the measuring method appropriate? Is the area to be measured indicated clearly? Is the area to be measured free of chips and coolant? ‘Are the dimensions measured after the rough cutting process? =| s] >] | >] 2} 9] = is the workpiece cool when the dimensions are measured? ) 9) _ Mass production ss 1.2 ‘Check =e Column 9g | 1 [ls the DOOR INTERLOOK key-switch placed in the NORMAL position? 2“*| [2 ]is the door closed? 3, | Ae alING functions such as single biock functions used to check the program tumed off? 7, | Sa target work time established on the basis ofthe machining time for one | workpiece? Ts tool wear observed? “Are the dimensions measured after the rough cutting process? igh euting p Terms for Programming This section describes the basic terms that must be understood for creating a program. Program number Several programs can be stored in the NC memory. Program numbers are used to keep multiple programs arranged in numerical order. Program numbers appear at the beginning of a program stored in the memory. ‘Sequence number The sequence number is used to search for or call the position that is being executed, or to facilitate finding the position you want to edit in the program easily. Generally, the sequence numbers are assigned to the part programs for individual cutting tools in the ascending order in the order the machining processes are executed. Part program ‘The part program refers to the program which contains all the information necessary for executing the cutting process to be carried out by a single cutting tool. ‘Address ‘An address is expressed using letters of the alphabet. Data The numbers (including the sign and decimal point) that follow the address are called the ‘data’ Word ‘A word is the minimum unit for specifying functions. A word consists of an address and the data. Block ‘A block is the minimum command unit necessary to operate a machine (including the NC unit). It is also the minimum unit used to create a part program. A block consists of words. Specify the end of a block with [; } ‘A program consists of words, a combination of address and data, and of blocks, a combination of words, as shown below. (00001; <——— rogram number > Ni Sequence number —] 1890 Go G54 x90.0 y105.0; <1 block sidessdan | pat 7 Program Lo Word ‘Mog; <1 blocs A Program Ne Sequence number ‘680 G00 G54 XO Yo; <1 block = : Part Program 30; 1 block 1.3 Axis Control and Direction This section describes movement along the axes and its relationship with the program. Na & Knowing the direction of the controlled axes is essential when creating a program. 131 Movement along the controlled Axes This section deals with the axis definition and how the axis movement is defined in programming. ‘The controlled axes and their directions are determined as follows: ‘Axis_[__Unit + and - Direction x Table |+ direction: Left, viewing the machine from the front (Left, viewing the column from the workpiece) Y Table + direction: (saddle) |" Toward the machine front (Viewing the workpiece from the column) Z| Spindie |+ direction: head | Up, viewing the machine from the front (Up, viewing the cutting tool rotating axis from the workpiece) U__| U-axis toot |= direction: holder | The direction in which the machining diameter increases when executing |.D. cutting with U-axis 4Z Spine head Column Table =] | |S qo - = | Ls = +x +7 (Machine Fro ‘The controlled axes and their directions are determined as follows: Axis Unit “+ and — Direction x Saddle + direction: Right, viewing the machine from the front (Right, viewing the saddle from the workpiece) ‘Column “+ direction: ‘Away from the operator, viewing the machine from the front (Away, viewing the saddle from the workpiece) Spindle head + direct Up, viewing the machine from the front (Up, viewing the cutting too! rotating axis from the workpiece) Table + direction: ‘Counterclockwise, viewing the machine from the front (The rotating direction of right-hand thread, in which the screw advances in the -Y-axis direction.) Pallet + direction: Clockwise, viewing the table from the top (The rotating direction of right-hand thread, in which the screw advances in the -Z-axis direction.) Spin hed column (| ea 6 TAN Oo Patt (waco ie The controlled axes and their directions are determined as follows: Axis Unit + and — Direction x Column | + direction: Right, viewing the machine from the front (Right, viewing the saddle from the workpiece) Y Saddle [+ direction: ‘Away from the operator, viewing the machine from the front (Away, viewing the saddle from the workpiece) Z| Spindle [+ direction: head Up, viewing the machine from the front (Up, viewing the cutting too! rotating axis from the workpiece) ‘The controlled axes and their directions are determined as follows: Axis_[__Unit + and — Direction X Table _ | + direction: Right, viewing the machine from the front (Right, viewing the column from the workpiece) Y__| Spindle |+ direction: head | Up, viewing the machine from the front (Up, viewing the column from the workpiece) Z| Column | direction: ‘Away from the table, viewing the machine from the front, (Away, viewing the cutting tool rotating axis from the workpiece) B Table |+ direction: Clockwise, viewing the table from the top (The rotating direction of right-hand thread, in which the screw advances in the -Y-axis direction.) U__ | U-axis toot |= direction: holder | The direction in which the machining diameter increases when executing |.D. cutting with U-axis The controlled axes and their directions are determined as follows: Axis Unit + and- Direction X | Column [+ direction Left, viewing the machine from the front (Left, viewing the column from the workpiece) Y__| Spindle |+ direction: head | Up, viewing the machine from the front (Up, viewing the column from the workpiece) Z Table _|-+ direction: ‘Away from the column, viewing the machine from the front (Away, viewing the workpiece from the cutting tool rotating axis) B Table |+ direction: Clockwise, viewing the table from the top (The rotating direction of right-hand screw, in which the screw advances in the -Y-axis direction.) (Machine front) P-10 The controlled axes and their directions are determined as follows: Axis Unit + and — Direction x Saddle |+ direction: Left, viewing the machine from the front (Left, viewing the column from the workpiece) Y | Spindle [+ direction: head | Up, viewing the machine from the front (Up, viewing the column from the workpiece) Z| Column | + direction: ‘Away from the operator, viewing the machine from the front (Away, viewing the cutting tool rotating axis from the workpiece) Ina program, specify the commands as follows: Address (X, Y, Z) + Sign (+, -) | + [Numerical value ‘The machine moves in accordance with a G code which governs machine movement mode and with the command indicated above. co For details of G codes, refer to page P - 16 (2.1). 1.3.2 Expressing Axis Movement in Programming Pay attention to the sign (+, -) which is used to determine the direction of axis (X, Y, Z) movement. With M-300, 400, and 25FY, since a cutting tool (saddle, column, and spindle head) moves along the X-, Y-, and Z-axes, actual tool movement is identical to the programmed axis movement. 4Z 7Y 4X + Zz Table (Machine front) P-11 In response to X- and Y-axis movement commands, the table (saddle) moves. And for Z-axis movement commands, the cutting tool (spindle head) moves. Although actual machine movement corresponding to the individual axis movement ‘commands is as indicated above, itis assumed that the cutting tool moves in the specified axis direction for the purpose of programming so that calculation for coordinate values is simplified. Controlled Movement Assumed for ‘Axis Actual movement Programming Tn response to a“X+_" command, | ithe cutting tool is assumed to move the table moves in the left direction, | while the table remains stopped, the x when viewing the machine from front | cutting tool moves in the right (left, when viewing the column from | direction when viewing the machine the workpiece). from front (right, when viewing the column from the workpiece). in response to a“Y+_” command, _ | If the cutting tool is assumed to move the table (saddle) moves forward to | while the table (saddle) remains the operator's side, when viewing the | stopped, the cutting tool moves away Y | machine from the front (when from the operator, when viewing the viewing the workpiece from the machine from the front (away, when column). viewing the column from the workpiece). In response to a‘Z+_" command, _ | The same direction as actual the spindle head moves up, when | movement. Z __| viewing the machine from front (up, when viewing the cutting tool rotating axis from the workpiece). ‘As summarized in the table above, if we assume that a cutting tool moves, the positive (+) and negative (-) directions of the X- and Y-axis movement are defined as in the illustration below. 4Z (Machine front) x Pay attention to the sign (+, -) which is used to determine the direction of axis (X,Y, Z) movement. With M-25FH, since a cutting tool (saddle, spindle head, and column) moves along the X-, Y-, and Z-axes, actual tool movement is identical to the programmed axis movement. (Spindle side) In response to X-axis movement commands, the table moves. And for Y- and Z-axis movement commands, the cutting tool (spindle head and column) moves. Although actual machine movement corresponding to the individual axis movement commands is as indicated above, it is assumed that the cutting tool moves in the specified axis direction for the purpose of programming so that calculation for coordinate values is ‘simplified. Controlled okie dvb ‘Movement Assumed for Axis Programming In response to a“X+_" command, | I the cutting tool is assumed to move the table moves in the left direction, | while the table remains stopped, the x___| When viewing it from the spindle (left, | cutting tool moves in the right when viewing the workpiece from the | direction when viewing it from the column). spindle (right, when viewing the workpiece from the column), in response to a“V+_—" command, _ | The same direction as actual the spindle head moves up, when | movement. Y | viewing it from the spindle (up, when viewing the column from the workpiece). in response to a"Z+_" command, | The same direction as actual the column moves away fromthe | movement. z table (away, when viewing the cutting tool rotating axis from the workpiece). In response to a“B+__" command, _ | The same direction as actual p _| the table rotates in the direction the | movement. right-hand thread advances in the ~Y-axis direction. P-13 ‘As summarized in the table above, if we assume that a cutting tool moves, the positive (+) and negative (-) directions of the X-axis movement are defined as in the illustration below. +v A < «<> 4B “3 wz _Y ‘Table -Y (Spindle side) Pay attention to the sign (+, -) which is used to determine the direction of axis (X, Y, Z) movement. (Spindle side) In response to Z-axis movement commands, the table moves. And for X- and Y-axis movement commands, the cutting tool (column and spindle head) moves. Although actual machine movement corresponding to the individual axis movement ‘commands is as indicated above, it is assumed that the cutting tool moves in the specified axis direction for the purpose of programming so that calculation for coordinate values is impiified. Controlled Movement Assumed for ee Actual movement Programming In response to a “X+__” command, | The same direction as actual the column moves in the right movernent. x irection, when viewing it from the spindle (right, viewing the workpiece from the column). Controlled Gunnin Movernent Assumed for Axis a Programming In response to a“Y+_" command, | The same direction as actual the spindle head moves up, when _| movement. Y | viewing it from the spindle (up, when viewing the workpiece from the column). In response to a “Z+__* command, the table moves away from the spindle (away, when viewing the Zz workpiece from the cutting tool the cutting tool is assumed to move while the table remains stopped, the cutting tool moves away from the column when viewing it from the rotating axis). spindle (away, when viewing the cutting tool rotating axis from the workpiece). Tn response to a"B+_ command, | The same direction as actual the table rotates in the direction the | movement. right-hand thread advances in the Y-axis direction. ‘As summarized in the table above, if we assume that a cutting tool moves, the positive (+) ‘and negative (-) directions of the Z-axis movement are defined as in the illustration below. + _ (Spindle side) Workpiece Zero Point the command “Move the cutting tool to point A.” for example, if there is {or the specified command, the machine cannot find point A and cannot The reference point established for programming is called the workpiece zero point (XO, YO, Z0). In a program, X, Y, and Z coordinate values are specified taking the workpiece Zero point for the reference. Accordingly, when creating the program, the workpiece zero point must be determined. The workpiece zero point should be taken at a point where programming will be facilitated. © _ Determine the workpiece zero point taking convenience for programming and setup as well as required accuracy into consideration. @® _ Inthe drawings used for explanation, the workpiece zero point is expressed as @. 15 Basic Pattern of Program ‘When creating a part program for each tool (face mill, end mill, etc.), the following basic patterns are used. 00001; Program number (This is specified only once at the beginning of all programs.) N1; Sequence number (This is specified at the beginning of a part program.) G43 Z_H_S_T_ (M08); G90 G00 G54 (to G59) X_Y_; ‘Specifies positioning at X_Y_at a rapid traverse rate; X_ and Y_are given in absolut 17 “The workpiece zero point is determined by G54 (to ae ‘Specifies positioning of Z-axis and calls the next tool to the tool change position. The spindle speed command and ‘coolant supply ON command are also specified. @ M08 is not necessary when coolant is not used. Mos; Starts spindle rotation in the normal direction. (Machining program) G00 Z_ (M03); ‘Specifies retraction from the cutting area and stops coolant supply. e M09 is not specified if coolant is not used. G91 G28 ZO M05; Returns Z-axis to the zero point to carry out tool change and stops spindle rotation. @ ‘Tool change position varies depending on machine models. Page P 42 (2.10) Mot; ‘Specifies optional stop. Moe; Executes tool change. ‘The part program same as * Part programs are written for each tool. Mo1; Optional stop Mo6; ‘Tool change ‘The part program same as * M30; End of program; program is rewound. P-16 G and M Functions 244 This manual gives explanation on general G and M code functions. For the G codes which are not given below, refer to the instruction manual supplied by the NC Unit manufacturer. For the M codes which are not given below, contact Mori Seiki. (On some types of machine models, all of these functions may not be supported or some of the M codes may be used for different functions. For details, refer to the ladder diagram supplied with your machine. G Code List G codes are also called preparatory functions. The G codes, consisting of the address G and a two- or three-digit numerical value define the machining method and the axis movement mode in a specified block. The NC establishes the control mode in response to the specified G code. ‘The numerical value following address G defines the commands written in that block. Depending on how the G codes remain valid, they are classified into the following two types: ‘Type Meaning ‘One-shot G code ‘The G code is valid only in the specified block. (G codes in group 00) ‘Modal G code ‘The G code remains valid until another G code in the (G codes in groups other than | same group is specified. [group 00) For example, G00 and G01 are both modal codes, that is, they are G codes in the group other than group 00. G01 X_Y3—- X: —— GO1 is valid in this range. G00 x_Y ; — MSC-516, MSC-518 © More than one G code, each belonging to a different G code group, may be specified in the same block. ® _ lt more than one G code, belonging to the same group, are specified in a block, the one specified later is valid. @® _lfaG code not listed in the G code table or a G code for which the corresponding option is not selected is specified, an alarm message (No. 010) is displayed on the screen. ® Forrigid tapping, specify “M29 S__to the block just before the block containing G84 or G74, (Optional for MV-45, 55, 65, and 80) ® The NC establishes the G code modes, identified by the J” symbol when the power is tured on. ©° “1: With M-25FV and 25FH, since the second zero retum is used to execute ATC, it cannot be used for other purposes. "2: Standard for the APC specification of MV series (includes U-axis control specification), and the MH series (includes U-axis control specification). “3: Can be used by mounting a position coder optionally. (With M-800, 400, 25FV, 25FH, MV-40M, 40, MH-40, 50, 63, SH-5O, and 63, although a position coder is not necessary since a built-in motor is used for these models, the function is optional.) Optional for MSC-518. *8: Standard for M-400, MV-40/U, 45/U, 55/U, 65/U, MH-50/U, and 63/U. ® For the APC specification of MV series, MH, SH serias, and M-300, 400, MV-40/U, 45/U, 55/U, 65/U, MH-SO/U, and 63/U, G65, G66, and G67 are standard. ©: Standard A: Option Code | Group Function Division G00 Positioning 3 V_co1 Linear interpolation ° Circular interpolationinelical interpolation, CW OF | gy [{etookwise) ow C022 Involute interpolation, CW (clockwise) A Circular interpolation/helical interpolation, CCW baad (counterclockwise) oe GO82 Involute interpolation, COW (counterclockwise) a G04 Dwell oO arn) Cylindrical interpolation A G09 00 [Exact stop ° G10 Data setting ° Gi06 Tool retraction data A Gi Data setting mode cancel oO Ge Polar coordinate interpolation mode A : 25 y iat Polar coordinate interpolation mode cancel A VW cis 17 _| Polar coordinate command cancel a y G16 Polar coordinate command A Gi7 XpYp plane Xp: X-axis or its parallel axis ° Gi8 02 | ZpXp plane Yp:. Y-axis or its parallel axis ° Gi9 Yezp plane Zp: Z-axis or its parallel axis © 620] 44 | Datainput in inch system ° Gat Data input in metric system © VW coe 04 _ | Stored stroke check function ON A G23 Stored stroke check function OFF A ©: Standard A: Option Code | Group Function Division G25 24 _ | Stindle speed variation detection OFF a Was Spindle speed variation detection ON A G7 Zero return check ° G28 ‘Automatic zero return ° G29 00 Return from zero point ° G30 ‘Second/third, fourth zero retum OVA? G30.1 Floating zero return a G31 ‘Skip function ° 33 01 _ | Thread cutting (Standard for MV-40/U, 45/0, 55/U, Ae 65/U, MH-50/U, and 63/U) G39 |- 00 _| Cutter radius offset B, comer aro a cao Cutter radius offset cancel ° Ga 07 | Cutter radius offset, left o Gia Cutter radius offset, right. ° Gas og | Toollenath offset, + ° G44 ‘Tool length offset, — oO Gas ‘Too! position offset, increase oF G46 00 | Teel position offset, decrease oF Ga7 Too! position offset, double-increase oF Gas ‘Too! position offset, double-decrease oF Gao 08 _ | Too! length offset cancel o G50 +1 _ [Sealing cancel A y G51 Scaling A 50.1 ||, [Programmable mirror image cancel A G5t4 Programmable mirror image A G52 00 _ [Local coordinate system setting ° G53 Machine coordinate system selection ° V sa Work aes system 1 selection/Addtonal work OA G44 ‘Additional work coordinate system selection a G55 Work coordinate system 2 selection ° G56__| ' | Work coordinate system 3 selection ° G57 Work coordinate system 4 selection ° G58 Work coordinate system 5 selection ° G59 Work coordinate system 6 selection ° G60 00 _| Uni-directional approach Nd G61 Exact stop mode O° Gé2 15 [Automatic comer override mode A G63 ‘Tapping mode ° VW ces Cutting mode (exact stop check mode) ° (G65 (00 [Macro call iN ©: Standard A: Option Code | Group Function Division G66 qa [aot modal callA a | Macro modal call cancel a Ges t— | Coordinate rotation A Geo Coordinate rotation cancel A G72.4 00 Copy-rotation A 6722 Copy-shift ny G73 Peck drilling cycle 0 G74 Reverse tapping cycle ° G76 Fine boring cycle ° ceo Canned cycle cancel ° Gai Spot driling cycle ° Ge2 Hole _ [Counter boring cycle o G83 09 | machining [Beck driling cycle Oo G84 cycle | Tapping cycle O° G85 Boring cycle ° G86 Boring cycle o G7 Back boring oyele 3 Gee Boring cycle 6 Geo Boring cycle ° G90 gg [solute command o Gat incremental command o Work coordinate system change/Maximum spindle Ge2 speed setting (Standard for MV-40/U, 45/U, 55/U, oA 00 | 65/U, MH-50/U, and 63/U) G92.1 Work coordinate system preset a Gas Inverse time feed a | 05 [Feed per minute mode ° 5 Feed per revolution mode (Standard for MV-40/U, AS 45/U, 55/U, 65/U, MH-5O/U, and 63/U) 26 Constant surface speed control (Standard for ae jg [MV-40/U, 45/0, 85/0, 65/0, MH-50/U, and 69/U) VY cor ‘Constant surface speed control cancel (Standard for a3 MV-40/U, 45/U, 55/U, 65/U, MH-50/U, and 63/U) VW Gee a Initial point level retum (canned cycle) oO G88 Point R level return (canned cycle) ° 212 MSD-516, MSD-518 @° ® e® More than one G code, each belonging to a different G code group, may be ‘specified in the same block. tf more than one G code, belonging to the same group, are specified in a block, the one specified later is valid. Ifa G code not listed in the G code table or a G code for which the corresponding option is not selected is specified, an alarm message (No. 010) is displayed on the screen. For MV-45, 55, 65, and 80, G84.2 and GB4.3 are optional. The NC establishes the G code modes, identified by the J” symbol when the power is tured on. “1: With M-25FV and 25FH, since the second zero retum is used to execute ATC, it cannot be used for other purposes. “2: Standard for the APC specification of MV series and MH series. “3: Can be used by mounting a position coder optionally. (With M-300, 25FV, 25FH, MV-40M, 40, MH-40, 50, 63, SH-50, and 63, although a position coder is not necessary since a built-in motor is used for these models, the function is optional.) “4: Optional for MSD-518. (O: Standard A: Option Code | Group Function Division (G00 Positioning ° Got Linear interpolation ° Circular ir atic ical interpolation, CW Peele (ccciisey en 7 aa 022 Involute interpolation, CW (clockwise) a Gos Greular Rierpaitonhatoal interpolation, CCW OVA 603.2 Involute interpolation, CCW (counterclockwise) A G04 Dwell o G07. ‘Cylindrical interpolation a G09 oo [Exact ston ° Gi0 Data setting ° G106 Tool retraction data A Git Data setting mode cancel ° Gi2.1 25 | Polar coordinate interpolation mode A y G13.1 Polar coordinate interpolation mode cancel A G5 17 _ | Polar coordinate command cancel A GI6 Polar coordinate command A O: Standard A: Option Code | Group Function Division VW aiz XpYp plane Xp: X-axis or its parallel axis O° Gis 02 [ZpXp plane Yp: Y-axis or its parallel axis ° Gis 'Ypzp plane Zp: Z-axis or its parallel axis ° G20 Data input in inch system ° Gai Data input in metric system © coo ‘Stored stroke check function ON A G23 Stored stroke check function OFF A G25 Spindle speed variation detection OFF A Vas 24 [Spindle speed variation detection ON A Gar Zero return check © G28 ‘Automatic zero return ° G29 oo | Return from zero point o G30 ‘Second/third, fourth zero return Oh? 630.4 Floating zero return A Gat Skip function. ° G33 ‘01 _| Thread cutting Ae V7 cao Cutter radius offset cancel ° Gat 07 | Cutter radius offset, left ° Ga2 Cutter radius offset, right © Gas 93 [Toollenath offset, + ° G44 ‘Tool length offset, — ° G45: ‘Tool position offset, increase o* G46 00 _[120! position offset, decrease o* Ga “Too! position offset, double-increase oF Gas ‘Too! position offset, double-decrease oF Gag 08 | Too! length offset cancel ° G50 11 [Sealing cance! a y G51 Scaling A G50.1_|,, [Programmable mirror image cancel A G5t4 Programmable mirror image A G52 9 _ [Local eooreinate system setting i) , G53 Machine coordinate system setting o hid Goorsnale yn scecion sn Muenalwowe | oi C544 ‘Additional work coordinate system selection A G55 ‘Work coordinate system 2 selection ° G56__| ' [Work coordinate system 3 selection ° G57 Work coordinate system 4 selection ° G58 ‘Work coordinate system 5 selection o G59 Work coordinate system 6 selection ° G60 (00 [Uni-directional approach o O: Standard A: Option Code | Group Function Division Gai Exact stop mode 3° Ge2 15 [Automatic comer overide mode ° Ge3 Tapping mode ° vo Cutting mode (exact stop check mode) ° G85 00 | Macro call o G66 Macro modal call A o | 12 [Macro modal cail cancel oO > G68 Coordinate rotation ° G69 18 | Coordinate rotation cancel ° G72. Copy-rotation a 72a | | Copy-shit a G73 Peck driling cycle o G7 Reverse tapping cycle o G76 Fine boring cycle ° | A Canned cycle cancel o Gai Spot driling cycle ° Gaz Counter boring cycle ° Gas Hole [Peck driling cycle o Gas 09 machining Tapping cycle o G84.2 cycle | Rigid tapping cycle O° G43 Reverse rigid tapping cycle ° Gas Boring cycle ° G86 Boring cycle o Ga7 Back boring cycle o Gas Boring cycle o Gee Boring cycle ° G30 ‘Absolute command 3° VW Gat °3 [incremental command ° Work coordinate system change/Maximum spindle G22 | 0 |sbeedseting " 7 ow G92.1 Work coordinate system preset a G93 Inverse time feed a W Gos 05 | Feed per minute mode O° G95 Feed per revolution mode Ae G36 Constant surface speed control ae G97 7 Constant surface speed control cancel ae G88 10 _ [initial point level return (canned oyce) ° G38 Point R level return (canned cycle) ° 2.2 M Code List M codes are also called miscellaneous functions that control program flow, coolant discharge on/off, etc. These functions are also used as supplementary functions to those called by the G codes. 221 MV Series, M-300, 400, 25FV Do not use M31 and M32 commands unless the use of these commands is necessary for troubleshooting or for resuming the operations interrupted due to occurrence of problems. Before using the M31 and M32 commands, please contact Mori Seiki. Itis allowed to specify one M code in a block. Optionally, one block can contain up to three M codes. “1: These are used for 5th-axis clamp and Sth-axis unclamp for MV-40/U, 45/U, 55/U, and 65/U. *2: Standard for M-400. “3: Only for MV series (includes U-axis control specification). “4: Only for M-300, 400, and 25FV. *®; These are used for 6th-axis clamp and 6th-axis unclamp for MV-40/U, 45IU, 55/U, and 65/U. Code: Function Description M00 _| Program stop ‘Suspends program execution temporarily. ‘Suspends program execution temporarily (whether Moi | Optional stop this function is valid or not is selected by a switch on the operation panel). ‘M02 _| Program end Ends program execution and resets the NC. Starts the spindle in the normal direction. Mo3_| Spindle start (normal) Normal direction: Clockwise rotation, viewing the workpiece from the rear of the spindle. ‘Starts the spindle in the reverse direction. Mo4_ | Spindle start (reverse) Reverse direction Counterclockwise rotation, viewing the workpiece from the rear of the spindle. ‘MOS _| Spindle stop ‘Stops the spindle rotation. M06_| Tool change Starts ATC cycle. Mo7 _|Oilshot ON Starts oil shot; oil shot is optional. M08 _| Coolant discharge ON Starts coolant discharge. Mog _| Oilshot OFF ‘Stops discharge of coolant, oil-shot, oi-mist, and Coolant discharge OFF oi-hole drill coolant. M10__| 4th-axis clamp"? ‘Clamps the index head; index head is optional."? M11 _| 4th-axis unclamp™ Unclamps the index head; index head is optional." M15 _[D pallet loading command Mi6_ [D pallet unloading command APC-6B specification Mi7_ |[C pallet loading command Code Funetion Description Mi8_[C pallet unloading command ‘APC-6B specification Mi9_| Spindle orientation Spindle orientation M20 _| Automatic power shut off Shuts off power automatically. M21_| External output M22_| External output M23_| External output M24_| External output ‘M25 _| External output ‘M26_| External output ‘M27_| External output M28 _| External output ‘M29 _| Rigid tapping mode wgo_| Program end and rewind Ends program executions, resets the NC and rewinds the program. (Pallet change command)"* M31 _| Interlock bypass ON Cancels the interlock. M32_| Interlock bypass OFF ‘Cancels the M31 function. Returns the tool from the spindle to the magazine. M33__[ Too! return (only for MV-40M, 40, 45, 55, 65, and M-300) M34 _| Shifter rotation, clockwise APC M36 _| Shifter rotation, counterclockwise See M40 _| Spindle drive gear in neutral (only for MV-45, 45/U, 55, 55/U, 65, and 65/U) , ‘Selects the low gear range. (only for MV-45, 45/U, Mat_ | Spindle dive gear, 1st gear range _| Seles the low gear a ‘Selects the high gear range. (only for MV-45, 45/U, M42_ | Spindle drive gear, 2nd gear range 55, 55/U, 65 and 65/U) M44_| Sensor DOWN Used for automatic measurement of bored hole a5 | Sensor UP diameter. (only for MV-40/U, 45/U, 55/U, and 65/U) M46_ | Sensor selection signal ON Selects the sensor mounted to the spindle. MaA7_| Sensor selection signal OFF Selects the sensor mounted on the table. Ma8_| Override cancel OFF Makes the override cancel function invalid. Ma9_| Override cancel ON Makes the override cancel function valid. ' Starts oit-hole dri M50 _|Oithole dri coolant ON (Gil-hole drill coolant system is optional.) M51_| Air blow ON Starts the air blow. (Air blow is optional.) ms2_ | Dust collector air blow ON Starts dust collector air blow. (Dust collector air blow is optional.) ; Turns sensor air blow ON. M53 _| Sensor air blow ON (Sensor air blow is optional) M55_| Oil mist ON Starts oll mist. (Oil mist is optional, Msg | Dust collector air blow OFF ‘Stops air blow for dust collector and sensor. (Dust Sensor air blow OFF Collector air blow and sensor air blow are optional.) MS59_| Air blow OFF Stops air blow. (Air blow is optional.) Meo | B:station loading command's (Pallet change command) ‘+ 4. APG fic Mer | B:Station unloading command’ oa Code Function Description ‘Mé2_| A-station loading command's M63_[A-station unloading command’? _| APC specification Mé4_| Work number search start® M66 | Too! skip ON {Hoot fe management fonction is optional) ‘M67__| Tool life check” (The too! life management function is optional.) M68 _| Sth-axis clamp’® (G-axis device is optional.’2) M69 _| Sth-axis unclamp’> M70 _|Work counter M73_| Y-axis mirror image OFF Yeaxis mirror image invalid M74_[Y-axis mirror image ON Y-axis mirror image valid M75 _| X-axis mirror image OFF M76 _| X-axis mirror image ON X-axis mirror image valid M77 _| External output 80. Chip flush-away coolant ON Shower coolant ON. (Chip flush-away coolant and shower coolant are mai | Chip flush-away coolant OFF optional.) ‘Shower coolant OFF avorate oo = Automatic door specification gq_| Load monitor (teaching, monitoring) wmode ON Load monitor specification. ‘Mag_| Load monitor (teaching, monitoring) mode OFF _ SS soem ou ‘Through-spindle coolant specification M93 _[ Alarm ON ‘An alarm indicator is it. Mo4_[ Alarm OFF ‘An alarm indicator goes off. M96 _| Macro interrupt mode Macro interrupt mode ON. M97_ | Macro interrupt mode cancel Macro interrupt mode OFF M98 _| Sub-program call go _| Sub-program end Returns the program flow from the current Repeat program sub-program to the main program. M120 _| External output M121 _| External output M122 _| External output Mi23_| External output Mi24_| External output 126. | External output M126 _| External output Code Function Description M127 | External output Mi28_| External output Mi29_| External output M160 _| Pallet change APC specification (APC: Aioi Seiki) M162 | Table rotation (only for MV-40/U, 45/U, 58/U, and 65/U) M180_| Auxiliary output 1 ON Mi81_| Auxiliary output 1 OFF Mi82_| Auxiliary output 2 ON M183 | Auxiliary output 2 OFF 2.22 MH, SH Series, M-25FH Tamfion| DO not use M31 and M32 commands unless the use of these commands is, A necessary for troubleshooting or for resuming the operations interrupted due to occurrence of problems. Before using the M31 and M32 commands, please contact Mori Seiki. @° Itis allowed to specify one M code in a block. Optionally, one block can contain up to three M codes. @® *1: Only for M-25FH. *2: Only for MH-5O/U and 63/U. “8: In the case of U-axis control specification, the tool in the spindle and the ‘one in the waiting pot are returned to the magazine and the spindle cap tool (tool No. 1) is mounted to the spindle. +4; Only for MH-40, 50, 5O/U, 63, 63/U, SH-50 and SH-63. Code Function Description Moo _| Program stop ‘Suspends program execution temporarily. ‘Suspends program execution temporarily (whether M01 | Optional stop this function is valid or not is selected by a switch on the operation panel). ‘Mo2_ [Program end Ends program execution and resets the NC. Starts the spindle in the normal direction. M03 | Spindle start (normal) jenna ecen Clockwise rotation, viewing the workpiece from the rear of the spindle. Starts the spindle in the reverse direction. M04 | Spindle start (reverse) iipeighnnneaniiatl ‘Counterclockwise rotation, viewing the workpiece from the rear of the spindle. M05 _[ Spindle stop Stops the spindle rotation. M06 _| Tool change Starts ATC cycle. i rv Moz | Ol shot ON Starts oil shot; oil shot is optional. Oil shot 1 ONS Code Funetion Description M08 _| Coolant discharge ON Starts coolant discharge. ‘Stops discharge of coolant, oltshot, oil shot 1 and Mos | | Gootem aeons Orr 2, oibmist, and oil-hole drill coolant. M10 Table car Clamps the B-axis (4-axis device is optional.”!) Mit fable uncer Unolamps the B-axis (4-axis device is optional.”’) indle orientation postion’? | Used when adjusting the spindle orientation position M12. | 2nd spindle orientation position’ loot undtomp boston) Mi9_| Spindle orientation Spindle orientation (tool damp position) 'M20_| Automatic power shut off Shuts off power automatically. Mat _|Extemal output M22_[Extemal output M23 _| Extemal output M24_| External output M25_| External output M26_| External output M27_|Extemal output M28 _|Extemal output M29 _| Rigid tapping mode ; Ends program executions, resets the NC and 30 | Program end and rewind Ero prcgram oxen M31 _ | Interlock bypass ON Cancels the interlock. M32_| Interlock bypass OFF Cancels the M31 function. “4 Retums the tools from the spindle and the waiting M33__| Tool return pot to the magazine.’ “Table-mount sensor UP Used for automatic tool breakage detection and also M44 | (for measurement) for automatic tool length measurement (only for MH-40, 50, 50/U, 63, 63/U). (The automatic tool Mag_| Table-mount sensor DOWN breakage detection device and the automatic too! (for storing) length measurement device are optional.) ; Used for automatic centering. M46 _| Sensor selection signal ON (The automatic centering device is optional.) Used for automatic tool breakage detection. M47_ | Sensor selection signal OFF (The automatic tool breakage detection device is optional.) M48 _| Override cancel OFF Makes the override cancel function invalid. M49 _| Override cancel ON Makes the override cancel function valid. , Starts oil-hole dil. M50_ | Oi-hole drill cootant ON (Cit-hole dril coolant system is optional.) Ma1_| Airblow ON Starts the air blow. (Air blow is optional.) Saris dust collector air blow. M52_ | Dust collector air blow ON Stare act coir a BOM) ; “Turns sensor air blow ON. M53_| Sensor air blow ON (Gensor air blow is optional) mss | Oil shot 2 ON'* Starts oil shot 2. (Oil shot 2 is optional."4) Oil mist ON Starts oil mist. (Oil mist is optional.”!) Code Function Description Dust collector air blow OFF ‘Stops ai blow for dust collector and sensor. (Dust Ms8_ | Sensor air blow OFF collector air blow and sensor air blow are optional, Measurement sensor air blow OFF _| Stops air blow for measurement sensot.2 M59_| Air blow OFF Stops air blow. (Air blow is optional, ‘M60 _| Pallet change command’? ‘M61 _| Pallet change command’? APC specification ; 13000 min specification M65 _ | Z-axis position check (only for MH-50, 50/U, 63, 63/U) M66_| Tool skip ON Uses macro variable #1133. M67 _| Tool life check (The tool life management function is optional.) Me8_|Sth-axis clamp"? a 5 ional, ite | Sivace uncom? (G-axis device is optional.) M70_| Work counter? M72_| Chip flush-away coolant ON The chip flush-away coolant is optional. M73_| ¥-axis mirror image OFF Y-axis mirror image invalid M74_|¥-axis mirror image ON Y-axis mirror image valid M75_[ X-axis mirror image OFF X-axis mirror image invalid M76_| X-axis mirror image ON X-axis mirror image valid ish-awa) 4 7 7 "4 mz7_| Ship fus tan oant OFF’ (Chip flush-away coolant is optional.’4) M76_|Sth-axis clamp” ; tional.) i170 | Sivede urong™ (6th-axis device is optional.) Meo | Shower coolant ON Chip flush-away coolant ON"! (Shower coolant and chip fsh-away coolant are gi | Shower coolant OFF" . optional.) Chip flush-away coolant OFF"t M82_| Automatic door open"! ‘ficat 1183 | Automatic decrees Automatic door specification Mea | oad monitor (teaching, monitoring) mode ON Load monitor specification Mas | LOad monitor (leaching, monitoring) | Uses macro variable #1133. mode OFF 'M88_| Through-spindle coolant ON - cL M59 ”[Through-scinale coolant OFF Through-spindle coolant specification M92_| Oil mist ON Starts discharging of oll mist. (Oil mist is optionall) , Used when measuring the sensor. Moa | Sensoring alarm ON" (Sensor is optional.’4) An alarm is lit"! 5 m4 Used when measuring the sensor. og | Sensoring alarm OFF (Sensor is optional.’4) ‘Alarm OFF” An alarm goes off M96_| Macro interrupt mode Macro interrupt mode ON M97_| Macro interrupt mode cancel Macro interrupt mode OFF M98_| Sub-program call gq _| Subprogram end Returns the program flow from the current Repeat program sub-program to the main program. M106_| Tool change"? Starts ATC cycle (high-speed specification) Code Function Description For APC operation, the pallet is unclamped and M113. | Pallet unclamp moved to the pallet change position. (only for SH-50, 63) M120_| External output M121_| External output M122 _| External output M123 _| External output Mi24_| External output M125 | External output M126 _| External output Mi27_| External output Mi28 | External output Mi29_| External output Measurement sensor OUT"? (to measuring position) Measuring sensor IN@ {to storing position) M153_| Measuring sensor air blow ON? M180_| Auxiliary output 1 ON M181_| Auxiliary output 1 OFF M182_| Auxiliary output 2 ON M183 [Auxiliary output 2 OFF M144 Used for automatic measuring of the boring hole M145 diameter. (Measuring sensor is optional.) 2.3 G90,G91_ — Dimensioning Modes (Absolute Commands and Incremental Commands) To specify tool movement from the presently located point to the next point (target point), the following two types of commands can be used. 1) Absolute command .. 2) Incremental command . AW In the G90 mode, the axis movement commands are all executed as absolute commands and in the G91 mode the axis movement commands are all executed as incremental commands. Absolute command ‘Absolute commands define a specific point by the signed distance from the workpiece zero point (XO, YO, Z0) or the spindle center (UO). Incremental command Incremental commands define relative position on a given coordinate system by specifying the movement distance from the present position. The sign (positive, negative) indicates the direction. — Differences between absolute command and incremental command are summarized below. I ‘Absolute Command Incremental Command ‘Address Characters [G90(X_3,Y 3.2 3,U) [G1%;¥.2.,U) Meaning of the Sign |The area where the specified | The direction in which the (i) point exists. cutting tool advances. For the U-axis, the direction in which the diameter being machined increases or decreases in 0.D. or I.D. cutting. Meaning of the Coordinate values Distance of tool movement Numerical Values | (distance from the workpiece Zero point or the spindle center) Reference Point of | Workpiece zero point (XO, YO, | Actual tool position Commands 20) Spindle center (UO) Generally, a program is written using absolute commands. Incremental commands are usually used when programming a machining which is repeated in fixed pitches. ww COMMAND] 4. Absolute command (] @ox_Y_z; G90 U_; 2. Incremental command G91 X_Y_Z_; G91U_; e G90 e G91 e X%YZ,U . Calls the absolute dimensioning mode. - Calls the incremental dimensioning mode. -(G90) Specifies direction and distance of the target Point referenced to the workpiece zero point or the spindle center. (G91) Specifies the movement distance to the target point from the preceding position. ‘Once the G90 command is specified, it remains valid unless the G91 command is specified next. To the contrary, once the G91 command is specified, it remains. valid unless the G90 command is specified next. Such G codes are called modal G code. (7) Forte @ code groups, refer to page P16 (2.1). ay ‘The positive (+) sign may be omitted. & X+10.09X10.0 Y+10.0-4Y10.0 Programming positioning in the G80/G91 mode The program to move the cutting tool along path ® > @ -» @ -»@ on the X-, Y-, and Z-axes in the G90 and the G91 mode. a he G90 G00 X-175.0 Y-100.0 250.0; @ — “Yo X175.0 (Y-100.0) (250. ® i (X175.0) ¥100.0 (250.0) ® 8 : Wiis et X-175.0 (Y100.0) (250.0); @ G90 GOO X-175.0 Y-100.0 250.0; ® G91 X350.0 (0) (Zd); @ (XO) ¥200.0 (20); ® v X-350.0 (YO) (20); @ a \!/" Since the commands given in ( ) call & no axis movement, they can be omitted. 24 G54-G59 Setting the Work Coordinate System ‘The operation to “set a work coordinate system" means the operation by which the NC recognizes the location of the workpiece zero point which is determined arbitrarily. By setting six work coordinate systems beforehand, call one of these coordinate systems by executing the corresponding G code. cm For the procedure used for setting the workpiece zero point, refer to the OPERATION MANUAL. CONAN) SP (G90) G54(G55, G56, G57, G58, G59) X_ Y_; . Calls the absolute commands. - Selects a work coordinate system. Specifies the coordinate value of each axis used for positioning a cutting tool in the selected work coordinate system. © The G54 work coordinate system is selected when the power is turned on. \“” © _Awork coordinate system is defined in the manner to offset the machine & coordinate system. Therefore, as itis not necessary to input the measured values to the program, use of a work coordinate system makes programming easier. ® Because there are six coordinate systems from G54 to G59, the setting of these coordinate system is convenient for machining that requires plural coordinate systems in such as multiple workpiece setup. @ Asa basic pattern, specify a G code (G54 to G59) which calls a work coordinate system at the beginning of a part program. Programming positioning using a work coordinate system (G54 to G59) (setting a workpiece zero point at the workpiece end face) By setting the G54 and G55 work coordinate systems, the same positioning is executed in these coordinate systems. The workpiece zero point is set at the end face of the workpiece. ; ; ale 4 of ; : Workpiece zero Workpiece zero ae seas 00001; Mi; G90 GOO G54 X30.0 Y20.0; .... Positioning at point @ at a rapid traverse rate in the work coordinate system called by G54 G43 230.0 H1 $800 72; ........ Positioning of the Z-axis at a point 30.0 mm away from the workpiece end face ZO in the +Z direction at a rapid traverse rate Positioning at point @ at a rapid traverse rate Positioning at point @ at a rapid traverse rate Positioning at point @ at a rapid traverse rate Positioning at point © at a rapid traverse rate in the work coordinate system called by G55 Positioning at point © at a rapid traverse rate Positioning at point @) at a rapid traverse rate Positioning at point @ at a rapid traverse rate G43, G44, G49 Tool Length Offset The point used in programming is the tooltip (tool nose). When the Z-axis is returned to the machine zero point, the tool nose position differs among the cutting tools. Since the position of the tool nose with the Z-axis positioned at the machine zero point is taken as the start point for tool movement, positioning is made at different points even if the same Z_command is given under such conditions. By using the G43 and G44 commands, tool length difference is offset and positioning is always made at the Z point specified in a ‘program. ime For the procedure used for measuring and setting tool length, refer to OPERATION MANUAL. comms) GAS Z_H_; =} ag; © G48 ee Calls the tool length offset mode. © G49 Cancels the tool length offset mode. © Zee ‘Specifies the coordinate value for positioning in the Z-axis direction. Hee ‘Specifies the offset number to be used. @° With MSC-518 and MSD-518, there is no distinction between tool length offset (geometryAwear) and cutter radius offset (geometry/wear) when setting the tool offset data. For these models of NC units, set the tool offset data in the manner indicated below. On the tool offset data setting screen, 32 sets of tool length offset data (H code) and cutter radius offset data (D code) can be set (standard). — For the same cutting tool, set the tool length offset data and cutter radius offset data to different offset numbers. — For the same cutting tool, set the too! length offset data (geometry) and the tool length offset data (wear) in the same column. ~ For the same cutting tool, set the cutter radius offset data (geometry) and the cutter radius offset data (wear) in the same column. @® The screen used for setting the tool offset data differs between MSC-516 and MSD-516, and MSC-518 and MSD-518. \'/ @ Ifthe G44 command is used for tool length offset, the sign for the tool length a offset amount should be reversed from the sign used with the G44 command. Mori Seiki uses G43 instead of G44. ® Generally, itis not necessary to specify the G49 command in a program because the Z-axis.is always returned to the machine zero point or the second Zero point before executing tool change cycle. This return operation cancels the tool length offset data. @® _ The tool length offset mode is be canceled by the HOO command, instead of specifying the G49 command. @ Address H specifies the offset number, where offset data is set on the tool offset data setting screen, in a two-digit number. “17 © _Onthe tool offset data setting screen of MSC-516 and MSD-516, the tool ‘geometry offset data and the tool wear offset data can be set separately. ® The allowable setting range of the too! length offset data and the tool offset data is indicated below. Setting MSC-516, MSD-516 MSC-518, MSD-518 ‘Tool Geometry | Tool Wear Ofiset Unit Offset Data, Data Tool Offset Data Metric £999,999 £99,999 £999,999 inch 99,9999 £9.9999 99,9999 Programming in the G43 mode “y Zz 4,40 @ : Jie Workpiece zero point for G54 0001; Nt; (T1 is set in the spindle) G90 Goo G54 Xo Yo: Positioning at point @ at a rapid traverse rate in the work coordinate system called by G54 G43 230.0 H1 S800 T2; ........ Positioning at a point 30 mm away from ZO (workpiece upper face) in the Z+ direction at a rapid traverse rate; offset is made in the Z-axis direction by the amount set for tool length offset number 1. Mos; Machining program Mot; Mos; N2; (72s set in the spindle) G90 GOO G54 X40.0 YO; ........ Positioning at point @ at a rapid traverse rate G43 230.0 H2 $1000 T3; ....... Positioning at a point 30 mm away from ZO (workpiece Upper face) in the +Z direction at a rapid traverse rate; offset is made in the Z-axis direction by the amount set, for tool length offset number 2. Mos; : Machining program M30; G00 Positioning the Cutting Tool at a Rapid Traverse Rate By specifying the G00 command, all axis movement commands are executed at the rapid traverse rate. In other words, the cutting tool is positioned at the programmed target point ata rapid traverse rate. ‘The G0 mode is usually used for the following operations: 1) Atthe start of machining: ‘To move the cutting tool close to the workpiece. 2) During machining: To move the cutting tool, retracted from the workpiece, to the next programmed target Point. Gammon] When moving the cutting tool at a rapid traverse rate during machining, make A sure that there are no obstacles in the tool paths. 3) Atthe end of machining: To move the cutting tool away from the workpiece. oman SP Goo X_Y_Z; ° Goo. Calls positioning at a rapid traverse rate. © X,Y,Z ....... Specifies the positioning target point. caron) If X-, ¥-, and Z-axis movements are specified in the same block in the GOO A mode, the tool path is not always a straight line from the present position to the programmed end point. Therefore, when specifying positioning in the GOO mode, it is necessary to make sure that there is no obstacle in the path of Positioning, which is determined according to the traverse rate of the individual axes (X, Y, Z). If there is an obstacle such as a workpiece and a fixture in the positioning path, the cutting tool or the tool holder will be hit against them causing machine damage. © Once the G00 command is specified, it remains valid until another G code in the 01 group is specified. G01, G02, and GOS are examples of G codes which belong to the group 01. G codes which remain valid until another G code in the same group is specified are called modal G codes. ime For the G code groups, refer to page P — 16 (2.1). @ The rapid traverse rate is adjustable by using the rapid traverse rate override ‘switch on the machine operation panel. @ Ifthe rapid traverse rate override switch is set to “0” during automatic ‘operation, the programmed rapid traverse is not executed and the operation enters the feed hold mode. 27 (Ex) Programming in the G00 mode The program to move the cutting tool along path @ > @ > @ + @ ata rapid traverse rate. 00001; Ni; G80 GOO X33.0 ¥25.0; . Positioning at point @ at a rapid traverse rate X-31.0; Positioning at point @) at a rapid traverse rate X-15.0 Y-15. X15.0 Y-25.0; Positioning at point @ at a rapid traverse rate Positioning at point @ at a rapid traverse rate \'7 Since the GOO command is a modal G code, itis valid for the succeeding blocks. Therefore, axis movement commands in these blocks are all executed at a rapid traverse rate. G01 = Moving the Cutting Tool Along a Straight Path at a Cutting Feedrate By specifying the GO1 command, the cutting tool is moved along a straight line to cut a workpiece. The feedrate is specified with an F code by the distance the cutting tool should be moved ina minute. ‘11 This mode is used to carry out side face cutting or pocketing using an end mill, or & facing using a face miling cutter. om) Se GOIX YZF; ialaedads Calls the linear interpolation mode. . Specifies the cutting target point for cutting. . Specifies the feedrate. @° ‘Once the GO1 command is specified, it remains valid until another G code in the 01 group is specified. G00, G02, and G03 are examples of G codes which belong to the group 01. G codes which remain valid until another G code in the same group is specified are called modal G codes. (7) Forte « code groups, refer to page P~ 16 (2.1). ® The cutting traverse rate is adjustable by using the feedrate override switch on the machine operation panel in the range of 0 to 150%. @® The feedrate data is “0” until an F code is specified. fan axis movement command is read before an F code is specified, the machine does not operate. In this case, an alarm message (011) is displayed onthe screen. Programming in the G01 mode The program to move the cutting tool along path @ > @ + © +@ ata cutting feedrate. 00001; Nt G90 GO1 X33.0 ¥25.0 F500; .... Moving the cutting tool to point @ at a feedrate of 500 mm/min Moving the cutting tool from point @ to point @ at a feedrate of 500 mm/min Moving the cutting tool from point @ to point @ at a feedrate of 250 mm/min Moving the cutting tool from point @ to point @ at a feedrate of 250 mm/min X-81.0; X-15.0 Y-15.0 F250; . X15.0 Y-25.0; ww ince the GO1 command is a modal G code, itis valid for the succeeding blocks. Therefore, axis movement commands in these blocks are all executed at a cutting feedrate. P-38 2.8 G02, G03 Moving the Cutting Tool along a Circular Arc at a Cutting Feedrate Specify the G02 and GO3 commands when cutting a circle or a circular arc shape. [COMMAND] S 1. Circular arc on XY plane G17 G0O2(GO3) X_Y_I_J_F_; G17 G02(G03) X_Y_R_F_ 2. Circular arc on ZX plane G18 G02(G03) X_Z_I_K_F_; G18 G02(GO3) X_Z_R_F_; 3. Circular arc on YZ plane G19 G02(G03) X_Z_J_K_F_; G19 G02(G03) X_Z_R_F_; A ox © G17, G18, G19... Selects the plane where a circular arc is . defined. + Calls the circular arc in the clockwise Gog direction. Calls the circular arc in the counterclockwise direction. ‘Specifies the coordinate values of the end point of the are. OW K eee Specifies the distance and the direction from the start point to the center of arc. . Specifies the circular arc radius. . Specifies a feedrate. ‘When the power is turned on, G17 (XY plane) is selected. Generally, circular arc cutting is carried out in the XY plane (G17). When cutting a circular are in the ZX or YZ plane, select the plane by specifying the G18 or G19 command. The sign (positive (+), negative (—)) used with an R command indicates the following. For a circular arc of 180°, the sign may be either positive (-+) or negative (—). R>0__| Circular are of 180° or smaller R<0 _ | Circular arc of 180° or larger When cutting a full circle, an R command cannot be used to specify radius. Use |, J, and K to specify the radius. If circle radius is specified with R, innumerable circles that have the same start and end points can be defined and the specific one cannot be determined. When |, J, and K command is specified with an R command in the same block, the R command is given priority and |, J, and K commands are ignored. ® Tocuta circular arc accurately, use |, J, and K commands instead of an R command. If an R command is used, there are cases that the center of the arc cannot be set accurately due to calculation error. © For the U-axis control specification model: ‘To execute the circular interpolation using the U-axis, select the ZX plane by specifying G18. In the block containing G18, specify the axes (U- and Z-axes) which are used for circular interpolation on the ZX plane. If no axis is specified in the G18 block, circular interpolation is executed between the X-axis and U-axis. After the completion of machining to be carried out using the U-axis, return the plane selection to the XY plane by specifying G17. G91 U0 Zo G18; Machining program using U-axis \!/ G02 or GOS is determined by viewing the arc in the negative direction from the & positive direction in the axis which is not contained in the selected plane. In the G17 XY plane, for example, the G02 command generates a clockwise arc by viewing the arc in the negative direction from the positive direction in the Z-axis. (Ex) Programming in the G02/G03 mode 1) To define a full circle \'7 ‘The values specified as (O, O) in the & illustration indicate the coordinate values (X, G90 G00 X70.0 Y50.0; G1 XO F500; . Positioning at point @ at a rapid traverse rate Moving the cutting too! to point @ at a feedrate of 500 mm/min Cutting along a circle in the counterclockwise direction ata feedrate of 500 mm/min With a fully circle, X and Y are not specified since the start point and the end point are at the same position. \!0 The distance from the start point (point @) to the center of the circle is 50 mm in the negative direction of the Y-axis. Moving the cutting tool to point @ at a feedrate of 500 mmimin G03 J-50.0; 2) To program the shape @ > @ > ©@ > @ © © > @> © >® >@, which includes arcs. 00001; Nt; G90 Got X28.0 YO F500; Positioning at point @ at a rapid traverse rate \'7 {Axis movement commands in the following blocks are all executed at a feedrate of 500 mm/min. Moving the cutting tool to point @ Circular cutting (counterclockwise direction) to point @) (radius: 10.0 mm) \'”" Specification of | in this block does not have special meaning. It is possible to specify 10.0 instead of 110.0. Moving the cutting too! to point @ Circular cutting (clockwise direction) to point @) (radius: 20.0 mm) 20.0; G03 X18.0 Y30.0 +-10.¢ G01 X-8. G02 X-28.0 Y10.0 R20.0; G01 Y-10.0;. . Moving the cutting tool to point © G02 X-8.0 Y-30.0 R20.0; Circular cutting (clockwise direction) to point @ (radius: 20.0 mm) G01 X18.0; Moving the cutting tool to point © G91 G03 X10.0 10.0 R10.0; ... Circular cutting (counterclockwise direction) to point @ (radius: 10.0 mm) \!1" Since the commands are specified in the G91 & incremental mode, (X10.0, Y10.0) indicate the distance from the start point to the end point of the circular arc. Giving the commands in the incremental mode in this block is only for reference purpose and it does not have specific meaning. G90 Got Yo; Moving the cutting tool to point @ (absolute command) G04 Suspending Program Execution (Dwell) ‘The GO4 command is used to suspend program execution during automatic operation for the period specified in the program. This function is called the dwell function. By specifying the dwell function at the bottom of the hole, axis movement stops. The spindle keeps rotating if axis movement stops. By rotating the spindle one turn while maintaining the cutting tool at the bottom of the hole, the accuracy at the hole bottom is improved and undercut portion is eliminated. amon] When suspending program execution by specifying G04 at the bottom of the A hole, for example, specity the time which allows the spindle to rotate by approximately one tum. If the spindle is rotated too long while the cutting tool is in contact with the workpiece, it wll shorten the tool ife as well as deteriorate finished surface accuracy. \'/ The G04 command is used for spot facing or boring. mms) GOA P_; @} @o4 xX; © G04. Calls the dwell function. ° P.. ‘Specifies the period in which the program execution is suspended. \' Specify the dwell period in units of 0.001 sec without a decimal point. P1000 .... 1 sec. ‘Specifies the period in which the program execution is suspended. \" Specify the dwell period using a value with a decimal & point. X10. . 1 sec. xt. -0.001 sec. ee When address P is used to specify the dwell period, decimal point cannot be used. Dwell for 1.5 seconds . . G04 P1500; Dwell for 2.3 seconds . - G04 P2300; Programmable range of dwell period: 0.001 to 99999.999 (sec) ‘The G04 command is valid only for the specified block. Calculate the time per spindle rotation using the following equation. 60 (sec) ‘Spindle speed (min-*) ©oO®8 1 (seo) = 2.10 (Bic) resigning as To carry out hole machining up to 30 mm depth and dwell at the hole bottom using an end az 20 z + — Rapid traverse i 5 — Cutting eed Dwol fr 0.1806 athe hole botom 00001; Nt; (G90 G00 G54 XO Yo; G43 230.0 H1 $800 T2; Setting the spindle speed of 800 min Mos; G01 23.0 F2000; Starting the spindle in the normal direction at 800 min Moving the cutting tool to point @ at a feedrate of 2000 mm/min Cutting to point @, the bottom of the hole, at a feedrate of 50 mm/min ‘Suspending program execution for 0.1 seconds at the hole bottom Z-30.0 F50; . G04 P100; 60 (sec) Time per spindle rotation = =" = 0.075 (sec) 800 (min-') To suspend program execution for a period equivalent to more than one tum of the spindle, specify 0.1 second for a dwell period. \!/ Dwell can also be specified by "G04 X0.1;" & instead of "G04 P100;". Retracting the cutting tool from point @ to point @ at a feedrate of 50 mm/min G28,G30 —_ Return the Axes to the First, Second, Third or Forth Zero Point Automatically By specifying G28 or G30, itis possible to return the specified axes to the machine zero Point, or second, third or fourth zero point via the specified intermediate point. This type of Zero return operation is used to avoid interference of a cutting tool with the workpiece or machine cover which might occur if the cutting tool is directly returned from the present Position to the tool change position. Its also used when changing a workpiece or removing chips, or when carrying out APC operation. © The third and fourth zero return function is optional. However, itis standard for MV series (includes U-axis control specification) equipped with APC and MH series (includes U-axis control specification). With M-25FV and 25FH, since the second zero return is used for ATC operation, it cannot be used for other purposes. ® 1 First zero point G28X_Y_Z; ‘Second zero point G30 X_Y_Z_; Third and fourth zero point G30 P3(P4) X_Y_Z_; G28... .. Calls the first zero return mode. G30... .. Calls the second zero return mode. G30 P3 ...... Calls the third zero return mode. G30 P4 . Calls the fourth zero return mode. XYZ .. . Specifies the axes to be returned to the first, second, third, oF fourth zero point. Numeric value specified following addresses X, Y, and Z indicates the coordinate value of the intermediate point. When returning the axes to the machine zero point (or second, third, or fourth zero point) using G28 or G30, return the Z-axis to the machine zero Point (or second, third, or fourth zero point) first and after that return the X- and Y-axes to the machine zero point (or second, third, or fourth zero point). Ifthe X- or Y-axis is returned first, the cutting tool will interfere with the fixture or with the workpiece, depending on the position of the workpiece, causing machine damage. When returning the Z-axis from the present position to the machine zero point (or second, third or fourth zero point) using G28 or G30, specify any of the following commands: “G91 G28 Z0;”, “G91 G30 Z0;", “G91 G30 P3(P4) Zo; 1 G28 or G30 is specified in the G90 mode (“G90 G28 Z0,", “G90 G30 20;", “G90 G30 P3(P4) Z0;"), the Z-axis returns to the machine zero point (or second, third, or fourth zero point) via the workpiece zero point. This Movement will cause interference of a cutting tool with the fixture or with ‘the workpiece, depending on the position of the workpiece, causing machine damage. @® _ The positions to be reached in the second, third and fourth zero return operation are established by setting the distance from the machine zero point in parameters. When using the machine equipped with an APC, MH, and SH series, do not change the setting for these parameters. If the setting is changed mistakenly, the machine will move in an unexpected manner, and this could cause damage to the machine. © ‘The too! change position differs among the machine models. @ _MV-40M, 40, 40/U, 45, 45/U, 55, 55/U, 65, 65/U, 80 Z-axis is at the machine zero point. Zero return of Z-axis, Zero return of U-axis (specified only with M-40/U, 45/U, 55/U, and 65/U) Too! change All of X-, Y-, and Z-axes are at the second zero point. G91 G30 Z0 M05; G30 x0 Yo; Moe; @® Mesrv Allof X-, Y-, and Z-axes are at the machine zero point. ‘Second zero return of Z-axis ‘Second zero return of X- and Y-axes Tool change G91 G28 ZO MOS; G28 x0 Yo; Mos; .. © MH-40, 50, 50/U, 63, 63/U Both Y- and Z-axes are at the second zero point and X-axis is at the machine zero point. Zero return of Z-axis Zero retum of X- and Y-axes Tool change G91 G30 ZO MOS; Second zero return of Z-axis, ‘Second zero return of Y-axis « Zero return of X-axis - Zero return of U-axis (specified only with MH-SO/U and 63/U) - Tool change © SH-50, 63 Both X- and Y-axes are at the second zero point. G91 G30 XO YO M05; « Second zero return of X- and Y-axes - Tool change © M25FH Both Y-, and Z-axes are at the machine zero point. G91 G28 Z0 Mos; ++ Zero retum of Z-axis, G28 vo; . + Zero return of Y-axis Mos; +++ Tool change ‘Specify M106 command instead of M06, tool can be changed even if Y-axis does & not returned to the machine zero point. ww © The APC position varies depending on the machine models. @ _MH-40, 60, 50/U, 63, 63/U 2- and B-axes are at the machine zero point and X-axis is at the third zero point. G91 G28 Z0 Mos; Zero retum of Z-axis Third zero return of X-axis Zero retum of B-axis Pallet change and work number search Z-axis is at the second zero point and B-axis is at the machine zero point. G91 G30 Z0 Mos; .. Second zero return of Z-axis G28 BO; . ..+ Zero retum of B-axis Mo2(M30); .. Pallet change and work number search @ MosFH Z- and B-axes are at the machine zero point. G91 G28 Z0 Mos; Zero retum of Z-axis, G28 BO; ..... Zero retum of B-axis ‘Mo2(M30); . Pallet change and work number search @ Mesrv X-, Ys, and Z-axes are at the machine zero pint. G91 G28 Z0 MOS; .. G28X0 YO; ...... MO2(M30); =... «+ Zero retum of Z-axis Zero return of X- and Y-axes Pallet change and work number search 21 Programming using G28 00001; Nt; G90 GOO G54 X90.0 105.0; G43 230.0 H1 $440 T2; i Machining program G91 G26 ZO M05; ++ Zero retum of Z-axis; stopping the spindle rotation Changing the spindle tool with T2 The program to change tools on SH-50. 00001; Nt; G90 GOO G54 X90.0 Y105.0; G43 230.0 H1 S440 T2; E Machining program G91 G30 Xo Yo MOS; ‘Second zero return of X- and Y-axes; stopping the spindle rotation Changing the spindle too! with T2 G40, G41, G42 Cutter Radius Offset ‘The cutter radius offset means shifting of the too! paths to the right or left by the radius from the programmed paths. Generally, when cutting a pocket or carrying out contouring operation using an endmil, the cutter radius offset function is used to finish the workpiece in the shape specified in the drawing. How the shape in Fig. 1 is finished using the cutter radius offset function is briefly explained below. Specify the required shape to be finished in the program: @3@-0-@ Since the center of a cutting tool moves along the defined paths, the cutting tool moves along the paths shown in Fig. 2 if the program is created without using the cutter radius offset function. ‘The workpiece is finished to the shape indicated by broken line in Fig. 2, which is smaller than the required shape indicated in Fig. 1 by the radius of the cutting tool. To shift the tool paths from the programmed paths, input the radius of the cutting tool for the cutter radius offset data. If the cutter radius offset function is used, the tool paths are shifted outside from the programmed paths by the input offset amount as shown in Fig. 3 to finish the required shape. In this manner, by shifting the too! paths from the programmed paths by using the cutter radius offset function, it is not necessary to obtain the coordinate values using complicated caloulation to generate the tool paths to finish the workpiece to the required shape. command) 1. Cutter radius offset in the XY plane ®} G17 G01(G00) G41(G42) X_Y_D_F_; G40 G01(G00) X_Y_; 2. Cutter radius offset in the ZX plane G18 G01(G00) G41(G42) X_Z_D_F_; G40 G01(G00) X_Z_; 3. Cutter radius offset in the YZ plane G19 GO1(GO0) G41(G42) Y_Z_D_F_; G40 GO1(G00) Y_Z_; © G17, G18, G19.. Selection of the plane to execute cutter radius offset. © G01(G00) ...... Selects the interpolation mode in which the cutter radius, offset function is executed. - Rapid traverse - Cutting feed @e ww - Calls the cutter radius offset mode (offset to the left). Workpiece The tool paths are generated 44 by shifting the programmed ——— paths to the left in reference to the tool advancing direction by the specified offset amount. CG) . ~ Calls the cutter radius offset To! avencing. dracon mode (offset to the right). The tool paths are generated by shifting the programmed paths to the right in reference to the too! advancing direction by the specified offset amount. - Cancels the cutter radius offset mode. . Specifies the coordinate values of the end point. . Specifies the offset number. Fee Specifies feedrate. With MSC-518 and MSD-518, there is no distinction between too! length offset (geometry’vear) and cutter radius offset (geometry/wear) when setting the tool offset data. For these models of NC units, set the too! offset data in the manner indicated below. On the tool offset data setting screen, 32 sets of tool length offset data (H code) and cutter radius offset data (D code) can be set (standard). — For the same cutting tool, set the too! length offset data and cutter radius offset data to different offset numbers. — Forthe same cutting tool, set the tool length offset data (geometry) and the too! length offset data (wear) in the same column. — For the same cutting tool, set the cutter radius offset data (geometry) and the cutter radius offset data (wear) in the same column. The screen used for setting the tool offset data differs between MSC-516 and MSD-516, and MSC-518 and MSD-518. Address D specifies the offset number, where offset data is set on the tool offset data setting screen, in a two-digit number. On the too! offset data setting screen of MSC-516, MSD-516, the tool geometry offset data and the tool wear offset data can be set separately. @® The allowable setting range of the tool length offset data and the tool offset, data is indicated below. ing MSC-516, MSD-516 MSC-518, MSD-518 it Tool Geometry | Tool Wear Offset Unit esate Data Tool Offset Data Metric £999,999 £99,999 £999,999 Inch 99,9999 79,9999 £99,9999 Technical terms used in the explanation of the cutter radius offset function> The technical terms special to the cutter radius offset function and items to be observed when using the cutter radius offset function are explained below. ‘The following explanation gives only basic idea on the cutter radius offset function. For details, refer to the instruction manuals supplied by the NC manufacturer. Term Description Star-up ‘The operation to enter the G41 or G42 mode by executing Hina program is called “start-up” and the block where either of G41 or G42 is specified is called the “start-up block". Inthe start-up block, positioning is performed so that the center of the ‘cutting tool, is offset by the radius, and at right angles to the axis movement specified in the next block. Offset mode | The state in which the cutter radius offset function is valid is called the “offset mode”. The blocks executed in the offset mode are called the “offset blocks”, and the operation executed in the offset mode is called the “offset mode operation”. Cancel mode | The state in which the cutter radius offset function is canceled by executing G40 is called the “cancel mode". ‘The cancel mode starts from the end point of the block that precedes the G40 block. The center of the cutting tool is positioned right angles to the tool path programmed in the preceding block. G41(G42) GOO X_Y_; . Start-up @01X_Y_F_; XY: Offset mode XY @40 Goo X_Y_; . Cancel mode © When specitying the start-up, the following three conditions must be satisfied. The start-up block must include an axis movement command; the called distance must be larger than the offset amount (radius of a cutting tool). ~The start-up must be specified in the GOO or G01 (linear motion) mode, Do not specify the start-up in the G02 or G03 mode. If the start-up is specified in such a mode, an alarm is generated, the corresponding alarm message (No. 034) is displayed on the screen and the machine stops operating. — Do not use “D00" as the offset number of cutter radius offset function, ® @ ® At the start-up and in the offset mode, two blocks of commands are buffered. In the offset mode, blocks not containing an axis movement command, a block only with an M command or G04 dwell block, for example, must not be specified continuously. A block containing 0 axis movement is not allowed, either. If such blocks are specified, it will cause excessive or insufficient cutting since two blocks of commands cannot be buffered. It will also cause overload to the cutting tool and the cutting tool might be damaged. If an attempt is made to cut the inside of an arc whose radius is smaller than the radius of the cutter or to cut a groove whose width is smaller than the radius of the cutter, an alarm message is displayed to avoid excessive cutting. If this ocours while the program is executed in the single block mode, excessive cutting occurs to produce a defective workpiece since the program is. executed to the end of the block causing the alarm before it stops. Do not change the plane with G17, G18, or G19 in the offset mode. lf changed, an alarm occurs and an alarm message (No. 037) is displayed on the screen. In the cancel mode, the following items must be carefully attended to: — The cutter radius offset function is canceled by pressing the [ RESET ] key on the NC operation panel in addition to the execution of the G40 ‘command. ~The cancel command must be specified in the G00 or GOt (linear motion) mode. Do not specify the cancel command in the G02 or G03 mode. Ifthe ‘cancel command is specified in such a mode, an alarm message (No. 034) is displayed on the screen and the machine stops operating. (Ex) Programming in the G41/G40 mode Create the program for the workpiece indicated below by using G41 and G40 commands. (-100.0, -100.0) 2412 00001; Nis G90 G00 G54 X-100.0 Y-100.0; Positioning at point @ at a rapid traverse rate in the work coordinate system called by G54 G43 230.0 Ht $300 T2; 2. ..eeeeeseees Positioning at 230.0 at a rapid traverse rate Calling T2 to the tool change position Mos; Starting the spindle in the normal direction at 300 mins 2.30.0; «Positioning at Z-30.0 at a rapid traverse rate (G17) G41 G01 XO Y-40.0 D7 F300; ..... Moving the cutting tool to point @ at a feedrate of 300 mnvmin (Start-up) = G41 Tool position is offset to the left in reference to the tool advancing direction. - D7 Offset number where the cutter radius is set. - Cutting along path@ + @ > @ © © (Offset mode) G02 Yo R160.0; G01 x40. G40 GOO X-100.0 ¥-100.0; ............ At the end point of the preceding block ©, ‘when the center of the cutting tool reaches the position which is located right angle to that block, the tool moves to point @ at a rapid traverse rate. (Cancel mode) G73-G89 Hole Machining Canned Cycles ‘Ahole machining canned cycle program is a set of commands to execute a predetermined series of operation sequence for boring, drilling, tapping, etc. A hole machining canned cycle is often simply called a canned cycle. Ahole machining cycle specifies operation sequence to be specified in several block by the commands in a single block containing a G code. Basic Pattern of Hole Machining Canned Cycle Basic command format and movement of the hole machining canned cycle are explained below: 77 Rapid waverse movements 1 to 6 shown in the diagram. y — Cottng fod Anhole machining canned cycle consists of Movernents 1, 2, and 6 are common to all canned cycles called by G73 to G89. Movements 3 to 5 vary according to respective canned cycles. \W For a hole machining cycle, “initial point’, ‘point R°, and “point 2" indicate the following positions: Initial point ...... ‘The position where a hole machining canned cycle starts in the Z-axis direction = Point... The position where Z-axis feedrate changes from rapid traverse rate to the programmed cutting feedrate in the called hole machining canned cycle The position of the hole bottom in the Z-axis direction Positioning at the hole machining start position by the movements of X- and Y-axes. Movement 2: Moving to point R at a rapid traverse rate Movement 3: Hole machining (Hole machining is carried out.) Movement 4: — Movement at hole bottom \"” Specify dwell and/or spindle orientation if necessary. 4 Movement 5: Returning to point R level Whether the Z-axis return movement is executed at a rapid traverse rate or cutting feedrate is determined by the G code specified for calling the hole machining canned cycle. Movement 6: — Returning to initial point at rapid traverse rate [COMMAND] S G90(G91) G98(G99) G73- G89X_Y_Z_R_P_ Q@_F_K; © GO. Calls the absolute dimensioning mode. - Calls the incremental dimensioning mode. . Calls the return to initial point level. ‘After finishing a hole machining cycle, the Z-axis returns to the initial point level and positioning is ‘executed by the X- and Y-axis at the next hole machining position. (Movement 6) © G9. Calls the retumn to point R level. After finishing a hole machining cycle, the Z-axis returns to the point R level and positioning is executed by the X- and Y-axis at the next hole machining position. (Movement 5) © G73 - G89 ..... Calls a hole machining canned cycle. Operation mode for movement 3 to movement 5 is determined according the specified G code. © GB... Cancels a hole machining canned cycle. Specify the hole machining positions (in XY plane). (Movement 1) ‘Specifies the point Z level (hole bottom). Inthe G90 mode: Defined by the distance and the direction referenced to Z0 (workpiece zero point). In the G91 mode: Defined by the distance and the direction referenced to the point R level. ‘Specifies the point R level where Z-axis feedrate changes from a rapid traverse rate to a cutting feedrate. In the G90 mode: Defined by the distance and the direction referenced to ZO (workpiece zero point). Inthe G91 mode: Defined by the distance and the direction referenced to the initial point level. Specifies the period of dwell function executed at the hole bottom. “4 4.5 sec = P1500 3 Specifies feedrate. Specifies the number of repetitions. @ KO ..eeeeeeeeee At the position specified in the block containing KO, hole machining cycle is not executed. Kt to K9999 ... At the position specified in the block containing a K command, hole machining cycle is repeated by the specified number of times. ‘Specifies depth of cut per one infeed motion (G73, G83), or shift amount (G76, G87). (incremental value) ea... ee Whether movement 5 is executed at a rapid traverse rate or a cutting feedrate is determined according to the G code specified to call the hole machining canned cycle. (G73 to G89) @® When the power is turned on, the G98 mode (the return to the initial point level) is selected. © G98 and G99 are valid only in a hole machining canned cycle and not valid for other operation, @ Inthe F15 format, the number of repetitions is specified using address L. ‘When machining the holes of the same dimensions, arranged in equal intervals, it is possible to repeat the same hole machining canned cycle by specifying the number of repetitions following address K. Therefore, the use of a K command can simplify programming. Operation Patterns in Hole Machining Canned Cycles The patterns called by the hole machining canned cycle G codes are briefly explained below using diagrams. Typical applications are indicated below the cycle pattem diagram. sooo Rapidtraverse ——» Cuttingfeed = ~~» Manual feed ‘G73. High-speed deep hole G74 Reverse tapping cycle ‘G76 Fine boring cycle d: Retraction stroke drilling cycle (left-hand thread) (698699) G73 X_¥_Z_O_ALF; | 96(G99) G74X_Y_Z_R_PLFL) | GS0(G50) G7OXV_Z_G_RPLFLT rita pnt ite pot oma vitor, ----+¢ ---->9ga# SPE 04, coe sonae i iz PEA Shaan ' 1 Sosnen it i ‘ioe Yew pn roan, } con seen hb Se rand go Shenae +d | >t H = Pant em ron ae Sp eran or Deep hole drilling Tapping High precision boring Q: Depth of cut per pass Boring bar is shifted before retracting it. G81_ Spot drilling cycle G82_Counter boring cycle G83_Deep hole drilling cycle (@96(G99) G82K_¥_Z_A_P_F_s ‘@98(698) G83 X_V_Z_Q_ AF il po W777 OK coe rt ont amok coe Centering Drilling shallow holes ‘Spot facing Deep hole drilling Q: Depth of cut per pass d: Retraction stroke P-55 ‘G84 Tapping cycle (right-hand thread) G85 Boring cycle G86 Boring cycle (@96(G99) G84 X_Y_Z_FR_P_F_s (G96(G98) G85X_Y_Z_R_F_; == ogee eal pare ~- == > ORO inde Te eration) t Reaming G87 Back boring cycle ‘G88. Boring cycle (manual G89 Boring cycle extraction) G88 G87X_Y_Z_A_G_P_F_; | G98(G90)G88X_Y_Z_A_P_FL; | G00(G00) G80X_Y_Z_ALPLFL: vel paet eee 7 ___-y git OQ attain) Op ose + coleieie Boring from the back side (Boring bar is shifted before inserting into and removing from the workpiece.) a) @ For the tapping cycle called by G74 or G84, a tapper is used. In this case, the return movement from the bottom of the machined hole to the point R level is made with the taper extended. Therefore, the point R level must be specified larger value than tapper extending length. If the smaller value is specified, the cutting tool and workpiece may collide or interfere with each other, and this could damage the machine when moving to next ‘machining position. @® When the emergency stop button or [ RESET ] key has been pressed to stop the machine during a tapping operation, carefully move the axes after checking the workpiece and cutting too! carefully for damage. If you move the axes without due care, the workpiece and cutting tool may collide or interfere with each other, and this could cause damage to the machine. ® For the fine boring cycle called by G76 and the back boring cycle called by G87, mount a boring bit at the position opposite to the boring bar shift direction. |f the boring bit is mounted in the same position as the boring bar shift direction, the boring bit or boring bar will be hit against the workpiece causing machine damage. This also causes the boring bit to be broken. @ Inthe boring cycle called by G88, any manual operation is allowed after the spindle has stopped rotating at the bottom of the hole. However, before changing the operation mode from manual, the cutting tool must be Positioned outside the machined hole. If positioning is carried out to the next machining position before cutting tool is extracted from the machined hole, the cutting too! will be hit against the workpiece causing damage to the machine. © _ During the execution of a hole machining canned cycle, if the operation is stopped by pressing the emergency stop button or the [RESET ] key, the hole machining mode and the hole machining data are cleared. To restart the operation, pay sufficient care. If the operation is restarted mistakenly, the machine operates unexpectedly causing damage to the machine. Generally, positioning for a hole machining canned cycle is executed in the XY plane and the hole machining cycle is executed along the Z-axis. ‘When changing the hole machining axis to X- or Y-axes, cancel the canned cycle mode once. The number of times the called hole machining canned cycle should be repeated is required only when the cycle should be executed repeatedly. Although feedrate value is retained when the hole machining canned cycle is canceled, the repeat number data is not retained. To call a hale machining canned cycle, the spindle should have been rotated by the M03 or M04 command excluding the rigid tapping cycle. (Good example) ‘S_M03; .. - Spindle normal rotation ~ Good (Bad example) Mos; - Spindle stop Not good G81 X_Y_Z_R_F_ ©° In the hole machining canned cycle mode, if any data of X, Y, Z, R, or additional axis is specified in a block, the called hole machining cycle is ‘executed. In the block that does not contain any of X, Y, Z, R, or additional axis, the hole machining cycle is not executed. However, even if an X command is specified, the hole machining cycle is not executed if tis specified following the G04 command which calls the dwell function. In the hole machining canned cycle (G74, G84, G76, or G86) which controls the mode of spindle rotation, i the cycle is executed continuously while the distance from the hole position (X, Y) or initial point level to point R level is short, there may be cases that the spindle fails to reach the required speed before it begins hole machining Z-axis operation. tf such a problem is anticipated, enter the dwell command (G04) between machining of two holes, without specifying the repeat number. Executes dwell and suspends hole machining operation Executes dwell and suspends hole machining operation The hole machining canned cycle mode is canceled by the G80 command or a G code of group 01 (G00, G01, G02, Go3) . Only X- and Y-axes are moved, the canned cycle is not executed. ++ The called canned cycle is executed. If any of GOO to G03 commands (G code of group 01) is specified with a G code which calls a canned cycle in the same block, the G code specified later is valid. (# is 0 - 3. CID is a G code calling a canned cycle.) © GO# GOO X_Y_Z_R_Q_P_F_K_;..... Executes the hole machining canned cycle © GOO Go#xX_Y_Z_R_Q_PLFLK5..... Executes movement of X-, Y., and Z-axes according to ‘GOH Rand P are ignored and F is stored to the memory. ® After the completion of hole machining operation executed using a hole ‘machining canned cycle, cancel the hole machining canned cycle by specifying G80 or a G code in 01 group (G00, GO1, G02, Go3). ® Hany of G27, G28, G29, and G30 is specified without canceling a hole machining canned cycle, an alarm (No. 044) is displayed. Before specifying G27, G28, G29, or G30, itis necessary to cancel the hole machining canned cycle. @ When miscellaneous function is specified with a G code which calls a hole ‘machining canned cycle in the same block, the M code is output at the first positioning. After the completion of positioning, the next hole machining cycle is started after checking the M code completion signal (FIN). Ifthe number of repetitions is specified, the M code is output only in the first cycle and is not output after that. ® During the tapping cycle called by G74 or G84, feedrate override and spindle speed override are fixed to 100% because a fixed lead thread cannot be cut if feedrate or spindle speed is changed during tapping cycle. @® For the fine boring cycle called by G76 and the back boring cycle called by G87, if shift amount Q is improper, the cutting too! will interfere with the workpiece when it is moved up to be extracted from the workpiece. @ For the fine boring cycle called by G76 and the back boring cycle called by G87, the shift direction of a boring bar is set for parameters No. 5101.4 and No. 5101.5, respectively. Therefore, the shift direction may be different among the machine models. @ 1180 is specified, point R and point Z level data are canceled in addition to the G code (G73 to G89) calling for a hole machining canned cycle. @ Inthe back boring cycle called by G87, the point R level return operation (G99) ‘cannot be specified. @ Ifthe machine is stopped in the feed hold state during movements 3 to 5 in the tapping cycle G74 or G84, the feed hold indicator is lit at once. However, the NC continues operating to complete movement 6; the feed hold function becomes valid only after the completion of movement 6. Hf the automatic operation switch (feed hold) is pressed again during movement 6, the feed hold function becomes valid immediately and axis movement stops immediately as well. @ When a hole machining canned cycle is executed in the single block mode, axis movement is suspended at the end point of movements 1, 2, and 6. Therefore, it is necessary to press the automatic operation switch (cycle start) ‘on the operation panel three times to machine one hole. ‘At the end point of movements 1 and 2, the machine stops with the feed hold indicator is lit. The machine stops in the feed hold state after the completion of movement 6 if the next cycle should be repeated. In other cases, the machine stops in the complete stop status. + -— Repid traverse <— cutting teed --— Rapid traverse or Morag, tacit =Htna eed (Ex) Programming in the G82 (counter boring cycle) mode 00001; Nt; G90 GOO G54 X10.0 15.0; G43 230.0 Ht $1000 T2; Mos; G99 G82 X20.0 Y30.0 Z-25.0 R3.0 P100 F100; .... Hole machining canned cycle (counter boring) Machining program .- Canceling the hole machining canned cycle © 230.0 . Z coordinate value of the initial point level tt | (X20.0 ¥30.0 230.0) © Go9.. - Return to the point R level return PP ial point ' == Repid traverse mode Cutingteed ® ~—«G82.........- Hole machining canned cycle - (counter boring) 20 © ~—_X20.0 Y30.0 .. Hole machining position © 2-25.0....... Z coordinate value of the point Z level (hole bottom) Wovement @ RB0......... Z coordinate value of the point R level ‘This has the same & ‘meaning as Z3.0. © P10 Lee Dwell for 0.1 sec at the hole bottom © FI00 22... Feedrate of 100 mm/min 2424 ‘One block of commands including G82 execute a series of operation from movement 1 to movement 5. Movement 1... Positioning at the hole machining position (X20.0, Y30.0) at a rapid traverse rate Movement 2 ... Z-axis movement up to point R (Z3.0) at a rapid traverse rate Movement 3 ... Cutting up to the hole bottom (point Z level, Z-25.0) at the specified feedrate 100 mnvmin Movement 4 ... Dwell for 0.1 sec at the hole bottom Movement 5 ... Rapid retraction to point R level, as determined by G99 \'7 In the G90 incremental mode, the same cycle is programmed as indicated below. G91 G99 GB2 X10.0 Y15.0 Z-28.0 R-27.0 P100 F100; M29. Ge4,M29G74 —_—Rilgid Tapping Cycle and Reverse Rigid Tapping Cycle In tapping operation, Z-axis feed amount per spindle rotation must be equal to the pitch of the thread. In the FO format, in the M29 mode (M29 G84, M29 G74), accurate tapping operation is possible since the spindle rotation and the Z-axis feed are constantly synchronized. @ “M29 G84" and "M29 G74" are optional for MV-45, 55, 65, and 80. ‘7 @ Inthe F15 format, the commands should be as indicated below. & M298; M29 $_; Me 3 a842 2 S= + G04 ® “M29 G84" is used for cutting right-hand thread and “M29 G74" for cutting left-hand thread. ® Forrgid tapping, feedrate F is calculated in the following manner, Feedrate F = Spindle speed x Pitch During rigid tapping operation, there is a restri ‘on spindle speeds. [COMMAND] 1. Rigid tapping cycle (right-hand thread) | mas ; G98(G99) G84 X_Y_Z_R_P_F_K_ 2. Reverse rigid tapping cycle (left-hand thread) M29S_; G98(G99) G74. X_Y_Z_R_P_F_K_ Calls the rigid tapping cycle. Specifies spindle speed. Calls the initial point level return operation. .. Calls the point R level return operation. «Calls the tapping cycle (right-hand thread). Calls the reverse tapping cycle (left-hand thread). Specifies the coordinate value of the center of the hole. Specifies the position of point Z (hole bottom). -- Specifies the position of point R. - Specifies the dwell period at the hole bottom (point Z level) or after the return to the point R level or initial point level. «Specifies the feedrate, . Specifies the number of repetitions. Programming using M29 G84 or M29 G74 oceceee . 7 To carry out tapping of pitch 2 mm and depth 20 mm at points ® and @ A 'g 230.0 (Initial point level) 25.0 (Point Revel Movement by M29 G84 and Masereate.@ - Positioning at point @ at a rapid traverse rate in the work coordinate system called by G54 - Positioning at 230.0 (initial point level) at a rapid traverse rate G43 230.0 Hi T2; $400; - Executing G84 (rigid tapping cycle for right-hand thread) [ Executing G74 (rigid tapping cycle for left-hand thread) \' @ _ Feedrate F = Spindle speed x Pitch = 400 x 2 = 800 (mm/min) ® The spindle is stopped between the initial point level and the point R level. 2422 Executing G84 or G74 cycle at point @ Canceling the hole machining canned cycle (G84 or G74) G84.2,G84.3 _ Rigid Tapping Cycle and Reverse Rigid Tapping Cycle In tapping operation, Z-axis feed amount per spindle rotation must be equal to the pitch of the thread. In the F15 format, in the G84.2 and G84.3 modes, accurate tapping operation is possible since the spindle rotation and the Z-axis feed are constantly synchronized. @ “G84.2" and “G84.3" are optional for MV-45, 55, 65, and 80. “7 @ Inthe FO format, the commands should be as indicated below. Q M29 S_; M29 S_; }.2- ond G84.35 = BAZ oa; G74; @® “G84.2" is used for cutting right-hand thread and “G84.3" for cutting left-hand thread. ® For rigid tapping, feedrate F is calculated in the following manner. Feedrate F = Spindle speed x Pitch During rigid tapping operation, there is a restriction on spindle speeds. COMMAND] 1. Rigid tapping cycle (right-hand thread) S| s; G98(G99) G84.2 X_Y_Z_R_P_F_L_; 2. Reverse rigid tapping cycle (left-hand thread) S_; G98(G99) G84.3 X_Y_Z_R_P_F_L_; Specifies spindle speed. . Calls the initial point level return operation. Calls the R-point level retum operation. . Calls the rigid tapping cycle (right-hand thread). Calls the reverse rigid tapping cycle (left-hand thread). ‘Specifies the coordinate value of the center of the hole. ‘Specifies the position of point Z (hole bottom). . Specifies the position of point R. Specifies the dwell period at the hole bottom (point Z level) or after the return to the point R level or initial point level. . Specifies the feedrate. . Specifies the number of repetitions. 2123 (Ex Programming using G84.2 or G84.3 To carry out tapping of pitch 2 mm and depth 20 mm at points ® and @ y 7 Pee ® oT {9 230.0 (Initial point level) 25.0 (Point R level) Movement by Me4.2.G24.3 at@),@ 00001; Ni; G90 G00 G54 X50.0 Y30.0; ..... Positioning at point @ at a rapid traverse rate in the work coordinate system called by G54 Positioning at 230.0 (initial point level) at a rapid traverse rate Executing G84.2 (rigid tapping cycle for right-hand thread) ‘— G99 G84.3 Z-20.0 R5.0 F800; ... Executing G84.3 (rigid tapping cyole for left-hand thread) \'7 @ _Feedrate F = Spindle speed x Pitch = 400 x 2 = 800 (mm/min) @® The spindle is stopped between the initial point level and the point R level. Executing G84.2 or G84.3 cycle at point @ Canceling the hole machining canned cycle (G24.2 or G84.3) G80; . Cautions on Programming Rigid Tapping Cycle and Reverse Rigid Tapping Cycle ‘The cautions to be followed when using the rigid tapping cycle and reverse tapping cycle are indicated below. auton) When the emergency stop button or [ RESET ] key has been pressed to stop A the machine during a tapping operation, carefully move the axes after checking the workpiece and cutting tool carefully for damage. If you move the axes without due care, the workpiece and cutting tool may collide or interfere with each other, and this could damage the machine, @e During tapping cycle, feedrate override and spindle speed override are fixed to 100% because a fixed lead thread cannot be cut if feedrate or spindle speed is changed during tapping cycle. 2.13 @e {f the automatic operation switch (feed hold) is pressed during tapping cycle, the cycle does not stop until the cutting tool returns to the initial point level (G98) or the point R level (G99). @ Call the rigid tapping cycle in the state the spindle is stopped. @® _ The spindle speed to be used for G84.2 or G84.3 should be specified in the block just before the G84.2 or GB4.3 block. © Since the spindle rotation and Z-axis feed are synchronized in the rigid tapping mode, it is not necessary use a tapper. G22,G23__ Setting the Tool Entry Inhibited Area In the G22 mode, if a too! enters the specified area an alarm message is displayed on the screen and the machine stops. G23 cancels the G22 mode. Hf different kind workpieces @ and @ are mounted on the table or fixture, for example, the wo tool entry inhibited area should be set by specifying the G22 command to avoid interference of a cutting tool with the workpiece @ while workpiece ( is being cut. © G22 and G23 are optional. \\”" The function called by G22 and G23 are called the stored stroke check function. 8 comme) G22X_Y_Z_1_J_K_; | eas; . Turns the stored stroke check function ON. . Turns the stored stroke check function OFF. . Specifies the start point ofthe tool entry inhibited area. ‘Specify the distance from the Ts machine zero point, ie., machine coordinate values displayed on the screen. ate The X,Y, andZ commands are specified in the minimum setting unit. 4100 mm —» 100000 OG Kee ‘Specifies the end point of the tool entry inhibited area. ‘Specify the distance from the machine zero point, ie., ‘machine coordinate values displayed on the screen. The X, Y, and Z commands are specified in the minimum setting unit. 100 mm -> 100000 © ‘When using the G22 stored stroke check function, itis necessary to execute the machine zero return operation after turing on power. The stored stroke check function cannot be used unless the machine zero return is executed. If the machine is operated while the stored stroke check function is not set, the machine does not stop even when a cutting tool enters the tool entry inhibited area, causing machine damage. For setting the coordinate values “X_Y_Z_" and “I J_K_", the following conditions must be satisfied, eX>LY>uZ>K eX-1>2mm Y-J>2mm Z-K>2mm (%-80.0, Y-66,0,2-40.0) (+1300, 4-750, K-80.0) © X~80.0 > 1- 130.0 © -80.0 — (-180.0) = 50.0 > 2mm © Y 55.0 > J-75.0 © -55.0 - (-75.0) = 20.0 > 2mm ©Z-40.0 > K-80.0 © -40.0 - (-80.0) = 40.0 > 2mm & YZ) AAs shown in the illustration diagram above, the tool entry inhibited area established “outside” or “inside” the specified zone. Where the tool entry inhibited area is set “outside” or “inside” is determined by the setting for parameter No. 1300.0. ‘The G22 and G23 commands must be specified in a block without other ‘commands. If the same values are set for *X_ Y_Z_" and “I_ J_K_" following the G22 ‘command, the tool entry inhibited area is not set. ‘Tool entry inhibited area specified with G22 is set in parameters No. 1322 and No. 1323. ‘The value set in these parameters are not lost even if the power is tumed off. ‘Accordingly, unless canceled by G23, the G22 function is valid when the power is turned on. 2.14 \'/ Ifa cutting tool entered the tool entry inhibited area specified with G22, an alarm displayed on the screen and the machine stops. In this case, the cutting tool can be moved only in the opposite direction in which the cutting tool has been moved. The alarm state can be cleared by pressing the [ RESET ] key on the operation panel after moving the cutting too! outside the tool entry inhibited area manually. Programming in the G22/G23 mode To set the tool entry inhibited area as shown in the following illustration. (+-140.0, -70.0, K-80.0) Zero return of Z-axis Zero return of X- and Y-axes %-100.0 Y-50.0 Z-40.0 140.0 J-70.0 K-80.0; «+++ Setting the tool entry inhibited area as illustrated above G90 G00 G54 X_Y_; G43Z_H_S_T_ Mos; Machining program ‘+ Canceling of the tool entry inhibited area M00,M01 = Program Stop and Optional Stop When the M00 command is executed during program execution, the machine stops unconditionally. The spindle, axis movement, and coolant discharge stop. Enter the MOO command in a program at a block where the operation must be suspended. Differing from the MOO command, the M01 command is valid only when the optional stop switch on the operation panel is pressed. In the condition that this switch is pressed, the Mot command has the same effect as the MOO command. That is, when the M01 command is executed while the optional stop function is valid, spindle rotation, axis, movement, and coolant discharge stop. Enter the M01 command in a program at a block where the operation should be suspended occasionally as required. For example, use the MO1 command when executing the program to machine the first workpiece or for executing test cutting. 2.15 — check the dimensions of the machined workpiece, check the tool nose, = _ remove chips during machining. (comers) MOQ; ....... calls the program stop function. Se M01; ....... calls the optional stop function. A After the operation is suspended temporarily by the MOO or M01 command, do M30 not change the tools or move an axis manually. If either or both of such manual operations had to be carried out, return the turret head and the axes having been operated to the previous state before manual operation. After that the automatic operation may be restarted. If the automatic operation is restarted without restoring the previous state, interference will occur between the cutting tools or the tool holders and the workpiece or fixture, or the workpiece will be machined by a wrong cutting tool, causing cutting tool to be broken. © _ Specify the MOO or M01 command in a block without other commands. @® The status indicator (MOO/MO1) is lit when the MOO or MO1 command is, executed. The program is continuously executed when the automatic operation switch (cycle start) on the operation panel is pressed. @® _ When the Mo0 or M01 command is executed, the spindle start M codes (M03, ‘MO4) and the coolant discharge M code (M08) are canceled. Therefore, when specifying the MOO or MO1 command, determine the position where these M codes are entered taking this into consideration. When restarting the program after suspending program execution by the MOO ‘or M01 command, specify the MOS or M04 command at the restart block. If coolant discharge is required, specify the M08 command as well. How the M01 command is executed is explained below in relation with the status of the optional stop switch on the operation panel. aD = Optional stop function is valid: ‘The MO1 command is executed and the program stops after the execution of the block where the M01 command is contained. Optional stop function is invalid: ‘The MO1 command is ignored and the program is executed continuously. Program End and Rewind When the M30 command is executed, 1) All machine operations stop. The spindle stops. ‘Axis movement stops. Coolant discharge stops. 2.16 2) The NC is reset. In the reset state, the G codes that are valid when power is turned on are valid, However, G20 or G21 mode remains unchanged. ‘The F code is canceled. ‘The S code remains valid. 3) The cursor returns to the start of the program (rewind function). “17 Since M30 includes a rewind funcion, it is convenient when machining the same kind of workpieces continuously. (CoRR) oP M30 . .. Specifies the end of program and program rewind. ‘The program execution ends, the NC is reset, and the program is rewound. @° ‘Specify the M30 command in a block without other commands. ® The indicator above the automatic operation switch (cycle start) on the operation panel goes off when the M30 command is executed. At the same time, the status indicator (Mo2/M30) is lit. M03, M04,M05 Spindle Start and Stop ‘The M03 and M04 commands are used to start the spindle. The MO5 command is used to stop the spindle. coma) MOS; ...... Specifies spindle start in the normal direction. SP Normal direction: Clockwise rotation, viewing the workpiece from the rear of the spindle . . Specifies spindle start in the reverse direction. Reverse direction: Counterclockwise rotation, viewing the workpiece from the rear of the spindle M05; ...... Specifies spindle stop. Stops the spindle rotation. (camo) @) Do not stop the spindle by specifying the MOS command while the cutting tool is in contact with the workpiece. If the spindle is stopped while the cutting tool is in contact with the workpiece, the tool will be chipped. @® Start the spindle by executing either the MO3 or M04 command before the cutting tool comes into contact with the workpiece (except rigid tapping cycle). If the cutting tool is brought into contact with the workpiece while it stays stationary, the cutting tool will be chipped. Before starting the spindle rotation with the M03 or MO4 command, it is necessary to specify the required spindle speed using an S code. (71) Forte s code, referto page P- 79 (3.2). 247 M06 — Tool Change ‘The M06 command is used to change the tool set in the spindle with the tool at the tool change position. When the M06 command is executed while no tool is set in the spindle, the tool at the tool change position is set to the spindle. The M06 command executes a series of tool change cycle (ATC) including spindle orientation and tool clamp/unciamp. mo For the tool change position, refer to page P — 42 (2.10) (Soran) SP MO6;...... Tool change amon] Pay attention to the following point if technical memory random method is used A for tool change. (MV-40M, 40, 40/U, 45, 45/U, 55, 55/U, 65, 65/U, SH-50 12-tool specification) ATC operation for changing the tools of diferent tool size groups differs from that for changing the tools of the same tool size group. For changing the tools belonging to different tool size groups, tool change cycle is executed twice. Pay sufficient care when executing tool change operation in the MDI mode in such cases. @° If the M06 command is executed while the spindle is rotating, the spindle orientation is automatically executed and the tools are changed. ® Before carrying out the tool change cycle by specifying the M6 command, it is necessary to stop coolant supply. 218 M08, M09 ~—- Coolant Discharge ON/OFF ‘The MO8 command is used to start coolant discharge. The M09 command is used to stop coolant discharge. coma] MO8; ...... Specifies coolant discharge ON. S © Do not carry out tool change cycle while coolant is discharged. Specifies coolant discharge OFF. ‘7 Coolant discharge control using the coolant switches (on) and (off) on the operation & ‘panel in combination with the M08 command is explained below: [LON] S Coolant is discharged when the M08 command is executed while | | «4 the coolant switch (on) is ON. [OFF] Coolant, being discharged, stops when the coolant switch (off) om is pressed. Pressing the coolant switch (off) 1 second or more while coolant is not discharged causes the indicator in this switch to blink on and off, and the coolant off mode becomes valid. In this condition, coolant is not discharged even when the MO8 command is executed. 2.19 M98, M99 = Sub-program Call and Return from Sub-program By entering the Ma8 and M99 commands in respective two programs, these programs are interrelated with each other as a main program and ‘a sub-program as illustrated on the left. When executing the same cutting (cutting position, pattern) repeatedly, the part to be repeated may be stored to the NC memory as a sub-program. in a main program, the sub-program number and the number of times the sub-program is repeated should be specified. © It is possible to specify sub-program calll from one sub-program to the other as illustrated below. This is called nesting and allowable nesting level is four. If sub-program call exceeds this limit, alarm number (No. 077) is displayed. steal 2nd cat deal “atcall Main = Sub- P| se. | Sub- ye sub- Program program 1 | program? | programs | rogram 4 By storing the portion of the program to be executed repeatedly as a sub-program, required memory capacity can be reduced and programming errors can be reduced ww“ accordingly. COMMAND) 1. FO format jy) mos pi ; Mos .. . Calls sub-program. Poooo o000 Sub-program number The number of sub-program calls; if omitted, the specified sub-program is called one time. 2, F15 format M98 P| ; M98 Calls sub-program. Pp. - Specifies sub-program number, Specifies the number of sub-program calls. If tis omitted, the specified sub-program is called one time. ee Ifthe program number specified by address P is not found, an alarm message (078) is displayed on the screen. ® lta P command is not specified in the M98 block, an alarm message (076) is displayed on the scréen. @® Anumeric value specified following address P may not always be in eight digit number. If a sub-program is called only once, address P should be followed only by a sub-program number. oP... e@ P1200. Sub-program number 1 Sub-program number 1200 Ifa sub-program is repeated two or more times, the sub-program number should be specified in four digits. ‘Sub-program number 200 is repeated two times. ‘Sub-program number 2 is repeated 30 times. & ‘The number of program repetition: Max. 999 for FO format and max. 9999 for F15 format mT SP M99 P_; e Moo. «+. Specifies return from the sub-program to the main program. © Poles ‘Specifies the sequence number in the main program, where the program flow should retum. (omissible) Ifthe program number specified by address P is not found, an alarm message (078) is displayed on the screen. *'” © fa P command is omitted, the program flow retums to the block that follows & the one where jump to the sub-program has been made. ‘Address P is not normally specified in an M99 block. ® _If"M99 P_;"is specified in the main program: ‘The program flow jumps to the sequence number specified by P in the main program. fa P command is omitted, the program flow jumps to the start of the main program. The main program is executed endlessly. 2.20 1) General example programs Main program 00001; Nt @ N2Moe P100; NB NA ® N5 M96 P20200; 2) Nesting of sub-program call —_—_—_—__+ Programming using M98 or M99 ( From the sub-program called from the main program, another sub-program is called. Main program M19 Sub-program 1 00100; Sub-program 2 Spindle Orientation Specify the M19 command to stop the spindle rotation at the fixed position. When mounting a boring bar which is used in the G76 or G87 boring cycle in the spindle, M19 is executed in the MDI mode. M19; Specifies spindle orientation. ‘When tool change cycle (M06) or hole machining canned cycle (G76, G87) is executed, the spindle orientation is executed automatically. Therefore, itis not necessary to specify M19 in a program. 3. T, S, and F Functions T Function T function calls a specified tool to the tool change position. A four-digit tool number entered following address T specifies the tool to be called. In response to the specification of a tool number, the magazine rotates to bring the specified tool to the tool transfer position and the waiting pot receiving the called tool brings it o the tool change position. The ATC (automatic tool changer) operation consists of: Tool Selection (T function) | + |Tool Change (M06) A required cutting tool is called in the following two methods. = Technical memory random method (MV-40M, 40, 40/U, 45, 45/U, 55, 55/U, 65, 65/U, SH-50 <12-tool type>) ime Page P - 74 (3.1.1) - Fixed address shorter route random access method (MV-80, MH-40, 50, 50/U, 63, 63/U, SH-50 <40, 60, 90, 120, 180-tool type>, SH-63, M-300, 400, 25FV, 25FH) ++ Tool number Programmable range: T1 to T9999 WN When checking the cutting tools stored in the magazine during setup, do not change large diameter cutting tools continuously. If tool change is attempted from a large diameter tool to another large diameter tool, it causes overload to the ATC motor and the thermal relay may be tripped. @° An entry of a tool number following address T is often misunderstood as a ‘command to complete a tool change operation. It must be understood that a “T" command only rotates the magazine and brings the specified tool from the magazine to the waiting pot. The cutting tool is mounted to the spindle by the M06 command which follows the “T” command. ® With MV-40/U,, 45/U, 55/U, 65/U, tool clamp in the spindle is judged by the cutting tool clamp torque. Therefore, if a tool clamp command is executed while there is no tool in the spindle, tool clamp is not completed. Therefore, do not specify the following commands: TO; | «++ Tool change Alarm Ex0149 MO6; (no new tool to be (TO; and M06; were specified) mounted to the spindle) 344 ® With MH-50/U, 63/4, if the ‘T0;" command is executed, the cutting tool in the waiting pot is returned to the magazine and an empty pot is indexed. Therefore, the following commands cause an alarm: TO; | fake Tool change > Alarm Ex0139 (n0 new tool to be (no too!) mounted to the spindle) \!/ With MH-50/U, 63/U, if the following commands are executed, the adapter is & indexed to the standby station and then the adapter is mounted to the spindle. The same operation is executed by the M33 command. TT is the tool number assigned for the adapter. MH Mos; Technical Memory Random Method In the technical memory random method, the cutting tools are first classified into one of the following tool size groups when they are registered — large, medium, and small diameter tools. In the tool change cycle, the magazine rotates to index an empty pot, which meets the too! size group of the tool to be returned, located nearest to the tool change position. That is, when a large diameter tool is returned from the spindle, the empty pot assigned to store a large diameter tool and located nearest to the tool change position is indexed. This method is adopted to shorten the tool change cycle time. [CATION] (7) The tool is not always returned to the pot where the cutting tool has been A stored. When a large diameter tool which is larger than the pitch between the pots is used, leave the adjacent pots empty or use them only for small diameter tools to avoid interference between the tools in the magazine. = M33 ® For SH-50 (12-tool type), when a large diameter tool (over 100 mm, and up to 150 mm diameter) is used, leave the adjacent pots empty or use them only for small diameter tools to avoid interference between the tools in the magazine. Machine Model Pitch between Pots (mm) MV-40M, 40/40, 85 MV40%0 1405 ‘MV-40/U 125 MV-45/40, 65/40, 65/40 1016 MV-45/50, 55/50, 65/50 127 MV-45/U, S5/U, 65/0 127 T9000;. ‘Tool number for large diameter tools (T9000 to T3999) T1000 to T8000 ; .... Too! numbers for medium diameter tools (T1000 to Tas99) Toooo ‘Too! number for small diameter tools (T0001 to Tos99) @ The MV-40/50, 45, 45/U, 55, 55/U, 65, and 65/U have the function to change tool change cycle speed depending on tool weight to improve ATC Performance. This function is called by setting proper data for parameter K6.4 (MV-40/50) or K5.0 (MV-45, 45/U, 55, 55/U, 65, 65/U). Therefore, when registering the cutting tools, it is necessary to add the attribute to classify them according to too! weight (light, heavy) in addition to the tool size group attribute. If program presently used for the machining centers is used for the MV-40, 45, 55, 65/U series machining center, there will be cases that a medium diameter, heavy tool is changed at a faster speed. If this occurs, the ATC parts may be damaged. ‘Change the present program, referring to the information below to ensure safety. When the machine is installed, the parameter is set so that tool change cycle is executed at a low speed for all tools. ‘The U-axis tools are all classified into heavy tool and, therefore, tool change cycle is executed at a low speed for the U-axis tools. Tool No (T) Tool Diameter Too! Weignt | Teal Change (0001 to 0969 _| Small diameter tool - ; 700010 7989_| diameter tol Light toot High 8000 to 8999 seed False 7 9000 to 9989 [Large diameter tool ml 7 Tool Weight Classification MV-40/50, 45/50, 55/50, 65/50 MV-45/40, 55/40, 65/40 {including U-axis} Light Toot Upto 8 kg Upto 10 kg Heavy tool | 8kg or more, 15kg orless | 10kg or more, 20 kg or less @° ® Tool change cycle speed is automatically selected according to the weight of the tools to be changed: 1. Tool change between light tools High-speed 2. Tool change between light tool and heavy tool -—_Low-speed 3. Tool change between heavy tools Low-speed ® ATC operation for changing the tools of different tool size groups differs from that for changing the tools of the same tool size group. For changing the tools belonging to different tool size groups, tool change cycle is executed twice. Pay sufficient care when executing tool change operation in the MDI mode in such cases. Ifa large diameter too! mounted in the spindle is changed with a small diameter tool, for example, the tool change operation is carried out in the following sequence: 1. Magazine rotation (to index the empty pot where a large diameter tool is returned) 2. Tool change cycle (large diameter tool is returned to the empty pot) 3. Magazine rotation (to index the small diameter tool to be mounted to the spindle) 4, Tool change cycle (small diameter tool is mounted to the spindle) In the case of MV-40/U, 45/U, 55/U, and 65/U, register large diameter U-axis tools to tool numbers T9000 to T9099. In the case of MV-40/U, 45/U, 55/U, and 65/U, tool number T8900 to T8999 may be used to register medium diameter U-axis tools by changing the setting for parameter K6.3. If this is required, please contact Mori Seki. In the case of MV-40/U,, 45/U, 55/U, and 65/U, U-axis tools must be registered to T8000 to T9099 and T8900 to T8989 (only when the setting for parameter K6.3 is changed). | a U-axis tool is registered using other tool number and when itis called by specifying this too! number, the U-axis does not operate. Determining Tool Size Group ‘As explained above, the tools must be classified into large, medium, or small diameter tool to avoid interference between tools stored in the magazine. Use the following to determine the tool size group for individual tools. - Large diameter > The maximum tool diameter with adjacent tools The maximum diameter . gmail diameter — ofthe tools to be used = The maximum tool diameter © with adjacent tools - Small diameter < Medium diameter < Large diameter Classification of a specific tool varies depending on the combination of the tools to be used. \'" The allowable maximum tool diameter of the tool that can be stored in a pot without interference is indicated below. Set the cutting in pot taking this maximum diameter into consideration. Meclab teas Max. Tool Diameter cc With Adjacent Tool | Without Adjacent Tool MV-40M, 40740 0 mm dia. 725 mm dia, MV-40/50 730 mm dia. 240 mm dia. MV-400" 110 mm dia. 110, 125, 160 mm dia. MV-45/40, 56/40, 65/40 95mm dia, 760 mm a, MV-45/50, 55/50, 65/60, 7 Ree ae 120 mm dia. 240 mm dia. SH5O 700 mm dia, 150mm dia. *: The maximum diameter of a cutting tool without adjacent tools varies depending on the tool length. (Ex. Technical memory random method To create a program for MV-65/50 by classifying tools according to size (large diameter tools, medium diameter tools, and small diameter tools) and weight (heavy tools and light tools). Used Too! | 160mm dia face mill | Smm dia, center drill | 90 mm dia. end mill Tool Diameter | __180 mm dia. 50 mm dia. 0 mm dia. Used Too! 6.8mm dia. ait | 20 mmdia. chamfer Ms tap Tool Diameter | __50 mm dia. 80 mm dia. 70 mm dia. With MV-65/50, the maximum tool diameter with adjacent tools is 120 mm. Therefore, a tool exceeding 120 mm diameter is classified into the large diameter tool group. Whether a tool is classified into the medium diameter group or small diameter group is determined according to the diameter of the large diameter tool. 180 mm dia. + Small diameter 2 From the inequality above, it is known that tools of smaller than 60 mm diameter are classified into the small diameter tool group. ‘Then, the range of each tool size group is determined as indicated below: — Small diameter tools (T0001 to T0999) . - Tools of 60 mm diameter or smaller — Medium diameter tools (T1000 to T8999) = 120mmdia, - Tools of over 60 mm diameter and 120 mm diameter or smaller ~ Large diameter tools (T9000 to T9999) ....... Tools of over 120 mm diameter and 180 mm diameter or smaller 34.2 Too! weight of the medium diameter tools is indicated below. They are classified into light and heavy tools. Used Tool (Medium Diameter Tool) | ToolWeight | Group TooINo, 30mm dia, end mil 12g Heavy tool_| T8003, 20 mm dia. chamfer tool 9kg Light too! T1005 M8 tap 8kg Light tool T1006 Used Tool Tool No. 7160 mm dia. face rn T9007 ‘mm dia. center drill T0002 (S)__| * ee Taare : ium diameter tool 30 mm dia. end mill T8003 (M, HV) ‘Small diameter too! 6.8 mm dia. drill T0004 (S) HV: Heavy tool 20 mm dia, chamfer tool Ti005 (M, LT) LT: Light too! M8 tap T1006 (M, LT) Register the tool numbers which are determined according to the tool size group and too! weight group for the six tools. The tools can be registered in the following two methods. — When an empty pot can be set. Ifitis possible to set empty pots in the magazine, leave the pots on both side of the. pot storing a large diameter tool empty or allocate these pots to small diameter tools. ‘Set tool number “0” when registering the tools, and the pot is set as an empty pot which is not used in tool change operation. - When an empty pot cannot be set. Ifitis not possible to set an empty pot in the magazine, use the pots on both sides of the pot storing a large diameter tool for storing small diameter tools. Fixed Address Shorter Route Random Access Method In this method, the tool number is registered in relation with the pot number of the tool pot where the cutting tool is set. The cutting tool and the pot are handled in a pair, therefore, the cutting tool is always returned to the same pot. This means, if the cutting tools stored in adjacent pots do not cause interference when storing them, itis not necessary to worry about tool interference during automatic operation. .O} With MH-40, SH-50 (40, 60, 90, 120, 180-tool type), SH-63, M-300, and 400, although the cutting tool is always returned to the pot where it was removed, the pot position in the magazine changes as tool change cycle is executed (free-pot fixed address method). ® The allowable maximum tool diameter of the too! that can be stored in a pot without interference is indicated below. Set the cutting tools in pot taking this, maximum diameter into consideration. » 3.2 3.3 ww ConaTAeD| ; Max. Tool Diameter ee ee With Adjacent Toot | Without Adjacent Tool MV-80 130 mm dia. 240 mm dia. MH-40, SH-0 700 mm dia. 150 mm dia. MH-50, SO/U, 63/U 120 mm dia. 240 mm dia. MH-63, SH-63 120 mm di. 300 mm dia. 300 80mm dia, 110 mm dia, M400 0mm dia. 140 mm dia. M-25FV, 25FH 110 mm dia. 110 mm dia. @© For MH-SO/U and 63/U, since tool number 1 in pot number 1 is special for the cap tool, this tool number must not be changed. On the TOOL ENTRY (detail information) screen, the tool numbers which are the ‘same as the pot numbers are set for the pot numbers. Although the tool numbers can be changed, it is recommended to set the same tool numbers to the pot numbers to facilitate setting as well as to avoid operation errors. Gp} TO000; Conan) -+ Too! number Programmable range: T1 to T9999 S Function ‘The S function controls the spindle speed. The spindle speed is directly specified by a required spindle speed following address S. SP S_ _M03(M04) ; eos. © —M03(M04) .... Specifies spindle rotation. MO3: Normal rotation. M04: Reverse rotation. - Specifies a spindle speed (min). @° Spindle speed range (high, low) is automatically selected according to the S wy ‘command. Therefore, itis not necessary to specify M41 and M42 in a program. @® _ With MH series (includes U-axis control specification), SH series, M-300, 400, 25FV, 25FH, MV-40M, and 40, there is no spindle speed gear ranges. Spindle speed can be specified in units of 1 min-'. & ® Spindle speed is calculated using the following formula. ne —1000V N: Spindle speed (min-)) 7 xD V: Cutting speed (m/min) : Circumference constant (3.14) D: Cutter diameter (mm) F Function 7 3.3 F Function ‘The F function is used to control the feedrate of a cutting tool. Tool travel per minute is specified following address F. [CORAND) ea @° ® ww & ® ® F_;; ....... Specifies the feedrate of a cutting tool. ‘The F function is a modal function. Therefore, once a feedrate is specified, it remains valid until the next feedrate is specified. ‘A.cutting feedrate specified in a program is the value when the feedrate override dial on the operation panel is set at 100%. ‘The F function is used with G01, G02, GO3, and the hole machining canned cycles. Programmed cutting feedrate can be adjusted using the feedrate override dial ‘on the operation panel. Feedrate is calculated using the following formula. F=1ZN Feedrate (mm/min) Feed per tooth (mm/ooth) Number of teeth (flutes) N: Spindle speed (min-*) Feedrate for tapping is calculated using the following formula. Feedrate (mm/min) Pitch (mm) N: Spindle speed (min-1) F=PN 4. B and C Functions This section describes the B and C functions used by M-400, the B function used by M-300, and the B function used by the APC specification of MH series (includes U-axis, control specification), SH series, and M-25FH. 44 M-300, 400 The B and C functions control the table rotation and tiling operation in the automatic ‘operation. When table tiling angle is specified with address B or when table rotation angle is specified with address C, the corresponding axis (B or C) is unclamped, indexed to the ‘specified angular position and clamped. © M-300 does not have C function. cro) B.; Specifies table titting angle. ° -» Specifies table rotation angle. Pay sufficient care when rotating or tilting the table so that the workpiece or the fixture on the table will not cause interference. If interference occurs due to table rotation or tilting, it will cause machine damage. ‘The following conditions must be satisfied to execute a B- or C-axis command, The APC is at the home position. Not during the APC cycle The pallet is unclamped. The front door is closed. ‘The B- or C-axis command must include a decimal point. A numeric value specified without a decimal point is interpreted in units of 0.001°. If a value ‘other than a multiple of 1° is specified for the 1° index specification of M-400, the B- or C-axis command becomes invalid and an alarm message is displayed. Also, if a value other than a multiple of 5° is specified for the 5° index specification of M-300, the B-axis command becomes invalid and alarm message is displayed. While the B-axis is tilting and the C-axis is rotating, feed hold, reset, and emergency stop are all valid. With 1° indexing specification of M-400 and 5° indexing specification of M-300: Positioning of the B-axis is always made in the predetermined direction. With 1° indexing specification of M-400 and 5° indexing specification of M-300: ‘The B- or C-axis command can be specified only in the GOO mode or in a hole machining canned cycle mode. With 1° indexing specification of M-400 and 5° indexing specification of M-300: For the hole machining canned cycle which includes a B- or C-axis command, the number of repetitions must be “0” or “1”. If a value other than “O" and “1” is specified, an alarm message is displayed. 4A ® “@ Oo With 1° indexing specification of M-400 and 5° indexing specification of M-300: If an M code is specified in the block, containing a B- or C-axis command, which is specified in a hole machining canned cycle mode, an alarm message is displayed. For M-400, allowable table titing angle range (programmable B-axis command range) is from -20° to 110° and positioning of B-axis is possible in units of 1°. B- and C-axis commands can be specified with other axis commands in the ‘same block Absolute/Incremental Commands For B- and C-axis command, both absolute and incremental mode can be selected by using G90 and G91 as with other axis commands. co For the direction of B- and C-axes, refer to page P - 5 (1.3.1). ‘Absolute Command Incremental Command ‘Address Characters G90 (B,C) G91 (B,C) ‘Meaning of the Sign Rotationttting direction ‘Meaning of the Numerical Values Tilting angle (B), rotation angle (C) 7 Present tilting angle (B-axis), Reference Point of Commands (B0, Co) present rotating angle (C-axis) ee ® In the absolute mode, the B- and C-axis zero point is taken as “O°* position if work coordinate system is not set for the B- and C-axes. In the absolute mode, B- or C-axis does not move if the same point is specified repeatedly. G90 B90.0(C90.0); ............ Tilting of B-axis to 90° position (rotation of C-axis to 90° position) B90.0(C90.0); ‘Since the specified position is the same position as specified in the preceding block, B- and C-axes do not move. In the absolute mode for M-400, if a C-axis is first specified in the negative rotation range and then if the same position is specified in the positive rotation range, the C-axis does not move. Similarly, if the same position is specified in the positive rotation range first and then in the negative rotation range, the C-axis does not move. Rotation of C-axis to -270* position Since the specified position is the same position as specified in the previous block, the C-axis does not move. In the absolute mode for M-300, if a B-axis is first specified in the negative tilting range and then if the same position is specified in the positive titing range, the B-axis does not move. Similarly, if the same position is specified in the positive tilting range first and then in the negative tilting range, the B-axis does not move. G90 B-270.0; B90. Tilting of B-axis to -270° position Since the specified position is the same position as specified in the previous block, the B-axis does not move. 4.2 wy In the absolute mode, it is recommended to specify the B-axis (M-300) and the C-axis (M-400) position in the positive rotation range to avoid errors. MH, SH Series, M-25FH (APC Specification) In the automatic mode, B function specifies the table rotation angle using address B. If the table rotation angle is specified using address B, the B-axis is unclamped, an indexing operation is performed, and then the B-axis is clamped again. @ © © ® + Specifies table rotation angle. Pay sufficient care when rotating the table so that the workpiece and the fixture on the table will not cause interference, if the table is rotated is carelessly, it will cause damage to the machine. The following conditions must be satisfied to execute a B-axis command. ‘The APC is at the home position. Not during the APC cycle ‘The pallet is clamped. ‘The operation-panet-side front door is closed. The B-axis command must include a decimal point. A numeric value specified without a decimal point is interpreted in units of 0.001°. Ifa value other than a ‘multiple of 1° is specified for the 1° index specification of MH-40 or SH-50, the B-axis command becomes invalid and an alarm message is displayed on the screen. iso if a value other than a multiple of 5° is specified for the 5° index specification of M-25FH, the B-axis command becomes invalid and an alarm message is displayed on the screen. AB-axis command cannot be specified with other axis commands in the same block. However, for SH-0 (only for MSC-516) or M-25FH, or for the machine equipped with the arbitrary angle index specification, itis allowed to specify a B-axis with other axis commands in the same block. However for SH-50, it is necessary to change parameter. While the B-axis is rotating, feed hold, reset, and emergency stop are all valid. The B-axis does not rotate while the pallet is unclamped. With 5° index specification of M-25FH: Positioning of the B-axis is always made in the predetermined direction. With 1° index specification of SH-50 (only for MSC-516) and 5° index specification of M-25FH: The B-axis command can be specified only in the GOO mode or ina hole machining canned cycle mode. 424 © With 1° index specification of SH-50 (only for MSC-516) and 5° index specification of M-25FH: For the hole machining canned cycle which includes a B-axis command, the number of repetitions must be 0” or “1”. If a value other than “0” and “1” is specified, an alarm message is displayed. @® With 1° index specification of SH-50 (only for MSC-516) and’5* index ‘specification of M-25FH: If an M code is specified in the block, containing a B-axis command, which is specified in a hole machining canned cycle mode, an alarm message is displayed, ‘!” With MH-50, 50/U, 63, and 63/U, an index command in units of 0.001° can be executed even when the arbitrary angle index specification is not selected. In this case, however, index accuracy is not high since indexing is made in the simplified positioning mode. ‘Absolute/incremental Commands For B-axis command, both absolute and incremental mode can be selected by using G90 and G91 as with other axis commands. (7) Forthe direction of B-axis, refer to page P -5 (1.3.1). ‘Absolute Command _| Incremental Command ‘Address Characters G90 (6) Got 6) Meaning of the Sign Rotation direction Meaning of the Numerical Values Rotation angle Reference Point of Commands 50 Present rotating angle coordinate system is not set for the B-axis. @° In the absolute mode, the B-axis zero point is taken as “0°” position if work ® In the absolute mode, B-axis does not move if the same point is specified repeatedly. G90 B90. B90.0; . Rotation of B-axis to 90° position . Since the specified position is the same position as specified in the previous block, the B-axis does not move. ® Inthe absolute mode, if a B-axis is first specified in the negative rotation range and then if the same position is specified in the positive rotation range, the B-axis does not move. Similary, if the same position is specified in the positive rotation range first and then in the negative rotation range, the B-axis does not move. G90 B-270.0; - Rotation of B-axis to -270° position B90.0; . « Since the specified position is the same position as specified in the previous block, the B-axis does not move. 17" In the absolute mode, itis recommended to specify the B-axis position in the & positive rotation range to avoid errors. 5. Example Programs A variety of machining methods and programming methods are used when machining workpieces. This section describes programs which will be used frequently in actual production. Study these example programs and then create programs which better suit your actual production requirements. Note that the programming methods and values shown in the example programs may not apply to your specific needs, @ _ Workpiece materials and shapes vary widely among machine users. Mori Seiki cannot predict the workpiece clamping method, spindle speed, feedrate, depth of cut, and width of cut, etc, that will be required in each case and it is therefore the user's responsibility to determine the appropriate settings. If you have difficulty determining these conditions, consult the fixture and ‘tool manufacturers. Machining under inappropriate machining conditions can cause the workpiece or cutting tool to fly out during machining, causing damage to the machine. It will also adversely affect machining accuracy. @® The programs given in this section are not applicable to all types of machining centers. Programs must be written while taking the performance of the machine into consideration and be executed with due consideration given to safety. If the machine's capacity is not taken into account when writing the program, the workpiece or cutting tool may fly out during machining, causing damage to the machine. 54 MV, MH, SH Series, M-300, 400, 25FV, 25FH ‘The programs given in 5.1.1 and 5.1.2 are for MV series. For the machining centers other than MV series, since the tool change position differs from that of MV series, the tool change position should be changed when reading the programs. (1) For tne too! change postion, reter to page P - 42 (2.10). 544 Hole Machining Canned Cycle Program (G81, G76, G84) and Sub-program (M98, M99) 220 3 e-mioP=1.5 ‘hvough ole 3 Prepared hole 65 da ea 100 100 300 1c osc a —— af] oii fa it Material Cast iron (JIS FC-25) 1) Determine the workpiece zero point. v oO ° ° L x (x0, YO) fe) a roe ve bad 2) Determine the clamping method. Saat o|_Zlo] ¢ @ 6 Qo ‘4.clamping plates — om om _. a 3) Determine the tooling. Machining Tool - Order Tool Name Number Portions to Be Machined 1 Center drill Ti | Centering for M10 tapping and 20 mm dia. hole 2 8.5 mm dia. drill T2 Drilling prepared hole for M10 tapping 3 18 mm dia. drill 3 Rough drilling of 20 mm dia. hole 4 19.5 mm dia. end mill 14 ‘Semi-finishing of 20 mm dia. hole 5 25 mm dia. chamfering 75 | Chamfering for M10 tapping holes and 20 mm tool dia. hole 6 M10 x P15 tap Té | Tapping 7 20 mm dia. boring bar 77 [Finishing 20 mm dia. boring 4) Determine the cutting conditions. i Offset Number Tool Spd | Feedrate Process | Number Tool Name Ps ) Toollength | Cutter radius fot (S) | (mmvmin) | Offset number | offset number (min) H) (0) MI T1_ [Center dri 2000 | 160 i — N2 T2__[85mmdia. dri 750 160 2 — NB T3_ [18mm dia. dri 440 90 3 = N4 14 19.5 mm dia. end mill 400 80 4 — NS TS |25mmdia. 400 80 5 — chamfering tool Ne Te __[Mi0 x P15 Tap 250 375 6 — N7 T7__|20mm dia, boring bar | 1600 | 160 7 —= 5) Create the program. Main program (00001) 00001; (TEST PIECE) G00 G40 GeO; . Program number and title (test piece) Canceling cutter radius offset and hole machining canned cycle «. Calling zero return of X-, Y-, and Z-axes; zero retum is executed or not executed according to the setting of block delete switch. . The block preceded by “7” is ignored. . The block preceded by “/” is executed. Calling T1 (center drill); T1 is called or not called according to the setting of block delete switch. Optional stop Executing tool change cycle; tool change cycle is executed or not executed according to the setting of 1G91 G28 XO YO Z0; © Block delete switch ON . © Block delete switch OFF block delete switch Nt 12 (CENTER DRILL); ....... Drilling with center driling Calling T2 (8.5 mm dia. drill) G90 G00 G54 XO YO; ........... Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate Indexing B-axis to 0° position This command is necessary only for MH, SH series, M-25FH of APC specification, M-300 and 400. However, for M-400, specify “CO;" also. Positioning at 250.0 at a rapid traverse rate while Z-axis position is offset by offset data set for too! length offset number 1 Specifying spindle speed of 2000 mint Starting the spindle in the normal direction « Drilling cycle (B0;) ... G98 G81 Z-5.0 R3.0 F151 M98 P2; Calling sub-program 00002 Drilling cycle is executed at the positions specified in 00002. Canceling hole machining canned cycle Zero retum of Z-axis and spindle stops rotating. Optional stop Too! change between Tt in the spindle and T2 G80 G91 G28 ZO Mos; Mot; M06; N2T3 (8.5 DRILL) . Driling with 8.5 mm dia. drill Calling T3 (18 mm dia. drill) G90 G00 G54 X100.0 Y50.0; .... Selecting work coordinate system G54 Positioning of X- and Y-axes at X100.0, Y50.0 at a rapid traverse rate Posi at 50.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 2 Specifying spindle speed of 750 min Mo3; . es Starting the spindle in the normal direction G98 G81 Z-34.0 R3.0 F150 KO; . Drilling cycle @ Since KO is specified, actual drilling cycle is not executed but the drilling cycle data is stored. Calling sub-program ©0002 Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. Optional stop Tool change between T2 in the spindle and T3 G43 250.0 H2 S750; Drilling with 18 mm dia. drill Calling T4 (19.5 mm dia. end mill) Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate G43 250.0 H3 S440; 22... Positioning at 250.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 3 ‘Specifying spindle speed of 440 min* .. Starting the spindle in the normal direction Drilling cycle -- Canceling hole machining canned cycle. Zero return of Z-axis and spindle stops rotating. Optional stop Tool change between T3 in the spindle and-T4 G98 G81 Z-38.0 R3.0 G80 G91 G28 ZO M05; . N475 (19.5 ENDMILL) ;....... Drilling with 19.5 mm dia. end mill Calling TS (25 mm dia. chamfering mill) Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate G90 G00 G54 XO YO; . P-89 ————— G43 250.0 H4 $400; ..........- Positioning at 250.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 4 Specifying spindle speed of 400 min Mo3; . Starting the spindle in the normal direction G98 G81 Z-32.0 R3.0 F80; ..... Driling cycle G80 G91 G28 Z0 MOS; ......... Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. = Optional stop . Tool change between T4 in the spindle and TS MO1; . MOG; . N56 (25 MENTORI) ; . ‘Chamfering with 25 mm dia. chamfering mill Calling T6 (M10 x P1.5 tap) Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate - « Positioning at 250.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 5 ‘Specifying spindle speed of 400 mint . Starting the spindle in the normal direction - Drilling cycle « Changing cycle point Z and R Calling sub-program 00002 Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. Optional stop Tool change between TS in the spindle and T6 G90 Goo G54 XO Yo; G43 250.0 HS $400; M03; ... G98 G81 Z-11.0 R-7.0 Fi N67 (M10 P=1.5 TAP) ;...... Tapping with M10 x P1.5 tap Calling T7 (20 mm dia. boring bar) Selecting work coordinate system G54 Positioning of X- and Y-axes at X100.0, Y50.0 at a rapid traverse rate G90 GOO G54 X100.0 50.0; G43 250.0 H6 S250; ... -»- Positioning at 250.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 6 Specifying spindle speed of 250 min Mo3; + Starting the spindle in the normal direction G98 G84 Z-32.0 10.0 F375 KO; Tapping cycle ‘Since KO is specified, actual tapping cycle is not ‘executed but the tapping cycle data is stored. \'0 Feedrate (F) = Pitch (P) x Spindle speed (S) =1.5 x 250 = 375 mm/min Calling sub-program 00002 Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. Optional stop . Tool change between TS in the spindle and T7 N71 (20BORING) ; ......... Boring with 20 mm dia. boring bar Calling T1 (center drill) ‘Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point ata rapid traverse rate -- Positioning at 250.0 at a rapid traverse rate while Z-axis positon is offset by offset data set for tool length offset number 7 Specifying spindle speed of 1600 mins Mos; .. Starting the spindle in the normal direction /G98 G76 Z-6.0 R3.0 Q0.5 F150; Fine boring cycle Relief amount 0.5 mm in the +¥ direction The tool shit direction is set for parameters No. 5101.4 and No. 5101.5. Therefore, the tool shift direction may difer from the direction assumed in this program. ‘To measure the diameter of the machined 20 & mm diameter hole, the hole is first machined to 5 mm depth. Canceling hole machining canned cycle Zero retum of Z-axis and spindle stops rotating. Zero return of Y-axis, Program stop ‘17 Measure the machined 20 mm diameter hole. & 1G90 G00 G54 XO YO; «2... Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate 1GA3 Z50.0 H7 MO3;.......-...- Positioning at Z50.0 while Z-axis position is offset by offset data set for tool length offset number 7 Starting the spindle in the normal direction Carrying out a hole size check with the block delete switch, when required G98 G76 Z-32.0 R3.0 Q0.5 F150; Fine boring cycle Relief amount 0.5 mm in the +Y direction The too! shift direction is set for parameters No. 5101.4 and No. 5101.5. Therefore, the tool shift direction may differ from the direction assumed in this program. G80 G91 G28 ZOMO5; ......... Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. ‘Tool change between 77 in the spindle and Tt Program end G90 Goo G54 XO Yo; NY Moe; . M30; . » Program number Hole position data ‘Sub-program end (Returning to main program) 5.1.2 Circular Cutting (Cutter Radius Offset) |_Cutting allowance is 5 mm, x : : Maori: Cast ron (38 FC-25) 1) Determine the workpiece zero point and the workpiece clamping method. 4 tos © oO v Workpiece zero point ( 4 [ 0, ¥0) Q oe 2) Determine the tooling. Machining Too! : a Tool Name e Portions to Be Machined ——__[25 mm dia. end mill Ti [100 mmdia. hole 3) Determine the cutting condition. Spindle Offset Number Too! Feedrate = Process | Number trol Nese: Speed "Ce Toollength | Cutter radius m (8) | mmm in) | Offset number | offset number (min-) (H) (2) Ni Ti__|25mm dia. end mill 330 66 1 TT © : The cutter radius offset data, 12.5 mm, is set to D1 on the tool offset setting screen. With MSC-518, however, set 12.5 mm to an offset number other than No. 1 since there is no distinction between tool length offset and cutter radius offset with MSC-518. 4) Create the program. 00010; Program number Canceling cutter radius offset and hole machining canned cycle Calling zero return of X-, Y-, and Z-axes; zero retum is executed or not executed according to the setting of block delete switch. Calling T1 (25 mm dia. end mill); 71 is called or not called according to the setting of block delete switch. =» Optional stop Executing tool change cycle; tool change cycle is. executed or not executed according to the setting of block delete switch When T1 tool is already mounted in the spindle, turn on the block delete switch. Drilling with 25 mm dia. end mill . + Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate (BO;) ee ee ee eeeeeeeeeee eee Indexing B-axis to 0° position © ‘This command is necessary only for MH, SH series, M-25FH of APC specification, M-300 and 400. However, for M-400, specify “C0;" also. G43 250.0 H1 $330; ........... Positioning at 250.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 1 Specifying spindle speed of 330 min Starting the spindle in the normal direction Nt (25 ENDMILL *D: G90 Goo G54 XO Yo; G41 GO1 X20.0 Y-30.0 D1 F66; . After offsetting the tool position to the left in terms of the tool advance direction by the amount set to cutter radius offset number 1, the cutting tool is moved to X20.0, Y-30.0 at a cutting feedrate. Circular arc cutting (counterclockwise direction), radius 30.0 mm, circular arc end point coordinate X50.0 YO G03 X50.0 YO R30.0; . 180.0; eee eeee eee ++ Circle, radius 50.0 mm . Circular arc cutting (counterclockwise direction), radius 30.0 mm, circular arc end point coordinate X20.0 Y30.0 Canceling cutter radius offset G40 Got Xo YO F100; G00 250.0 MOS; . - Positioning to 250.0 at a rapid traverse rate and spindle stops rotating. G91 G28 Zo; Zero return of Z-axis M30; Program end \1/ Approach radius is set to R30.0 with about 60% of radius R. 5.1.3. Facing, Side Cutting (G41), Hole Machining Canned Cycle (G81, G73, G76) The program given below is for MV series. For M-300, 400, and 25FY, since the tool change position differs from that of MV series, the tool change position should be changed when reading the programs. (ZT) Forte toot change position, refer to P ~ 42 (2.10) 5-0285 }~——200_,| Depth 25mm 3 {0 Ty U U Ts Material: AISI1045 (iS S450) 1) Determine the workpiece zero point and the workpiece clamping method. lo] 8 vy yy Workpiece zero: we oe (x0, YO) 6 OTK cdclamping plates ne 2) Determine the tooling. har Tool Name Now Portions to Be Machined 1 4" face mill T9001 Facing (Milling) 2__ [Center dil T2__| Centering for 26.5 mm dia, hole 3__ [27mm dia, dri T3___| Rough driling of 28.5 mm dia, hole 4_ [28mm dia, end mill T4__ [Ser 3 |28.5mm dia. boring bar T5__ [Finishing of 28.5 mm dia. boring 6 _[40mmdia, end mill Té__| Side cutting (circumferential cutting) 3) Determine the cutting conditions. an Spindle | Feecrate Offset Number Process | Number Too! Name Speed ) Tool length] Cutter radius m (S) | (amvmin) | ffset number | offset number (min-) (H) 0) Nt__| T9001 | 4" face mill 330 400 i = N2 T2__| Center aril 2000 | _150 2 —= N3 13__[27mmdia. drill 330 70 3 = Na T4_[28mmdia end mil | 330 70 4 — NB TS |285mmda. 7000 20 5 —= boring bar Spindle Offset Number Tool Feedrate = Process | Number | Tool Name Speed | ""(p) | Toollength | Cutter radius fo) (s) (mm/min) | Set number | offset number (min) (H) (2) NE 6 _[40mmdia.endmil | Rough | 50 6 Rough cutting: cutting: 20" 200 Finishing: Finishing: 20°7 250 @ ‘The program is created assuming that the same tool is used for both rough cutting and finish cutting. Accordingly, offset data for the same tool is set to different offset numbers called in rough cutting and finish cutting; 20.20 for No. 20 and 20.00 for No. 21. In rough cutting, 0.2 mm is left for finishing allowance. 4) Create the program. Main program (00050) 00050 (TEST PIECE); . Nt T2 (4 INCH FACE MILL); . Program number, ttle (test piece) . Facing with 4” face mill Calling T2 (center drill) G90 G00 G54 X890.0 120.0; ... Selecting work coordinate system G54 Positioning of X- and Y-axes at the X330.0 and 120.0 at a rapid traverse rate (Bo;) Indexing B-axis to 0° position This command is necessary only for M-300 and 400. However, for M-400, specify “C0;" also. G43 730.0 H1 $390; ........2.- Positioning at 230.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 1 ‘Specifying spindle speed of 330 min+ . Starting the spindle in the normal direction Cutting up to X-330.0 at a feedrate of 400 mmvmin « Moving the cutting tool to Y30.0 at a rapid traverse rate . Cutting up to X330.0 at a feedrate of 400 mm/min . Moving the cutting tool to Y-60.0 at a rapid traverse rate Cutting up to X-330.0 at a feedrate of 400 mm/min . Moving the cutting tool to Y—-150.0 at a rapid traverse rate . Cutting up to X330.0 at a feedrate of 400 mm/min . Moving the cutting tool to 230.0 at a rapid traverse rate . Zero return of Z-axis and spindle stops rotating. - Optional stop . Tool change between T1 in the spindle and T2 Goo Y-150. N2T3 (CENTER DRILL) ........ Drilling with center drill Calling T3 (27 mm dia. drill) - Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate « Positioning at 230.0 at a rapid traverse rate while Z-axis position is offset by offset data set for too! length offset number 2 ‘Specifying spindle speed of 2000 min: and starting coolant discharge - Starting the spindle in the normal direction Drilling cycle Since KO is specified, actual drilling cycle is not executed but the drilling cycle data is stored. G90 Goo G54 Xo YC G43 230.0 H2 $2000 M08; Mos; G99 G81 Z-5.0 R3.0 F150 KO; M98 P51; - Calling sub-program 00051 Mog; . Stopping coolant discharge G80 G91 G28 Zo MOS; . Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. - Optional stop ‘Tool change between T2 in the spindle and T3 Mot N3T4 (27 DRILL) ; .. Drilling with 27 mm dia. drill Calling T4 (28 mm dia. end mill) Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate Positioning at 230.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 3 Specifying spindle speed of 330 min‘ and starting coolant discharge Starting the spindle in the normal direction G90 GOO G54 Xo YO; G43 230.0 H3 $330 Mos; . Mos; .... G99 G73 Z-33.1 R2.0 03.0 F70 Kt High-speed deep hole driling cycle Since KO is specified, actual high-speed deep hole driling cycle is not executed but the driling cycle data is stored. Calling sub-program 00051 Stopping coolant discharge Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. Optional stop N45 (28 ENDMILL) ; Drilling with 28 mm dia, end mill Calling TS (28.5 mm dia. boring bar) Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero point at a rapid traverse rate G90 GOO G54 Xo Yo; P-97 G43 230.0 H4 $330 M08; « Positioning at 230.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 4. ‘Specifying spindle speed of 330 min and starting coolant discharge Mos; . Starting the spindle in the normal direction G99 G73 Z-25.0 R2.0 03.0 F70.0 KO; High-speed deep hole driling cycle Since KO is specified, actual high-speed deep hole driling cycle is not executed but the driling cycle data is stored. Calling sub-program 00051 . Stopping coolant discharge . Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. . Optional stop . Tool change between T4 in the spindle and TS N5 76 (28.5 BORING) ; ....... Boring with 28.5 mm dia. boring bar Calling T6 (40 mm dia. end mill) Selecting work coordinate system G54 Positioning of X- and Y-axes at the workpiece zero Point at a rapid traverse rate -- Positioning at 230.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 5. Specifying spindle speed of 1000 min and starting coolant discharge M03; . . Starting the spindle in the normal direction G99 G76 Z-25.0 R2.0 00.5 FBO KO; . ++ Fine boring cycle Relief amount 0.5 mm in the +Y direction @ Since KO is specified, actual fine boring cycle is not executed but the fine boring cycle data is stored. ® The tool shift direction is set for parameters No. 5101.4 and No. 5101.5. Therefore, the tool shift direction may differ from the direction assumed in this program. - Calling sub-program 00051 . Stopping coolant discharge . Canceling hole machining canned cycle Zero return of Z-axis and spindle stops rotating. - Optional stop . Tool change between TS in the spindle and T6 G90 G00 G54 XO YO; G43 230.0 HS $1000 M08; . M98 P51; Mog; . G80 G91 G28 Z0 MoS; Mot; N6 T9001 (40 ENDMILL) ; ..... Drilling with 40 mm dia. end mill Calling T9001 (4” face mill) + Selecting work coordinate system G54 Positioning of X- and Y-axes at X950.0, Y-250.0 at a rapid traverse rate - Positioning at 230.0 at a rapid traverse rate while Z-axis position is offset by offset data set for tool length offset number 6 ‘Specifying spindle speed of 200 mint Starting the spindle in the normal direction Specifying the cutter radius offset number 20 Calling sub-program 00052 Moving the X- and Y-axes to X350.0, Y-250.0 (machining start position) Specifying spindle speed of 250 min+ - Specifying the cutter radius offset number 21 G90 GOO G54 X350.0 Y-250, G43 230.0 Hé S200; Calling sub-program 00052 ‘Stopping coolant discharge Zero return of Z-axis and spindle stops rotating. Program end ‘Sub-program 1 (00051) 00051 (SUB1); Program number Xo Yo; — x200.0 Y100.0; y4000; | ee Positions where driling of 28.5 mm dia. is executed. ‘X-200. se Y100.0; —J M99; Sub-program end (Returning to main program) Sub-program 2 (00052) (00052 (SUB2); Program number G90 G00 25.0 Mos; Stopping coolant discharge G01 Z-40.0 F2000; Gat Y-150. Cutter radius offset (left) The too! position is offset to the left in terms of tool advancing direction. Y-160.0; G40 x300.0 Y-200.0; . Canceling cutter radius offset G00 230.0; M99; Sub-program end (Returning to main program)

You might also like