Professional Documents
Culture Documents
Yasnac Mx3 p
Yasnac Mx3 p
) How to use the funetion (3) Upon power ON or upon reset #6005, D2 0: M94 mode (mirror image off) 1: M95 mode (mirror image on) (i) Upon power ON, when it is M95 mode (#6005, D2 is "1.") #6005, D1 0: Commands mirror image at the G28 intermediate point 1: Does not command mirror image at the G26 intermediate point NOTE: The specifications are the same as the conventional specifications, when #6005, D2 is "0.' Therefore, turn off mirror image by M34, when commanding G28, or G29 under this mode. Error "058" occurs if not turned off, (©) Program example + Example of commanding mirror image on the G28 intermediate point Program exemple (mirror image of X-axis only is on) y REFERENCE POINT XCAKIS MIRROR IMAGE ON -0 9 of 01 Note: When commanding axis designation under the mirror image mode (M95) by M code, stop the look-ahead by parameter (#6116) of the set/reset M codes. 20 RADIUS COMPENSATION C (M97, M96)" M code Meaning, M96“ Tool radius compensation circular i Jipathioned He asia ‘Tool radius compensation circular a7 | path OFF. (Execution of intersection point) Note: When power is applied or the control is reset, the control is in the state of M code marked with + In the G4l or G42 cutter radius compensation mode, when M% is given, the tool moves along a circular path around 2 corner with an angle ‘of 180° or larger. In the M97 made, the tool does not move along a circular path at the corner, but moves along two intersecting straight lines intersecting at a calculated in- tersecting point shifted from the programmed contour by the tool radius. M96 MODE GERgULAR, el M97 MoDE INTERSECTION —~ PROGRAMMED couroun Fig. 2.11 M96 and M97 are modal. When the power is turned on, M96 takes effect M9 and M97 are effective on the following move command blocks. GOL Xe Yee Bffective from the corner of (GOL) X-1 ¥e++M96 5; J these 2 blocks oan Effective from M96 (or M97); the corner of Reon these 2 blocks2.8.7 SUBROUTINE PROGRAM (M98, M99) With this function, call of subroutine programs which have been numbered and stored in advance Is made and executed as many times as desiced, ‘The following M codes are used for this function. M code Meaning M98 | Call of subroutine program M99 | Subroutine program end Format of subroutine program (M99) Subroutine programs are written in the fotlow- ing format, and are stored in the part program memory in ‘advance. Os | Program No. Subroutine M99 program end. * Call of cubroutine program (M98) M9B Pee Lee With this command, call of the subroutine pro- gram with the number specified after P ismade and is executed number of times specified after L. When no L code is programmed, the sub- routine is executed once Subroutine programs can be nested up to 4 EXAMPLE Call of subyoutine program and execution of it are made in the sequence shown below. Main program wo01 G00 Noo2 M98 P200 L3 ; 003 : — Noo4 M98 P20; —+ one time | Automatic return command from subroutine pro: gram M99 At the end of subroutine programs, M99 is written in a block of its own. When M99 is commanded in the subroutine program which has been called by M98, the execution of the main program is automatically restarted at the block immediately following the M98 block. Subroutine program Three times! 212.8.7 SUBROUTINE PROGRAM (M98, M99) (CONT'D) + Special use of M99 M99 P. With this command, the main program does not return to the block following the M98 block after executing the subroutine program, but returns to the block with a sequence No. specified by the P code Notes If the program number specified by the P code is not found, this is regarded as an error "041." While a subroutine program is repeated L times, the number of remaining repetitions may be displayed. For details, refer to 4.3 DISPLAY AND WRITING OPERATION + This function is usable when subroutine pro- grams are stored in the part program memory. The main program can either be commanded from NC tape or the part program memory. When the nesting of subroutine programs ie attempted more than 4 times, an error state is, caused: + Commanding M99; in main program will return the execution of the program to the head of the main program and control endless operation. 2.8.8 OTHER M CODES For using M codes, other than those mentioned above, refer to the machine tool builder's man= ual. Table 2.20 Typical Examples of M Codes for Machine Meode| Meanings Remarks way | Spindle forwara running | Moa | Spindle reverse] yo3 and M04 are running not switchable M05 (stop) must mos | Spindle stop | be intermediated Mos | Coolant on M09 | Coolant off When these M codes are given in a block together with move command, whether the M commands are executed simultaneously or after completion of move command, are determined by the type of machine. Refer to the machine tool builder's manual 22 2.8.9 2ND MISCELLANEOUS FUNCTION (8-FuNCTION) * B-function and T 4-digitt commands cannot be used simultaneously Three digits following the address B give index table positions. ‘The actual index positions corresponding to the respective B cades depend on the machine tool builder. For this, refer to the specifications of the machine tool builder. When a B-function is given together with a move command in one block the B command is executed simultaneously with the move command, or 5B command is executed after the execution of the move command, depending on the design of the machine tecl, For this refer to the specifications of the ma~ chine tool builder: B codes are modal. When one B code is given, it remains effective until another B-command is given. Notes B function standard interface ig in 3-digit BCD, output With MDI operation on NC panel, "8" is used to specify address for B codes. Therefore, when the control has B-function, the 4th and 5th axis control cannot be added. 2.9 PREPARATORY FUNCTION (G-FUNCTION) 2.9.1 LIST OF G CODES AND GROUPS An address character G and up to 3 digits follow- ing it specify the operation of the block, Ordinary G codes are either non-modal G codes marked with * or modal G codes belonging to groups 01 through 15. Those G codes belonging, to the division B are included in the basic spe~ cifications The G codes belonging to groups 01 through 15 are modal, remaining effective when once commanded until other © codes in the same group will be commanded. The G codes in the * group are non-modal, and are effective only for the block in which they are commandedThe G codes belonging to groups 01 through 15 may be programmed twice or more in the same block. However, when different G codes in the same group are programmed, the Iast appear ing Gcode is effective. + When a G code belonging to the 01 group is com- manded during a canned cycle (G73, G74, G76, G77 and G8) through G89), the canned cycle is, A canceled and these codes in the group 09 be~ comes G80. + When the RESET key is depressed during the execution of a tool compensation C (G41, or G42) for a canned cycle, they become respectively G40 or G80 which cancels the programmed com- mands. G43, G44, G49 and C45 through G48 belonging to the * group can be programmed together with the following G codes in the 0) group in the same block. «If * group other than those G codes and G codes of 08 group con be programmed in the same block as G code of 08 group alarm will be performed — Combination G code G43, G44, c49]G00, Gor, Goo G45 - Gas [co0, Gor. Goz, Gos, Gov The transition state of the following G codes can be changed by setting of parameters. « The G codes belonging to the following groups can be specified as to the state immediately after the application of supply power. (#00500 -"D4) Group | _ Initial state Parameter a3 | Gwor at #600500 ot G00 oF GOL #600506 ~ 08 | Gas, cas or cay | no008D3, Da | G codes in the 01 group may selectively be changed to G00 or kept unchanged after re~ setting. (#6005D6) » During the execution of G92, Display may selectively be made. (#6005D5) ‘pon reset | Somsately toe | on ‘pon eeset | Ina bale tt 232.5.1. LIST OF 6 CODES AND GROUPS (CONT'D) Table 2.21 List of G codes z i= = = a= etn he Sal Fectn se coo) | Fesitning Bees [or [Unairctonal sppreach 3 cat} [ear ier Betty [arse . irs naan SR cee [Eset wep made tat || Salen tare PO [6s | 7 PRoncedat cll of ser macro o cos |_| gainer 80 “ett fay [toa el of weer mnie 8 et} Git [daa owner mace anal} 8 Fortioning im error detest G68 yg | Coordinate rotation ON 2 duel off mode as9 Coordinate rotation OFF ° ae], [ie nop Be] — [ha i ale 8 Teal get Gi mg so en] « [ive 6 ovo] | eagle, Ta . 2 oe $ Giz Circle cutting CW o mL eee ace e G13 Circle cutting CCW oO — peer ei G18 | 02 [2x plane designation 2 Gr] |, | Gennes crete 13 ° ay Y2 place designation B 080 | | Sanne’ ercie cancel a 20) og [neh input designation © car | | Garmed evcie 2 Output © car] isi ap ign 3 te eae 3 Giz | Slred are nt OW 3 Gevel aide? 3 | ° [Sra sake hn OFF 3 cent est ¢ Serr erecta a Canned eycle 5 o Gar} —[Roteenc pont cia o =) ast 8 coo] | oat ear ovear|” [eared eye? 8 G25| + [Return tom reference point o oie ‘Canned cycle # 7 Reto Indy Bry Wh le =: OP) | point a (690) gy | Absolute command designation ® i] | Sap mater O— “Ght]” | nernentalcrmand desigsion |B Eg GAT] 07 [Fool radius compensation, left o Lae cae Tool radius compensation, right o pee eee ee or is] oi “Tool Tength compensation, plus = id tap mode 0} deat ce] [Reef aT a Gis] 98 | Fool length compensation. winus |g to Leanned cyclen Gi} _| Tol eat coepnanion, cnet | 8 sic S| Pe eat prea ene | 3 “cin 7 [art ear ore 3 ca “Fool position offset, retraction 5 G12 yy | Took register tert [a 2 Gar | * | Feo! position offset, double 7 ss Tool register end_} control 2 a eo oo 3 baneneeonl G19] + | Form offset mode OFF a Ga), [Seating OFF 3 ast Sealing ON o becuase Se ee eae cari ie The cee in the * pou ape tonnes and = s as 2 are effective only for the block in which they os + |aime'symen NEO hora, LS as Shift to work coordinate system 1 oO Is esas eet ie een ee ae rr oss, Shife to work coordinate system 2| Se ce eee one len eter pee eee eer eee ere 7 The code marked —] fe automatically selected G51] " [Stet vor cordate epren «0 pe poner a cst] [Suet wrk cordinne syiew 5] 0 255] [lei work cordinne pren ¢[ 0 242.9.2 POSITIONING (600, G06) GOO Xe Yen Zee (ate A (whore a and B= A, 8,6, U,V of W) With this command, the tool is sent to the spect fied position in rapid traverse motions along the Baxes (5 axes") simultaneously. If any of the coordinate positions is not specified, the machine does not move alony that coordinate axis ‘The rapid traverse rate for the respective axes are inherent to the machine tool. Refer to the machine tool builder's manual. Motions in the respective axis directions are In= dependent each other, and therefore, the result ant tool path is not necessarily straight. When programming tool positioning commands, take care to avoid the possibility of tool and workpiece interference. EXAMPLE Gor x40, ¥40, 240. 40, Rapid traverse rate X axis: 8 m/min Y axis: @ m/min Zaxist & m/min Fig. 2.12 G00 is a modal G code belonging to the 01 group. Error detect OFF positioning (G06) COG Xe Vere Bees Cate Berd With this command, the same positioning motions are initiated ae with a G00 command, with the following exceptions. After the completion of the positioning mation, with G06 block, the program advances to the next block in the ERROR DETECT OFF mode (Note). Therefore, the tool path at the corner is rounded G06 is a non modal G code belonging to the * group, and therefore, it is effective only in Which it is programmed, Notes 600 commands position the tool in the ERROR DETECT ON mode, which means that the pro= pram advances to the next block only after the servo lag pulses are decreased below the per- miscible level, and this is detected by the con- trol. With this éommand, therefore the corner of the workpiece is machined sharp. With the ERROR DETECT OFF mode commanded by G06, the program advances to the next block immediately after the completion of pulse distri~ bution’ 2.9.3 LINEAR INTERPOLATION (G01) GOL Xe Yee Bee (abe Bee) Fee where a and 8A, B,C, U,V, orW With this command, the tool is moved simultane= ously im the three (five*) axial directions result~ ing in a linear motion. When a certain axis is missing in the command, the tool does not move in the axial direction of that axis. Feedrate is specified by an F code the feedrate Jn the component axial directions are so control- led that the resultant feedrate becomes the spec~ ified feedrate. FE Fxe (where Fx, Fy. directions.) Fy2 + Fe? + Falls Fp2 are feedrate in the X, ¥ ‘The end point can be programmed either in ab= golute coordinates or in incremental values with G90 or G91 respectively. (Refer to 2.9.31. “Absolute/Incremental Programming (G90, GUI") If no F code Is given in the block containing the G01 or in preceding blocks, the block constitutes an error "030." EXAMPLE | Gor x40, 40. z40- F100 y a 100 an/ate RESULTANT FEEDRATE. (CZANGENTIAL, FEEDEATE) © x a. 40. z 1 I Fig. 2.13 Where the optional 4th or 5th axis is a rotary axis (A,B or C), for the same F code, the feedrates in. the basic three axis directions (X, Yand 2), and the rotary axis [eedrate are as indicated. 252.9.3 LINEAR INTERPOLATION (G01) (CONT'D) Table 2.22 Minimum F Command Unit In minimum F command unit, F function Feedrate of basic | puedrate of rotary axes Metric | Metric input | F40 1 mm/min 1 deg iain output] inch input | F31 | Out in. /min 2.54 degimin inch [Metric input | P50 [1 mm/min 9.3957 degimin output Tach input | Fal 0.1 im. ein 1 deg/min Noter Feedrate of Inear Wh asic ao the same as that of basle three axes. 2.8.4 CIRCULAR INTERPOLATION (G02, 603) With the following commands, the tool is control- ZX, or YZ plane, at a tangential speed epecified Jed along the specified circular pathes on the XY, by the F cede xy plane ott {982} aces yen fB ax pane ow {82} 2 x {By de va pane a19 {30} ven ae {Br gb ‘The moving direction of the tool along the circle is as follows. G02: Clockwise G03: Counter-clockwise 2 2. XY plane 2X plane Yr plane (ain (G18) (G19 Fig. 2.14 26When circular interpolation (G02, G03) is to be programmed, usually, the plane of interpolation should be specified in advance with G17, G18 or as. G17: XY plane or X4 planet G18: ZX plane or 24 planet G19: YZ plane or ¥4 planet In addition to the plane of circular interpolation , these G codes specify planes for tool radius com= EXAMPLE G17 690 G03 X15. ¥40, 1-30. I-10. F150 (a) Absolute command with (G90) END Pom. 03 lewrge =| fn 30, o: START 404 POINT 20. 35. Fig. 2. Instead of the coordinates 1, J, and K of the center of the circle, the radius can be directly specified with an R command. This is called circular interpolation with radius R designation mode G17 G02 Xe. Ye. Ree ‘START POINT pensation (G41, G42). If no selection is made to the contrary, XY plane (G17) is selected auto- matically immediately after the switching of the power supply ‘The end point of the circular arc may be specified by G90 or G91 respectively in absolute or incre~ mental values. However, the center of the circle is always programmed in incremental values from the start point, irrespective of G90 or G91. G17 G91 G03 X-40. ¥20. 1-30, 3-10. F150; (b) Incremental command 20. -10. 15 In this case, when R > 0, a circular are with the center an- gle less than 180°, and when X <0, a circular are with the center an- gle larger than 180° are specified 4 Fig. 2.16 272.9.8 CIRCULAR INTERPOLATION (G02, G03) (cont'o) G17 G02(G03) Tee Tee Fee Ln With this command, complete circular interpolations are repeated n times. Without an L designation, the interpolation is executed only once. aapne cis {9%} 2... vaptane 19 {99 Pye. Note vat co x {Ry Fee Where address characters for the 4th axis ie missing as in the above command, the XY plane is automatically selected. Circular interpolation cannot be performed on the axes including rotary 4th axis. Circular pathes covering two or more quadrants can be programmed in a single block. A com= plete closed circle can also be programmed. EXAMPLE Goo x0 vo Go2 x0 YO 110,30 F100 complete circle y Fig. 2.17 When the coordinate values of the end point of a cireular path is not exactly on the correct circular path due to calculation errors, etc., correction is made as shown below. Points 0 are commanded as end point. figure below.) (See the 28 When a linear 4th axis option is used, circular interpolation is possible in the Xa, Za, and Ya planes in addition to the X¥, ¥X, and ZY planes (where a= U. V. or W) F F F x i \ The end point is represented by "*." (CENTER N Up Fig. 2.18 When the end point is programmed in the hatch- ed areas shown above, no alarm state is creat ed, but the tool will keep on rotating, Especially when tool compensation is applied, coordinate values of the point and the center must be programmed accurately. When radius 4 specified as O(1, =0 on G17 plane) in specifying circular arc, alarm 102 (CAL ERROR=DIVISION) is triggered. 2.9.5 HELICAL INTERPOLATION (G02, G03) * A circular interpolation on a certain plane, and a linear interpolation along an axis not included in that plane can be executed in synchroniza~ tion, and thie combined interpolation is called helical interpolation.‘Command format (a) or xy plane ct? {32} x... ¥.- Cb) or 2x plane cre [982} 2... x (Por va pian aia (S82} vine 2. (@ For xaptne ort {87} x... ae Ce) torzaptane ans {82} 2.0 (© for vaplne ery {SB} x @ Where u is one of the linear 4th axes U,V, or W. Ifno 4th axis is programmed in (a), (e), and (f), they are regarded as equal to (a), (b) and (e). EXAMPLE, END POINT 2.9.6 DOWELL (604) Gos p. This command interrupts feed for the length of time designated by the address P Dwell is programmed as an independent block. The maximum length of time which ean be desig~ nated with address P is as follows. Format | Dwell time (P programmable range) 109. TART POINT, x G17 GOs XO ¥100. R100. Z90. Fi0. ; Fig. 2.19 Notes + The circular are should be within 360°, + As long as above note (a) ie satisfied, the start and end points can be taken at any time, + The feedrate F means the tangential speed on the plane of circular interpolation. There- fore, the speed (F") in the direction of linear interpolation is as follows (Length covered by linear interpolation) te (Length of circular path) Fx + Tool radius compensation Ct can be applied only to the circular path on the plane of cir cular interpolation. p53. [0 - 999,999 ace The value does not depend on metric/inch input or metrie/inch output, EXAMPLE G04 P2500 ; Dwell time: 2.5 sec. ‘Two types of dwell can be selected by parameter Dwell when the specified value in the command block before the d¥ell block is identified by lag pulses of servo, or dwell on completion of pulse distribution. 259.7 EXACT STOP (G08, G61, G64) Exact stop (G09) ning G9 ie executed, the program advances to the next block after com Dieting block it the Error Detect On mode (Note a). This function is used when sharp corners are desifed. G09 in non-modaly and is effective onty in|the block im which #8 #5 con tained. 292.9.7 EXACT STOP (G09, G61, G64) (CONT'D) Exact stop mode (G61) When once G61 is commanded, all the following blocks will be completed in the Error Detect On mode before proceeding to the next block + Exact stop mode cancel (G64) ‘This G command is for cancelling the effect of Gel. Notes In the Error Detect On mode, the program pro~ ceeds to thenext block only after the number of servo delay pulses is found to have decreas~ ed below a permissible limit following the com plete distribution of circular interpolation command pulses. In the G09 and G61. off modes, the program pro- ceeds to the next block immediately after the complete distribution of the pulses of ordinary linear and circular interpolations, and there- fore, because of the servo delay. tool pathes are rounded at the corner. This mode is called "Error Detect Off" mode. + For rapid traverse, the Error Detect On and Off modes are controlled only by GOD and G06, and not by the above G codes. 2.9.8 TOOL OFFSET VALUE DESIGNATION (G10) With 2 G10 command, correction of tool offset values and work coordinate system can be made as follows, (A) Designation of tool offset value (G10) Normally, tool offset values are written in by MDI. On the other hand. with a program GJ0 Pree Rese 5, (where P = tool offset number and R = tool offset value), any programmed offset values can be replaced by a designated value. When G10 is commanded in the G90 mode, R is stored a9 is. When G10 is commanded in the G91 mode, R is added in the previous tool offset value. (2) Changing work coordinate system? (a) Corresponding to G54 through G59, separate work coordinate systems are cet up as setting data in advance GIO QZ Pa Kee. Vers Bev (Oe Berye (where Q2 is used to discriminate from tool offset value designation and a means to set up fa work coordinate system. Pm (m= 1 to 6) corresponds to the work coordinate system m to be set up.) For Plies G54 For P2-. G55 For P6: G59. corresponds With the above command, data of any desired work coordinate system can be changed. (b) For the work coordinate system setting B specification, change the setting of the work cooordidnate system by specifying G10 Q2 Pm In Xpe6¥ereZee(@eesBeeu)z» In specifies J1 to 36. The meaning of Q2 and Pm is the same as ‘mentioned in (a).) 2.9.9 CIRCLE CUTTING (G12, G13) ‘This is a canned cycle which includes a complete series of movements for machining a circle in a single block. It includes the following functions. + Format G1aG13) Te. D YARIS Too. X-axIs Fig. 2.20 Designation of rapid traverse section R 12 (G13) Pee Ree Dee Pee With this command, a circular bore is machined as shown below. Numerale following an address character R specifies rapid traverse sectionsTool path az O—-O—O--O—-O--O ax ©-O—-O—O—O—O (D) represents a set value of tool radius compensation. Gz: Clockwise (cw) G13: Counterclockwise (CCW) I: Radius of finished circle Gneremental value with sign) R: Rapid traverse section Gneremental value with sign) D: Tool radius compensation No. F: Cutting feed rate Fig. 2.21 + Commanding repeated circle designation G1QG13) Pee Devs Love Fe With this command, the cireular bore surface can be executed L times, Commanding spiral circle Q, K GIAGII) Tee, Deve Kee Qeee Pee With this command, the tool is moved along a spiral before finally finishing a circular hole, as shown below. For the sake of simplification, the diagram shows the tool path with a zero radius (D = 0). Q (radius increment) must be programmed without sign. 1 6 ODDOOO Raprus INCREMENT K = RADIUS oF FINISHED CIRCLE a2.9.9 CIRCLE CUTTING (G12, 613)+ (CONT'D) Too! path cw: @ o—¢ a: ©-O—-O—-O—-O—D (D) represents a set value of tool radius compensation. G12: Clockwise(cw) G13: Counterclockwise (COW) I: Radius of finished circle Gncremental value with sign) R: Rapid traverse section Gineremental value with sign) D: Tool radius compensation value Fig. 2.23 Combined designation of rapid traverse sec~ If R-d and I-d have different signs, this is tion, repeated circle and spiral circle. also regarded as an error. Rapid traverse section, repeated circle desig- When programming G12(G13), always specify a nation and spiral circle can be commanded in tool radius compensation number D. If this is combination as shown below. not specified, the too] moves without radius G12(G13) 1... Dee Rees (or Sees) Kee ‘compensation oo. Foo EXAMPLE, ee G00 2-40, ; Circle cutting is possible only on the XY plane. vee comme ee eee eee G12 150. R40, DIO F300 ; DIO = 10.0mm ‘The tool speed in the rapid traverse section is set by parameter #6225. ate Feedrate override cannot be applied to rapid traverse rate. While dry run witch is ON, the tool speed conforms to dry run speed, + With a circle cutting command (G12, G13), the tool Is offset for its radius compensation with= out the use of Gl or G42 (tool radius compen- sation). When using G12 or G13, cancel tool radius compensation with G40. + In the explanation above, only motions in the + direction of X-axis is considered. With proper use of signs for I, J, K and D codes, motions in the ~ direction of X-axis (symmetrical with respect to Y-axis) can be commanded. In Fig. 2.24, signs of 1, R and (D) are minus. How~ ever, cutting in’ the Y-axis direction is impos~ sible. I, 3, K, R, Q and L codes in circle cutting com- “x mand are effective only in the block containing them. ‘The radius I of finished circle and the rapid traverse section R are subject to the following, restriction. When values not in conformity with the restriction are programmed, this i= regarded as an error. IR-afe|r-al Fig. 2,24 32+ G00 Z- 40, G13 1-50.37, DIS F300; DIS = G00 240.5 8.0 mn 8.0 TOOL RADIUS 7.0 DEPTH OF CUT AUTOMATICALLY COMPUTED RAPID TRAVERSE SECTION Fig. 2.25 2.9.10 PLANE DESIGNATION (C17, G18, 619) ‘The plane for making circular interpolation and tool radius compensation is designated by G codes i7/G18/619. G17: XY plane G18: 2X plane G19: YZ plane When the 4th axist of linear axis is selected, the following planes are newly added. G17: XY plane or Xo plane 2X plane or Za plane YZ plane or Yo plane means U, V or W axis. The move command in each axis can be program~ med regardless of the plane designation by C1?/ c1g/c19. For example, if GIT Bees is designated, motion is on Z axis. ‘The plane for making tool radius compensation by command G41 or G42 is univecally determined by G17, G18 or G19. Tt is not possible to designate compensation plane including the fourth axis of rotary axis. ‘The X¥ plane (G17) is selected when the power js turned on. 2.9.11 INCH/METRIC DESIGNATION BY G CODE (G20, e21)t Unit of input data are selectively specified by the following G codes between metric and inch. G code Input unit G20 Inch Gai Metric ‘These G codes are programmed at the leading end of a block of its own. If one of these G codes are commanded, the units of al} the following motions are changed afterwards. subsequent programs tool offset values part of setting parameters part of manual movements displays Notes When G20 or G21 is commanded, the setting of inch/metric selection is changed. Therefore, the state of C20/G21 at the time of power ap~ plication depends on the setting by parameter ‘6001 DO. EXAMPLE. Inch input designation When 020/621 setbetion is commanded in the program. take the following procedure before- Rane : 1A. Whon work coordinate system (G54 to 59) qeraed, returs i to bave coordinate sye" te 1. Caneel all toot compensation command, (eat to G4)2.9.11 INCH/METRIC DESIGNATION BY G CODE —_~ 2nd prohibited area (Stored stroke limit 2) (G20, 62117 (conT'D) The boundary of the 2nd prohibited area is specified by a parameter setting or by G22. + Take the following procedure after the command The inside or the outside of the boundary can of 620/21 selection. selectively be made a prohibited area by means A. Program absolute zero point for all axes of parameter setting. before move command. eee eee eee eee B. In principle, make the display reset opera- Se eee tion when current position display (exter © point D point nal) is used. _ P Upper limit Lower limit + The tool offset values are processed different- ly in the G20 mode and the G21 mode With this command, the checking of the 2nd G20/G2) must be commanded after modifying prohibited area is started, and with 023 3, the tool offset values. the check function is cleared, Stored off- | Processing in | Processing in 2ND PRONTBITED AREA set values | G20 (Inch) Gai (Metric) SLL LAE oe 15000 —}-= 1.5000 15,000 mam 2.9.12 STORED STROKE LIMIT (622, G23)* This function is for checking the current tool position during manual or automatic operation for entry into the prohibited area specified by parameters or by G22. If the tool enters a pro~ hibited area, machine operation is stopped and an error sign is displayed Where 2nd prohibited area is outside + Ist prohibited area (stored stroke limit 1) The area outside the area specified by a param- eter is a prohibited area. Generally, this can be used as a substitute of overtravel checking function. Upper limit point Ay and lower limit point Br are specified by parameters. 2 AREA, Ln BULK) Where 2nd prohibited area is inside. 183, PROHIBITED igs 2.27 EE PED EEA as (a, Ya, 20) Fie: Fig. 2.26 34Table 2.23 Setting of Stored Strocke Limit for Each Axis Ae x y 2 Division 1st probib- [Point At W601 6602 tea area —--| Parameter < Point Bi #6607 #6608 ana prohib- [Point Az wn wre ied brea —}—--———} Setting Point B2| 6513 | wosi4 ws15 Note: Point A sets plus value of boundary line on the machine coordinate system and point B sets minus value, + The parameters for specifying the inside and the outside of the 2nd prohibited area are as follows 3600700 Meaning "a Inside prohibition, " Outside prohibition + The 2nd prohibited area checking function can also be turned on and off with the following, setting number #6001p1 Meaning tom 2nd prohibited area cheek: off 7 2nd prohibited area cheeks on Note: + The let and the 2nd prohibited area can be specified overlapping each other. + Boundary lines on the minus side are included in the prohibited areas. Boundary lines on the plus side are not included in the prohi- bited areas. + All the prohibited areas become effective after a manual return to reference point or a return to reference point by G28 after turning on the power supply. + If the tool is in the prohibited area at the time when the prohibited area becomes effective, this is immediately regarded as an error. In this case, turn off the 2nd prohibited area by the setting of the setting number, and either rewrite the data or move the tool out of the prohibited area manually If an alarm state is created by the entry of the tool into the prohibited area, the tool can move only in the returning direction. + The stored stroke limit cannot be checked dur~ ing a machine lock operation. 2.9.128 PROGRAM COPYT (G25) 2) The command G25P +sy age Q i L +s, executes L times any program" from Sequence pz of program pl to sequence q2 of program ql. G25: Program copy G code P: pli First 0 number p2i First sequence number (N) i: Last 0 (pi=al) a2 Last sequence Each will be commanded with four digits. The leading zeroes of p2 and q2 cannot be omitted. L: Number of repetitions (One time if omitted) (2) Although the G25 command can be given by tape, MDI or memory operation, it will be ne~ cessary to store the program to be copied in the memory. When sequence numbers are overlapped, the first sequence, number will become effective. (2) The G25 comand may also be used again In the program elng copied.” This te- called multiple’ progran [eopying’ and is possible. up tora maximum of| four levela., However, error “Gabw"wil'occur if four levals are exceeded, 35