Download as pdf
Download as pdf
You are on page 1of 446
OSP500L-G OSP5000L-G PROGRAMMING MANUAL (5th Edition) Publication No. 2452-E-R5 (May 1987) SECTION 1 BEFORE YOU BEGIN PROGRAMMING . 2452-E P-(i) TABLE OF CONTENTS site A 1-1, COORDINATE SYSTEM I-I-1, Model LOlg . aie cia 1-1-2, Models L629/LC39/LC44/LC50 « 1-1-3. Models LS3-N and LH35-N 1-1-4, Model LHSS-N ..... 1-1-5. Models LB19/LB12/LB15 . 1-1-6. LR Series Models ... 1-2. REFERENCE POINT ....... 1-3. PROGRAMMING ZERO .. 1-4. DIMENSION WoRDS ... 1-5. TURRET SELECTION FOR 2-SADDLE MODELS . = 13 1-5-1, LC Series . deeeeeee « 13 1-5-2, LS30-N, LH35-N and LASS-N . 4 1-5-3. LR Series . ve vee #6 1-6. TOOL SELECTION . i aS 7 1-7. SPINDLE SPEED SELECTION 27 7-1, LOW se eeeee 27 “7-2. Le2b . han “7-3. 1039 . ise “7-4, Lead + 34 “7-5. Led + 35 + 37 + 38 39 . 4G 24 + 43 + 4 + 46 1-9. 1 x sage an AT 1-9-1. Program Process Sheet exieinne tase OF 1-9-2. Tape Format ....... svesveeses 48 1-9-3. Position of Decimal Point .... rivieaes SP 1-9-4, Position of Decimal Point for @.1 ym Specification (optional) .. 52 1-9-5, Tape Code . meaiegerateiog 2 TERE oH 53 1-9-6, EIA Special Codes .......+4 55 1-9) Setting of ETA Special Characters 56 1-9) Input/Output of The Special EIA Codes . 56 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-(ii) Page 1-19. DETERMINING CUTTING CONDITIONS ...... see 58 1-11, PROGRAMMING CODES AND WORD FORMAT (1 mm TAPE INPUT UNIT SYSTEM) .... 59 1-12. PROGRAMMING FORMAT ........004 Waa, 2 1-12-1, Model 18 (Single Turret Model) ... 2 1-12-2, Model 28 (Two-Turret/Two-Saddle Model) .. 73 SECTION 2 SIMPLE PROGRAMMING ... senile 5 2-1, POSITIONING (G49) .... sis ae - 76 2-2, STRAIGHT-LINE CUTTING (GU1) ......sss0- : 77 2-3, TAPER CUTTING (G91) . ve een cd 2-4. ARG CUTTING (692/693) diwoges pede + 82 2-5. THREAD CUTTING (STRAIGHT, CONSTANT LEAD THREAD) (G33) ...-- + 87 SECTION 3 APPLICATION PROGRAM ..... nameriead seeeeee 90 i 1. PROGRAMMING SPECIAL THREADS . roe + OL 3-1-1. 633 (Fixed Thread Cutting Mode) ....s..essees . OL 3-1-2. 632 (Fixed Thread Cutting on End Face Mode) + 93 3-1-3. G34 and G35 (Non-Fixed Gycle) ... SHES 2 + 96 3-2, PRECAUTIONS FOR PROGRAMMING THREAD CUTTING CYCLES .... 7 3-3. PROGRAMMING CONSTANT SPEED CUTTING OPERATION .......-- + 14 3-4, INCREMENTAL PROGRAMMING .. ie fee + 106 3-5. SUPPLEMENT .......... fees fee +107 SECTION 4 PROGRAMMING EXAMPLE ..........4 parersasa 02 4-1. PROGRAM EXAMPLE FOR CENTER-WORK ..... 112 4-2. PROGRAM EXAMPLE FOR CHUCK-WORK ...... 116 SECTION 5 PROGRAMMING TAKING TOOL NOSE RADIUS INTO CONSIDERATION .. 119 PROGRAMMING EXAMPLE FOR TAPER CUTTING ......2.+5 where teacans Lt PROGRAMMING EXAMPLE FOR ARC CUTTING ......... teaeeseeseee 122 PROGRAMMING EXAMPLES WITH TOOL NOSE RADIUS COMPENSATION niaeien DOR GENERAL PROGRAMMING PROCEDURE FOR CIRCULAR INTERPOLATION .........0+ 125 SECTION 6 PROGRAMMING FOR SIMULTANEOUS 4-AXIS CUTS (28 Model for LC) ..... 127 6 6: PROGRAMMING FORMAT .... PRECAUTIONS FOR PROGRAMMING SIMULTANEOUS 4-AXTS CUTS 127 139 ‘OKUMA MACHINERY WORKS LTD. 2452-E (iii) PAGE 3. PROGRAMMING EXAMPLE ...... 6-3-1. Workpiece Dimensions . 6-3-2. Tooling and Cutting Conditions ...... 6-3-3. Program Process Sheet . 132 132 132 133 6-4. WAITING SYNCHRONIZATION M CODE (M1GG) FOR SIMULTANEOUS CUTS ........ 134 SECTION 7 BARRIER CHECK FUNCTION ..... seeeeeeee 135 7-1, GENERAL DESCRIPTION . 135 7-2. CHUCK BARRIER AND TATLSTOCK BARRIER . 136 7-2-1. Establishing Chuck Barrier . 136 7-2-2. Establishing Tailstock Barrier 137 7-2-3. Tool Movements and Alarm 138 7-2-6. Precautions ..... 138 7-3. TOOL INTERFERENCE CHECK ston + 139 7-3-1, Programming .. reves eaatiann eee + 139 7-3-2. Setting of Tool Interference Area .....+++ 14g SECTION 8 DROOP CONTROL -...--42seees00e bie wee 148 SECTION 9 M/MIN. MODE FEEDRATE COMMAND . 149 SECTION 19 ZERO SET BY G CODE . ‘i seeeeeeee +e 15d SECTION 11 TAPER ANGLE/ARC RADIUS DIRECT COMMAND ....+++s0++05 152 11-1, GENERAL DESCRIPTION . ++ 152 11-2. DIRECT TAPER ANGLE COMMAND oo 152 11-3. DIRECT RADIUS COMMAND .... s. 154 SECTION 12 AUTOMATIC CHAMFERING . a wae © 156 12-1. GENERAL DESCRIPTION ... = 156 12-2. 45 DEG. CHAMFERING (G75) . + 156 12-3. ROUNDING (G76) .. + 159 ‘OKUMA MACHINERY WORKS LTD. 2452-E SECTION 13 COMPOUND FIXED CYCLE (SPECIAL FIXED CYCLE) .... 13-1, GENERAL DESCRIPTION . 13-2. THREAD CUTTING COMPOUND CYCLE (671/672) . 13-2-1. Longitudinal Thread Cutting Cycle (G71) . 13-2-2. Transverse Thread Cutting Compound Fixed Cycle (672) ... 13-2-3. M Code Specifying Thread Cutting Mode and Infeed Pattern . 13-2-4. P Codes in the G71 and G72 Thread Cutting Cycles ...... 13-3. GROOVING/DRILLING COMPOUND FIXED CYCLE (673/674) 13-3-1, Longitudinal Grooving Fixed Cycle (G73) . 13-3-2, Transverse Grooving Fixed Cycle (G74) . 13-3-3. Axis Movements in Grooving Compound Fixed Cycle . 13-3-4. P Codes in the G73 and G74 Grooving Cycles 13-4, TAPPING COMPOUND FIXED CYCLE (G77, G78) .. Right-hand Tapping Cycle (G77) .. Left-hand Tapping Cycle (678) ... Supplement ... | 13-5. APPLICATION OF COMPOUND FIXED CYCLE . 13-5-1. Application of Longitudinal Thread Cutting Compound Fixed Cycle Application of Longitudinal Grooving Compound Fixed Cycle (673) « Application of Transverse Grooving Compound Fixed Cycle (G74) SECTION 14 MIRROR IMAGE FUNCTION (2-Turret Model) .. 14-1, OUTLINE OF MIRROR IMAGE FUNCTIONS 14-2. OPERATIONS ......4se0004 14-3, PROGRAM AXIS MOTIONS ..... -1. G Codes . -2. Cautions on Programming . 14-3-3. Gutting Program ...... 14-3-4. Cutting Operation .... 14-4. MACHINE OPERATION AND DISPLAY .. 14-4-1, Operation Panel ..., 14-4-2. Zero Offset s+... 14-4-3, Tool Offset ..... 1455. OTHERS wees vvveves ose 14-6. PROGRAM EXAMPLE ..... P-(iv) AGE = 16 162 + 163 163 165 174 175 175 177 179 180 + 181 + 181 185 185 + 186 +186 + 187 - 187 = 188 = 189 + 189 + 199 191 «192 + 193 + 193 + 193 + 19% + 195 + 196 (OKUMA MACHINERY WORKS LTD. SECTION 15-1. 15-2. 15-2-1. Control Statement . . 15-2-1-1, GOTO Statement ~ Unconditional Jump 15-2-1-2. IF Statement - Conditional Jump . 15-2-2. Common Variable .. 15-2-2-1. Common Variable .esseeeseeee 15-2-2-2. Local Variables .. 15-2-2-3, System Variables . 15-2-3. Arithmetic Operation Function 15-2-3-1. Arithmetic Expression .... 15-2-3-2. Comparison Expression .... 15-3. 15-4. COMPARISON OF USER TASK 1 AND USER TASK 2.2.0... 15 USER TASK 1. OUTLINE OF USER TASK FUNCTION . FUNDAMENTAL FUNCTIONS OF USER TASK .. PROGRAM EXAMPLE .. 2452-E P-(v) PAGE seeeeeee 198 seeewooess 198 199 200 291 261 293 293 204 205 212 212 212 213 215 SECTION 16 TAPE CONVERSION FUNCTION (OSP39¢/L——~ OSP5UGL-G/OSPSIQUL-G) ... 216 16-1. 16-2. 16-3. 16-3-1. Simultaneous 4-Axis Control Program . 16-3: 16-3-3. Address Characters Specifying Varia 16-3-4. Endless Operation . OUTLINE ....... OPERATION ..... CONTENTS OF CONVERSION .. Constant Cutting Speed Program . 16-3-5. Nose Radius Compensation Function .......0+ 16-3-6. LAP sees ee 16-4, RESTRICTIONS ON TAPE CONVERT FUNCTION (OSP3G9L —~ OSPSG0L-G) . SECTION -1. 17-2. SECTION 18-1. 18-2. 18-3. 17 TAILSTOCK SPINDLE ADVANCE /RETRACT FUNCTION BY M CODES . M CODES USED FOR ADVANCING/RETRACTING TAILSTOCK SPINDLE . ALARM MESSAGES . 18 SCHEDULE PROGRAM . OUTLINE ....45 PROGRAMMING PROGRAM EXAMPLE see 216 216 218 218 sieena en, 219 229 228 221 221 224 227 227 reeves 227 + 229 229 229 231 ‘OKUMA MACHINERY WORKS LTD. 2452-B P-(vi) PAGE SECTION 19 LATHE AUTO-PROGRAMMING FUNCTION (LAP) ... seeeee teeeees 232 19-1, GENERAL DESCRIPTION ......2.... weg 8 232 19-2. CLASSIFICATION OF FUNCTIONS «44.2... + 233 19-2-1, Classification of Cutting Gycle . 233 19-2-2. 6 Gode Used to Designate Cutting Node 2234 19-3. PROGRAM FORMAT = 235 19°3-1. G Codes ... 2235 19-3-2) m codes - setae 2235 19-3-3. Parameters Bu 236 19-4, EXECUTION MODE OF LAP seeueee 238 19-4-1. G85: Bar Turning Cycle . sees seen 238 194-2. G84; Change of Cutting Conditions in Bar Turaing Cycle .....0.. 239 19-43. G86: Copy Turning 248 19-4-4. 687: Finish Cut Cycle - 241 19-4-5. GB: Continuous Thread Cutting Gyele 242 19-5, EXPLANATION OF LAP FUNCTIONS AND PROGRAM « 24 19-5-1. AP Mode I (Bar Turning) . 244 19-5-2. AP Mode II (Copy Turning) ... seen 256 19-5-3. AP Mode III (Continuous Thread Cutting Cycle) .. (262 19-6, PRECAUTIONS ... a Sey nae 275 19-7, APPLICATION OF LAP FUNCTION’... : : 276 19-8. SYNCHRONTZATION CODES FOR LAP... 278 SECTION 20 TOOL NOSE RADIUS COMPENSATION FUNCTION ..........+. 28g 29-1. OUTLINE ......... oo eee nee 280 2-1-1. General Description . see + 280 20-2. TOOL NOSE RADIUS COMPENSATION FOR TURNING OPERATION see 28g 2-2-1. Tool Offset and Nose Radius Compensation . tee 280 29-2-2. Tool Nose Radius Compensation at Discontinuous Point 281 2G-3. COMPENSATION OPERATION ....... ween (282 20-3-1. Geometrical Cutting Error Due to Tool Nose Radive 262 2G-3-2. Compensation Movement ... wee 283 29-4. PROGRAMMING . 284 2G-4-1. G Codes 284 20-4-21 T codes .. 285 20-4-3, Program Example . 286 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-(vii) AGE 29-5. TOOL NOSE RADIUS COMPENSATION DATA .... 2-5-1. Measurring Nose Radius . 29-5-2. Setting Compensation Amounts 2-5-3. Relationship between Imaginary Coded Numbers ....... 287 287 289 + 292 29-6. DISPLAY . 29-61. Actual Position 29-6-2. Alarm Display .. 294 294 294 20-7. OTHER REMARKS .. 20-7-1. Conditions of Nose Radius Compensation Function .... 2-7-2. Path of Tool Nose "R" Center in Tool Nose Radius Compensation Mode .. 295 295 297 SECTION 21 APPLICATION OF TOOL NOSE RADIUS COMPENSATION PROGRAMMING ....... 299 21-1. Gé1 AND G42 . 4 ata Sasa mas sees + 299 21-2, BEHAVIOR ON TOOL NOSE RADIUS COMPENSATION MODE ENTRY . = 309 2-2-1. General Description . 7 + 308 21-2-2. Program Examples .... sees oe + 301 21-2-3. I and K Command with G41 and G42. andes + 304 21-3. BEHAVIOR IN TOOL NOSE RADIUS COMPENSATION MODE . + 305 21-3-1. Straight Line to Straight Line Cutting ..... + 305 21-3-2. Straight Line to Arc Cutting (Arc to Straight Line Cutting) .... 313 21-3-3. Are to Arc Cutting . itso 319 21-3-4. Switching from G41 to C42 or from G42 to Gél . 32g 21-4, BEHAVIOR WITH TOOL NOSE RADIUS COMPENSATION MODE CANCEL . + 323 21-4-1. G49 Given with X- or Z-axis Motion Command . tenes + 323 21-4-2. T and K Command with G4g ...... te + 326 21-4-3. Independent G4d .. veces . + 327 21-5. RELIEVING TOOL TO CHANGE "Ss" OR "HM" CODE DURING CUTTING 328 21-5-1, Program 2 ......6.45 oe = = 329 21-5-2. Program 3 . ibis ea 4 HET ESD 8 Se ree - 336 21-5-3. Program 4 . #5 BERN da te Sadie oe + 331 21-5-4. Program 5 sa sneer ae + 323 21-5-5. Progran 6 nse + 333 21-6. PRECAUTIONS ...... 334 SECTION 22 USER TASK 2 ...eeeeseee 335 22-1. OUTLINE OF USER TASK FUNCTION ......0eee0eeeee worsen: 385 22-2. TYPES OF USER TASK FUNCTION ......... anes 337 2272-1. Relation between Types of Progran Files and User Task een 337 Functions .... OKUMA MACHINERY WORKS LTD. 2452-E P-(viii) PAGE 22-3. FUNDAMENTAL FUNCTIONS OF USER TASK ...... 338 22-31, Control Statement ..... cuts 339 22-3-2, Variables .s.seeeeseeee te 354 22-3-3. Arithmetic Operation Function ....... 369 22-3-4. Combination of Operations ... 372 22-4. PROGRAM EXAMPLES ase 373 22-5. SUPPLEMENTS . i 22-5-1. Sequence Return in Program Using User Task .. 22-5-2, Simultaneous 4-Axis Control Mode ..ssseseeeeeee 22-5-3. Rules of Operation and Evaluation of Result 384 384, 384, 385 | SECTION 23 INCH/MBTRIC SWITCHABLE seeees 390 | SECTION 24 GRAPHIC CRT DISPLAY . ceveee 393 24-1. OUTLINE OF GRAPHIC CRT DISPLAY .... + 393 24-2, FUNCTION KEYS USED FOR GRAPHIC DISPLAY OPERATION . 2 394 24-3. GENERAL PRECAUTIONS FOR ANIMATION MODE DISPLAY . 4g. | 24-4, HICH SPEED DRAWING na a 4g2 24-5, DISPLAY PAGE ... 42 | 24-6. MACHINE TIME DISPLAY . 4g3 | + ADDITIONAL FUNCTIONS FOR MULTI-MACHINING MODELS 493 + TOOL FORM SELECTION .......... . 408 DRAWING BLANK SHAPE .......... Bi aul 2-10. HOW TO SET DRAWING POSITIONS OF CHUCK AND TALLSTOGK . 423 | 24-11. SYSTEM VARIABLES FOR ANIMATION DISPLAY . 426 24-12, BLANK MATERIAL DRAWING METHOD . . 430 SECTION 25 CHUCK AUTO OPEN/CLOSE BY M CODES ee eeeee 435 25-1. M CODES USED FOR OPENING/CLOSING CHUCK . 435 25-2. ALARM MESSAGES... s 435 Note: To avoid any confusion over the use of the letter "0 (oh)" and figure "0 (zero)" in this manual, the numerical value "0 (zero)" is expressed as "" if there is any possibility of misunderstanding. | ‘OKUMA MACHINERY WORKS LTD. | 7 2452-B Po1=Rb SECTION 1 BEFORE YOU BEGIN PROGRAMMING On the CNC lathes, turning operations and various miscellaneous functions are performed by the information on a tape instead of manual operation by an operator, and the manual handling of levers and handwheels is performed by motors. In other words, by simply pressing a button, tape-controlled lathes work like automatics. To make a command tape, first complete a program process sheet from a part drawing. After that, punch out a command tape by a tape-puncher. Part Process Typewriter Tape Product Drawing sheet (Okuma owe: Lathel spam By OFER Uf PY osesaa-cr eseseooine The program process sheet is a manuscript of listing which details part programming instructions. The procedure to complete a program process sheet is called "PART PROGRAMMING", There are certain rules in making a process sheet. These rules have to be remembered by the programmer because they are just like traffic rules for drivers. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-2 COORDINATE SYSTEM The axis nomenclature of individual models is explained in detail in this section. Model LOG The axis designation of LCI CNG Lathe is as follows: 28 Turret A (righe y-axis turret) © . ° © © taxis ° Turret B Gefe turret) @ X-axis Transverse Turret Movement waxis Gnfeeding direetion) Longitudinal Turret Movement .. Z-axis Direction of axis movement is defined by "4" and "=" sign characters. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-3 1-1-2. Models L629/LC39/LC4/LC50 The axis designation of LC20/LC3G/LC40/LC5 CNC Lathe is as follows: Xeaxis [ e a-axis e ® X-axis 1s. 28 Turret A (upper turret) a-axis Zraxis Turret B (lower turret) Xaxis Transverse Turret Movement ...sseseseeeees X-axis Ginfeeding direction) Longitudinal Turret Movement .. Z-axis Direction of axis movement is defined by "+" and "=" sign characters. ‘OKUMA MACHINERY WORKS LTD. 2452-E Pot 1-1-3, Models L839-N and LH35-N The axis designation of LH35-N and LS39-N CNC Lathe is as follows: Kanis i + ¥6 a + ws (only for LS3Q-N) ° Z-axis oe @ taxis ° ® Taxis Wa oy Z-axis ‘Transverse Turret Movement ....... (infeeding direction) Longitudinal Turret Movement .. Direction of axis movement is defined by "+" and "=" sign characters. ‘OKUMA MACHINERY WORKS LTD, 2452-E P-5 1-1-4, Model LH55-N The axis designation of LH55-N CNC Lathe is as follows: ve+ve Kaxts ® 8 Z-axis oe © } tants axis He } Z-axis _f ° ® Toe \ X-axis Transverse Turret Movement .. + Keaxis (infeeding direction) Longitudinal Turret Movement . Z-axis Direction of axis movement is defined by "+" and "-" sign characters. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-6-RA Models LB1G/LB12/LB15 ‘The axis designation of LB1G/LB12/LBI5 ONC Lathe is as follows: Bg = via Meaxis 3 PY turret © i Ue 2 © ® LB12/1B15 Xraxis e Z-axis e eS Transverse Turret Movement + Kaxis Ginfeeding direction) Longitudinal Turret Movement + Z-axis Direction of axis movement is defined by "+" and "-" sign characters. ‘OKUMA MACHINERY WORKS LTD. 1-1-6. 2452-E P-7-A5 LR Series Models The axis designation of LR series CNC Lathe is as follows: TRIS vig + v8 = iy X-axis —oy;— 2 ° Turret A (upper turret) Oo, ——_— maxis - + © © —_ Z-axis a OQ - Torret B lower turret le] pe leJU ° Kani Transverse Turret Movement « va rants (infeeding direction) Longitudinal Turret Movement « cesses Beaxis Direction of axis movement is defined by "+" and "-" sign characters. OKUMA MACHINERY WORKS LTD. 2452-E PB REFERENCE POINT On the CNC Lathes, there are three types of reference points as below: (1) Machine Origin This is the fixed origin inherent in respective machines, where output values from the OSP position encoders of X- and Z-axis become zero. Axis movement of the machine is referenced to this fixed machine ori- gin. (2) Workpiece Origin (Machining Zero) The zero point that can be set at any point as needed by "Zero Offset" operation; once the workpiece zero is set, axis motion is controlled on the coordinate system that has the origin at the set workpiece Cutting is carried ovt taking this point as the reference point. (3) Programming Zero This is the zero point from which all dimensions are referenced in the part programming. Tt can also be established at any point convenient for programming. For details, refer to the instructions for Programming Zero provided in later section. A programmer should inform a machine operator of the established programming zero position either on the part drawing or with a memorandum. Note: PROGRAMMING ZERO AND MACHINING ZERO MUST BE MATCHED. XG, 20: Zero offset value X, Z + Programmed command x Jt = xa/2} Machining zero (Programming zero) Machine origin OKUMA MACHINERY WORKS LTD. 1-3. 2452-E P-9-R9 Note On two-saddle models, individual turrets, turret A and turret B, have their own machine origins independently. - LC series - IR series Note 2: On two-turret models, individual turrets, front and rear, have their own machine origins independently (mirror image function). - 1830-N - LE3S-N) - LESS-N) PROGRAMMING ZERO The Programming Zero is the reference point for programming and may be established at any required point within a specified range. Usually, it is taken at the center of the workpiece for X-axis and at the left-hand end of it for Z~axis, and programming is made on the coordinate system which has the origin at such point. See the figure below showing the preferable zero position. reogeaming oro VP on X- and Z-axis (OKUMA MACHINERY WORKS LTD. 2452-E P-19-R5 1-4. DIMENSION WORDS (1) Programmable Units Axis mo unite s vement commands, i.e., dimension words are expressed in the pecified below: Programmable Units Axis . Inch System Metric System (optional) 1 mm 1 inch x 1g am 1/1990 inch Lum 1 am 5 1 inch z fa 1/19999 inch Lum Note 1: Note 2: Note 3: * Xword is expressed in terms of diameter. When programming dimension words, be sure to command numeri- cal data to the selected unit. Unit system may be changed by changing the bit data of optional parameter (bit) No. 3 as follows: Bit 2 Bit 1 Bit 0 Unit * 1 a 1 om 1 a a 1d um g a g 1 pm * 1 1 1 inch * @ 1 1/1090 inch * may be either "1" or "9" (usually set at Bor details of parameter data setting, refer to the Operation Manual. ‘The 1 mm unit system is set when the control floppy disk is loaded. ‘OKUMA MACHINERY WORKS LTD. (2) 2452-B P-L1-AS Programmable Units for J.1 um Specification (optional) Axis movement commands, i-e., dimension words are expressed in the units specified below: Programmable Units Axis atric Systen Jach System 1 sn 1 h ine! 1g um x i 1/1000 inch km wi ini True 7199000 inch = 1 ineh a ine 19 um 2 ea 1/10990 inch 1am 1190909 inch 0.1 um Note 1: Note 2: Note 3: When programming dimension words, be sure to command numeri- cal data to the selected unit. Unit system may be changed by changing the bit data of optional parameter (bit) No, 3 as follows: Bic 2 Bit 1 Bit 6 unit » | oo 6 21 um 5 é 6 1am 1 6 a 1 un g 1 o 1am 1 8 1 1/199009 inch 8 6 1 | 1/1909 inch a 1 1 1 inch For details of parameter data setting, refer to the Operation Manual. The 1 mm unit system is set when the control floppy disk is loaded. ‘OKUMA MACHINERY WORKS LTD. a) Programming zero ico} Programming zero 2452-B P-12 X-Axis Command (1 mm unit command) X-axis command is given in terms of diameter as indicated on a part drawing. Example Potne A When "X29" command is speci- fied, the turret moves along Karls to position the cutting S| tool to Point A. vA xe Z-Axis Command Z-axis command (1 am unit command) is given in terms of longitudinal dimensions referenced to the programming zero. Example: aa (100 om When "Z199" command is speci~ fied, the turret moves along Z-axis to position the cutting ia ah tool to Point B. ‘OKUMA MACHINERY WORKS LTD. 1-5. 1-5-1. 2452-8 P-13 TURRET SELECTION FOR 2-SADDLE/2-TURRET MODELS LC Series For two-saddle models, Model 2S, selection of the turret is made by spec- ifying a G code as indicated below: G9 ws sax G1d veeeeeee Turret A Turret B «) Leg Turret A (right turret) G13 Turret B (left turret) cis (2) Le2g, 30, 4d and sd ———- turret A (upper turret) 13 KY ferret B Gower turret) G14 For the machine equipped with only one saddle, designation of G codes used for turret selection is unnecessary. In the MDI mode operations, G13 and G14 codes are not used for turret selection but the and keys on the operation panel. ‘OKUMA MACHINERY WORKS LTD. 2452-B Po14 1-5-2. LS30-N, LH35-N and LHS5-N For two-turret models, selection of the turret is made by specifying a G code as indicated below: Front turret (turret A) Rear turret (turret B) (2) Hd + V6 (LS39-N, LH35-N) Rear turret (turret B) 14 Front turret (turret A) c13 (2) B4 + H4 (L839-N only) t A Rear turret (turret 5) Ta cis tte Front turret (turret A) ad G13 | s ‘OKUMA MACHINERY WORKS LTD. 2452-E P-15 (3) v8 + V8 (LHSS-N only) Rear turret (turret B) cis —~ Front turret (turret A) 13 For the machine equipped with only one saddle, designation of ¢ codes used for turret selection is unnecessary. In this Manual, the front turret is called "turret A" and the rear turret "turret BM. ‘OKUMA MACHINERY WORKS LTD. 1-5-3. 2452-B P-16-A5, LR Series For two-saddle models, Model 28, selection of the turret is made by spec- ifying a G code as indicated below G13 sees eseone Gls... Turret A s+ Turret B (a) iris ——> Turret A (upper turret) 613 | bod oo —— Turret B (lover turret) cls In the MDI mode operations, G13 and G14 codes are not used for turret ana (i) keys on the operation panel. selection but the ‘OKUMA MACHINERY WORKS LTD. 2452-E P-17 1-6. TOOL SELECTION Selection of a cutting tool is made by four digit figures following address character T. T 00 90 Tool Offset No.: 32 pairs (91 to 32) For two-saddle model, 32 pairs of tool offsets are used on the individual turrets. Tool No The number identifying the turret face position is used as a tool number. When the control features the tool nose radius compensation function, a T word comprises six digit figures. T 90 90 00 Same as above Compensation No.: The tool nose radius compensation number from G1 to 32 is spec~ ified. For two-saddle (turret) models, tool nose radius compensation numbers 1 through 32 can be used on the individual turrets. OKUMA MACHINERY WORKS LTD. 2452-E P-18 (1) Tool Number a) Leld As a tool number, specify the turret face position number indi- cated by a name plate. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-19-R5 >) Le2g/1.034/LC49/L050 Turret A Turret B Note 1: The illustration above shows the turrets of Model 28. Only turret A is available for Model 1S. Note 2: As a tool number, specify the turret face position number indicated by a name plate. ‘OKUMA MACHINERY WORKS LTD, 2652-E P-2g cc) LS39-N and LH35-N C As a tool number, specify the turret face position number indi~ cated by a name plate. 4) LHS5-N Rear V8 turret Front V8 turret | T L LW aD oa ros 4 hy + st 9 es z z rT 1] Z L. As a tool number, specify the turret face position number indi- cated by a name plate. OKUMA MACHINERY WORKS LTD. - 2452-E P-21-R5 e) L1G As a tool number, specify the turret face position number indi- cated by a name plate. f) uBi2 Note 1: As a tool nunber, specify the turret face position number indicated by a name plate. Note 2: Optionally, dodecagonal turret is available. ‘OKUMA MACHINERY WORKS LTD. 2452-E P22 g) LBS vi2 turret As a tool number, specify the turret face position number indi- cated by a name plate. ‘OKUMA MACHINERY WORKS LTD. bh) 1R15 Turret B Note 1: Note 2: 2452-E P-23-a5 Turret A As a tool number, specify the turret face position number indicated by a name plate. Tool numbers on turret A are 1 ~ 19 and those on turret B are 1 - & ‘OKUMA MACHINERY WORKS LTD. (2) Qa) «a 2452-E P-24-RA Tool Offset Number The control has a capability to compensate for the tool dimensions between those assumed in programming and those actually set. This function is called the tool offset function and it is called out by two-digit figures in a T code command. Programmable tool offset number is from "1" to "32", For two-saddle (turret) models, tool offset numbers 1 through 32 can be used on the individual turrets. For details of tool offset number, refer to 3-5, 3-3-2-3 of the Operation Manual. ‘Supplement or Tool Nose Radius Compensation Number (optional) The OSP5GUL-G/OSP5UQUL~G CNC system features the function to automati- cally compensate for the error in finished contour due to tool nose radius. To activate this function, specify two digit figures, 1 through 32, as addressing tool offset number following address character T. Example When the tool nose radius compensation function is not used: T 92 GL Tool offset number Tool number When the tool nose radius compensation function is used: T 93 G2 OL TT \___to01 offset number Tool number Tool nose radius compensation number In usual programming, tool offset number and tool nose radius compen sation number are taken as the same number as the tool number. T9101 7920202 ‘OKUMA MACHINERY WORKS LTD. () 3) 2452-E P-25-R5 Turret Indexing Direction (standard for L¢2G/1030/LC4d/LC5¢/LB1G/LB12/LB15/LR15, and optional for LH55-N) M Code Description Remarks M86 |The turret rotates in the direction in which the tool number shifts in the descending order as 4 — 3—- 2 —1. (Reverse) M87 | The turret rotates in the direction |The control is in the in which the tool number shifts in M87 mode when the con- the ascending order as 1 —~ 2—- | trol software tape is 3.—~ 4. (Forward) loaded. For the models featuring bi-directional turret indexing function, the rotation direction of the turret can be specified by M86 and M87. In addition, the control has the capability to automatically determine the turret rotation direction by setting a flag at a proper parameter. If this automatic bi-directional turret rotation function is set active, codes M86 and M87 are ignored even if they are programmed. Turret Shortest Path Rotation Control (standard for L620/LC3G/LC49/LC50/LB10/LB12/LB15/LR15, and optional for LH55-N) In the automatic or MDI mode operation, it is possible to select the turret rotation direction to index the commanded turret position via the shortest path from the current turret position independently of the turret rotation command (M86, M87) designated. For this function, set the parameters indicated below: a) Availability of automatic turret shortest path indexing control Parameter (bit) No. 3, bit 7 1: Available G: Not available (initial setting: 9) OKUMA MACHINERY WORKS LTD. b) Note Note Note Note 2452-E P-26-A3 Number of turret faces Parameter (word) No. 47: Number of turret faces on turret A a G-16 Initial setting: Setting range Parameter (word) No. 48: Number of turret faces on turret B Initial setting: Setting range : 9 - 16 1: Tf parameter (word) No. 47 and No. 48 are set at "G", the shortest path rotation control is not conducted even when bit 7 of parameter (bit) No. 3 is set at "1" and turret rotation direction is determined by the programmed M86 and M87. 2: While the turret shortest path rotation control is effective, turret rotation by manual operation (manual operation mode or operation during manual interruption mode) is automatically controlled in the forward direction unconditionally. 3: After the reset of turret shortest path control function, turret rotation direction is controlled by M86 or M87 designated before the shortest path turret rotation control is set active. 4: If the distance required to reach the commanded turret face is equal when the turret is rotated forward and reverse, then the turret is rotated in the forward direction. ‘OKUMA MACHINERY WORKS LTD. 1-7. 1-7-1, 2452-E P-27 SPINDLE SPEED SELECTION The selection of spindle speed range is made by a two-digit M code. The desired spindle speed within the selected spindle speed range is selected by a four-digit S code, expressed directly by the desired spindle speed. els On Model L1G, there are three different spindle speed ranges as indi- cated below depending on the selected specifications: a) 209 to 4500 rpm b) 133 to 3400 rpm ¢) 98 to 2249 rpm (optional specifications) As an optional specification, pulley changeable specification is available, which allows the selection of three different spindle speed ranges as 209 to 4509 rpm, 133 to 309 rpm and 98 to 2200 rpm by changing the spindle pulley. In this specification, the following M codes are used to specify the pulleys to be employed. Since these M codes are not cleared when power supply is turned off or the control is reset, program such M code only when pulleys are changed and it is unnecessary to provide the one on indi~ vidual part program tapes. Range Selection Available Spindle Speeds Mad 208 to 4500 rpm MA3 133 to 3090 rpm . Maa. 98 to 22068 rpm Spindle speed ~ transmission power diagrams are provided in the following pages. Since the cutting conditions must be determined so that intended cutting can be performed within the capacity of LCI, determine them referring to the diagrams. Wote the required pover will vary from material to material even when the cutting area is identical. ‘OKUMA MACHINERY WORKS LTD. P28 2452-E (mdz) posds orpurds (vou “sir) {49818 voqued ‘sir wonung Sz Da¥s raWnuiwnie vou ase wea piv: bee digs =e dz 7 s1 3 2 \ € ‘Lt HR @ ) : japaea *3u09 cf 2 (uy mes 5 Bip sence (Su}222 supe ge) i 99 ee ap) w-gaebe (8u pT) HSL = (Suyaea -quoo/-urm ge) (dy 6/91) MI $/S*L Oa ‘ujw/a ppt =) paeds Sutaqno 2 Coads waa pppe 03 Per :pTOI) (zm) (22ezpeeq x ano Jo yadeq) very Burra wea8etg uorsstusuery smog — peadg otpurds (1) paaatueuery ran0g OKUMA MACHINERY WORKS LTD. P29 3S (mdz) paads atpurds s wos! 3880 ‘Sir} (12818 voase9 ‘sir) =—ereerveeee winun S54 ors Runuiuniy — voi 155 aig Obs bbe POPE POE 0991 041 os de ode s 2 1 ] ¥ 2 | ; (4a 4) ms | 99 se 2 (4u gt) mt se surw/u got = 4 paeds Butz3n9 3B (gum) (#2ezpe—g x ano Jo yadeq) oxy Buz3aNg (Buraea -auoo/-urm ge) (dq L/OT) MX S/s7L Oa (ads dz ppcy 03 pz 21107) wex8e1q uorsstusuery remog - paads atpurds (oxy perayueueAT Tonog ‘OKUMA MACHINERY WORKS LTD. 2452-E P39 (ada) peads eqpurds (wou) 820Sip) (19818 voqze9 ‘sir ~ re1eW ung, szo4 vs unuwnyy vos! 1889) reais ohz2 _t6s1 p61 fis tee We 661 T z ' + 1 e | ° 2 l— a abe sh (aq 2) HS : a8 ae a au pT) mr see Gi (Buraea 3u09/-urm ge) (dq L/PT) MI S/S°L Od suyW/w ppt = A peads Suzana ae (cpeds mdz 9927 02 86 !9T91) (qm) (aavapeeg x n> Jo yadeq) Peay Surzang weafetq uorsstusuezy sam0g - paads atpurds (wa) pera Tasues, aem0g ‘OKUMA MACHINERY WORKS LTD. 1-7-2. Pover Transmitted (li) 2452-E P-31 Lez Example: Range Selection | Available Spindle Speeds To rotate the Mad 75_t0 1082 rpm spindle at 12 rpm, Maz 303_t0 4200 cpm program as: MAL S120 Note 1: With an M code spindle speed range to be used is selected, and an $ code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed = transmission power diagram provided below. And program should be made so that cutting is performed within a constant power range where practicable. Le2g 18: VAC 15/11 kW (20/15 hp) (3 min./cont. rating) Le2G 28: VAC 22/18.5 kW (39/25 hp) (30 min./cont. rating) 2 as a cr} 1s 22 kw (39 hp) Ta.5 i (20 mp) (as np) a £ Loe § ns | 2 tee a git Hy 4 Be tee | te 1 & la du § 36:6 tere Gis fe) . | 13.3 kg-m (96 ft-1b) NN | 9.8 tara (1 0-28) jae | | 75 100 250 —«588—« 0 7200 —= spindle Speed (rpm) ‘OKUMA MACHINERY WORKS LTD. 1-7-3. 2452-B P-32 L039 Example: Range Selection | Available Spindle Speeds To rotate the War 15 to 193 pm spindle at 120 M42 40 to 519 rpm rpm, program as: a3 86 to 1118 rpm Mad 230 to 3000 rpm Mul sad Note 1: With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed = transmission power diagrams provided below. And program should be made 80 that cutting is performed within a constant power range where practicable. Le3g 18 DC 22/15 kW (30/20 hp) (30 min./cont. rating) wr ™ rs oe fase > fa PR ews ott sew (20 bp) = Power Transmitted or 399 8 Spindle Speed, rpm ——— ‘OKUMA MACHINERY WORKS LTD. 2452-E P-33 L039 28 DC 30/22 kW (40/30 bp) (30 min./cont. rating) : a as 22. (38 bp) 7 2006 | Power Transmitted eS Spindle Speed, rpm ‘OKUMA MACHINERY WORKS LTD. 1-7-4. Lead Range Selection Available Spindle Speeds 2452-B P34 Example: To rotate the spindle at 120 rpm, program as: Mal si2g liar, 1236 A [ssete ccnp 25, ran p25, ue ad): 15 224M 6h) 18 MAL 1g to 189 rpm Maz Zito 487 rpm ra €éto 1187 rpm M44 177 to 2500 rpm Note 1: With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before conmanding « nev spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed ~ transmission pover diagram provided below. And program should be made so that cutting 1s performed within a constant power zange where practicable. Le4g 1 DC 30/22 kW (40/30 hp) (30 min./cont. rating) LC4G 28: DC 45/37 kW (60/59 hp) (30 min./cont. rating) ” eo “Ae Po. i oe eo 3009 BRB Shingle Speed, pm ‘OKUMA MACHINERY WORKS LTD, 1-7-5. 2452-E P-35, Les Example: Range Selection | Available Spindle Speeds To rotate the War 3 to 135 rpm spindle at 124 rpm, wa Tito 283 rpm program as: was 8 to 487 rpm Mad 38 to 1000 pm MAL S120 Note Note Note Les@ 1s With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed ~ transmission power diagrams provided below. And program should be made so that cutting is performed within a constant power range where practicable. DC 45/37 kW (60/50 bp) (30 min./cont. rating) 45 KW_G60 bo? 37 kW_GO Be) Torque Teansmicted we Spindle Spood, rps ‘OKUMA MACHINERY WORKS LTD. Pover Transmitted Les@ 28 De 55/45 Ki (76/69 hp) (30 min./cont. rating) 899 ke-m (5804 Fe-1b.) a 8 oe Spindle Speed, rpu 2452-E P36 fe2d. hem Torque Transmitted (OKUMA MACHINERY WORKS LTD. 1-7-6. 2452-E P-37 183-N Example: Range Selection | Available Spindle Speeds To rotate the MAT 25 to_165 rpm spindle at 126 rpm, waz 69 to 452 rpm program as: mas 138 to_915 rpm Maa 377 to 2500 rpm M41 si2g Note 1: With an M code spindle speed range to be used is selected, and Note Note an $ code consisting of up to four digits determines the spindle speed. 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed ~ transmission power diagram provided below. And program should be made so that cutting is performed within a constant pover range vhere practicable. DC 15/11 kW (29/15 hp) (39 min./cont. rating) 15 kW (20 hp) (30 min. rating) a Rs 11 kW (15 hp) (cont. rating) Power Transmitted, (kW) 25 109-209 59000880 Spindle Speed, rem a7 835 2500 uaa) === az 915 432 Solid lines indicate the spindle speeds range in which constant full power [11 kl (15 hp) or 15 kW (20 hp)] can be obtained. In the area indicated by dashed lines, transmission power varies as the spindle speéd changes. OKUMA MACHINERY WORKS LTD. 1-7-7. 2452-E P38 LH35-N Example: Range Selection | Available Spindle Speeds To rotate the WaT 29 to 157 rpm spindle at 120 rpm, M42 52 to 567 rpm program a: 13 86 to 84_xpm mad, 224 to 2208 rpm M41 si2g Note 1: With an M code spindle speed range to be used is selected, and an $ code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed ~ transmission power diagram provided below. And program should be made so that cutting is performed within a constant power range where practicable. DC 22/15 kW (38/20 hp) (30 min./cont. rating) 22 ik (30 bp) (30 min. rating) 15 ki (26 hp) (cont. rating) Power Transmitted (kil) 30 * Solid lines indicate the spindle speeds range in which constant full power [15 kW (20 hp) or 22 kW (30 hp)) can be obtained. In the area indicated by dashed lines, transmission power varies as the spindle speed changes. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-39 1-7-8. LHSS-N Example: Range Selection Available Spindle Speeds To rotate the MoT 1G to 135 rpm (ig to 160 pm) spindle at 12d Maz 21 to 286 rpm (21 to 330 rpm rpm, program as: a 36 to 486 rpm (36 to 575 rpm) waa, 75 to 1906 cpm (75 to 1200 rpm: M41 S129) 1009 rpm spec. ) se. 1208 rpm spec. Note 1: With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed = transmission power diagram provided below. And program should be made so that cutting is performed within a constant power range where practicable. DG 45/37 kW (60/50 hp) (30 min./cont. rating) 45 KW (60 hp) (8 min. rating) 37 KW (SB hp) (cont. rating) i be Spindle Speed, ri 2 igus) opus Gea F i951” “aadysr3) * =e ins) eps) m=. seus) asians * Solid lines indicate the spindle speeds range in which constant full power [37 kW (59 hp)] can be obtained. In the area indicated by dashed lines, transmission power varies as the spindle speed changes. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-4g 1-7-9. LBG Example: Range Selection | Available Spindle Speeds To rotate the M41 68 to 2109 rpm spindle at 12@ rpm, Maz 179 to 6009 rpm program as: ML S129 Note 1: With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed ~ transmission power diagram provided below. And program should be made so that cutting is performed within a constant power range where practicable. V7 9m 2 High range S806 roe 88 ror 66 r0m Ma Low range Ba2e0m | : 2101 rom savy bp 50 min. at W a " 18 Cone. dury 78 6 i & g1 0 1a 6000 Spindle Speed (rpm) ‘OKUMA MACHINERY WORKS LTD. 2452-E P-41-A4 1-7-19. 1B12 Selection of spindle is possible by directly designating a required speed following address character S$. The LBI2 does not have the transmission to change the spindle speed range and thus specification of M codes used for selecting the spindle speed range is not required. Progranmable spindle speed range: 65 - 3509 rpm 75 ~ 4209 rpm (optional) Example: To designate spindle speed of 2009 rpn s2000 3500 rpm specification: 29F 16.7 kg-m (121 ft-1b) ass, _ 15 (89 Feit) 9) Us ‘ 19, 22 tj 7-3 KY CG hp)38 min 13,3) g ae SSS WCB hp) cont 2 4) E eee: 5 Ee SE Ge) 6.6) ES Eb BS ‘a 3] g bz & (22 @ 4 goa 28 Saal Qn * i 1 a) aa) 299 50d 1990 2008 3400 apa Spindle Speed (rpm) ‘OKUMA MACHINERY WORKS LTD. 2452-E P-42-A5 4200 rpm specifications: 29) 45)! 13,9 ke-m (agi ft-1b) - = 15(29) 1.2 kg-m (74 ft-1b) \ id == ~. 19, wi U2 7.5 kW (19 hp)39 min (13.3) 33 — 7 Ba 5.5 KW (7.5 hp) cont 13,3) Ba 5 5 2-06) (6.6) ab 3| 3 oe (22) a ¢ 2 2 Bay 7 y 1 Q) 1.3) 9.7 (5.1) 79 166 209 50S 1009 2900 40905000 Spindle Speed (rpm) OKUMA MACHINERY WORKS LTD. Power Transmitted KW (hp) 2452-E P-43-R3 1-T-11. LBLS Example: Range Selection | Available Spindle Speeds To rotate the MGT 75 to 1040 rpm spindle at 120 rpm, Maz 75 to 4200 rpm Program as: M41 S12 Note 1: With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed = transmission power diagram provided below. And program should be made so that cutting is performed within a constant power range where practicable. 75 a a 20d 3652 a1 wa £200) as te} 2.5 bi 8 bp Pover Tranaaitted (ki!) ‘Torque Transaitted (kg-2) ‘OKUMA MACHINERY WORKS LTD. 1-712. 2452-E Pob4-AS R15 Range Selection ] Available Spindle Speeds M41 75 to 1986 rpm waz T2 to 6200 cpm Note 1: With an M code spindle speed range to be used is selected, and an § code consisting of up to four digits determines the spindle speed. Note 2: To change the spindle speed range while the spindle is rotating, stop spindle rotation once before commanding a new spindle speed range selection M code. Note 3: When determining the cutting conditions, spindle speed range to be employed should be determined referring to the spindle speed = transmission power diagrams provided below. And program should be made so that cutting is performed within a constant power range where practicable. 15/11 kW (20/15 hp) tea 66 kgcm (988.272 fe-1b) 36 ~ “6 i 3 30 38 e 20 NOS. 15 kW ct £ q 13.5 kgm (98 fet) Ss. Ss 1972 Gd Bp) 3 4209 4 i ip 16 saigach 072 é s Nh é R : e N 272 Ure 7 ° | I 1 2 2 mer M62 510d 200 309 “"iddo add" gad ——— spindle speed (xpm) ‘OKUMA MACHINERY WORKS LTD. Torque Transmitted (kg-m) Spindle motor: 22/15 kW (30/20 hp), optional 66 53.7 ke-m (388 fe-1b) 8 22 ew [30 19729 hp) (Ge Fe-iby ——~ Pover Transmitted (ka) 7519s 209 59 "100g adeg aaa ————5pindie speed (xpm) 2452-E P-L5-a5s 4295 CLZZZZZA ge} 2972 272 —z77 75 mal Maz OKUMA MACHINERY WORKS LTD. 2452-E Po46-R5 1-8. SPINDLE ROTATION DIRECTION SELECTION Spindle rotation direction, either CW or GOW, and spindle stop are com- manded by a two-digit M code. M93 rotation M@4 rotation Viewing spindle Spindle cw ¥g3 Spindle cow Mga Spindle Stop M05 Note 1: Clockwise (Ci) spindle rotation is in the direction to advance a right-handed screw into the workpiece. Note 2: Changing the spindle rotation direction directly from CW to CCW or from COW to CW is not possible for the following models. For these models, it is necessary to stop spindle rotation once by specifying MOS before changing spindle rotation. ‘OKUMA MACHINERY WORKS LTD. 2452-B P47 1-9. TAPE FORMAT 1-9-1, Program Process Sheet PROCESS SHEET N co | x) | aw | K F 8,7,M LF rs LF O10, LF NOL | CoG |xedd_|z2000 oF NggZ x250_| 2100 Mar oF NODS, 253 S120 M03 NGS_| LF NGG 243 oF nggs | Gol _|~x205, FO.3 LF Ngge | COG | _x250_| Z50 LF GST Zag LF NGG8_| COl_| x25 FU.25| LF nggs_[“Gdo_ | x230_| 258 oF NGG X19 LF NOTI_| CL ZB Ta LF NGI X20 LF GIS, zap oF NOIS | CA | x21 [749 LF NOIS, 196 LF NG1S | COL LF Shown above is an example of a program process sheet. It is a listing which details part programming instructions comprising alphabetic and numeric characters arranged in a definite programming scheme. With these instructions, operations of the machine are expressed. Each line of the process sheet starts with Sequence Number (N word) and ends with the LF code. A group of commands written in one line is referred to as a "block" and it describes one machine operation. Usually, the machine executes the programmed commands block by block in the order as programmed to produce a part. The steps preparing such program process sheet is called "programming". Note 1: The first block of each program must contain % (or ER) code which is directly followed by LF (or CR) code. Note 2: Programs should be identified by program name or number preceded by address character 0. Note 3: Each block of commands is separated by LF (or CR) code. This code must be provided at the end of each block without fail. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-48-R3 Tape Format When preparing a program process sheet, commands are expressed by the following codes in the specified format. Number of Digits in Tape Command Iten code Metric System Inch System Program name oO 4 4 Sequence name N 4 4 Preparatory function G 3 3 Axis movement command | x,Z | 45.3 (nm) #6.4 Cinch) I,K | +5.3 (um) 44.4 Cinch) LAP command eM | 5.3 Cam) 4.4 Cinch) E | 45.3 (um/rev.) t4e4 Cineh/rev.) 48 | 5.3 (deg. 4h (deg.) Feed command F 4.3 (am/rev.) 43.4 (ineh/rev.) Dwell command Fr 4.2 (sec.) 4.2 (sec.) Tool command 2 6 (or 4) 6 (or 4) Spindle speed conmand | $ 4 4 Miscellaneous function| 2 2 Synchronizing comand | P +4 +4 Note 1: Both alphabetic and numerical characters may be used in program and sequence names. Note 2: The word format for tool command is either T6 or T4 according to the availability of the tool nose radius compensation feature: 16 .....+.. with tool nose radius compensation function ™% . without such funetion Note 3: P word used for synchronizing execution of the commands is effective only for two-saddle specification of LC series lathes. ‘OKUMA MACHINERY WORKS LTD. 2452-E P49) Note 4: The above indicated figures show the number of digits used in progranming to express the command data in the unit indicated in 69s 45.3 (om) indicates that: Maximum programmable digits of command data are five left to the decimal point and three right to the decimal point when the data is expressed in the unit of "mm". Note 5: Maximum programmable conmand data are: +99999.999 mm sss... X, 2, 1, K, D, B, and L 9999.999 mm/rev. .... F (feedrate) 9999.99 sec. ........ F (dwell) ‘OKUMA MACHINERY WORKS LTD. 1-9-3. 2452-E P-5G-R Position of Decimal Point With the OSP5G9L-G/OSPSUGJL-G, a decimal point can be used in command data as a standard feature. Units of the data available with the control are shown below and selection of the unit to be employed can be done by entering a proper parameter data. Once the unit system of the command data is established, it applies to all numerical data to be entered, such as MDI operation and zero offset data. Note that for machine data such as zero offset, the data smaller than 1 ym cannot be set. Metric System 1am 19 um Lan Inch System 1/1990@ inch 1 inch Unit Data Table (Value for data "1") Metric System Inch System 1 pm 1d ym 1 mm MAUEE |) 3 dnew Length: X,Z,1, 9.001 5.0L 1 9.9901 1 K,D,H,L,0,W (om) (om) (mm) Gineh) (ineh) Feed (/rev): 4.001 9.91 1 9.d901 1 FYE (om/rev) | (mm/rev) | (mm/rev) | (inch/rev) | (inch/rev) Feed (/min): Bel 1 1 d.o1 a FE (mm/min) | (mm/min) min) | Cinch/min) | Cinch/min) Angle: 4.901 4.01 1 6.901 1 A,B,C (deg) (deg.) (deg.) (deg.) (deg) Time: G91 a 1 G01 z FE (sec) (sec) (sec) (sec) (sec) Spindle rpm: 1 1 1 i 1 s (rpm) (rpm) (pm) (xpm) (rpm) Surface speed: 1 1 1 1 1 s (a/min) (a/min) (m/min) | (feet/min) | (feet /min) OKUMA MACHINERY WORKS LTD. Example 1: 1 mm unit system Commanding: 1) 9.941 mm movement of X-axis 2) 19 mm movement of X-axis 3) 100.010 mm movement of X-axis 4) Feedrate of §.23456 mm/rev. Following commands are all handled as xL xL@ x1.d X1.000 Example 2: 19 ym unit system Commanding: 1) 9.991 mm movement of X-axis 2) 19 mm movement of X-axis 3) 199.916 mm movement of X-axis 4) Feedrate of J.23456 mm/rev. Example 3: 1 pm unit system Commanding : 1) 9.001 mm movement of X-axis 2) 1 mm movement of X-axis 3) 10.010 mm movement of X-axis 4) Feedrate of 9.23456 mm/rev. Note: 2452-E P-51 x9.051 xg x19d.91 FG. 23456 X1 mm: xG.1 xidde x1dg01 23.456 xL xigadg x1ddg1g 234.56 For F words, numerical data smaller than the selected unit system is effective if it consists of up to eight digits. F1.2345678 F199.990001 . Acceptable Alarm (9 digits) PROGRAM EXAMPLES PROVIDED IN THIS INSTRUCTION MANUAL ARE ALL PREPARED ASSUMING 1 mm UNIT SYSTEM. (OKUMA MACHINERY WORKS LTD. 2452-E P-52-A5 1-9-4, Position of Decimal Point for G.1 ym Specification (optional) Units of the data available with the control for G.1 ym specification are shown below and selection of the unit to be employed can be done by entering a proper parameter data. Once the unit system of the command data is established, it applies to all numerical data to be entered, such as MDI operation and zero offset data. Note that for machine data such as zero offset, data smaller than 1 pm cannot be set. Metric System G01 um Lum 19 um loom Inch System 1/199099 inch 1/19900 inch 1 inch Unit Data Table (Value for data "1") Metric System Inch System Wigsadd | 1/1ddIT | | Gtpm | Lum | dpm | 1 om tech Snen | 1 inch Length: 9.0001 | g.o01 | d.01 1 | d.gog01 | 6.0901 1 XG2,1,K, (um) (mm) (um) Gum) | Gneh) | “Gineh) | (inch) D,H,L,U,W Feed 9.0001 | d.001 0.01 1 | d.g9ds1 | g.d0g1 1 (/rev): (om/ (om/ (om/ (om/ (inch/ | Cineh/ | Cinch/ FE rev) rev) rev) rev) rev) rev) rev) Feed 0.51 G1 1 1 | 6.091 0.01 1 (min): (om/ (om/ (omy (om Gineh/ | Cinch/ | (inch/ FE min) min)} min) | min) min) min) min) Angle G.d0d1 | G.001 | G91 1 | ddd | gaan 1 A,B,C (deg.) | (deg.) | (deg.) | (deg.) | (deg-) | (deg.) | (deg. Time 4.001 G.01 1 1 | 6.001 G01 1 FE (sec) | (sec) | (sec) | (sec) (see) (sec) (sec) Spindle 1 1 1 1 1 1 1 rpm: (rpm) | (rpm) | (rpm) | (rpm) (rpm) (pm) (rpm) s Surface 1 1 1 1 1 1 1 speed: (a/min) | (m/min) | (m/min) | (m/min) | (feet/ | (feet/ ) (feet/ , 8 min) min min’ (OKUMA MACHINERY WORKS LTD. 2452-E P-53-R5 Tape Code The OSPS9GL-G/OSPSGGGL-G is designed to accept the instructions expressed in both EIA and ISO coding system. Information punched on @ paper tape comprises up to eight holes and com- bination of punched and non-punched holes expresses characters. One character contains: Odd number holes for EIA coding system, and Even number holes for ISO coding system ‘The control can automatically recognize the coding system when it reads in the taped data. For details, refer to 4-3-6 in the Operation and Maintenance Manual CAUTION COMBINED USE OF ISO AND EIA CODING SYSTEMS IN ONE PART PROGRAM TAPE IS NOT ALLOWED, BIA and ISO coding system conforms to the following standard: BIA .e.see. BIA RS-244-A ISO esss+ 180 R849 ‘OKUMA MACHINERY WORKS LTD. 2452-E P54 EIA/IS0 Code Chart EIA Code Nomere Charset ‘Numeric Character Turere Character ‘mer Chace ‘uranic Chavacter 4 Numeric Character Numeric Chater Numeric rect 7 ‘Numeric Crete ‘Numeric Creer 9 ‘Alphabetic Character A Alphabetic Charactor ‘Alphabetic Character ‘Aphabetle Character ‘Alphabetic Character € Alphabetie Character Aiphsbetie Chorecter G ‘Alphabtic Character ‘Alphabetic Chevecter ‘Aiphabstc Character ‘Aiphobetie Character K Aiphobetc CharoeterL ‘Aiphabstic Character Wi ‘Aiohabetie Character N ‘Alphabetic Charaeter 0 Alphabat Character > ‘Alphabet Ghsracter 0 ‘Algahbatc Character ‘Alphabetic Character ‘Alphabetic Character Alphabat CharecterU ‘Aiphsbetc Cheroeter V Alphaoetie Character W Aiphaoetie CharectarX Alphabetic Character Y ‘Aiphabste Character Z AS Boe Soe] 21>) ae lolol 2 1 2 3 4 5 6 7 = @ & B D = F © H L x K TL. Mt N o P ot lok lola} lo] loot TPs 4a sola Ns) = FJ) )2) lol lo} ek Dalle ar Symbol of Dao “Seace a Poot St End of Blok Carioge Retr Period Delete el rz) a5 | lo} a ele] alse Taner OAT Of Conver in ‘aii’ Syma OL | Svmboiof murianeion aly Sian [| Gucstion ware [Of Brace, cat Brace Right lototo] Caion a [O|-[Olo}O}s| [Oo | Semester DIGI [o} % he control ignores when used as cutting data~ ‘OKUMA MACHINERY WORKS LTD. 1-9-6. 2452-R P-55-A5 BIA Special Codes In making a program in the EIA code, some characters cannot be used because it does not have corresponding codes. These characters are "=", “#", etc. Therefore, to make an BIA coded program, it is necessary to replace such characters with other EIA code patterns temporarily. When such characters are read by the OSPSQGL~G/OSPSUUUL-G, they must be converted again to the original characters using the editing function. ‘The OSPSG/L-G/OSPS5YGGL-G has the function to automatically replace the such characters not supported by the EIA coding system in the stage of input to the OSP from paper tape and also output to a tape punch by setting them as the EIA special characters. Input/Output Example When EIA code NC tape is punched using character "Y" for symbol "=", it is necessary to set special code "Y" for "=" at the NC. Under such setting, the NC automatically reads character "Y" as symbol "= Tape NC V1=106 i "y" is automatically replaced with "=", To punch out the program on a tape in the EIA code, symbol " automatically replaced with " Nc VIY19G "a" is automatically replaced with "¥". Note: If the special code setting is made as explained above, character "y" is always used as symbol " ‘OKUMA MACHINERY WORKS LTD. 2452-E P-56-A5 Setting of EIA Special Characters ‘The characters which can be set as EIA special characters are the following five characters and a spare character. swt 1,8 Input and output of the spare character are always made after con~ verting it to the special code which is set for any arbitrary code, disregarding of EIA and ISO code system. These special codes are set at NC optional parameter (bit) No. 26 through No. 32 in bic pattern. NC optional parameter Set the EIA code pattern which substitutes (bit) No. 26 " symbol. Nc optional parameter | Set the EIA code pattern which substitutes (bit) No. 27 x" symbol. NC optional parameter | Set the EIA code pattern which substitutes (bit) No. 28 "(" symbol. NC optional parameter Set the EIA code pattern which substitutes (bit) No. 29 "]" symbol. NC optional parameter | Set the EIA code pattern which substitutes (bit) No. 39 "S$" symbol. Nc optional parameter | Set the code pattern (irregular code) which (bit) No. 31 replaces the character set at No. 32. NC optional paraneter | ASCII code to be replaced with the code set (bit) No. 32 at No. 31. (regular code) Input/Output of The Special ETA Codes (1) Output a) When an EIA coded program contains characters set as EIA spe~ cial characters, they are converted into and punched as EIA special codes accordingly. If all zeros (@) are set, an EIA code error (illegal character) occurs. b) When a program being punched contains the character "$", and a special code has been set for it, the file name is output in the EIA code. If not, the file name is output in the ISO code. ‘OKUMA MACHINERY WORKS LTD. @) (3) 2452-E P-57-A5 Input a) When special codes for special characters ("=", "*", etc.) are used in the BIA coded program being read in or verified, these special codes are converted into ASCII codes and then read in. This special code conversion is not effective if all the parameters are set at "g", b) When the first data of the EIA coded program being read in or verified is a special code for the special character "§", the character-string following character "$" is read as the file name. Input/output of Spare Character (in the BIA/180 code) a) During reading in, data coded in an irregular code is first converted into a regular code and then input. >) During punching, data coded in a regular code is first con- verted into an irregular code and then punched. ¢) The regular/irregular code conversion is not effective if all the parameters are set at "G". Note 1: Conversion from the special code to the EIA code is carried out for all special codes indiscriminately. Example: Tf the "91199991" pattern is set to convert special character "=" into EIA code "A", "A=B" punched in the special code is output as "AB". Reading this into the control causes "==B" to be stored. Note 2: The special code conversion is effective only in the PIP com- mand. It is not effective in the optional DNC mode. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-58. 1-19. DETERMINING CUTTING CONDITIONS Cutting conditions such as spindle speed, feedrate and depth of cut are selected more or less in the same manner as with a conventional lathe. With CNC lathes, these conditions are entered in a program process sheet using alphanumerics in the predetermined format. Formulas used to determine cutting conditions: rxDxa Y 1005 where, cutting speed, m/min circular constant (3.14) workpiece diameter, mm spindle speed, rpm Vxkxexé Be "75 x 60 Vxkxexé wi 6008 where, HP = required horse pover, hp KW = required power, kW V = cutting speed, m/min K = cutting resistance, kg/mm? Example: 209 for $45C (JIS, carbon steel) 126 for FC29 (JIS, cast iron) € = depth of cut, mm £ = feedrate, mm/rev. ‘OKUMA MACHINERY WORKS LTD. 2452-E P59 1-11. PROGRAMMING CODES AND WORD FORMAT (1 mm TAPE INPUT UNIT SYSTEM) Word Format Associated Information and Function or Code x Commanded at the beginning of a part program tape. (ER) 180 EIA LF Commanded at the end of each block. (cr) | LF (Line Feed) CR (Carriage Return) Oooo | Program Number or Program Name Entered at the beginning of a part program to identify respective programs. Program Number: Up to four numeric characters following address character "O" are used to indicate a Program Number. 6-3-3. 2452-E P-133, Program Process Sheet x O10e Ngdg | G13 Nagi [cod | xeae_[ 27d | Pid | waa 3250 TOG NGS Ndg2 x132_| 260 Mg Ngg3_| COL_[ x78 ¥.35 Nowa | coe | x156 | 263 NOUS: 229 nage | GOL_| 150 NggT 16s [730 Hi NOOB 128 Nada | CoO | xBI0_| 270 [Nore xII2 [263 T9292 Nou | Goi | x12 [259 [ Fg-4 KOIZ Z30 NGI3 x30 nga | cad | xeao_| 270 NOLS Pog | Hg WS NGS | 1a Nig1 | cod | xed | 2200 | PIG__| wa? 8259 TOIGI nos NIGz X92 | 265 ¥g8 wid3 [Goi | xed [259 | F925 NGG 218 N05 | Cod | x78 | 2100 N1G6 xegd_| 21000 999 waz 010d: Program name NGUG: Selection of turret A NGJl: End face cutting with the tool on turret A Ngdo NG19: OD turning with the tool on turret A NoL4 N15: Since no P2G command is presented in a program executed by the tool on turret B, this block is executed by turret A only. NIG: Selection of turret B Nig: ID turning with the tool on turret B nigs With the program above, simultaneous cut on end face and OD turning by turret A and ID turning by turret B is performed. ‘OKUMA MACHINERY WORKS LTD. 6-4. 2452-E P-134-A4 WATTING SYNCHRONIZATION M CODE (M1@) FOR SIMULTANEOUS cUTS Waiting synchronization of turrets A and B during simultaneous cuts can be commanded with M1g9. Example Program: pees eet ee el CdS X800_270 PIG a2 S259 T9101 MOS x132_260 MIG cdl x78 FO.35 Gia cod X80G 2200 PIT Na? 8259 TWIT _ MOS [x92 265 | vida Gol _X8__259 9.25 ¥109. comand matches timing Wi a ee of cuts. Points to consider when Using the M1@ Command: The following points should be considered when synchronizing operations with the M1dS command, (1) “The synchronization of $ and M commands cannot be performed with the M19 command. (2) The same number of MIGG codes must be used at both the G13 and the C14 sides in the progran If a different number of MIQJ codes were to be programmed into the G13 and G14 sides, operation would continue with no waiting time. (3) The insertion of an M199 command into a nose R compensation operation will result in an alarm. No advance program reading is conducted during a stop which has been programmed by an MIG@ command. The nose R compensation, however, requires advance program reading, and for this reason insertion of an M19 command in this operation is not permitted. * Nose R compensation (optional): See Optional Specifications Instruction Manual No. I. (4) Take special care not to mix P codes and the MIG@ command. Any attempt to stop one turret by use of an M1G@ command while the other turret is stopped due to a P code will result in operation con- tinuing with no waiting time at all. ‘OKUMA MACHINERY WORKS LTD. 2452-E P=135-R4 SECTION 7 BARRIER CHECK FUNCTION This safety feature is incorporated into the OSP5UJUL-G CNC System as one of the self-diagnostic functions. GENERAL DESCRIPTION With the advance of automation in parallel with wider use of numerical control for turning machines, rapid traverse, cutting speeds and spindle speeds are all stepped up to attain a reduction in cutting time. With their performance capabilities upgraded, however, there is an increasing possibility of every more serious accidents caused by tape program errors, operating failures and other faulty procedures. ‘The BARRIER CHECK Function has been developed specially for use with the OSP50GL-G/OSP5UQUL~G controlled turning machine applications to provide a reliable means or averting such trouble. It permits a chuck and tailstock barrier (a specific machine area in which any entry of a cutting tool is inhibited) to be established in the vicinity of a chuck and a tailstock by the data either on a command tape or those entered through MDI switches. If a tool is commanded to move into the barrier, the control automatically detects this alarm condition and stops the machine operation. For the two-saddle model, barrier is set for both A and B turret tools, to detect entry of tools into the set barrier. With this function, there is no possibility of the tool colliding with the chuck or tailstock, thus assuring safety in operating the machine to check the command tape, cutting a workpiece in MDI mode, etc. OKUMA MACHINERY WORKS LTD. 2452-E P-136-R2 7-2, CHUCK BARRIER AND TATLSTOCK BARRIER 7-2-1. Establishing Chuck Barrier ‘The chuck barrier function can set the inhibited area for tool entry around the chuck, that cannot be set by variable soft-limit position data. Activation or deactivation of the chuck barrier function can be selected by programming a proper M code. Therefore, check of tool motion using the chuck barrier function’ can be made only when required. 0D gripping ID gripping Sra L * | * 777TH Hm EH Point A | ——t Pi Programming j<—L_s Programming - Lu | |__cz TELZT A Chuck barrier: / Tool entry inhibited area Symbol Deseription Method L | chuck jaw length Optional parameter Cong word) No. 18 D | Ghuck jaw size Optional parameter long word) No. 19 Li_| Gripping length of chuck jaw | Chuck/tailstock barrier Di_| chuck jaw gripping face width | Chuck/tailstock barrier cx | Chuck gripping diameter Chuck/tailstock barrier cz | Distance from programming zero | Chuck/tailstock barrier For details of procedure to establish the chuck barrier, refer co 4-3-1, (2) of Operation Manual. OKUMA MACHINERY WORKS LTD. 2452-E P-137-R4 7-2-2, Establishing Tailstock Barrier The tailstock barrier can set the inhibited area for tool entry around the tailstock that cannot be set by variable soft-limit position data. End face of workpiece Programming zero Tailstock barrier: Tool entry inhibited ares (iaside the shaded area) The tailstock barrier is established by setting required data at parameters. Symbol Description Method L | Tailstock spindle length Optional parameter Gong word) No. 29 D | Tailstock spindle diameter Optional parameter Cong word) No. 21 Ll | Tailstock spindle length (1) | Optional parameter (long word) No. 22 D1 | Tailstock spindle diameter (1) | Optional parameter Gong word) No. .23 L2__| Tailstock spindle length (2) | Chuck/tailstock barrier p2_| Tailstock spindle diameter (2) | Chuck/tailstock barrier D3 | Tailstock spindle center Chuck/tailstock barrier diameter wR | Tailstock spindle position (z) | Chuck/tailstock barrier For details of procedure to establish the tailstock barrier, refer to 4-3-1, (3) of Operation Manual. OKUMA MACHINERY WORKS LTD. 7-2-3. 7-2-4. 2452-B P-138 Tool Movements and Alarm Once the chuck barrier is established, the barrier is activated or deac— tivated by programming a proper M code: M25 Chuck barrier ON M24 Chuck barrier OFF M21 Tailstock barrier ON M2G © Tailstock barrier OFF If the cutting tool is commanded to enter into the barrier while the chuck and/or the tailstock barrier function is active, it causes an alarm and stops the machine. Example of Program Nooo 25. Chuck barrier ow 21) (Tailstock barrier ON) Nooo M24, Chuck barrier OFF (28) (Tailstock barrier OFF) The barrier function is active for the blocks of commands from the block containing M25 (M21) to the one containing M24 (M29). Precautions a (2) Qa) “ When power supply to the control is turned ON or when the control is reset, the control is automatically set in the barrier off mode (M24 and M26 active). If the chuck and the tailstock barrier functions are desired to be active, command M25 and M21. The chuck and the tailstock barrier function is active for manual pulse handle mode operation or jog feed operation if M25 and M21 are effective. ‘The barrier is renewed when new barrier setting data is entered. When the Control tape No. 3 is loaded, it automatically clears the barrier data. Be sure to set the point data establishing the chuck barrier after loading the control tape No. 3. ‘OKUMA MACHINERY WORKS LTD. 7-3. 7-3-1. 2452-E P~139-R2 ‘TOOL INTERFERENCE CHECK With the two-saddle model of CNC lathes, there is a possibility of tools on A-turret and B-turret to interfere each other since these turrets operate independently. Interference between the tools is checked using the tool interference area set for individual tools and if an interference is detected, an alarm occurs (level A) and the machine is stopped. Programming 428 ..... Tool interference check OFF 29 Tool interference check ON x o1gg NG1dd G13 NG1G1 GOS X50I 2500 PIU M42 $250 TOIGI MOS M29 M28 Ng20d G14 N92G1 COG XAG 2449 PIG M42 S250 T9ID1 M93 M23. noagg [M28 Nosdd maz ‘OKUMA MACHINERY WORKS LTD. 7-3-2. 2452-B P-149-RG, Setting of Tool Interference Area The procedure to set the tool interference area differs depending on whether the graphic specification is selected or not. (1) For the control provided with monochrome/character specification The data to define the tool interference area is set in the TOOL DATA setting mode. Enter the tool interference area pattern and tool interference area setting data for each of the tools. The tool interference area pat- tern is selected from the OD tool pattern and the ID tool pattern. The tool interference area is defined by four lines. See Fig. 7-1 below. Tool reference point PN=2 2N Tool reference point Pattern No. 1 (for OD Tools) Pattern No. 2 (for ID Tools) Fig. 7-1 Tool Interference Area Pattern and Area Defining Data PN: Tool interference area pattern selection number 1 2 for OD tools for ID tools ZN: Position of the area defining line in the negative direction of Z-axis in reference to the tool reference point 2P: Position of the area defining line in the positive direction of Z-axis in reference to the tool reference point XN: Position of the area defining line in the negative direction of X-axis in reference to the tool reference point XP: Position of the area defining line in the positive direction of X-axis in reference to the tool reference point (OKUMA MACHINERY WORKS LTD. 2452-E P-141-R2 TOOL DATA SET Page 1 Aturres TOOL INTERFERENCE CHECK Ce + TOOL HO, 1 PRTTERN 90, PNT | Pr Be 5. pont | ze 371 » i arent | arene Procedure for setting tool interference area in MDI operations: a) ») ©) a) e) 3) a) Press the TOOL DATA key to set the TOOL DATA SET mode. Press the function key [¥7] (ITEM}) to display the *TOOL INTERFERENCE CHECK DATA¥ page. See the CRT above. Press the key to select A-turret. or {Ep] key to display the page ez) listing the tool number for which the tool interference area is to be set. Press the Press the key to designate the data to be set. Press the function key [F1] (SBT) and key in the desired data Press the WRITE key. Repeat steps c) through g) to set the necessary tool interference area setting dat. For the tools on B-turret, set the data in the similar manner. ‘OKUMA MACHINERY WORKS LTD. (2) F2N Pa 2US2-B P~142-R4 Procedure for setting tool interference area using program: Designate tool interference area setting data for individual tools using the system variables indicated below: VTIPN[T] = Pattern No. (1 or 2) VTIZN[T] = Value 2N in Fig. 7-1 (6 - 9999.999 mm) vrizp[t] = Value 2P in Fig. 7-1 (9 - 9999.999 mm) VTIXN[1] = Value ZN in Fig. 7-1 (J - 999.999 mm) viixr[1] = Value XP in Fig. 7-1 (9 ~ 999.999 mm) I indicates a tool number. Note: For the color/monochrome graphic specification, the inter ference area data set for individual tool kind number is automatically used as the interference data of them and thus these system variables cannot be used. For the control provided with the color/monochrome graphic specifi- cation No special operations for setting the tool interference area data is required since the tool interference area data is registered with the tool shape data. Selection of the tool shape in the TOOL DATA SET mode automatically selects the interference area setting data. However, if the change of the registered data is required, it is possible in the parameter setting mode. Tool interference pattern and tool interference area setting data are registered with the tool kind number. The tool interference area pattern is selected from the OD tool pattern and the ID tool pattern. The tool interference area is defined by four lines. See Fig. 7-2 below. Tool reference point Tool reference point FXN ttern No. 1 (for OD Tools) Pattern No. 2 (for ID Tools) Fig. 7-2 Tool Interference Area Pattern and Area Defining Data ‘OKUMA MACHINERY WORKS LTD. 2452-E P-143-R3 The tool kind number is determined from the tool code and from code for individual tool numbers, and the tool angle. See Tables 7-1 and 7-2. Tool No. 12) Tool Code Cup to 26 types) Tool Kind No. 51) Form Code [7] Gup to 4 types), [>] Tool Angle (up to 6 types) t___,__ These are set in the tool form selection step. For details of the selection of the tool shape, refer to Section 24, “Color Graphic CRT Display" in this Programming Manual. ‘OKUMA MACHINERY WORKS LTD. 2452-E P=144-R2 FARAMETER SET Test.mn & Pose 2 as a TERE INTERFERENCE FQSETER manor. PN FE FL 7 =~ 2 2 é 8 EDEDED Procedure for changing the tool interference area setting data in the MDI mode: a) Press the PARAMETER SET key to set the PARAMETER SET mode. b) Press the function key [F7] (ITEM }) to display the TOOL INTERFERENCE PARAMETER page. c) Press the or |C#J) key to display the page which con- tains the desired tool kind number. One page contains 12 tool type numbers and a total of five pages are available (1 to 12, 13 to 24, 25 to 36, 37 to 4B and 49 to 60). 4) Use the tool kind number. e) Use the e) or be changed. key to locate the cursor on the data to £) Press the function key [Fl] (SET) and key in the desired data. &) Press the WRITE key. Repeat steps c) through g) to change the tool interference area setting data. In this operation, A and B TURRET selection may be ignored since the data is registered with the tool kind number. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-145-R2 Table 7-1 Tool Kind Number Selection Chart by Tool Code and Form Code Fora Code (aay 1 2 3 ‘ Toot Code (1-26) 1 [rove 0 —[c09,2,3,4,5,6 8,9 (22), 23, 26,25, 26,27 2 |noucw 10 —|c36),37,38,39,40,41] 42) 69,40, 3 Jnoven race 4 (1),2,3,4,5,6 |(22),23,24,25,26,27|(49),59,51 ¢ [rovon op ~|(10),11,22,13,14,15](7),8,9 3 [rover 1 —|caa) (469,47, 48 6 | novon race ¢ [(36),37,38,39,40, 61| (16),17,18,19,20,21|(49),59,51 7 [rants on —|(1),2,3,4,5,6 [7.8.9 (22), 23,26, 25,26,27 8 | runrsn 10 ~[(36),37,38,39,40,41 (42) (46), 47,48 3 [Puvtsm mace [1.23456 |(22),23,26,25,26,27 1g [ervtsn op =[¢19),11,12,13,14,15]¢79,8,9 u1 [riwisa [cay (46),47,48 12 | etwtsn Face. t [(36),37,38,39,40,41| (16),17,16,19,20, 21| (499,50, 51 13 | rireao op —[(39) 48,9 14 | ranean x0 — [aay 15 | ruweao race y [a1 49), 50,51 16 | mrean ov —[(39) (29,89 17 [ranean 1 —|(64) 18 | ranean race ¢ (31) (49),50,51 19 | Grove on 4 |¢28) 8,9 oa 20| crove 1 + (45) en 21 | cnove race —[(29) en 22| perutuss —_[033),36,35 23 | DRILL, CARBIDE [(33),34,35 24 | pares, center |¢32) 25|necess on [(1),2,3,4,5,6 _[(22),23,24,25,26,27 26 | recess 10 [(36),37,38,39, 49,41 Numbers in ( ) in the table above are the tool kind number displayed as a default on the guidance page for the tool for selection in TOOL DATA setting operations. ‘OKUMA MACHINERY WORKS LTD. 2452-E P~146-R2 Table 7-2 Tool Kind Number Selection Chart by Tool Angle Rd vo Conditions Remarks 1 | 78° gai ¢ 96° = a2 2 | 69° < al < 78° L 3 | 54° Sal < 60°, 3° < a2 < 99° 4 | 54° Sal < 66", oP < a2 < 3° 5 @ < AL < 54°, 3° < a2 < 99° Al: Tool angle Ad: Edge angle 6 @ < Al < 54°, °K a2 < 3° Lt Sticking out 7 | 60° Sal < 189° Tool angle Lt Sticking out e | sae cal < 69° L 9 go < al < 54° Z ig | 78° < al ¢ 90° x un | 6? gal < 78° 7 al 12 | 54° £ Al < 60°, 3° < a2 < 99° 13 | 54° Cal < 6g", O° car eae 4 su, 3° = Al: Tool angle 4 42, 8° CAD ° 2 < 90) Ad: Edge angle s 3a°, Lt Sticking out 16 | 78° < al < 99° a2 17 | 6° < a1 < 78° 1g | 54° £ Al < 69°, 3° < a2 < 99° 19 | 54° J AL < 60°, G° <2 ¢ 3° = 4 mo @ CAL < 54°, 3° ¢ a2 < 9g? Al: Tool angle Al: Bdge angle 2 OAL < 54°, O° Car < 3° Lt Sticking out ‘OKUMA MACHINERY WORKS LTD. 2452-E P-147-R2 Tool e3 pean ae, Conditions Remarks 22 78° < Al < 99° le L = 23 oo? < 78° 2 54° SAL < 60°, 3° < a2 < 99° a 25 | sae Kat < 60%, @ Car C3 A 6 O AL < 54°, 3° < a2 < 99° Al: Tool angle Ad: Edge angle 27 OAL < 54°, O° Car < 3° Li Sticking our 36 99° < Al < 120° St Tool angle D: Drill dia. a5: o@ NOG1 G14 NOO2 COG x2 22 Mga NGG3 G13 NOs God x2 22 MOB With the program above, ‘the spindle rotates in the reverse direction when M@3 in NJG2 is executed. MQ3 in NJ@4 calling for spindle for~ ward direction rotation causes NC alarm "Mg3/Md4 CHANGE", OKUMA MACHINERY WORKS LTD. 2452-E P-191 (6) When a programmed cycle is to be repeatedly executed using "GOTO" statement, care should be exercised on the following point: NUL GOs xX ZL NOO2 Chl x2 722 F.S.T.M NGg3 G14 NGOS GHG x3 23 NGOS GOTO NOGI when the program above is executed, the first cycle of the commands in blocks NGG1 and NGQ2 are executed with the tool on turret 4 (G13): in the second and later cycles, those commands are executed with the tool on turret B (G14). This is because "GOTO NOGL" does not reset the control and G14 designated in NQJ3 remains effective for the second and later cycles. It is necessary, therefore, to designate G13 or G14 in the first block of repetition when the cycle is repeated using "GOTO" statement. 14-3-3, Cutting Program rurret 3 2 or a Isa c é > 6 F . rs 2 4) surret A 4n example of a progran for the workpiece as shown above is provided. When cutting is carried out by the tool on turret A, cutting edge of the tool traces the path A-B-C-D-E~. To the contrary, when cutting is carried out by the tool on turret B, it traces the path A'-B'~C'-D'-E'—. Ngg1 Gls G14 is necessary when Nag2 COG XA ZA S309 T9IG1 LF turret B is used. Ngg3 col 2B FG.2 M03 LE Nags xe LF NOgS xD 2D LE Ngg6 ZB LE NOG? co2 xf ZF ro OK LE NggB Gol 2G Le Ngo cod XH ZH M5 OF ‘OKUMA MACHINERY WORKS LTD. 2452-E P-192 14-3-4, Cutting Operation Axis and turret operations are explained below for turret A and turret B, respectively. a (2) Turret 4 When the program does not contain Gl4, cutting program is executed by the tool(s) on turret A (G13). The commands in N@G2 select tool number 91 and tool offset number G1 of turret A. N93 in NdQ3 rotates the spindle in the forward direc~ tion and cutting is performed along the path A-B-C ... as shown in the figure in 14-3-3. Turret B When the program contains G14, cutting program is executed by the tool(s) on turret B. The commands in N@J2 select tool number G1 and tool offset number G1 of turret B, Md3 in NUJ3 rotates the spindle in the reverse direc— tion and cutting is performed along the path A'~B'-C’ ... as shown in figure in 14-3-3. For arc cutting called for by the commands in NG@7, direction of cutting is also reversed. OKUMA MACHINERY WORKS LTD. 2452-E P-193-R5 14-4, MACHINE OPERATION AND DISPLAY 4-1. 1-4-2. Operation Panel Selection of the turrets, A and B, for setting and display of actual po: » zero offset and tool offsets can be made by pressing the key. Display of Mirror Image: While the mirror image function is active, message "MIRROR IMAGE" appears at the top of the CRT. Zero Offset For details of Zero Offset, refer to the Operation Manual for OSP5GUL-C/ OsPSdG0L-c. For mirror image, select turret A or B first by using the and keys. After that, set the zero position for respective turrets. Setting Zero Offset Setting Zero Offset for Turret A for Turret B Select turret A by Select turret B by pressing the pressing the key. key. >> Set zero offset value in ordinary manner. Completion of Zero Offset Setting ‘OKUMA MACHINERY WORKS LTD. 2452-E P-194, 14-4-3. Tool Offset For setting tool offset, also refer to the Operation Manual for OSPSGGL-G/OSP5GQUL-G as in setting zero offset. Selection of the turret is made using the proper turret selection key as in setting zero offset. Setting Tool Offset Setting Tool Offset for Turret A for Turret B Select turret A by Select turret B by pressing the pressing the key. key. 1 Set tool offset value in ordinary manner. Completion of Tool Offset Setting ‘OKUMA MACHINERY WORKS LTD. 2452-E P-195-R5 14-5. OTHERS a @ Designation of turrets A and B On lathes having flat bed, models LS39-N, LH35-N and LHSS-N, the front turret is the turret A and the rear the turret B, On lathes having slant bed, model LC and L&, the upper turret is the turret A and the lower the turret B. Sequence re-start On two-turret model, there are following restrictions on the turret for sequence re-start operation. The turret on which sequence re-start is active is curret A when the block where sequence re-start is to be performed is in G13 mode, and turret Bif it is in G14 mode. Sequence re-start is not active on the other turret. It will be very dangerous if sequence re-start is activated on both turrets on two turret model. Therefore, it is necessary to follow the steps below to activate sequence re-start on both turrets. Ngg1 613 Nog2 COG XL zl TUL NOg3 G14 NOU4 GIG x2 22 THIOL NOS G13 Node CHG XB 23 Ngg7 x4 24 T9202 ngs G14 NOG GUS XS 25 Nos X6 26 When sequence re-start is activated from NOG7, Tl on turret A is indexed since block N§@6 is in G13 mode. When sequence re-start is activated from NGI, T1 on turret B is indexed since block NG9 is in G14 mode. To activate sequence re-start from NO1J with proper tool number on turret A indexed, index the turret A to the desired position by entering the proper T command through the MDI keyboard and then per- form sequence re-start operation from NOIG. CAUTION. Turret indexing position is different from the progranmed position, ‘OKUMA MACHINERY WORKS LTD. 2452-E P-196 14-6. PROGRAM EXAMPLE Progranming Example with T§4 Tool ‘104 (rear turret) on Rear Turret (LH35-N) no}o] x | 2 Jax] |syr,mu] ur z iF O1dgd LF Ngg1 [Cie LF x35 S08 Nad2 | CAO | Co55y | 2200 toags [LF gs N93 xog | 2193 moa {1F NOGS_| COT 280 Fag oF NOGS, XIgT, LF NOG6. x139_| 250, LF NOT, 230 LF NGOS x55 LE x35, Mas Nava | cad | (353) | 2200 wo (LF WAG mg? [oF Note: For LS-N, program the dimensions in ( ) in NO@2 and Ngg9. qa) (2) (3) «a Program assuming 104 is on the front turret. Select the turret by G14, Spindle rotation command must be M3. Program should be made in ordinary manner. Other cautions: a@ «@ Select the turret by G13 and Gl4 for are and thread cutting opera~ tions as in straight line and taper cutting operation. G13 and G14 must be programmed in a block without other commands. ‘OKUMA MACHINERY WORKS LTD. (3) @ () 2452-E P=197-R5 nggi_ | Gia LF woo2 | ca | x335 [2300 Sam | m93 | ur Tas x0 [ze F coo [x335 [2390 Mg LE NOSO* | C13 Le xosi* | egg | x270 | 2390 S308 | mas | ue * TE 70393 in N@51 is not programmed, the tool number and tool offset number effective in the preceding G13 mode automatically becomes effective. * When N, G, F, $ and/or M command is not programmed, that programmed previously becomes effective. (X and Z words become ineffective.) When neither G13 nor G14 is commanded, the control automatically selects turret A. Turret indexing can be made at any desired position both on X- and Z- Select the turret index position where interference will not occur. If G13 or C14 calling for turret change is programmed while incre- mental programming mode, constant cutting speed mode, LAP mode and tool nose radius compensation mode, an alarm results and machine operation stops. ‘OKUMA MACHINERY WORKS LTD. SECTION 15 USER TASK 1 15-1, OUTLINE OF USER TASK FUNCTION After yeare of work in data processing, we at Okuma are now able to provide our customer with the most efficient use of high data processing capacity in OSP50GL~G/OSP5000L-G. We have accomplished thie in the development of User Task Function. The biggest advantage of the user task function is that various operation functions and variables can be used. In addition, the use of control sta- cements assure versatility in the user task function. User task function has two kinds: 1) User Task 1 (standard) 2) User task 2 (optional) "User Task 1" as detailed in this manual, permits the use of arithmetic operations, variables, and control statements. However, User Task 1 is mainly provided to enable continuous automatic operation by controlling peripheral equipment such bar feeders, loaders and robots. We have also included funetions to control scheduled machine operations which allow various workpieces to be machined according to the progranmed schedule. "User Task 2" is the authentic user task function with arithmetic opera~ tions, variables and all control statements. Functions available with User Task 1 are all contained in User Task 2. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-199 15-2. FUNDAMENTAL FUNCTIONS OF USER TASK ‘There are three fundamental user task functions as indicated below: (1) Control Statement Functions The statements to control the execution order of programmed sequences, such as "IF" and "GOTO" which are easily understood, can be used. (2) Variables In normal programming, numerical data directly follows the address characters such as X, Y, and Z. Instead of numerical data, a variable expressed by alphanumerics can be assigned to the address characters, and actual numerical data are assigned to the variables in respective programs. This feature provides program versatility and flexibility. Example: Word used in conventional When a variable is used: progran PI XP1=135 Tt Variable name Numerical data (alphanumeric) is assigned. K135 (3) Arithmetic Operation Function This function allows arithmetic expressions to be directly programmed as a word data. Example: Word used in conventional When arithmetic operation program: function is used: K135 X= 100+ xP2 xP2 = 35 Provided in later pages are the detailed descriptions of respective fundamental user task functions. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-290-R5 15-2-1. Control Statement User Task 1 can use following two control statement IF coro Program these control statements either at the beginning of a block or right after a sequence name designated at the beginning of a block. Be sure to provide either a space or a tab code following the sequence name or a control statement as a delimiter. If not, an alarm results. For "IF" statement, it is not necessary to provide a space or a tab since it is followed by "left bracket - [ Example: N10G1 GoTo.N2gad A space or a tab code nap icoro/NLar2 The element consisting of more than one address characters (A through 2) such as a sequence name and a control code must be followed by either a space or a tab code. Note 1: Sequence Name A sequence name is the code to identify respective blocks in a program, and it consists of four alphanumerics following address character N. There are two types of sequence nam <\> , and <> "Sequence name" Sequence names. handled in this manual refers to both types of OKUMA MACHINERY WORKS LTD. 2452-E P-2G1-R5 15-2-1-1, GOTO Statement - Unconditional Jump GQ) Program Format L Sequence name of the block where jump is to be made and it must be programmed without fail. Indicates "GOTO" statement. Sequence name of this block and it can be omitted. Note: Sequence name for jump must be the one in the program con~ taining such control statement. (2) Function When the control statement is executed, jump to the programmed block, is made unconditionally. Note: On two-saddle models, jump from the program for A saddle to the program for B saddle or vice versa is not allowed. 15-2-1-2. IF Statement ~ Conditional Jump (1) Program Format a) u ———— Cinis is the to which jump is made when is true. This must be programmed without fail. | _Jump instruction to be executed when is true. May be omitted. There are two possible states for the result of the , "true" and "false". must be expressed in [ ]. Indicates "IF" statement. L____ Sequence name of this block and it can be omitted. (OKUMA MACHINERY WORKS LTD. 2452-E P-2G2-R5 b) . — Dine name of the destination block of jump to be executed when the local variable is defined. Jump instruction to be executed when the local variable is defined. This can be used instead of . Jump does or does not cecur depending on whether the local variable is defined or not. (2) Funetion a) When the is true (Example 1) or when the local variable is defined (Example 2), execution of the sequence jumps to the sequence . b) When the is false (Example 1) or when the local variable is not defined (Example 2), the following sequence is executed. Example 1: N1GVGUIF [V1LEQu11.N2000 oF NIGOVLIF [VILEQ.IG] 2000 Means “equal (=)". Jump is made to N29 when variable VI equals 19 (V1 = 19). When V1 is not equal to 10, the following block is executed. Example 2: N1GGGLIF ABC GOTO N20 or NIGSGUIF ABC N2d0d Local variable If Jump is made to N29 when local variable ABC has been defined. If not, the following block is executed. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-203 15-2-2. Common Variable There are two types of variables used with User Task 1: = Common variable = Local variable ~ System variable ‘These three types of variables differ in their use and characteristics. 15-2-2-1, Common Variable The term "common" of common variables can be literally understood as common; they are common to main and sub programs. When the same variable is used in two or more programs, the variable number used in those programs must be identical. Therefore, the common variable, the result of calculation in one program, can be referred to from other programs. (1) Program Format = numerical data or expression Designation of a common variable is made with up to two digits following "Vv", Usable common variable is V1 through V32. In a program, a common variable is used as: NIGluV5 = 10, or WIluVS = V5 +1 Note 1: Common variables are used in common to A-saddle and B-saddle. Note 2: Common variables are effective both in a main and a sub program. Note 3: Common variables are not affected by control reset or power turning off operation. That is, the data are retained unless they are reset or a control program tape is loaded. Note 4: Common variables can be set or changed by setting a parameter besides setting or changing them in a program. For detailed information of parameter setting, refer to Instruction Manual for OSP509L-G/0SPS5IGGL-C. ‘OKUMA MACHINERY WORKS LTD. 2452-E P20 15-2-2-2. Local Variables 4s may be known form the term "local", local variables are the variables that a user can set as desired with a name easy to distin— guish from each other. Up to 127 local variables can be used for A~ saddle and 8-saddle, respectively. a Q) Program Format = Numerical data or expression and "V" cannot be used. Example: 'DIA1' 'ITHS' The same name as relative operators, detailed in 15-2-3, and extended address characters(%1) cannot be used. “1: Extended address characters are used for LAP, pat tern processing, user fixed cycle and other ex- tended functions which cannot be covered with conventional address characters A through Z. Extended address characters are: , AB>, , , , , , , , , , , , , , , , , , , <2A>, , ,
Characteristics of Local Variables a) Local variables can be used independently on A-saddle and B- saddle, and are cleared when the control is reset. b) When a new local variable is set in a main program, that is, when data is assigned to a new local variable name, that local variable name and corresponding data are registered in the memory. Tf a local variable name is used without assigning the data, an alarm results. c) When new data is assigned to the local variable already registered with another data, that old data is renewed. Main program In N@G1G, numerical data "160" is assigned to local variable name "DIAI", which remains effective up to Ngd1G DIAL = 169 sequence NGG49. In NGJSG, new 5 numerical data "2g" is assigned to Ng949 the same local variable name "DIAI". NGGS@ © DTA2 = 209 This clears the old data "16@" and it is substituted with the new data "oda". OKUMA MACHINERY WORKS LTD. 2452-B P-205, 4) Up to 127 local variables can be used on A-saddle and B- saddle, respectively. 15-2-2-3, System Variables System variable means the variable specific to respective systems and its name is fixed. The system variables are set for respective turrets independently and not cleared when the control is reset. System variables available are: = Zero offset variable = Zero shift variable = Tool offset variable = Nose radius compensation variable - Tool interference data variable - Variable soft-limit variable - Chuck barrier variable - Tailstock barrier variable - Droop variable - Pitch error compensation variable - User restart variable - Alarm comment variable These variables can be set, changed and used in a program according to the format detailed later. Therefore, they can be effectively used in programs requiring them, such as work gauging program, tool gauging program, and post=process gauging program. They, of course, can be set by selecting ZERO SET, TOOL DATA or PARAMETER mode. For details of setting procedure, refer to the Operation Manual for OSP5UGL-G/OSP50G0L-G. System variables are detailed hereinafter: Fundamental Program Format of System Variable System variable . + <> LL cacsre string in this part is determined and the use of illegal character string causes alarm. All the system variables are pre- ceded by character "V". ‘OKUMA MACHINERY WORKS LTD. ») cS) 2452-E P-206 a) Zero offset variable Variable name g Zero OFfset of Z-axis Lan Lemmons es} ss ok em tein emcee + Zero OF fset of W-axis (only for programmable tailstock specification) Zero OFiset of C-axis (only for multi-machining model) When setting a variable, designate as VZ0FZ = 12364.256 Zero shift variable Variable name + Zero SHIEt of Z-axis 22.424, Zero SHIFt of X-axis SUXSHX> 22.4... Zero SHIFE of C-axis (only for multi-machining model) When setting a variable, designate as VZSHZ = 54. These zero shift variables deal with shift amount set by zero shift operation called by G5J, and the set shife amount ie cleared when the control is reset. Tool offset variable Variable name [Tool Offset No.] Tool OF fset of Z-axis [Tool Offset No.] Tool OFfset of X-axis When setting a variable, designate as vr0rZ [5] / ‘This indicates that tool offset amount of Z-axis for #5 is set -634. (OKUMA MACHINERY WORKS ITD. 2452-E P-207 4) Nose radius compensation variable Variable name [Nose R Compensation Now] |__________noSe Radius compensation of Z-axis [Nose R Compensation No. ] NoSe Radius compensation of X-axis When setting a variable, designate as VNSRZ [4] = @. \ This indicates that nose radius (in Z-axis) of the tool assigned with nose radius compansastion no. 4 is set to J.8 mm. e) Tool interference data Pattern 2 ZN oP. is 2M, 2P yy Pattern 1 ‘OKUMA MACHINERY WORKS LTD. £) 2452-E P-298 Variable name [Tool No.] Tool Interference on Z-axis at Negative end; ZN [Tool No.] Tool Interference on Z-axis at Positive end; ZP [Tool No.] ..... Tool Interference on X-axis at Negative end; XN SVTIXP> [Tool No.] ..... Tool Interference on X-axis at Positive end; xP [Tool No.] ...-. Pattern Number Note: For the control equipped with the graphic specification, tool interference data is automatically determined from the projection amount, tool diameter set on the TOOL SHAPE selection page and the tool interference variable data. Therefore, if tool interference data is changed using the tool interference data variables, the data is not effective. Variable soft-limit variable Variable name ..+.4++, PositiVe Limit on Z-axis « Positive Limit on X-axis Negative Limit on Z-axis ++ Positive Limit on W-axis (only for programmable tailstock specification) + Jaw dimension L1 Jaw dimension DI + Jaw position Cz + Jaw position Cx ... s+++ Center dimension L2 . ++ Center dimension D2 ++ Center position D3 s+++ Workpiece end face These variables should be set in reference to be programming zero. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-219 h) Droop variable Variable name . . IN Position of Z-axis + IN Position of C-axis i) Pitch error compensation variable Variable name ... ++ Pitch Fillup Value Z-axis ...2+.2++++ Piteh Fillup Value X-axis .. + Pitch Fillup Value C-axis .. + PitCH Z-axis + PitCH X-axis These variables are used only for the pitch error compensation specification. j) Restart variable Variable name + Restart This indicates the restart state in the sequence restart operation. {@ Not in restart In restart Example: N1GG IF [VRSTTUNE LB). N200 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-211 k) Alarm comment variable Variable name User Alarm CoMment User alarm comments up to 16 characters can be designated. yuacm(1] - vuacm{ 16) Example: N2@2 WuACM{1] = ‘ABC’ N23. VUACM[4] = 1123! N24 voUT[991] = 999 4n alarm with the comment is generated as indicated below when the program shown above is executed. Alarm ¢ 999 User reserve code 999 ABC=123 voour[*] is an output variable and level of alarm to be generated is controllable by the number to be set at *. Alarm ¢ Alarm B #2993: Alarm A ‘OKUMA MACHINERY WORKS LTD. 2452-E P-212 + Arithmetic Operation Function Arithmetic operation using variables can be performed. Its programming may be done in the same manner as general arithmetic expression.
, , = ‘The expression in the right-hand side, requesting arithmetic operation, is made from constants, variables, comparison expression, and operators. 15-2-3-1. Arithmetic Expression Operator Meaning Example | Rule and Remarks + Positive sign 41236 - Negative sign 1234 + Sum (addition) 12.3 + V1 - Difference (subtraction) | x=12.3 - V1 * Product (multiplication) | x=-vig * 10 / Quotient (division) xeVll / 19 15-2-3-2. Comparison Expression Operator | __Meaning Example Contents Rule ur | (less Than, <) | IF [vitTU5}.NI00 | Jump to NIGd when V1 is less than 5. te | Gess than or | IF [VluLE.5|.NIG | Jump co NIG@ Equal to, © when VI is less than or equal to 5. EQ | (Qual to, = IF [VIuEQSILNIGO | Sump co NIG Provide « when V1 is equat | space on to 5. either we [lot Equat to, | IF [viune.5}.widd | Joap vo wie | Side oF *) when Vi is not | TRE equal to 5. ms 7 ct | Greater Than, | IF [visGr.5|.NI66 | Jump to NIGO 3) when Vi is greater than 5. cs | (Greater than or| IF (vioGe5}.NI00 | Jump to Nida Equal, >) when VI is greater than or equal to 5. ‘OKUMA MACHINERY WORKS LTD, 2452-£ P-213 15-3. PROGRAM EXAMPLE A simple program example is provided below to help you understand contents of User Task 1. Assume the NC lathe is equipped with the bar feeder. Three types of work- pieces are machined on the NC lathe according to the progranmed schedule. qa) (2) a) () (5) (6) Assign respective workpieces with file name and program name (or no.): Workpiece A Workpiece B Workpiece C ... sess As MIN, 0199 sess Be MIN, 0294 sess C2 MIN, 0399 After determining the file name and the program name (no.), prepare the program for the workpiece according to the part drawing. Before actually machining them on the machine, it is necessary to determine the number of workpieces to be machined and the machining order of them ~ scheduling. No. of workpieces: 20 pes. 15 pes. 25 pes. Sequence of machining: A, B and C Now the programmer can make the schedule program. Determine the file name of the schedule program, first; the file name of this example is determined as "SHAFT-1. SDF" since the intended machining is of shaft work. Counting of the finished workpieces can be made using che common variable. Workpiece A ......eee.05 VI Workpiece B--.....ee... V2 Workpiece Cee. ...eeeee V3 Prepare the schedule program according to the flow chart in the following page. OKUMA MACHINERY WORKS LTD. 2452-E P-214 s09) eC oTaTH cor RREOAH seowrisrea wate « cor vas 2d or sae 2 a ee (erstong tanger eet nk Teo Bab tsar 8 Heo rors a aorta aeaR feta aor ‘OKUMA MACHINERY WORKS LTD. 15-4, COMPARISON OF USER TASK 1 AND USER TASK 2 2452-E P-215-R5 Function and Contents User Task 1 User Task 2 Usable Programs Main program Schedule program Main program Subprogram Schedule progran System subprogram Control Statement Function Variable Function Common variables Local variables System variables Common variables Local variables System variables 1/0 variables Operation Function Calculation aon both Expression (four rules) (four rules) Comparison ,,, , Expression ,<6T>,” | ;} Boolean , , , Expression Function ,, , , , , , , , , , , , Supplement: Program either a space or a tab code following control statements indi- cated below. , , , ‘OKUMA MACHINERY WORKS LTD. 2452-E P-216-R4 SECTION 16 TAPE CONVERSION FUNCTION (OSP3G0GL —~ OSP5GL-G/OSP599@L-C) 16-1. 16-2. ourL INE This function is used to convert programs prepared for OSP3GG0L and stored in a bubble memory into those applicable to OSP5@@L-G/OSP5GG9L-G. Items converted are: (1) Simultaneous 4-axis control program (2) Constant speed cutting program (3) Address characters specifying variable pitch (4) Endless operation (5) Nose radius compensation (end up) function (6) LAP OPERATION For the store programs prepared for OSP3/0@L, refer to the instruc tions provided in 4-2-1 (1) of the Operation Manual for OSPS@GL-G/ OSPSGg0L-G. Conversion of the program can be made in the following procedure: 1) Press the EDIT AUX key under MODE. MODE~ ae) ck 2) The CRT display is shown below: PROG OPERATION ‘OKUMA MACHINERY WORKS LTD. 2452-E P-217-R1 3) Press the function key [F8] (EXTEND) two times and the CRT display on the function line changes as shown below: PROG OPERATION ex camel TTT TT Teer 4) Press the function key [FI] (TAPE CONVERT). The CRT shows "c=", 5) Enter "input-file-name" and “output-file-name" through the keyboard. , 6) Press the WRITE key. The CRT display changes as shown below: PROG OPERATION convent QUTPOF FILE FR] = Ex = c (INPUT Fre wae], (GUTPOT FILE NaN] COWERT 3000 £0 5000 (x/N) 1 TE convest| (exrenp) OKUMA MACHINERY WORKS LTD. 7) Wher Whe: the CAUTIONS a (2) (a) a (5) (6) 2452-E P-218-R4 n conversion is to be made, key in "Y" then press the WRITE key. n conversion is not required, key in "N" instead of "Y" then press WRITE key. When only "input file name" is designated, a program for OSP599L~G/OSPS5GUOL-G assigned with the same file name is created and the program for OSP3@9GL is erased. For other cases, designate both "input-file-name" and "output~ file-nane" When the input file assigned with the designated file name is not found, message "file not found" appears on the CRT and tape conversion operation terminates. If the output file assigned with the file name presently designated already exists, message "file exist over write Y/N)!" appears. Pressing the WRITE key after keying in " erases the old file and tape conversion is executed. Pressing the WRITE key after keying in "N" terminates the tape conversion operation without executing conversion. To check the results of the converted program(s), refer to the instruction in 4-2-3 (4) of the Operation Manual for OSPS@9L-G/ osPsyggL-c. When a new command value to be generated in tape conversion Process cannot be calculated, "2" is entered at the location where such new data is to be entered. 16-3. CONTENTS OF CONVERSTON 16-3-1. Simul) a taneous 4-Axis Control Program Simultaneous 4-axis control part a) M codes calling for start and end of simultaneous 4~axis control, MI1 and MIG, are deleted. b) For Program Stop and Optional Stop M codes, MJ and M1, P code with the numeral value "1" larger than the value of the P code just preceding it is added for respective turrets to synchronize execution of these M codes. ©) P codes already designated for respective turrets are renewed in the manner that the synchronization is maintained. ‘OKUMA MACHINERY WORKS LTD, 2465-E P-219-R4 (2) Independent control part a) For G codes selecting turret, G13 and G14, P code with the numeral value "19" Larger than the value of the P code just pre- ceding it is added. b) The first P code, appearing in the independent cutting mode after completing simultaneous 4-axis control, is assigned with the numeral value "1G" larger than the value of the P code having the largest value in the preceding simultaneous 4-axis control program. Note 1: G13 and G14 should be designated in one block without other commands. Note 2: MOG and M@1 should be designated for both turrets A and B. Example: osPaggg1 08P50UL~C/osPSgggL—G Noor Mii oR Ngo oR Ngg2 613 cr Ngo2 oR NGO3 COG X1 ZI P1 M1 TI SI CR NOUS GO X1 21 PIG MI TI S1 CR NG14 MOL cr NOL4 MGI’ PLL cR ROIS G14, cx = ngis cia oR NG16 COG x1 21 PI MI T2 S1 CR NG16 GGG XI 21 PLO MI 72 SL CR Nd24 MOL oR NG24 MOL PLL oR Ng25 Mig oR Ng25 oR NO26 G14 oR NG26 G14 oR NG27 GUJ X2 2273 S22 CR NG27 GU X2 22 73 S2 M2 P21 CR 16-3-2. Constant Cutting Speed Program In simultaneous 4~axis control program, the turret on which constant cutting speed (CCS) is effective is determined by the designated turret selection command effective just before entering simultaneous 4-axis control and G code indicated below is added following G96 calling for the CCS operation. + CCS on turret A (G13) + CCS on turret B (G14) ‘OKUMA MACHINERY WORKS LTD. Ngg1 ngo2 5 Nags nglg Nou. Ngl2 § N2g Ng21 N22 § Nose 16-3-3. Noga Nga Nga3, $ ngg7 Ngg8 16-3-4. Nog 5 nga 2452-E P-229-Rd Example: osP3dg0L. OSPSG9L-G/0sPSdggL-C mig oR NOgL cR G13 oR Ngg2 G13 cR may cr Nggs oR G13 cR N1d G13 oR GOO XI Z1 PIG S1 TL M1 CR NGL1 GG X1 Z1 PIG S1 TI ML CR G96 x2 22 P2G S2 cR ———= NG12 F96 C119 1 22 P2g S2 CR mas cR NG2d G14 oR GOG X3 23 PI SI TI MI CR N921 GOO X3 23 PIG $1 TI MI CR 696 x4 24 P2g sz oR N922 G96 G1Id x4 24 P2G s2 CR gd cR Nos oR Address Characters Specifying Variable Pitch The address character used to command piteh variation amount per pitch in cutting variable pitch thread is converted from "K" to "EM Example: osP3d00L, OSPSdUL~G/OSP5I00L-G Ggg x1 z1 cR NGO1 GOO x1 ZI cR G34 _X2 22 KF oR NGQ2 G34 x2 22 BF oR G34 23 cR NgO3 636023, oR —= 4 dO x7 27 oR NOO7 COG X7 27 cr G33 X8 28K F oR NGGB G33 X8 78 EF cR Endless Operation In tape conversion, code M31 is converted into code M2. Example: osP3dd0L osP599L-G/0sP5909L. 613 cR Nagi 613 cr Far ee M31 cR nado Maa cr ‘OKUMA MACHINERY WORKS LTD, 2452-E P-221-R4 16-3-5, Nose Radius Compensation Function Naga NOL 16-3-6. NgOL Nag2 N03 Nad Naas Nag6 997 998 ng99 For G49 GO calling for end up of the nose radius compensation function programmed for the OSP3QUJL, imaginary point (I, K) is created from x2, 22 commanded in G49 GQU block and XI, ZI provided in the preceding block with tape conversion. I= X2-X1 K= 22-21 Example: osP3ggoL. OSPSGUL~G/OSPSO0GL~C col xi zi cR nggo GdL XL ZL cR Gad GgG x2 22 cR NG1G G&G COU x2 221K ca Note: G4 and GO@ must be designated in the same block. LAP a) (2) cag cas 699 col 8g coe ‘The address character "L" expressing stock amount is converted into “o" or "W": "U" in longitudinal cutting and "W" in transverse (end face) cutting. In a program for OSP3GGGL, cutting conditions for roughing cycle are specified along with the commands specifying final contour. For OSP5U9L-G/OSP59G9L~G, contour defining commands containing both final contour and rough cut conditions are separately provided from the finish cut conditions; in actual cutting stage, finish cut con- ditions are called for from the contour defining commands. Example: osP3gggL. 0SP500L~G/0SP5000L-G Xe zt cr NGO1 GO Xt Ze oR Xs Zs Fr Sr Tr Mr OR NgO2 Xs Zs Fr Sr Tr Mr OR cR NgO3 G85 NLA UD oR Xe zt L (Uw) DR NGOS GOO Xt Ze cr Xa Za Ff Sf TE ME CR St TE ME cr xb zb oR G87 NLAGL cr Xe Ze cR NLAGL = G81 cr cR NGOS Xa Za FE cR Xt Zt cR NGJ6 CHL Xb zb oR Ngg7 Xe Ze cR ngga c8g oR NGG GgO XE Zt cR ‘OKUMA MACHINERY WORKS LTD. Noga Ngg2 Ngg3 Noo4 NgOS Nove Ngg7 Nogs Nao Nog. ng Ngg3 Ng, gOS NgO6 Ngo? NogL Ngg2 Naga Noga, Nags Nog6 No7 Nogs. P-222-R4 (3) Thread cutting cycle commanded by 633 is performed in a compound fixed cycle and continuous thread cutting eyele by G34 and G35 is performed in LAP, For G33 thread cutting cycle which is converted into compound thread cutting cycle, G71 or G72 is added depending on thread cutting direction, longitudinal or transverse. Example: osP3g0oL. coo sl Tl ML Xs Zs 86 DE Ug Xa Za 634 Xb zbK F Xe Ze GOG Xd Zé cag Example: osP30NaL. cod s TM Xs Zs 86 D EG G33 Xb zb (I K) F cag xt Zt Example: OSP3G9GL Bos s TM Xs Zs 86 G82 D Eg G33 Zb xb (IK) F cad Xt at OSP50GL-G/OSP5G9GL~C cr Ngg1 cod SI Tl MI cR NOg2 Xs Zs oR NgO3 G88 NLAdI HD oR NLAGL 81 oR ——___— nd5 GUO Xa za cR NGG6 C34 Xb 2b F cR NOd7 Xe Ze cR NOB GO Xd 2d cR NGOS GBg OSPSGBL-C/OSP5000L- cR NGGL COG s TM oR ngg2 Xs Zs OR 993 G71 Xb Zb I DH ELF cR ———~ nag7 cR cR cR OSPSG0L~G/OSPSG9GL-G cR gg cog s TM cR Ngg2 Xs Zs cR NGO3 G72 xb zb K DH ELF cR —————~ ngg8_ xt zt oR oR cR cR xt Zt cR cR cR oR oR oR cR cR cR oR oR cR cR cR CR cR cR ‘OKUMA MACHINERY WORKS LTD. 2452-E P-223-R4 (4) With OSP5d9L-G/oSPS5U9GL-G, grooving and drilling eycles are per- formed not in LAP but in compound fixed cycle. When grooving and drilling cycles are performed in compound fixed eyele, G code is converted into G73 or G74 depending on direction of cutting, longitudinal or transverse. Example: osP3000L OSP5G9L-G/0SP59G0L~C NOGL GOO Xt Ze S1 TIMI = CR NdG1 GPG Xt Ze SL TI MLR Ngg2 Xs Zs R Ndg2 Xs Zs oR NGG3 G83 CR NQG3 G73 Xa ZaK D Fr cR Ndg4 DO CR ————~ ng@7 GG Xt Zt K D Fro CR NGGS GOL Xa Za Fr oR Ngg6 cad oR Ngg7 GO xt ze cR Exampl osP3dgL. OsP5d0L-c/OsPS0ggL~G NGO1 GOO Xe zt S1 TIMI CR NOG1 COG Xt ze SL TI M1 © ocR NGO2 Xs Zs CR NgO2 Xs Zs oR NGO3 683 CR NOO3 G74 Xa Za D Fr CR NGO4 G82 CR NGO GO Xe Ze cR NOS DO cR NGOS COL Xa Za Fr cR NGO? GBd cR NGOS COG xe ze cR Note: When stock "L" or "U" or "Ww" is "§", finish cut cycle (687) is not carried out. OKUMA MACHINERY WORKS LTD. 2452-E P-224-R4 16-4, RESTRICTIONS ON TAPE CONVERT FUNCTION (osP3909L —= osPSdggi-G) ‘The OSPS0GL-G/OSP54GGL-G has a tape convert function that converts a part Program for OSP3G9UL into one compatible to OSP5GGL-C/OSPSG00L-G. However, this function cannot convert all OSP3@9GL part programs; some minor (not explained in the Programming Manual) or special specifications cannot be converted. Generally, program items not explained in this section are output in the original OSP3940L form even after passing through the tape convert. Therefore, specifications not listed as convertible among those modified according to the change of the control from OSP3G90L to OSPSUL-G/ OSPSGGGL-G are not accepted or executed by OSPSUUL-G/OSPSUGUL-G. Inconvertible Specifications: Specifications OsP3900L OSPSGdL~G/OSPS9GL-C Progranming Format Command value "6" Value "@" is omissible and just "x" or "2" is acceptable. Value "@" is not omis- sible and program must be made as "$" and "zg". +/> sign "a" and "=" signs may be | The signs must be placed placed at any position | right before the numeral before the next address | value as below: character. See example below: X1gd-z1 +d X-1dd 24100 Space Spaces may be placed at | Spaces must not be placed any position. See between numerals or be~ example below: tween numerals and chara~ eters xi G 2100 xig dz 190 (not permissible) Mg2 Leading zero is omissible| Leading zero is not and "M2" is acceptable. | omissible and the code must be given as "Mg2". / (slash) The slash code may be ‘The slash code must be placed at any position in a block. The commands after the slash code are ignored. NOD GOD XIdd /z109 placed either at the beginning of each block or right after a sequence number. Otherwise, it is interpreted as a division calculation. NaGL /G00 x19 z100 (OKUMA-MACHINERY WORKS LTD. 2452-E P=225-R4 Specifications osP3000L. OsPSU9L-G/osPSggdL~¢ Programming Format % code Commands may be progran- med in the First sequence following the Z code. % NOL Gd... The % code must be followed by an end of block command, LF or CR. x cR (LF) NdG1 GOD... Thread Cutting 8 times F command Combined with M27, a thread lead is programmed following address character F in 8 times the actual lead. Fooo M27 1G times F command Combined wich M28, a thread lead is programmed following address character F in 19 times the actual lead. Fooo M28 Codes M27 and M28 cannot be programmed since numerical values smaller than 0.401 mm are programmable. Fo-00000 Designation of reference axis of thread lead For a thread having an angle of 45 deg. or larger to Z-axis, its lead is referenced to X-axis. Code M27 is used to change reference axis of thread lead from Z-axis to K-axis. Simultaneous 4-axis Cutting G13 and G14 Axis movement commands [Both G13 and G14 must be and other commands can be | specified in a block programmed in the same independently. block containing G13 or G14 selecting the turret used for cutting. MOG and Mp1 These M codes may be These M codes must be programmed only for one turret. programmed for both turrets A and B. Mirror Image G13 and G14 Axis movement commands and other commands can be programmed in the block containing G13 or G14. Both G13 and G14 must be specified in a block independently. ‘OKUMA MACHINERY WORKS LTD. 2452-B P-226-R4 Specifications OsP3d99L, OSP5GGL-C/OSP5GGIL-C Nose Radius Compensation Start-up NG CUS x6 20 NI C42 X1 21 N2 GOI X2 22 FL Pg (Xgzg) P29 (Xp22) Py (Xy2y) With the commands in block NI, the cutting tool is positioned so that the tool nose comes to contact both straight lines PGP and P1P2. Pp (Xp2g) hui P21) With the commands in block NI, the cutting tool is positioned so that the tool nose comes to contact the straight line P1P2 at point Pl. LAP Sequence branch Sequence to which jump or branch is made after the completion of rough or finish cutting cycle is specified following address character Q. Since commands of contour or shape definition, rough cutting cycle, and finish cutting cycle are independently programmed, no sequence branch fune- tion is available. Inconvertible special specifications of OSP39G0L - Parameter program (user task) - Tool life management ~ Gauging functions (work gauging, tool gauging, post-process gauging) = Robot = Programmable tailstock function - Bar feeder ~ Multiple machining model (C-axis Linkage, C-axis commands, fixed cycle) ~ Scheduled operation = Overload detection on Z-axis Other functions available only on a specific model and machine designed for custom-use generally cannot be converted. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-227-R3 SECTION 17 TAILSTOCK SPINDLE ADVANCE/RETRACT FUNCTION BY M CODES 17-1. 17-2. - With Confirmation Limit Switch ~ M CODES USED FOR ADVANCING/RETRACTING TAILSTOCK SPINDLE M55 M56 + Tailstock spindle retract - Tailstock spindle advance Selected mode is not influenced by turning on the control or by resetting it. For the two-saddle models, the M codes above may be designated at either G13 or G14 mode. The time duration in which the tailstock spindle advance should be completed after the tailstock in-position signal has been input during the tailstock spindle advance movement, commanded by the M56 code, is set by parameter (word) No. 14 in increments of @.@1 seconds. The loading of the NC control software sets this tine at 9.8 seconds. ALARM MESSAGES 138 ALARN-A Tailstock spindle advance ansver In-position answer signal is not input within 5 seconds after the tailstock spindle advance command M56 has been executed. Index . Wone Character-string: None Code : 2 139 ALARH-A Tailstock spindle over advance The tailstock spindle over-advanced during program execution. uc input #6 © [bit 5 [pie 4 | Bie 3 g G T Index 2 None Character-string: None Code : 1 ‘OKUMA MACHINERY WORKS LTD. operations. 2452-E P-228-R3 464 ALARM-B Tailstock spindle over-advance The tailstock spindle over-advanced. BC inpuc #6 [Bit 5 | Bit 4] Bie 3 a g I Index None Character-string None Code 1 149 ALARN-A Tailstock spindle conditicn illegal The spindle rotation command is designated while the tailstock spindle is not advanced for shaft work, or 1ot retracted for chuck work. ‘The tailstock spindle is shifted from the correct position in shaft work while the spindle is rotating. The tailstock spindle is shifted from the retraction end position in chuck work while the spindle is rotating. The tailstock spindle advance or retraction command (M55 or M56) is designated for chuck work or while the spindle is rotating. The alarm does not take place when the interlock function is canceled by M157. Index : TURRET or None Character-string None Code 1 sss++++ Spindle rotation command is designated. M55 or M56 is designated for chuck work, 2. - The tailstock spindle is shifted from the correct position. M55 or MS6 is designated while the spindle is rotating. Note 1: The confirmation limit switch is not used for the U.S.A. specifi- cation. Note 2: The LH55-N is not provided with thie function to assure safety of (OKUMA MACHINERY WORKS LTD, 2452-8 P-229 SECTION 18 SCHEDULE PROGRAM 18-1. OUTLINE The schedule program is used for performing machining of various types of workpieces continuously and automatically when these workpieces can be loaded and unloaded automatically by the robot, the autoloader or other material handling equipment. By combining the schedule program with the machining programs, continuous and automatic machining can be accomplished. The following statements are included in a schedule program: (2) Statement for selection the main program ..... PSELECT (2) Statement for specifying the order of sehedule program block execution ........-..+. IF, GOTO (3) Statement for setting variables .. A schedule program can be made using the statements indicated above, and various types of workpieces can be machined automatically and continuously by executing the schedule program. For operation procedures on schedule program execution, please refer to Section 4-1-6 in the Operation Manual. PROGRAMMING (1) Statement for selecting the main program for execution (PSELECT): Using the statement PSELECT, program the main program name and the Subprogram name to be executed along with the number of repetitions of the called program. As shown below, the SHAFT.MIN file contains an OSHTI machining program, and a SHAFT.SUB file is provided for the subprogram called from that program. File mame: SHAFT.MIN oskTL 13 File name: SHAPT.SUB osHTs CG OOxZ CALL osuTs RTS Mg2 OKUMA MACHINERY WORKS LTD. @ 2452-E P-239 Program as follows for executing the machining program PSELECT SKAFT.MIN OSHT1, SHAFT.SUB Qn. Number of repetitions Name of file com- prising subprogran Machining program Name if file com- prising the required machining program Note: When the program is to be executed one time, ir is not necessary to program 2 Q command. Command Q9999 causes the program to be repeated infinitely. Statement for specifying the order of schedule program block execution (IF, GoTo) The IF statement causes a jump to the specified sequence number or name if the indicated conditions are fulfilled. NGI IFLV3 EQ 19] NGZd (Jump is made to NJ2é when the numerical value assigned to the variable V3 equals 19. Otherwise, the block following NOI@ is executed.) Nd20 PSELECT ‘The GOTO statement causes a jump to the specified sequence number or NGI GOTO NOZd (Sump is made co NG29.) | Ng2G PSELECT Note: Conditions stated following the IF statement can contain EQ (=), NE (=), GE), GT ©), LB (<), and LT (<). ‘OKUMA MACHINERY WORKS LTD. 2452-E P-231 (3) Statement for setting variables (VSET) This is the statement for assigning common variables V1 through V32. v7 vi v6 Fl. Assignment of numerical value 1 to variable V7 Wri. Assignment of numerical value of "V7+I" to variable V1 = VIG + V1 ....., Assignment of numerical value of "VIg+V11" to variable V6 (4) End of schedule program (END) Program the END statement at the end of a schedule program. NQ@1 PSELECT Né2g END 18-3. PROGRAM Ngo1 ngo2 Ngo3 Ngo4 Nggs Node Ngg7 Noga ngg9 Noid EXAMPLE VsET vi=¢ PSELECT SHAFT.MIN, OSHT1, SHAFT. SUB,Q10@ VSET VI=V1+1 IF (v1 Gr 1) Ngo7 PSELECT SHAFT. MIN, OSHT2, SHAFT. SUB,Q50 coro Ngus PSELECT SHAFT.MIN, OSHT3, SHAFT, SUB,Q200 IF [v1 cr 2] ngig coro ngg2 END Explanation of example program: Ngo. : Variable VI is assigned with numerical value zero (V1=| N9G2: Machining program OSHT] is executed 199 times. N993: Variable V1 is set to "VI+1" (VI=VI+1). NdU4: If V1 is greater than 1 (V1 > 1), the sequence jumps to NOT. NQG5: Machining program OSHT2 is executed 5G times. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-232 SECTION 19 LATHE AUTO-PROGRAMMING FUNCTION (LAP) 19-1, GENERAL DESCRIPTION LAP (Lathe Auto-Programming) is the function to make full use of high-speed processing capability which characterizes the OSP5UJL-G/OSPS{Q9L-C series. With this function, the control automatically generates tool path to pro- duce the required part contour, In this function the program comprising, dimension data of the final con— tour to be finished including rough cut conditions is prepared as the Contour Definition Program; when it is called out with the cutting con- ditions specified, the control automatically generates tool path for respective rough cut cycles, and then finish the workpiece to the programmed dimensions. This feature permits the progranmer to complete the part program simply by picking up the dimensions specified in an engineering drawing and, there~ fore, it simplifies programming as well as it reduces programming time; this furthermore facilitates tape check procedure and also tape punch pro- cedure. Various cutting modes available with the LAP can cope with any type of cutting intended. Features of LAP are: (1) No special programming language is needed. The same programming manner as in conventional progranming technique can handle the LAP funetion. (2) Tape preparation time can be greatly reduced. (3) Programming for rough cut cycle can be eliminated, and this simplifies manual calculation while programming. (4) Change of cutting conditions such as depth of cut and feedrate is possible during rough cut cycle. ‘OKUMA MACHINERY WORKS LTD. 2452-8 P-233, 19-2. CLASSIFICATION OF FUNCTIONS 19-2-1, Classification of Cutting cycle AP Mode Iw... AP Mode IT 11... AP Mode IIT .... for bar turning for copy turning on forged workpieces for thread cutting Longitudinal Cutting Mode Transverse Cutting Mode ¢ e t aor 3 = = 2 { 7 a y 2 a 3 a Y ‘OKUMA MACHINERY WORKS LTD. 2452-E P-234 19-2-2. 6 Code Used to Designate Cutting Mode G85: AP Mode 1 Used to call out bar turning rough cut cycle. G84: Change of rough cut conditions for bar turning 86: AP Mode II Used to call out copy turning mode. 687: Finish cut cycle Used to call out finish cut cycle. G88: AP Mode IIT Used to call out continuous thread cutting cycle. The above indicated G codes calling out AP modes are used in combination with the G codes provided below, which are used to indicate direction of AP mode cycle cutting execution (contour specification): G81: Start of longitudinal contour definition 682: Start of transverse (on end face) contour definition 8B: End of contour definition ‘OKUMA MACHINERY WORKS LTD. 19-3. PROGRAM FORMAT 19-3-1. 19-3-2. 19-3-3, 2452-8 P-235 G Codes © Code Description cag End of contour definition cal Start of contour definition, longitudinal Gaz Start of contour definition, transverse 84 Change of rough cut conditions, bar turning 685 Bar turning rough cur cycle cas Copy turning cycle az Finish cut cycle cas Continuous thread cutting cycle M Codes M Code Description 32 Straight infeed along thread face (on left face) in G88 33 Zigzag infeed in G88 M34, Straight infeed along thread face (on right face) in G88* M73 Infeed pattern 1 in G88 M74, Infeed pattern 2 in G88 M75 Infeed pattern 3 in C88 * Mot available with the A-specification. Parameters Parameter Description D Depth of cut in rough cut cycle 1) Alarm 2) D>G DA Depth of cut after rough cut conditions change point A 1) DA=D 2) DA>G DB Depth of cut after rough cut conditions change point B 1) DB = DA 2) DB>G FA Feedrate after rough cut conditions change point A 1) FASE 2) FA>@ ‘OKUMA MACHINERY WORKS LTD. 2452-E P-236 Parameter Description FB Feedrate after rough cut conditions change point 5 1) FB= FA 2) BBG 5B Feedrate in rough cut cycle along finish contour 1) F active at entry of LAP mode 2) BOG XA X coordinate of rough cut condition change point A 1) No change of cutting conditions 2) | xa] < 99999.999 xB X coordinate of rough cut condition change point 3 1) No change of cutting conditions at point B 2) | xB | < 99999.999 za Z coordinate of rough cut condition change point A 1) No change of cutting conditions 2) | 2A | < 99999.999 2B Z coordinate of rough cut condition change point B 1) No change of cutting conditions 2) | 2B| < 999.999 Stock removal amount in X-axis direction for finish cut cycle usd 2) U2 W Stock removal amount in Z-axis direction for finish cut eycle 1) w-=@ 2) woo 8 Thread height in G88 thread cutting cycle 1) Alarm 2) Hg B Tip point angle of thread cutting tool in C88 1 B=g 2) 9 £B< 189° 1) Default 2) Restriction on numeral data specification. ‘OKUMA MACHINERY WORKS LTD. Note I: Note 2: Note 3 Note 4: 2452-E P-237 The following words should be specified in incremental values. D, DA, DB, U, W and H D, DA, DB, XA, XB, U and H words should be commanded in diameter. In thread cutting cycle using the M73 pattern, "H - U" must be greater than or equal to D: H-U2D In the M74 and M75 patterns, it must be positive: H-U28 When more than one alphabetic characters are used in succession, the control interprets such expression as a variable. Therefore, it is necessary to use a delimiter for extended address characters: » FB, XAs, XB, ZA= and ZB OKUMA MACHINERY WORKS LTD. 2452-E P-238 19-4, EXECUTION MODE OF LAP 19-4-1. G85: Bar Turning cycle Format NOLS G85 MLAPL | =D OF U W 684 NG193: Sequence number 85 : G code calling out bar turning cycle To be provided right after sequence nunber (name) NLAP1: Sequence name in the first block of contour defining blocks Blank: Enter either tab or space code D Depth of cut in rough cut cycle F Feedrate in rough cut cycle u Stock removal in finish cut eyele, X component W Stock removal in finish cut cycle, Z component G84 : Change of rough cut conditions With the commands above, the control starts searching of contour defini- tion program beginning with the sequence name NLAP1. After assigning parameter data of D, F, U, W and G84 for NLAP1, the control starts bar turning cycle. Note 1: Note 2: Note 3: Note 4: No S, T or M code may be provided in the G85 block. D word is used to specify depth of cut in rough cut cycle. When the command indicating change of cutting conditions is provided, the D word is effective up to such point, XA and ZA. D word which has a positive value must be provided in the G85 block without fail, if not, ive., if the numeral data of the D word is not positive, or if it is omitted, an alarm results. F word is used to specify the feedrate in rough cut cycle. When the command indicating change of cutting conditions is provided, the F word is effective up to such point, KA and ZA. If no F word is provided in the G85 block, the feedrate ef- fective before the execution of the C85 block is effective. F word must be positive. If not, an alarm results. When U and/or W word is not provided, U and/or W is assumed "6". U and W words must be positive or zero. If not, an alarm results. OKUMA MACHINERY WORKS LTD. 2452-E P-239 Format oes ose ae Bs a) (3) (1): Indicates that the commands are continuous. (2): Specifies the point where cutting conditions are changed. (3): Depth of cut after cutting condition change point (4): Feedrate after cutting condition change point These commands should be programmed in the block containing G85 calling out the bar turning cycle. Since the number of characters in one line will be very large if these commands are specified in the same one line with the commands directly associated with G85, they are provided in dif- ferent lines preceded by "$" character which indicates that the conmands in these lines belong to the same block. With these commands, cutting conditions can be changed from the desired point(s) during rough cut cycle from the desired point(s). If change of cutting conditions is not necessary, omit them. Note 1: G84 and following commands must be provided after "N..... G85 Noveeee", Gf any, Note 2: For OD turning, coordinate values of "LAP starting point", “rough cut condition change point A" and "rough cut condition change point B" must be provided so that they become smaller in this order. For ID turning, they should be provided so that they become larger in that order. Note 3: If rough cut condition change point A and B both exist within a range where cut is made present position, the rough cut cycle after the infeed of D is carried out under the conditions of FB and DB. Note 4: Tf tool path exceeds XA when cutting cycle is performed with the depth of cut D from the present position, the cycle is performed with D provided the present position is outside XA, and with DA when the present position is on XA. Note 5: In longitudinal cutting, ZA= and ZI vided. In transverse cutting, XA- provided, either. commands may not be pro- and XB= commands may not be ‘OKUMA MACHINERY WORKS LTD. 2452-E P-24g Copy Turning Format Ng123 686 MLAP2 |) DOE U OW NG123: Sequence number G86: G code calling out copy turning cycle To be provided right after sequence number (name) NLAP2: Sequence name in the first block of contour defining blocks Blank: Enter either tab or space code Dt Depth of cut F Feedrate v Stock removal in finish cut cycle, X component W + Stock removal in finish cut cycle, Z component With the commands above, the control starts searching of contour defini- tion program beginning with the sequence name NLAP2. After assigning parameter data of D, F, U and W of NLAP2, the control starts copy turning cyele. Note 1: No 8, T or M code may be provided in the G86 block. Note 2: D word is used to specify depth of cut in each cycle and must be provided in the G8 block without fail. D word value must be positive. Tf not, an alarm results. Note 3: F word specifies the feedrate for the blocks until an E word is provided in the contour definition program. If no F word is provided in the G86 block, the feedrate effec~ tive before the execution of the G86 block is effective. Note 4: When U and/or W word is not provided, U and/or W is assumed "9", U and W words must be positive or zero. If not, an alarm results. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-24L 19-4-4. G87: Finish Cut Cycle Format No203 G87 NLAPL | ou W 0203: Sequence number 87 : G code calling out finish cut cycle To be provided right after sequence number (name) NLAPL: Sequence name in the first block of contour defining blocks Blank: Enter either tab or space code u Stock removal in finish cut cycle, X component w Stock removal in finish cut cycle, Z component With che commands above, the control starts searching of contour defini- tion program beginning with the sequence name NLAPI, After assigning parameter data of U and W of NLAPI, the control starts the finish cut cycle. Note Note Note 3: No $, T or M code may be provided in the G87 block. As a feedrate, the one provided in the contour definition program is effective. If no F word is provided in the contour definition program, the feedrate effective before this block becomes effective. NOTE THAT THE G87 BLOCK CANNOT CONTAIN AN F WORD. When U and/or W word is not provided, U and/or W is assumed " U and W words must be positive or zero. If not, an alarm results. ‘OKUMA MACHINERY WORKS LID. 2U52-E P-242-R5 19-4-5. G88: Continuous Thread Cutting Cycle Format Ng143 688 NLAP3 DOH B UY W M32 (W33, M34) M73 (M74, M75) NgL43 88 LAPS Blank u W oe Ey ee Sequence number G code calling for continuous thread cutting cycle To be provided right after sequence number (name) : Sequence name in the first block of contour defining blocks : Enter either tab or space code : Depth of cut Height of thread to be cut ‘Tip point angle of thread cutting tool Stock removal in finish cut cycle, X component Stock removal in finish cut cycle, Z component M32 (M33, M34): Cutting mode M73 (M74, M75): Infeed mode With the commands above, the control starts searching of the contour definition program beginning with sequence name NLAP3. After assigning parameter data of D, H, B, U, W, M32 (M33, M34) and M73 (M74, M75) for NLAP3, the control starts the thread cycle. Note 1: Note 2: Note 3: No 8, T or M code may be provided in the C88 block. D word is used to specify the depth of cut in the firse thread cutting cycle. After that the depth of cut in each thread cutting cycle varies according to the selected infeed pattarn. D word which has a positive value must be provided in the G88 block without fail. If not, i.e., if the numeral data of the D word is not positive, or if it is omitted, an alarm results. H word must have a positive value and must be specified in the G88 block without fail. If not, ive., if the numeral data of the D word is not positive, or if it is omitted, an alarm results. H value must be greater than U and/or W value. If not, an alarm results. OKUMA MACHINERY WORKS LTD. Note 4: Note 5: Note 6: 2452-E P-243, Bword specifying the tip point angle of thread cutting tool must have the value within a range of deg. to 180 deg.: a Xa for OD cutting Lf too large a finish allowance U is taken to the degree "XatU" falls outside "Xs" with respect to the workpiece, it results in an alarm. 5) Cutting is performed in the G1 mode up to point B where the straight line parallel to Z-axis and passing point A inter sects final contour of rough cut cycle. The feedrate in this cutting cycle is as selected by the F word when rough cut cycle is called out. B oot AA2p.Xp) Z Final tool path in rough cut cycle Ue (ZatW. Xatu) Final contour (Za.Xa) Wa ‘OKUMA MACHINERY WORKS LTD. 6) DD) 2452-E P-25G After point B is reached, cutting is then performed along the final contour of rough cut cycle up to the point whose X coordinate is Xb+D. If CBG indicating end of contour defi- nition is existent before such point is reached, cut along the final rough cut contour is performed up to the point specified in the block preceding the C8 block. Feedrate in this cut is as specified by £ which is provided in a contour definition program. If no & word is provided in the corresponding contour definition program, the one specified last becomes effective. When an E word has not been specified, the feedrate specified when calling out rough cut cycle becomes active. % After the completion of cutting explained in 6), the cutting tool relieves from the workpiece in the direction opposite to infeed direction along X-axis and toward Zs along Z-axis as much as J.1 mm on the respective axes (in diameter in the case of X-axis). tem fim % ‘OKUMA MACHINERY WORKS LTD. 2452-E P-251 8) This completes the first rough cut cycle. Z-axis returas to 2p determined in step 4) at a rapid traverse rate and then Maxis to Xp. Z-axis return 9) The steps 4) through 8) are repeated up to the cutting con- dition change point. After that point, the same cycle is repeated with the depth of cut (D) and feedrate (F) changed. Feedrate F ‘OKUMA MACHINERY WORKS LTD. 19) 1) 2452-E P-252 If cutting along a descending slope is performed in step 6), and when contour to be cut exists below the point of cutting (xp), cutting is first performed along the contour until the programmed depth of cut is reached and then it is performed in parallel with Z-axis up to the point where the straight line passing that point intersects the final rough cut con- tour. Cutting along the parallel line is performed at the feedrate specified by an F word (FA/FB). D(DA, DB)/2 FB) Feedrate Ea Feedrate F(PA, Steps 6) and 7) are repeated after that. Z-axis then returns to the point where cutting along Z-axis is started in step 16). After the completion of positioning of Z-axis, X-axis is positioned at the point, where previous cutting cycle has been started. Z-axis return path ‘OKUMA MACHINERY WORKS LTD. 12) 13) 2452-E P-253. Steps 19) and 11) are repeated until the most recessed sec- tion along X-axis is cut. After the final cutting on such section, both X- and Z-axis relieve as indicated before, and then positioning of X-axis is made at the point having coor- dinate value "the first cutting level along the descending slope + (D + J.1)" mm. Z-axis returns to the point which has the coordinate value as that of the point from which the cutting cycle of the descending slope has started with depth of cut D. Positioning of X-axis at that point is then exe- cuted. After completing the cutting along the descending slope, cutting before starting such cutting is resumed and steps after 4) are repeated. (28.8) The steps indicated before are repeated until X-axis reaches the level where tool path is generated below "Xa + U" if ordinary infeed along X-axis is taken. When such level is reached, the final rough cutting is carried out along the contour up to point B leaving finish cut allowance. The feedrate in cutting along che final rough cut contour is the one specified by the E word. (Xp. Zp) Up W ‘OKUMA MACHINERY WORKS LTD. 2452-E P-254 14) At the completion of step 13), the axes return to the AP starting point (Xs, Zs). There are two patterns of axes return motion as: Simultaneous two axes return when the first block of the contour definition program (the block following the one con- taining either G81 or G82) is controlled in the GG mode, or Positioning along X-axis is made first and then Z-axis returns to the AP starting point when the above indicated block is in the Gél mode. Z-axis return path when NOGG1 is in GO1 mode AP starting point (Zs, Xs) Xeaxis return path Axes return path when NOGG1 is in G00 mode (2atW.XatU) (2a.Xa) L£ the N@JG1 block has neither GG nor G1, the return operation is carried out assuming cig. This completes a rough cut cycle. ‘OKUMA MACHINERY WORKS LTD. wa b) 2452-E P-255, Finish cut cycle in bar turning » 2) 3) 4) 5) With the commands in block NG2G1, positioning at the tool change position is performed. With the commands in block Nd202, S, T and M commands for finish cut cycle are selected. With the NLAP1 command in block NO203, the control searches the program assigned with the program nane NLAPI. Finish cut eycle in bar turning mode is performed on this program. The finish cut cycle is performed following the dimension data provided in the contour definition program in the spec- ified cutting conditions for the finish cut cycle. After the finish cut cycle is completed, the commands in the block following N§203 are executed. Remark on bar turning a) b) If both U and W words are specified for descending slope cutting, overeutting will occur on slopes. Therefore, never Program those commands at the same time when cutting descending slopes. For longitudinal cutting, use only a U word and only a W word for transverse cutting. With U or W word presented, X- or Z-axis is constantly offset depending on the specified word. Maximum allowable number of descending slopes in the AP Mode 1 The maximum programmable number of descending slopes is ten an. For the shape illustrated above, the number of descending slopes is five. If more than ten descending slopes are progranmed, an alarm results. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-256-R5 19-5-2. AP Mode II (Copy Turning) NAP2G ng2gi Ng2g2 ng203 ng204 Ng12i Ngiz2 Ng123 ng221 Ng222 Ng223, (1) Tool Path and Program ~ Longitudinal Turning x Tool change position LF EXD 5 a 12 3 Be \ 1 %y D, (Ze.Xe) ur See f/f asx) 1% Be Dy, Be eP i : x Fo ||(axa) a (2b.Xd) Contour Definition — Feedrate and spindle speed for finish cut cycle Feedrate for rough cut cycle, rough cut along contour Longitudinal of contour definition Fb sb Bb Fe Sc Ee ————~—— End of contour definition Rough Cut Cycle Depth of cut Stock removal amount in finish cut cycle CO xe at Tool change position Xs Zs S™ Starting point of AP pats 8, T and M for rough cut cycle G86 NAP2 Douw Calls for rough cut cycle Finish Cut Cycle Toot change point Gg xe ze 8, T and M for finish cut cycle s™ 87 NAP2 Calls for finish cut cycle ‘OKUMA MACHINERY WORKS LTD. WAP3G ng3g1 ng3d2 Ng303 Ng30a NgI3L Ng132 9133 Ng221 Ng222 Ng223 Q) 682 coe cpl eg —— — coe 86 cus 87 2452-E P-257-R5 Tool change Tool Path and Program - Transverse Cutting _* position oF auxo AP starting position + ase) pw ay uy keaxa) 2 hs k Py iz Je fa Ky ry Na (2b.Xb) BAG un Fe Xt Ze.Xe z+ (erXe) Contour Definition Feedrate and spindle speed for finish cut cycle End face of contour definition Xa Za Xb zb Fb Sb Xe Ze Fe Se —— End of contour definition Rough Cut Cycle Depth of cut and feedrate Stock removal amount in finish cut cycle Xt ze Tool change point Xs Zs STH Starting point of AP 5, T and M for rough cut cycle NaP3g DF UW Calls for rough cut cycle Finish Cut Cycle Xe ze Tool change point st $, T and M for finish cut cycle NAP3g Calls for finish cut cycle ‘OKUMA MACHINERY WORKS LTD. 2452-E P-258 (3) Outline of Copy Turning Cycle a) Rough cut cycle in longitudinal cutting 1) 2) 3) 4) With the commands in block NO121, positioning at the tool change position is performed. With the commands in block N6122, 8, T and M commands for a rough cut cycle are selected and then positioning at the AP starting point is performed. When no S, T or M commands are specified in this block, those selected in the preceding block(s) become effective. With the NAP2@ command in block NG123, the control searches the program assigned with the program name NAP20. Rough cut cycle in the copy turning mode is performed on this program. In the same block, cutting conditions for rough cut cycle are also specified: + depth of cut + X component of finish allowance ++ Z component of finish allowance aco Program also F word if required. When no F word is pre- sented in the contour definition program, either, the feedrate commanded last becomes effective. Upon reading the commands in block N@2d1 in the contour definition program, the control calculates the point of intersection of the following two straight lines. The line parallel to Z-axis running at "Xs - D/2" and the one passing the two points (Xs, Zs) and (Xa + U, Za + W). Positioning at the calculated point A (Xp, Zp) is then performed. Along with the positioning, the control calculates the distance (XOFF, ZOFF) between these two points (xp, Zp) and (Xa + U, Za +). Xp = Xs -D 2p = Za + W + (zs ~ Za ~ W) (1 ~ D/(Xs - Xa - U)) XOFF = Xp ~ (Xa + U) Z0FF = Zp ~ (Za + W) ‘OKUMA MACHINERY WORKS LTD. 2452-B P-259 See explanatory illustration below: If too large a finish allowance U or W is commanded, causing the infeed direction to be reversed and an alarm occurs. 5) Cutting is started from (Xp, Zp) to the target point (+1) calculated by the OSPSG9L-G/OSPSIG9L-C. Target point (*1): The point obtained by offsetting the points commanded in the contour defini- tion program in parallel with respective axes as much as (XOFF + U, ZOFF + W). Gutting is performed at the feedrate specified by an E word in each block of the contour defining blocks. / LsiXs Feedrate 2 > Ec (2p.Xp) Contour definition (xb) Zana] W ‘OKUMA MACHINERY WORKS LTD. 2452-E P-260-R5 6) Step 5) is repeated up to the contour definition ends (680 active). Z-axis then returns to the Z coordinate of AP starting point, Zs. 2s AP starting position (28.X8) 7) This completes one cycle of rough cutting. New ZOFF and ZORF are calculated and steps 4) through 6) are repeated. 8) The above indicated steps are repeated until the infeed point reaches or exceeds "Ka + U". At such point, the control takes (G, G) for (XOFF, ZOFF) and performs cutting along the path offset from the specified contour by the amount (U, W). At the end of the defined contour, Z-axis moves to the same Z coordinate position as the AP starting point and then X- axis moves to the AP starting point. as AP starting position (2s.Xs) 9) This completes the rough cut cycle and the block of commands following NO123 is executed. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-261-R5 b) Finish cut cycle » 2) 3) 4) 5) With the command in block NO221, positioning at the tool change position is performed. With the commands in block NG222, S, T and M commands for finish cut cycle are selected. With the NAP2G command in block N23, the control searches the program assigned with the program name NAP2. Finish cut cycle in bar turning mode is performed on this program. The finish cut cycle is performed following the dimension data provided in the contour definition program in the spec~ ified cutting conditions for the finish cut cycle. After the finish cut cycle is completed, the commands in the block following Ng223 are executed. ‘OKUMA MACHINERY WORKS LTD. 2452-8 P-262 19-5-3, AP Mode IIT (Continuous Thread Cutting Cycle) (1) Tool Path and Program ~ G34 and G35 Mode (2a.xa) AP starting position (Zs, Xs) (2b.Xb) (Za.Xa) Contour Definition NAPAG Ngsg1 nggg2 ngs Noss NgsO5 Programming Ng141 Ng142 Ng143, cai cog 634 co cad cag 38 Ka Za xb z EF J Xe Ze Xd zd Calling for Thread Cutting Cycle stu Xs Zs NAPS -M32(M33, M34) M73(M74, M75) BH D U ‘OKUMA MACHINERY WORKS LTD. 2452-E P-263-R5 (2) Outline of continuous Thread Cutting Cycle a) With the commands in NO141, S, T and M commands for thread cutting are selected. b) Positioning at the AP starting point (Xs, Zs) is carried out with the commands in block NO142. c) B, H, D and U words in block NO143 specify the data necessary for thread cutting cycle. s+e+s tip point angle of thread cutting tool seers height of thread to be cut seees depth of cut seeee stock removal amount for finish cut come Two types of M codes are used to select the mode of thread cutting and tool infeed pattern, 88 NAP4O calls out contour definition program and executes the required thread cutting cycle (AP Mode III). For details of thread cutting cycle, refer to (3). Note 1: For thread cutting on end face, use G80 ~ G82 for defining the thread contour as in AP Modes I and IT. Program M27 which selects reference axis of thread lead on X-axis in G34/G35/C112/G113 block. Finish allowance is specified by a W word instead of U word. (3) Detail of Thread Cutting cycle a) The data necessary for thread cutting cycle are as follows: Thread Cutting in Thread Cutting in Longitudinal Direction Transverse Direction (on End Face) Tip point Thread height Depth of cut in the Ist cycle Finish allowance ‘OKUMA MACHINERY WORKS LTD. ») 2452-E P-264-R5 M Code Specifying Thread Cutting Mode and Infeed Pattern In the block calling for continuous thread cutting cycle, M codes specifying thread cutting mode and infeed pattern should be specified. 1) Mcode specifying cutting mode: 2) + straight infeed along thread face (on left face) + zigzag infeed + straight infeed along thread face (on right face) When neither of these M codes is specified, the control automatically selects the M32 mode. M code M73 oes M74 MIS. Note: specifying infeed pattern: ++ Infeed pattern 1 Infeed is made by D (in diameter) in each thread cutting cycle until the point D mm away from "H - U (W)" position. After that point is reached, infeed amount is changed as D/2, D/&, D/8 and D/8, leaving finishing allowance U (W) if spec~ ified. And in the finishing cycle, infeed is made as much as the specified amount U (W). When no U (W) word is specified, finishing eycle is not performed. Infeed pattern 2 Infeed is made by D (in diameter) in each thread cutting cycle until "i - U (W)" position is reached. After that, finishing cycle is carried out with infeed amount of U (W). If no U (W) word is specified, finishing cycle is not performed. + Infeed pattern 3 The depth of cut in the first thread cutting cycle is "D", and that in the second thread cutting is (/2 -1) xD. [The depth of cut in the nth thread cutting cycle is ({n -fo-1) x D.] The thread cutting cycle is repeated_until "H - U (W)" posi- tion is reached. When (Jn -[n-I ) x D becomes smaller than U (W) during the cycle, infeed amount to be taken after that becomes U (W). Finally, the finishing cycle is performed with infeed amount of U (W). If no U (W) word is specified, finishing cycle is not performed. Since X commands are specified in diameter, actual infeed amount id "D/2" When no M code specifying infeed pattern is programmed, the control automatically selects M73. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-265 With combining the M codes specifying cutting mode and infeed pat tern, six types of thread cutting cycles are available for longitu- dinal thread cutting cycle and transverse thread cutting cycle, respectively. 1) Longitudinal Thread cutting Cycles M32 + M73 Mode Cutting point aD is remainder of (a= u)/D pe pe bs Ds D/i6 DAIS aa M33 + M73 Mode Cutting point be Da lorane Draw an/18 sprig PA18 28 are ae ‘OKUMA MACHINERY WORKS LTD, 2452-B P~266 ¥34 + M73 Mode Cutting point M32 + M74 Mode Cutting point pe be we D2 pe lave we ‘OKUMA MACHINERY WORKS LTD. 2452-E P-267 ¥33 + M74 Mode Cutting point Hee we M34 + M74 Mode Cutting point ap/2 use ‘OKUMA MACHINERY WORKS LTD. 2452-E P~268 M32 + M75 Node Cutting point HY? M33 + M75 Mode Cutting point el av 7a 2nd cycle ‘OKUMA MACHINERY WORKS LTD. 2452-E P-269 M34. + M75 Mode cutting poine ‘OKUMA MACHINERY WORKS LTD. P2706 2452-E ‘Transverse Thread Cutting Cycles 2) M32 + M73 Mode 4D is remainder of Ga - w/D Cutting point M33 + M73 Mode # 8 D 3, 8D (4a) (+d), Ds ‘OKUMA MACHINERY WORKS LTD. P-271 2452-5 M34 + M73 Mode 2 = M32 + M74 Mode 2 ‘OKUMA MACHINERY WORKS LTD. 2452-B P-272 M33 + M74 Mode # 2 8 M34. + M74 Mode ‘OKUMA MACHINERY WORKS LTD. 2452-E P-273, M32 + M75 Mode 2 M33. 4+ M75 Mode v2» aD: todo pre 919A Hayy ‘OKUMA MACHINERY WORKS LTD. 2452-E P-274 M34 + M75 Mode a z 4 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-275-RS 19-6. PRECAUTIONS Precautions in using the LAP function are provided below: aw (2) (3) (4) ©) (6) @) (8) Be sure to designate contour defining sequence name right after the G code calling for execution of LAP program: G85, G86, G87 and C88 ‘The G81 and G82 codes used to indicate the start of contour definition must be assigned with a proper sequence name. For absolute or incremental programming, G99 and G91, the mode established when G85, G86, G87 or G88 is commanded becomes effective. However, it will be changed if G code selecting another dimensioning system is specified in contour definition program. Concerning G64, G65, G94, G95, G96 and 697, the mode established when 685, G86, G87 or GBB is commanded becomes effective. Once established, it cannot be changed within the contour definition program. Concerning GJ, GU1, GU2, GU3, G31, G32, G33, 634, 635, G64, G65, G9d, G91, G94, G95, 696, G97, G112 and G113, those effective when G85, G86 or G88 is commanded become active after the end of the LAP. Nesting from LAP to LAP is impossible. If a G code calling for the LAP (G85, C86, G87 and G88) is provided vhile nose radius compensation mode is active, an alarm results. Nose radius compensation can be activated during LAP; however, be sure to cancel the activated nose radius compensation mode before the C8 block which indicates the end of contour definition. NLAPL G81 Nxgool cag Xa Za N9GG2 G41(G42)Gd Xb zb Fb : Be sure to activate and cancel }> the LAP funecion between G81 (G82) block and G89 block. Ngdid Gag xz el ngdi1 cay ‘OKUMA MACHINERY WORKS LTD. 2452-E P-276 19-7. APPLICATION OF LAP FUNCTION In this section, an example using the LAP Mode I is provided. =||a9I & flav =| [Ss] S eS] = c + irr 4 s zn|| 2R 3c sq Ler Cs b— 55 85 15 30 ff. ——— ‘OKUMA MACHINERY WORKS LTD, 2452-E P-277 Example of Program oago1 NAPI G81 NGL =6Gd x54 z192 N92 -GO1 Z199 FO.2 NGO3 x6G 297 7 NgO4 783 S NUS G02 X66 280.3 3 NOG6 GGL X71 & NgG7 RT 275 89.4 = ngos 257 3 Nggo) -GO2 X78 255 12 BG.45 y NO1G = =GO1 x89 8 NOLL X92 253.5 Eg.4 5 Ng12 230 °° NG13 X96 £9.45, NOLS X1G2 227 NG15 x122 NG16 G8G a N1Gd Gdd xBgg Z1G2 (#1) Nig s9gd TOI] M3 Mg (#2) N1g2 X122 (83) N13. G85 NAPL —D8_UJ.2—-FU.45 (#4) N1d4 = GGG xB0D z1g2 N1gS S1dgd 79393 (5) N1g6 G87“ NAPL (6), N1G7 GOD BG 2102 N1G8 8959 = T4505 N1G9 x8G 285 Nl1g 633. -x72.9 265 FLS Nii 472.3 nii2 x71.9 NU x71.73 NI14 «GOO x80 2102 Mas NLS Maz Tool change position S, T and M for rough cut cycle Rough cut starting point Calling for bar turning rough cut cycle 5, T and M for finish cut cycle Calling for finish cut cycle Note: Contour defining program beginning from G81 and ending with cag may be entered any part within the above indicated program. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-278 19-8. SYNCHRONIZATION CODES FOR LAP If a P code is designated within the G85, C86, G87 and G88 sequences, the execution of the programmed LAP function by the currets A and B is synchro- nized at the start point of the LAP. If a P code is designated within the contour definition sequences between the G81 (or G82) code and the CBG code, execution of the LAP by these turrets A and B is synchronized at each eyele start position of the LAP cycles. Note 1: P codes in the contour defining sequence (sequences beginning with the G81 or GB2 code and ending with the G86 code) are independent of P codes designated in other parts of the program. ‘Therefore, P codes in the contour definition sequences may be designated in the order within the sequences. Note 2: For assuring the synchronization of turrets A and B at each cycle start point of the LAP functions, ? codes must be programmed in the G85, G86, C87 and G88 sequences. Program Example oapTi Nig G13. MIL COG Xt Ze Nig2 Xs 2 S$ TM PIG NIg3. G85. NLAPL NIG4 GO XE Ze NGS Xs Zs N1g6 87 NLAP1 N17 GOS xt ze NLAPL G81 NOG1 GHG xa Za NOG2 GOL zb F Pid Np03 Xe Ze Nos Bd N29 G14 N21 GOS Xt Ze. Contour 262 Xs Zs 8 TM PIg Difinition| N23 G85 NLAPL 204 GUD Xt Ze 209 Xs Zs S TM P3 N26 G87 NLAP1 Pao. W207 GHG XE et P5g NLAPL G81 ™ NGd1 GGG Xa Za Pig) Ng@2 GGL 2b F Ng93, Xe Ze NgGs = CBG OKUMA MACHINERY WORKS LTD. 2452-E P-279 Starting point Og Samy 0) a (Xa, Za) P29 in N1G3 and PIG in N0J2, or P2G in N23 and P1 in NGG2 allows the synchronization of the start of turrets A and B at each cutting cycle start point (1) through (7) above. P49 in N16 and P19 in NGG2, or P4G in N2G6 and P19 in NOW2 allows the synchronization of the start of turrets A and B at the starting point of the finishing cycle (point (7)). Programming P2 in NGG3 will allow the synchronization of the start of the cutting at points (1)' through (7)'. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-280-R4 SECTION 2f TOOL NOSE RADIUS COMPENSATION FUNCTION 29-1. OUTLINE 29-1-1, General Description The data processing performance of the OSPSIGL-C/OSP5UQUL-G series is all the more enhanced by one distinctive feature: The Tool Radius Compen- sation Funetion. The tool tip point radius of most cutting cools used in turning operation is the cause of inconsistencies between the designated tool paths and the actually finished workpiece contour. With the tool radius compensation function, such geometric error is automatically compensated by simple programming. In die sinking or milling operation, cutting is performed by a large diameter milling cutter. There, control systems are equipped with the Cutter Offset function vhere the actual tool path generated is offset from the designated path by the amount equivalent to the radius of the cutter used. This is a standard function with OSP5G9@ series control- lers. However, in comparison with the cutter offset function, the tool nose compensation function offers special features that are requisites for lathes. 20-2. TOOL NOSE RADIUS COMPENSATION FOR TURNING OPERATION 2-2-1, Tool Offset and Nose Radius Compensation In turning operation, various types and different shapes of tools are used to finish one workpiece. ID cutting tools, OD cutting tools, rough cut tools, finish cut tools, drill, etc. Accordingly, the tool nose radius compensation function has to be activated simultaneously with the tool offset function. ) T z+ NB Na NU NT (1) To obtain point N2' when the center of the tool nose R is at point N1', proceed as follows: a) Draw a straight line parallel to the tool advancing direction, NI-N2, offset in the specified direction, (to the right since G42 is specified), by the tool nose radius compensation amount. This yields the straight line passing NI" and N2'. b) Draw a straight line parallel to the tool advancing direction, N2-N3, offset in the specified direction, (to right or above N2-N3 since G42 dominates the compensation mode) by the tool nose radius compensation amount. This yields the straight line passing N2" and N3". ©) The nose R center for commanded point N2"' in the point of inter- section of these two straight lines. The center of tool nose R advances from point N1' to N2'. ‘OKUMA MACHINERY. WORKS LTD. (2) @ 2452-E P-298 Yo obtain point N3': 2) Draw a straight line parallel to the tool advancing direction, N2-N3, offset in the specified direction, (to the right or above N2 - N3 since G42 dominates the compensation mode), by the tool nose radius compensation amount. This yields the straight line passing N2' and N3". b) Draw a straight line parallel to the tool advancing direction, N3 - N4, offset in the specified direction, (to the left since G41 is specified), by the tool nose radius compensation amount. This yields the straight line passing N3' and NA‘. ¢) The nose R center for commanded point N3 is the point of inter- section of these two straight lines. The center of tool nose R advences from point N2' to point N3'. To obtain point Né': Follow the same procedure indicated above using points N3, Ni and NS. OKUMA MACHINERY WORKS LTD. 2452-E P-299 SECTION 21 APPLICATION OF TOOL NOSE RADIUS COMPENSATION PROGRAMMING 2i-1. G41 AND G42 The G41 and G42 codes are used to call out the tool nose radius compen- sation mode. Since the use of these G codes are often confused in programming a part, this section deals with their particular differences. G41: This tool nose radius compensation code is used when the cutting tool moves on the left side of the workpiece in relation to its advancing direction. {ALON $a ‘The terms "left" and "right" used in tool nose radius compen— sation mode are defined with respect to the established coor— dinate system. Therefore, for models LH and LS, the G41 code is used when the cutting tool advances on the left side of the workpiece, viewing the turret from the lover side. 642: This tool nose radius compensation code is used when the cutting tool moves on the right side of the workpiece in terms of its advancing direction. CAUTION ‘The terms "left" and "right" used in tool nose radius compen- sation mode are defined with respect to the established coor- dinate system. Therefore, for models LH and LS, the G42 code is used when the cutting tool advances on the right side of the workpiece, viewing the turret from the lover side. ‘OKUMA MACHINERY WORKS LTD, 2452-E P-39G + BEHAVIOR ON TOOL NOSE RADIUS COMPENSATION MODE ENTRY 21-2-1, General Description No GIO xO 26 N1 G42 X1 21 Toooove N2 GOl x2 22 The following case uses the above program to perform OD cuts with an OD turning tool having a positive nose radius compensation amount for each axis Rxt, Ret. Ni (za.x1) N 2 (22, x2) Workpiece’ Without the tool nose radius compensation function, positioning is made so that the tool tip reference point is located exactly at the programmed coordinates. At the start up of the tool nose radius compensation mode activated by either G4l or G42, positioning is carried out so that the tool tip cirele contacts the segment passing the programmed coordinates in the block containing G41 or G42 and those in the next block. This motion of axes is called "Start-Up". At the start up of the tool nose radius compensation mode, both X-and Z~ axis might move even if the block contains only one dimension word, either X or Z. (See Program Example 1.) ‘OKUMA MACHINERY WORKS LTD. 2452-E P-391 21-2-2. Program Examples a @) Example 1 N1 CHG X1dd Z1d0 sigBd TOIdIG1 mgs N2 C42 x8G N3. GOL 250 FO.2 x4 a Na — Although the programmer might expect the axis movement indicated by broken lines because N2 block contains only an X word, the actual tool path generated at the start up of the tool nose radius compen~ sation mode is as shown by solid Lines. Example 2 The desirable program for entry into the compensation mode: NL GOS xXId@ z1d9 Sigdd Te1g1¢1 MOS n2 x8o N3 G42 298 N4 GOL 259 FO. In this program, the C42 block contains only a Z word, and points N2, N3 and N4 are all positioned on the same straight line. Note: Either GO or GG1 must dominate the operation mode vhen entering into the tool nose radius compensation mode. Otherwise, an alarm will occur. wil wag by Na N2 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-392 (3) Example 3 When neither X nor Z word is presented at the start up of the tool nose radius compensation mode, or when the same point where the axes are presently located is specified in such start-up block: posi~ tioning is executed so that the tool tip circle comes in contact with the segment passing the designated coordinates and the coor dinates in the next sequence. The tool nose radius compensation motion is activated from the following sequence. NL GOL X50 2100 FO.2 sidgd TPId1g1 MgB N2 Gé2 NB X60 280 Na x10d 250 With the program above, the tool tip circle is positioned so that it comes into contact with segments N2N3 and N3NG. That is, the blocks of commands after N3 sequence are all performed in the tool nose radius compensation mode. Note: If the same point as in the start-up block is specified in the succeeding block, an alarm will result if the successive two blocks after that do not have dimension words, X and Z. (OKUMA MACHINERY WORKS LTD. 2h52-B P-303 (4) Faulty program example 1 Nl GOl X5d Z1Gd FU.2 sidgd TOIGIG1 Mg3 N2 G42 N3 xsd Z100 Na x6d 280 NS X10 250 Since sequence N3 designates the point identical to the one designated in the start-up sequence N2, an alarm occurs. (5) Faulty program example 2 NL G01 X50 2100 FY.2 s5dd TO19I1d1 MU3 N2 G42 NB S109 Na Mas NS x58 Ziad No xeg 28d Since sequences N3 and N4, the successive two sequences after the start-up of the tool nose radius compensation mode, do not contain X and Z axis movement commands, an alarm occurs. (OKUMA MACHINERY WORKS LTD. 2452-E P-304-A3 21-2-3. I and K Command with G41 and G42 In the block containing G41 and G42, by entering I and K words that spec~ ify the imaginary point, along with X and Z words that specify the nose radius compensation start-up, unnecessary axis motion required in conven- tional start-up program is eliminated. Example: NI GO X1GH zidd F.2 sigdd TOIGIdI Ma N2 G42 X60 z ad K2g N3 Cdl x 8G Zz 65 Na 250 N2" = Imaginary point for positioning (I, K) If block N2 containing G42 has no I and K words, positioning of the cutting tool by the commands in block N2 is executed so that the tool nose R comes into contact with line N2-N3 at designated point N2 and then moves along the path indicated by broken lines at point N3. Addition of 1 and K vords in block N2 positions the cutting tool to the point where the tool nose R is brought into contact with straight line N2-N3 and imaginary straight line N2-N2' when the commands in block N2 are executed. Execution of the commands in block N3 brings the cutting tool to the programmed point N3 where the tool nose radius compensation is not active. Note: I and K words should be commanded in incremental values. In this case the dimensions are referenced to point N2. When only either I or K is provided without the other, the control interprets such word to have "$" value. Therefore, KJ in che above program can be omitted. OKUMA MACHINERY WORKS LTD. 2452-2 P-395 21-3. BEHAVIOR IN TOOL NOSE RADIUS COMPENSATION MODE The tool nose radius compensation function provides means to automatically compensate for the tool nose radius in continuous cutting. Since such compensation is made automatically, there are some restrictions in programming when the tool nose radius compensation function is used. 21-3-1. Straight Line to Straight Line Cutting (1) Midpoint on a Straight Line When specifying a midpoint on a straight line, the point should be commanded carefully, Cutting tool stops at this point in single block mode of operation x4 When point N2 is located on line NI-N3, the cutting tool is posi- tioned so that the tool tip circle comes into contact with line NI-N3 at point N2. ‘OKUMA MACHINERY WORKS LTD. @ 2452-E P-306 Returning along Straight Line 7 Such axis movement causes no problem when the program is made without using the tool nose radius compensation function. However, with the use of this function the axis movements must be programmed carefully. Example: NL G42 cdl x1 21 N2 x2 22 M3 G&L 1323 5 In this example points N2 and N3 are commanded while the cutting tool is at point NI. When the cutting tool advances from point NI to point N2, C42 is designated since the cutting tool moves on the right side of the workpiece with respect to the tool advancing direction. However, in tool returning motion from point N2 to point N3, the cutting tool is on the left side of the workpiece with respect to the tool advancing direction. Therefore, G41 is specified instead of G42. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-307 x T a SA | Ne N58 M1 The axis movements above are possible by the special processing for the tool nose radius compensation function. When the program above is executed, the actual path taken by the center of the tool nose R is obtained as follows. @) The center of the tool nose R (N2") at point N2 is obtained as; i) The line parallel to the straight line NI-N2 is obteined, with an upward offset (G42) by the tool nose radius amount effective at Nl, ii) The line parallel to the straight Line N2-N3 is obtained, with an upward offset (G41) by the tool nose radius amount effective at N2. iii) The center of the tool nose R is obtained as the point of intersection of the two straight lines obtained in steps in 1) and 2). However, since those two lines are parallel to each other, no point of intersection is obtained in this case. For such case, the control has a special processing feature in which the positioning is carried out so that the tool nose R comes into contact with point N2. Therefore, the path of the tool nose R center, when the cutting tool advances from point NI to point N2, is obtained as N1'-N2". b) The center of the tool nose R (N3') at point N3 is obtained in the same manner as in a). In this way, the program in the previous page can return the cutting tool along the same straight line with the tool nose radius compen- sation function active. Note: If any of these three points is not precisely located on the same straight line, it will cause the tool path to be shifted considerably from the expected path. ‘OKUMA MACHINERY WORKS LTD. a) xt 2452-E P-348-R3 Two Lines Making an Acute Angle Xt Ne us = = Nn? Mi As is evident from the figure above, the cutting tool cannot reach point N2 even when positioning from point NI to point N2 is intended. This is because the cutting tool can move up only to the point where the tool nose R comes into contact with line N2-N3. The example provided in the previous page illustrates a case vhere programmers are apt to be confused. Another example is provided below: a) Example of faulty program 1: NL G42 Gd X1GS 219d FO.2 SIGdd TeIdIG1 Mad NZ 250 NB Gog x30 2300 gs Ne Portion left uncut ‘The programmer expected to cut up to point N2, (i-e., up to 256) allowing a slight uncut portion on the sharp corner due to tool nose R. Contrary to this intension, however, the cutting tool leaves a considerable amount of uncut section since it stops before reaching the desired point. ‘OKUMA MACHINERY WORKS LTD. 2452-2 P~399-R3 To improve such a program, enter one more point in the program as shown below: >) Example of improved program 1: NL G42 G01 XId Z1G9 FG.2 Sidas TEIGIG1 M3 N2 250 N21 x14 [> 199 + 4 x (nose R)] 3 CoG x3ds 2309 MOS Na Neu a w2 mi Portion left uncut due to tool nose The improved program generates the tool path shown above, and almost all the cutting can be accomplished as expected except for a slight uncut section due to the tool nose R. For relieving the tool along X-axis in the positive direction in N21 block, an X word must have a value larger than four times the nose R. This is because a distance twice the nose R is necessary for the tool tip circle to fit in. In addition, as an X word is expressed in diameter, the X word data has to be doubled. That is, the numerical value in such an X word must be larger than four times the tool nose R. If a value smaller than the required amount is used, it might cause the cutting tool to move in the opposite direction toward point N21 and cut into NI-N2 surface. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-310 ¢) Example of improved program 2: NI G42 GO1 X10 z190 FO.2 Sidsd TYIIG1 mO3 N2. 230 N3 64d COG x309 239d Tid MS¢ x 110 NB Zr N2 NL The G4 command in N3 cancels the tool nose radius functio point N2, the cutting tool moves so that the tool nose R will come into contact with line NI-N2 and 11@ vector standing at point N2. rv ‘OKUMA MACHINERY WORKS LTD. 2452-E P-311-R3 (4) Two Lines Making an Obtrude Angle In this section, program to feed the cutting tool along path NQ-N1-N2-N3-N4, As shown in the figure, angle N2N3N4 is an acute angle and the cutting tool moves along the line outside of that angle. Therefore, for point N3, the cutting tool moves to a point away from it. When preparing a program in which cutting similar to that contour is required, it is necessary to check the safety of the tool motion so that it does not strike against obstacles when moving to such a distant point. Example: NO G42 GIG XII z300 s150d T1G1d1 M93 Nl Cpl Z100 FG.2 N2 x1g4 1 109 + 4 x (nose radius)] N3 God x2gd 2300 No Ggl 258 saga Ie is advantageous to improve the progran and eliminate @ posi- tioning sequence to a distant point through commands in N3 block. I N2N3NG is not a sharp angle, such a problem would not occur. To eliminate sharp angles fron the required contour, interposing a short straight Line N3-N31 is one possible solution. x N3 ms € NBL a N2 ‘OKUMA MACHINERY WORKS LTD. 2452-8 P~312 In some cases, such a modification is not possible; to cut a sharp angle without positioning the cutting tool at a distant point, follow the steps detailed below. Example of Improved Program: Imaginary shape xe 2+ NO C42 GUD XIdG = 2300 51509 TOI1G1 Mg3 NL col z1gd —FO.2 N2 x104 3 God x200.48 2391 Na 198.48 2391.26 FL NS x198 2390.24 N6 Gol x200 2300 NT 2350 Fd.2 s100d In this program, the cutting tool moves along imaginary square N3N4NSNG. This permits the operator to estimate the departure of the cutting tool from the programmed contour. Note that one side of the imaginary square must be longer than twice the nose radius. ‘OKUMA MACHINERY WORKS LTD. 2452-8 P-313, (5) Two Lines Forming a Right Angle x4 NL Nz N3 Na G42 G1 XIdS Z1G9 FO.2 SIdGd THIGIG1 MOB 260 xis 220 There are no particular problems in this case. (6) Command of Identical Point a) Tf a block without axis movement commands is provided during the tool nose radius compensation mode, the path of the tool nose R is quite the same as the one generated when such a block is not provided. wm N2 N3 Na G42 G1 XS Z1d0 FO.2 SIdGS TOIGIG1 MoH 289 x6d 270 Mas ‘OKUMA MACHINERY WORKS LTD. 2452-E P-314 b) When two or more blocks without axis movement commands are pro- vided or when the same point as commanded in the preceding sequence is repeatedly provided during the tool nose radius con~ pensation mode: In this case, an axis motion that brings the tool nose R into contact with the programmed contour at the programmed coordinate point, takes place. When the block of commands containing dimension words, X and/or 2, is read, the cutting tool returns to the correct compensated position. Program 1: N1 G42 Gd1 x59 2199 FO.2 SIGS TULOIG1 MOA N2 280 NB 289 ude Na xd 278 The program might cause overcutting as below: Xe Ny Lo y 7 1 Overcut’ portion Depending on the contour to be cut, such unexpected motion does not result in overcut as seen in program 2. Program 2: Nl G42 GOL x5 Z1GS FO.2 SIdd TUIdIG1 Mos Nz 286 N3 286 gs. Na xa 270 x ‘OKUMA MACHINERY WORKS LTD. 2452-E P-315-R3 21-3-2. Straight Line to Are Cutting (Are to Straight Line Cutting) qa) Are within One Quadrant In a program where the cutting tool moves continuously from a straight line to an arc, the movement of the cutting tool is handled in the same way as in the case from a straight line to a straight line. Na Xt a NT N1 G42 GOL x1dd Z109 FO.2 SId6d TOIULOL MOK N2 zag NB ods x14d zed K-2d Na Col zag The tool position at point N2 is determined so that the tool nose R cones into contact with both line N1-N2 and are N2-N3. At point N3, the cutting tool is positioned in a similar way - the tool nose R comes into contact at point N3. When the cutting tool moves from point N3 to point N4, cutting mode changes from circular interpolation to linear interpolation. If discontinuity at point N3 results during the tool path calculation, an alarm is displayed and machine operation is stopped. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-316-R3 (2) Are in Two Quadrants 2) Case where the arc radius is greater than "2 x nose R' xt Na 2 N1 G42 G91 x1G9 Z1dd FO.2 Idd TOLGIdL mo4 NZ 28d N3 coz xi4d z6d 129 NG opt zag The tool position determined by the commands in N2 block is the point where the tool nose R comes into contact with line NI-N2 at point N2. In N3 sequence, the cutting tool is positioned so that it comes into contact with both the extension of straight line N2-N3 and the extension of arc N3-N4. b) Case where the arc radius is equal to "2 x nose R": Tool nose R = 6.8 mm ‘OKUMA MACHINERY WORKS LTD. °) 2452-E P-317-R3 NIL G42 GOl X1d@ z19GFO.2 S1dI9 TYIGIG1 May Nz 288 NB Gd2 x103.2 278.4 11.6 Na cal 24g When the radius of the programmed arc equals twice the tool nose R, the cutting tool is located at the point where the tool nose R comes into contact with both the extension of are N2-N3 and the extension of straight line N3-N4, after the execution of the commands in N3 block. That is, the cutting tool is positioned right above point N2. Case where the arc radius is less than "2 x nose R": (impossible) Xt NL G42 GO1 X1dS Z1d¥ FO.2 SIOdS TLGId ma N2 289 3 cg2 xig2 279 UL Na ool 249 With the commands in block N3, positioning of the cutting tool is intended at the point where the tool nose R comes into con- tact with both the extension of are N2-N3 and the extension of straight line N3-N4; however, such a point cannot be obtained. Therefore, when the control executes the commands in block N3, an alarm occurs and the machine stops. CAUTION When cutting inside an arc, the radius of the are must be equal to or greater than twice the tool nose R: Rl 2xRN R = are radius RN = tool nose R ‘OKUMA MACHINERY WORKS LTD. 2452-E P-318-R3 (3) Are in Three Quadrants Xx N1 G42 GOL Xx1d9 ZIPd Fd.2 s1dOd TOLdI1 MOA N2 x12 NB Go2 x16g zag 129 Na ool 26d Positioning by the commands in block N2 is carried out at the point where the tool nose R comes into contact with both the extension of straight line N1-N2 and the extension of arc N2-N3. Other axis motions of the cutting tool are identical to those explained in (2). ‘OKUMA MACHINERY WORKS LTD. 21-3-3. Are to Are Cutting 2452-E P-319 Arc to are cutting can be programmed in the same manner as straight Line to arc cutting. st N2 N3 Na NS The tool path is generated so that the tool nose R is brought C42 we ool coz 93 col X19G 2100 FU.2 SIddG THIGId1 MOM 280 X14d 26120 X18 24S K-20 229 contact with each arc or its extension. If the tool path becomes discontinuous in the process of path due to an error, the machine stops with an alarm displayed on Other motions of the cutting tool are as explained in 21-3-2, Line to Are Cutting." crt into calculation crt. "Straight ‘OKUMA MACHINERY WORKS LTD. 2452-E P-326 21-3-4. Switching from G41 to G42 or from G42 to G41 To switch the tool nose radius compensation mode from G41 to G42 or from G42 to G41, it is recommended to cancel the compensation mode once by specifying G4d. If a switch-over is to be done with the compensation mode active, care~ fully check the movement of the cutting tool resulting from the switch~ over. (1) Switch-Over in Straight Line to Straight Line Cutting Xt Ni 642 Gég XL zl T Nz Gol x2 22 F N3 G41 GOB x3 23 Na xa 4 ‘The motion of the cutting tool generated by the above program is as follows: Commands in blocks, N1 and N2 are governed by G42 and those in blocks N3 and later are governed by Gél. To position the cutting tool at point N2, the tool nose R center lies to the right side of straight line N1-N2 since block N2 is in the G42 mode. As for block N3, the tool nose R center lies to the left side of straight line N2-N3 since block N3 is in the G4l mode. As a result, the cutting tool is positioned at point A as shown above. Note: Positioning in block N2 is carried out at the left side of straight line N2-N3. OKUMA MACHINERY WORKS LTD. @ (3) 2452-E P-321-R3 Switch-Over in Straight Line to Are Cutting The motion of the cutting tool will be easily understood. The con cept is the same as in (1). Example: Nl G42 GJl X1 Zl Fl T Nz XQ 22 N3 G41 G3 x3 23 13. K3 x ue Gaz Nz. NI Switch-Over in Are to Straight Line Cutting The motion of the cutting tool will be easily understood. The con- cept is the same as in (1). Example: N1 G42 GU1 X1 Z1 FI T N2 G93 K2 22 12 K2 N3 G41 G1 x3 23 Na Xt OKUMA MACHINERY WORKS LTD. 2452-E P-322-R3 (4) Switeh-Over in Are to Are Cutting The motion of the cutting tool will be easily understood. The con- cept is the same as in (1). Example: Nl G42 G@l X1 21 FI Tr N2 G92 K2 22 12 22 N3 G&L 3°23 13 23 w2 x NB a ‘OKUMA MACHINERY WORKS LTD. 2452-B P~323 21-4. BEHAVIOR WITH TOOL NOSE RADIUS COMPENSATION MODE CANCEL 2-4-1. G49 Given with X- or Z-axis Motion Command To cancel the tool nose radius compensation mode, the G4G code is used. It is essential to understand the cutting tool movements resulted from the cancel of the compensation mode to avoid unexpected troubles. In the tool nose radius compensation mode, the tool path is generated so that the tool nose R is always in contact with the programmed contour. Meanwhile the axis position is controlled so that the tool tip reference point traces the programmed contour when the tool nose radius compen— sation mode is not active. Therefore, under- or over-cut often results when entering into or when cancelling the tool nose radius compensation mode. xt When cutting the contour comprising straight Line segments as illustrated above, it is programmed as below if the tool nose radius compensation mode is not active, Nl GU1 X10G 2100 FU.2 SiddS TYIdIdL MOS N2 260 N3 x12 Na x130 220 N5 COG x30 2309 With the commands above, the cutting tool moves along the path indicated by broken lines. That is, positioning for designated Point N3 is made to Point 03 and to Point 04 for Programmed Point N4. The uncut part parallel to straight line N3-N4 is left. Therefore the tool nose radius compensation function will be effectively used for cutting such contour accurately. See the programs in the following pages. ‘OKUMA MACHINERY WORKS LTD. 2452-B P-324, When tool nose R compensation cancel command is designate: N1 G42 G01 X100 Z1Gd FO.2 Sid09 TOI1d191 MOS N2 260 N3 x12g N4 64g x13g 226 NS God x300 2309 The tool path generated in the above program is shown by solid Lines: Positioning at programmed point N3 is carried out at the point where the tool nose R comes into contact with point N3, and that at programmed point N4 is carried out to point 04; the same point reached by the program in which the tool nose radius compensation function is not acti- vated. Therefore, the uncut part will be near point N4 while the section near point N3 is overcut. Improved program: NI G42 GO1 X1dG zI9d FO.2 sId¢d TOIGIG1 Mad N2 268 N3 x129 Na x13g 229 N5 G4 GOD x30 72390 Xt te na) N Nt To cut the exact contour up to Point N4, the G4 command which cancels the tool nose radius compensation mode is specified in block NS. Although the program yields almost the expected contour, the tool nose R goes beyond the designated point N4 along Z-axis since the tool nose R cones into contact with line N3-Ns at point Né. When such overtravel does not interfere or overcut, there are no problems. ‘OKUMA MACHINERY WORKS LID. 2452-B P-325 To eliminate such possible overcutting along Z-axis, see the program below. Program: Nl G42 GO1 XIdJ Z1dd FU.2 Siddd TOIGIdI Maa 2 z6g N3 x12 Na x130 220 NS Gd GOD x309 2309 T1d x Portion left uncut z+due to tip circle I and K words specified in the G4G block allows the tool to move to the point where the tool nose R is brought into contact with both line N3-N4 and line N4-N5. ‘OKUMA MACHINERY WORKS LTD. 21-4-2. 2652-E P-326 T and K Command with Gad In the block containing G4g, by entering I and K words that specify the imaginary point along with X and Z words that specify the point where nose radius compensation is cancelled, unnecessary axis motion required in conventional cancelling program is eliminated. NL G42 Gf1 X1dd 2105 FU.2 SIddd TULGIGL Mas NZ 260 NB x120 NA x139 22d NS G4d GIS Xx3dd 72399 Lid KG Imaginary point for positioning xe Portion left uncut due to tip circle at If block N5 containing G4U has no I and K words, positioning of the cutting tool by the commands in block N4 is executed so that the tool nose R comes into contact with line N3-N4 at designated point N4 and then moves along the path indicated by broken lines at point NS. Addition of I and K words in block N5 positions the cutting tool to the point where the tool nose R is brought into contact with straight line N3-N4 and imaginary straight line N4-NS' when the commands. in block N4 are executed. Execution of the commands in block NS brings the cutting tool to the programmed point N5 where the tool nose radius compensation is not active. Note: TI and K words should be commanded in incremental values. In this case the dimensions are referenced to point N&. When only either I or K is provided without the other, the control interpretes such word to have "@" value. Therefore, KO in the above program can be omitted. ‘OKUMA MACHINERY WORKS LTD. 2-4-3. Independent G4 2452-2 P~327 When G49 code is programmed without other commands in one block, posi- tioning is carried out at the point where the tool nose R comes into con- tact with the point specified in the previous block since the C4 block has no X and Z words which call for axis movement. NL G42 N2 N3 Na NS G4g N6 Ne Xt a a Ne NE CAUTION While cancelling the tool nose radius compensation mode (G4), the mode of operation must be either GU or G01. If not, an alarm col xidg x12 x13 cao x300 2199 FO.2 Siddd THIGIG1 M3 260 22 2300 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-328 21-5, RELIEVING TOOL TO CHANGE "'S" OR "x" CODE DURING CUTTING The tool nose radius compensation function is designed to automatically compensate the tool nose radius in a continuous cutting program; with the dimensions of the workpiece programmed, compensation is automatically made to finish the programmed dimensions. However, such powerful function requires careful programming which interrupting the continuous cutting to change § and/or M commands. This section deals with some programing examples in which the programmer experienced unexpected results by relieving the cutting tool during cutting on a continuous path. The original contour and its associated program are provided below: xt Ne NL NI G42 Gé1 X10@ 2100 F.2 Si5é¢ Ta1G1¢1 MAB N2 zag NB. x12g 249 sidod NG 228 The original contour comprises; straight line - slope - straight line and has no complicated section. Based on this program, the program to relieve the cutting tool at point N3 in the +X direction in order to change the spindle speed is made. See che programs provided hereafter. ‘OKUMA MACHINERY WORKS LTD. 21-5-1. Program 2 Nl G42 GOL xIg¢ Na NB x12 N31 cog x124 N32 cal x12 Na x4 Na Na Z198 FG.2 S150d TOIdIG1 Mas zag zag s10gd 226 * code change Uncut portion is left Ne 2452-8 p-329 NI The cutting tool is relieved at point N3 in the +X direction, spindle speed is changed and then continuous cutting is intende In this program, the cutting tool is positioned at a point where the tool nose R is in contact with line N3-N31 at point N31 when the commands in block N31 are executed since the three designated points N3, N31 and N32 lie on the same straight line. tioning with respect to the line is on the right. From N3 to N31, the side of the posi- To the contrary, com- mands in block N32 position the cutting tool to the point where the tool nose R is brought into contact with straight lines N31-N32 and N3-N4 on the right side of the tool advancing direction. tool to move not only in X-axis direction but in Z-axis direction although block N32 contains only X word. Such cutting tool movements leave an uncut portion as shown above. This causes the cutting ‘OKUMA MACHINERY WORKS LTD. 2452-E P-336 21-5-2. Program 3 N1 G42 GOL X1G6 Z1dd FO.2 sisdd TIgId1 MO Nz 280 NB x26 24d NOL cog x124 N32 x26 242 sigid Na con 220 . YL), Imaginary shape Overcut portion a In this program, elimination of the uncut portion caused by Program 2 is intended. Although the uncut portion is eliminated, this program caused overcutting, instead; what caused the overcutting is explained hereafter. When the control feeds the cutting tool from point N2 to point N3, it reads the position data of point N31 as well as those of point N3. This permits the tool nose R to be positioned at the point where the nose R is in contact with the two straight lines N2-N3 and N3-N31. After that, positioning is carried out at the point where the tool nose R comes into contact with the two straight lines N3-N31 and N31-N32, when positioning is made with the commands in block N31. This moves the cutting tool in the -X direction although the commands in that block specify tool move- ment in the #X direction. This is expected from the positioning in block N3, where the tool nose R goes beyond side N31-N32. Similarly, positioning of the cutting tool in block N32 is carried out at the point where the tool nose R comes into contact with both straight lines N31-N32 and N32-N4. This also causes the cutting tool to move in the direction opposite to the programmed direction. OKUMA MACHINERY WORKS LTD. 21-5-3. Program 4 N1 642. cgi Nz N3 N31 coe N32 Na gl Xt x19 x12 126 x12 Z100 FG.2 zg zag 243 22g s1sag TPId1g1 199d 2452-B P-331 Ng3 In this program, a tool looping similar to that performed in Program 3 is made with the numeral values modified to avoid overcutting. This program almost yields the expected finish. latent problems as: However, there are still = overcutting is caused depending on the size of the tool nose R ~ the length of side N31-N32 cannot be readily found. These problems are solved by looping the tool path along a square as explained later. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-332-R3 21-54. Program 5 N1 G42 GU1 X1G¥ Z10J FU.2 Si15¢d TOLGI1 MOB NZ zag 3 x126 240 N31. dd X124 Cra) N32 242 (¥b) 1000 33 col x120 Ne 220 far > 120 + 4 x (nose R) *b: > 4G + 2 x (nose R) Me a Portion left uncut In this looping path, the tool nose R moves inside the programmed rec~ tangle, N3-N31-N32-N33. Therefore, axis behavior can be easily expected if only these respective sides are longer than twice the tool nose R (four times on X-axis). Since this program leaves an uncut portion as specified, it can be further improved as indicated in Program 6. ‘OKUMA MACHINERY WORKS LTD. 21-5-5. Program 6 NI Na. 3 NBL N32 N33 Na Xt a2 2452-E P-333 Cdl x19 2190 FG.2 S15d9 T9IGIG1 Moa zag x120.5 239 COG X124 (a) 742 (b) S100 x12 col 22g fa: > 120.5 + 4 x (nose R) *b: > 39 + 2 x (nose R) Point N3 is shifted in the ~Z direction as much as tool nose R to elimi- nate the uncut part seen in Program 6. Programs 1 through 5 will provide some clues to complete the program for the intended cutting. - As an imaginary shape for tool path looping, select a rectangle or polygon but not a triangle. Triangles are apt to lead to unexpected tool movements. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-334, 21-6. PRECAUTIONS a (2) (3) «ay «) (6) If either X- or Z-axis exceeds the respective soft-limits, a "Limit Alarm" results. During the tool nose radius compensation mode, commands that do not cause axis motion, although dimension words are present, (zero offset by G code for instance, or thread cutting fixed cycle (G31, G32 and G33)) cannot be specified. To activate the tool nose radius compensation mode from the LAP mode operation, provide G41 or G42 in the block preceded by the one con- taining G81 or G82 in which dimensions of cutting in LAP are spec— ified. In the LAP mode operation, the tool nose radius compensation is active both in rough and finish cut cycles. Be sure to enter G4 which cancels the tool nose radius compensation mode before specifying the end of LAP contour designation code G&G. While in tool nose radius compensation mode, the same point should not be commanded in succession. However, one block that does not contain axis motion commands can be provided; the control is designed to accept such block. At the start up of tool nose radius compensation mode, the control starts execution of the commands after it reads in the commands in the successive two blocks. Therefore, pressing CYCLE START button, in MDI mode, after entering the commands for one block cannot start machine operation. Incremental commands (G91) can be provided in the tool nose radius compensation mode. OKUMA MACHINERY WORKS LTD. 2452-E P-335-R4 SECTION 22 USER TASK 2 22-1. OUTLINE OF USER TASK FUNCTION After years of work in data processing, we at Okuma are now able to provide our customer with the most efficient use of high data processing capacity in OSPSGL-G/OSPSGGL-G series. We have accomplished this in the develop- ment of User Task Function. Operations and functions constructed as one group of instructions are stored in the memory when assigned with a program name like a subprogram. The stored subprogram can be accessed from the main program by specifying the program name representing a group of instructions and the operations and functions in that program can be executed. 4 group of operations and functions to be stored is called User Task Program and the command to call it is User Task Call Command. Conventional program User task program User task call Operations command i and functions constructed in one group The biggest advantage of the user task function is that various operation functions and variables can be used in a user task program. In addition, the use of control statements assure versatility in the user task function. (OKUMA MACHINERY WORKS LTD. 2452-B P-336 ‘There are many fields where user task function can be effectively used; among them, the user task function in the following fielés is very advan— tageous. (1) The same contour is repeatedly specified in cutting a part such as a pulley. (2) Gears and flanges which have similar contours: By picking up common and similar contour elements of parts to be cut according to Group Technology, express those elements using variables. User task program is progranmed using the variables and actual dimea- sions of a specific part to be cut are provided in a cutting (or main) program. Thus the parts having the similar contour can be machined using one user task program. (3) Automatic cycle involving peripheral equipment and/or functions: Instructions necessary to interlock the machine cycle with bar feeder or loader cycle, or work loader/unloader, work gauging cyele commands, instructions for machine interlocked operation with robot or other peripheral equipment are programmed as user task programs. Activate this user task function when operating the machine with peripheral equipment and/or functions. Peripheral equipment and functions indicated above are all available from Okuma. However, it is also possible for a user a special func~ tion or operation by using the user task function. (4) Parts having similar contours: When dimensions of points where circular ares intersect or a circular arc and a tapered segment intersect each other are not indicated on a part drawing but if those points can be calculated by several expressions, user task program for these parts can be programmed using expressions. (5) Special fixed cycle for a user: When special fixed cycles or custom cycles are required to be made by users. As stated above, effective use of user task function can realize various operations and functions. In addition, complicated programs can be greatly simplified with this function assuring accurate and quick programming. ‘OKUMA MACHINERY WORKS LTD. 22-2. 2-2-1. TYPES OF USER TASK FUNCTION 2452-B P-337-R5 Relation between Types of Program Files and User Task Functions ‘Types of program files are discussed in the Operation Manual of OSPSUGDL-G, Section 4, "Application" (Publication No. 2446-2). Shown below summarizes the relation between the types of program files and user task funetions. ‘Schedule program / | file Schedule program file Schedule program file function | | Tain Wain J) Sab] Syston progran focogran/forsgvanf sveccnglan | file tite //" tite ff tite ft | (BF ayecem : prosran// subprogtan | file Jf file | veer teak 1 ther took 7 | Fig. 22-1 Fig. 22-2 Programs in Fig. 22-1 consist of schedule program and main program; User Task function can be used in these two types of programs. function applicable in such construction is called "User Task 1". task 1 is the standard function. User Task User The case shown in Fig. 22-2 is made from all types of program files and User Task function can be used in every type of program. User Task func~ tion applicable in such construction is called "User Task 2", This manual covers "User Task 2" and functions available with "User Task 1" are all contained in "User Task 2", OKUMA MACHINERY WORKS LTD. 22-3. 2452-E P-338 FUNDAMENTAL FUNCTIONS OF USER TASK ‘There are three fundamental user task functions as indicated below: (1) Control Statement Functions The statements to control the execution order of programmed sequences, such as "TF", "COTO" and "CALL" which are easily understood, can be used. (2) Variables In normal programming, numerical data directly follows the address characters such as X,Y, and Z. Instead of nunerical data, a variable expressed by alphanumerics can be assigned to the address characters, and actual numerical data are assigned to the variables in respective programs. This feature provides program versatility and flexibility. Example: Word used in conventional When a variable is used: program: K135 XSXPL xP: yoy Variable name Numerical data (alphanumeric) is assigned. (3) Arithmetic Operation Function This function allows arithmetic expressions to be directly programmed as a word data. Example: Word used in conventional When arithmetic operation program: function is used: K135 X = 100 + XP2_ XP2 = 35 or XP2 = 35 X = 100 + XP2 Provided in later pages are the detailed descriptions of respective fundamental user task functions. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-339 + Control Statement User Task 1 can use following six control statements: IP statement .., GOTO statement .. CALL statement . RTS statement MODIN statement . MODOUT statement ] User Task 1 User Task 2 Program these control statements either at the beginning of a block or right after a sequence name specified at the beginning of a block. Be sure to provide either a space or a tab code following the sequence name or a control statement as a delimiter. If not, an alarm occurs. For "IF" statement, it is not necessary to provide a space or a tab since it is followed by "left bracket - [". Example: N1gd1 coTO.N2g09 A space or a tab code tap 1./6oro\wLAap2 The element consisting of more than one address characters (A through 2) such as a sequence name and a control code must be followed by either a space or a tab code. Note 1: Sequence Name A sequence name is the code to identify respective blocks in a program, and it consists of four alphanumerics following address character N. There are two types of sequence names: , and "Sequence name" handled in this manual refers to both types of sequence names. OKUMA MACHINERY WORKS LTD. 2452-E P-340-R5 (1) GOTO Statement ~ Unconditional Jump a) Program Format Ls Ws ‘— sequence name of the block where jump is to be made and it must be specified without fail. Indicates "GOTO" statement. Sequence name of this block and it can be omitted. Note: Sequence name for jump must be the one in the program containing such control statement. b) Function When the control statement is executed, jump to the progranmed block, is made unconditionally. Note: On two-saddle models, jump from the program for A saddle to the program for B saddle or vise versa is not allowed. (2) IF Statement - Conditional Jump a) Program Format NU .. . Le is the to which jump is made when is true. This must be programmed without fail. This can be omitted. There are two possible states for the result of the , “crue and "false". must be expressed in (1. Indicates "IF" statement. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-341-R5 b) Function 1) When the is true, execution of the sequence jumps to the sequence . 2) When the is false, the following sequence is executed. Example: NIGQGuIF [VILEQUIG]UN2000 Means "equal Jump is made to N20Q when variable V1 equals 10 (V1 = 19). When V1 is not equal to 1, the following block is executed. ©) Jump by Judgement of Definition of Local Variable using IF statement .4 AFD. Local variables name>. . This is the to which jump is made when the designated variable has been defined. — This can be omitted, Local variable name to be judged whether it has been defined or not It is not necessary to use [ | to express a local variable name. Indicates IF statement. Sequence name of this block This checks whether the local variable name designated is defined or not. Jump is made to the designated sequence name, N3, when it is defined and the block which follows this N2 block will be executed if the designated local variable is not defined. Example: NiGOGuTPUABCUNZddS If local variable AC has been defined, jump to N204G sequence is made. If it has not been defined, the next block is executed. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-342 (3) Gall Statement ~ Calling Program a) Program format CALL? <01> is called and executed. When variables are set in the variable setting section, all of them are registered, Example: NIG CALL 01234 XP1=159 zPI=10¢ With the designated commands above, the subprogram 01234 is called and executed. At the same time, variables XP] and ZP1 are registered. (4) RTS Statement - End of Subprogram a) Program Format Indicates RTS statement. Sequence name of this block and it can be omitted. ‘OKUMA MACHINERY WORKS LTD. >) 2452-E P=343, Function This RTS statement must alvays be specified at the end of the subprogram; this declares the end of the called subprogram and execution sequence jumps to the block right after the one con- taining CALL statement. Example: Main Program NIGd CALL 01234 xP1 = 15 ZP1 = 10 Subprogram 01234 NOOL CH Xz NgS@ RTS When block N1GG@ in the main program is executed, jump to sub- Program 01234 is made. The subprogram is executed from N@@1 and when the control reads the RTS statement in NOS, jump is then made to N1Q@1 of the main program and the commands in that block and those after that are executed. At the instance the jump from the subprogram to the main program is made, variables XP1 and 21 are cleared. Order of program execution: ng5d|—~ [wiggi}... {nag09]—[o1234]—[naai ‘OKUMA MACHINERY WORKS LTD. 2452-8 P~344, (5) MODIN Statement a) Program Format <01> Assign numerical data to the variables used in the subprogram to be called. Indicates the number of repetitions of the subprogram to be called. (1 through 9999 following address character Q) When omitted, the control assumes Ql. Program name of the subprogram to be called. This must be designated without fail. Indicates "MODIN" statement. Sequence name of this block and it can be omitted. b) Function The designated subprogram is called each time axis motion conmand(s) is executed. That is, the designated subprogram is called and executed each time axis motion command (*1) in the S program calling that subprogram is executed. This function remains active until the MODOUT statement detailed in (6) is read. 1 Axis Motion command means the command in G6, GUL, G3 and G31 through G35 modes which contain either or both of X and 2 words. (6) MODOUT Statement a) Program Format Indicates MODOUT statement. Sequence name of this block and it can be omitted. b) Function This is the statement to cancel the MODIN mode. ‘OKUMA MACHINERY WORKS LTD. ) 2452-E P-345-R5 Program Example of MODIN and MODOUT Statements Main Program Subprogram NOL co XZ Nga xd31yooIN o10g@ Nos xz K2F N33 Kz N934 z N35 xk R039 Ng4g — MODOUT Nga Ng6d ma Order of program execution: nggi] [xo3d] [no3i] [ng32] [orga] [mond ng33] [o1dds] [wigad] [ng34] [orsdg] [mous ng35] [oigea] [wigag Main and subprograms are executed repeatedly. Ng4g] Main programs is executed. [NOG The program is started from NOJ1 of the main program and the conmands up to N39 are executed in ordinary manner. With the conmands in N31 executed, the control is in the MODIN mode calling the subprogram 01004. In this block, however, the sub- program is not executed. When the exis motion commands in block NG32 are completed, the subprogram 01000 is called and executed up to N1G4G in that subprogram. The RIS statement causes jump to the main program and N033 in the main program is then exe~ cuted. The same step is repeated up to block NJ39 in the main program. The MODOUT statement in NO4O cancels the MODIN mode and the conmands in the blocks after N@41 are executed in ordi- nary manner. ‘OKUMA MACHINERY WORKS LTD. 2652-B P-346 Note 1: Nesting and effective range of MODIN/MODOUT mode Permissible nesting level in MODIN mode is eight. Example Main Progran Subprogram Ngo1 NODIN o1gud o1asa : ~ NIddl cas x 2 Nol MoDIN o2gud : NOLL CHD XZ N1G1@ RTS. NOL2 o2as0 N020 Mopour J N2Gd1 CUS XK 2 N03d_Mopour N2g1¢ RTS The example above shows the nesting of two levels. The MODIN mode is active from NOI to NG3G for subprogram 01009 and from NGIG to NG2G for subprogram 02009. Operation Sequence: 1) In the blocks from NOG1 to NIG, subprogram 01099 is called and executed each time axis motion command is executed. 2) In the blocks from NO1G to NG26, subprogram 01080 is called and executed first after axis motion command is executed. Then, subprogram 02000 is called and exe- cuted in succession, In case the subprogram 02000 contains axis motion commands, N20G1 in this example, 0100 is executed after such axis motion command is completed. After the subprogram 02090 is completed, the block of commands in the main program is executed. 3) In the blocks from N@21 to N39, subprogram 01999 is called and executed each time axis motion commands is executed. Note 2: The MODIN mode must be cancelled by the MODOUT statement designated in the same program. That is, the MODIN mode activated in the main program cannot be cancelled by the MODOUT statement in the subprogram, or MODIN mode active in the subprogram cannot be cancelled by the MODOUT state- ment in the main program. Note 3: Maximum number of subprograms usable in a single program is 125. ‘OKUMA MACHINERY WORKS LTD, 2452-E P-347-R5 (7) READ/WRITE statement READ and WRITE statements are used for communications with external devices through the RS232C interface. They are used in conjunction with GET and PUT statement explained in (8) below. a) Program format Us ‘—— Channel designation for RS2320 interface nag. ONG: or Tr: Nl: cna: ona: Default: n= Indicates the READ statement. Sequence name of this block and ic can be omitted, SWRITE> Ws ‘—Channel designation for RS232¢ interface Same as READ statement Indicates the WRITE statement. Sequence name of this block and it can be omitted. b) Function READ WRITE .. ++ Receives the data from the external device connected to the channel designated by and stores it in read area (max. of 169 characters) in the JIS8 code. Sends the data stored in the write area (max. of 169 characters) in the JIS8 code to the external device connected to the channel designated by . OKUMA MACHINERY WORKS LTD. °) a) e) 2452-E P-34B-R5 ‘Transmission procedure It is necessary to change the baud rate and signal construction in advance for the RS232C interface which is going to be used for the communication through RS232C interface. For setting, No. 39 through No. 43 of the optional parameters (baud rate CNJ: to CN4:) and No. 12 through No. 16 of the optional parameter bits (signal construction CNG: to GN4:) are used. For details, refer to the operation explained in 4-3, "Parameter Setting" of the Operation Manual. Transmission code For transmission codes, JIS 8 bit code or JIS 7 bit code (in this case, use even parity bit) are used. Transmission finish code NULL or % is used. This selection is referenced to 3 of the optional parameter bit No. 1. (% is selected by 1 and NULL is selected by J.) Others 1) The following situations will cause Alarm B. - The number of characters of transmission data exceeds 160. - Transmission of data through RS232C interface stops for more than determined period of time. - An alarm has occurred in the R$232C interface during transmission. RS232C is no longer in ready status. 2) Do not execute list output or punch out using the same channel of RS232C interface during the execution of the READ/WRITE command. 3) Execution of the READ/WRITE command and printing out of measured data cannot be executed at the same time. While either of them is being execution of the other com- mand is suspended. 4) READ/WRITE areas are common for A and B saddles. Since the areas for READ and WRITE are different, execution of the READ command does not change the WRITE area. 5) Nothing but a sequence number should be placed before the READ/WRITE command. 6) When using JIS 7 bit code, designate SI code (shift in $0F) at the beginning of communication | and designate SO (shift out $E) at the end. Since both SI and SO are treated as @ata, include them in the number of characters in transmission. OKUMA MACHINERY WORKS LTD. (a) GET/PUT statement a) Program format 2452-E P-349-R5 NOD , <@> L This indicates the number of digits to be read out from the read area where the data has been stored by the READ statement. Olax. of 19 digits) If "s" equals "J", this indicates the number of characters to be skipped. (ax. of 16$ characters) '— The variable name used to store the data in the read area where the data have been stored by the READ statement. (conmon variable, systen variable, local variable output variable) Indicates GET statement. Sequence name of this block and it can be omitted. <> Ls , <2 Laas indicates the number of digits to be written to the write area using the WRITE statement. (Max. of 1f digits) If "S" equals "@", this indicates the number of space codes. (Max. of 160 space codes) Indicates the data to be written to the write area; variable name, character— string, or hexadecimal number (conmon variable, system variable, local variable, input variable, "ABC", $A) (Indicates PUT statement. Sequence name of this block and it can be omitted. OKUMA MACHINERY WORKS LTD. >) °) 2452-E P-35G-R3 Function This reads out the numerical data (J188 code) from the read area where the data has been stored by the READ statement and sets it to the variable desig— nated. cer. This stores the numerical data of the variable and a character string designated in the write area output by the WRITE statement. The data is stored in the JIS8 code. PUT . Function details GET ...... First, the code read out in the READ area by the READ statement is read out as many as the number of the characters designated in from the position of the area read pointer (to be referred to as RRP later). Then, the read out data is converted into numerical values and set in the type of variable designated in . At this moment, RRP is added by <2>, RRP is set at the beginning of the READ area when the READ statement is executed or the NC is reset, and the data is added when GET is executed. Returning is impossible. As mentioned before, since the READ area is common for both A and B saddles, when it is necessary to read the mixed data of A and B saddles, synchroniza- tion by M19 is required. Alarm B occurs in the following cases: ~ When RRP exceeds the number of codes read by the READ statement - When conversion into numerical data is impossible Example: When there are more than two decimal points or code other than @ through. 9 exists ‘OKUMA MACHINERY WORKS LTD. PUT 2452 E P-351-A3 When common variable or local variable is designated in , the real type is used, and when input variable is designated, the integer type is used, and for the system variables, data is convert :d into JIS 8 letter codes in accordance with the attzibute of the system variable. Then the letter cod: is written in the WRITE area for as many as the numbir of digits designated in <> fron the position of ch: write-in pointer of the WRITE area (to be referred to as WNP later). At this moment, WP is added by <8. WWP is set at the beginning of the WRITE area when the WRITE statement is executed or the NC is reset, and the data is added when PUT is executed. Return ing is impossible. Character string or hexadecimal number can be used for in PUT statement. However, the limit for the number of characters to be designated is 16. <&> must not be designated. Hexadecimal number: PUT — $9DA Follow $ Capital letter: PUT ‘ABCD" Finish with * Small letters: PUT ' ABCD" Starts with ' Since the WRITE area is conmon for both A and B saddles, when it is necessary to transmit the mixed data of A and B saddles, synchronization by M19 is required. Alarm B occurs in the following cases: - When WNP exceeds 160 ~ When NULL or % exists in hexadecimal number ‘OKUMA MACHINERY WORKS LTD. 2U52-B P-352-R5 4) Relationship between READ/WRITE and GET/PUT Data communications are made using the variables (common variables, system variables, local variables, input/output variables) and external devices through the read/write area. [osrsagu-c/ospsapgL-c 7 | | [xcerna’ | [oomaon vartabie]4 Cet _| |e le-plaevtce | |System variable] Read area cud TT | puncher | |Local variable A | |printer; | [Inpot/output | Ste variable | Or WRITE, cx} | | | | i 7 | \ Write area ! | | | ows] fy \ | i xs2320 | | | Anverface| | \ | \ = NI READ @.. N20 GET 10 N3. GET VI, wee NéIF[VI EQ @] WII NS GET U9. N6 GET WV2,2. N7) GET 44. N8 GET ws VTOFX[V2] NO GET 4. NIG GET G vToFz{v2) Nu a Data is read from CNG:. Message (a) (1d letters) is skipped. llth letter is read in V1. Message (b) (9 letters) is skipped. 2ist and 22nd letters are read into V2. Message (c) (4 letters) is skipped. 27th to 3st letters are read into tool offset data, Message (4) (4 letters) is skipped. 36th to 4dth letters are read into tool offset data. ‘OKUMA MACHINERY WORKS LTD. Transmission data 1 5 A Compensation Yes/No = 1 Offset No. vi 15g 2452-E P-353-A3, 25 36 35 ag 4 3 OK = 0.02 Loz =~9.31 fee IEC LJ (a) (b) (c) (a) The result of the preceding program: v1 v2 3 vTorx[3] = ¢.2 vrorz[3] = -9.31 Printer is supposedly connected to CNG: wigs Nig N1g2 N1g3 Nga NOS Nig6 167 N1g8 nig9 Nig MLL 112 PUT u 4 Pur Pur pur Pur pur Pur Pur Pur pur pur Pur "TOOL u OFFSET .. DATA’ soDoA tye! vi,2 Yoke vrorx[v1],8 ager vrorz(v1],8 song WRITE 6 ceteeeeee & spaces Carriage return code Tool offset number Tool offset value + Carriage return code The following will be printed when the preceding program is executed. wuuu* u TOOL GOFFSET u DATA u Neu 3uK= vuu 5.412 02= uu 14.339 OKUMA MACHINERY WORKS LTD. 22-3-2. 2452-B P-354-R4 Variables There are three types of variables used with User Task = Common variable ~ Local variable ~ System variable These three types of variables differ in their use and characteristics. (1) Common Variable The term "common" of common variables can be literally understood as common; they are common to main and subprograms. When the same variable is used in two or more programs, the variable number used in those programs must be identical. Therefore, the common variable, the result of calculation in one program, can be referred to in other programs. 2) Progran format Cone or two digits> = numerical data or expression Designation of a common variable is made with up to two digits following "V". Usable common variable is V1 through V32. In a program, a common variable is used as: NIGLsV5S = 18, or N1Gluv5 = V5 +1 Note 1: Common variables are used in common to A-turret and B- turret. Note 2: Common variables are effective both in main and subprogram. Note 3: Common variables are not affected by control reset or turning power off. That is, the data are retained unless they are re-set or a control program tape is loaded. Note Common variables can be set or changed by setting a param- eter besides setting or changing them in a program. For detailed information of parameter setting, refer to Operation Manual for OSP509L~G/OSP5UUGL-G, 4-3, "Operation in Parameter Mode" (Publication No. 2446-8). OKUMA MACHINERY WORKS LTD. (2) 2452-E P-355, Local Variables As may be known form the term "local", local variables are the variables that a user can set as desired with a name easy to distinguish from each other. Up to 127 local variables can be used for A-turret and B-turret, respectively. a) Program Format Sbetter> = Numerical data or f -— expression Ho", "NM and " cannot be used. Example: 'DIAL’ 'ITHS* The name identical to function names (#2), relative operators (#2), logical operators and extended address characters (#2) cannot be used. Extended address characters are used for LAP, pat- tern processing, user fixed cycle and other extended functions which cannot be covered with conventional address characters A through Z. Extended address characters are: , , , , , , , , , , , , , , , , , , , , , , ,
) Characteristics of Local Variables 1) 2) Local variables can be used independently on A-turret and B- turret, and are cleared when the control is reset. When a new local variable is set in a main program, that is, when data is assigned to a new local variable name, that local variable name and corresponding data are registered in the memory. If a local variable name is used without assigning the data, an alarm results. OKUMA MACHINERY WORKS LTD. 2452-E P-356 3) When new data is assigned to the local variable already registered with another data, that old data is renewed. Main program In NOG1G, numerical data "169" is assigned to local variable name "DIAI", which remains effective up NGGIG DIAL = 16¢ ro sequence NOJ49. In NOUS, new : numerical data "290" is assigned Nngg49 to the same local variable name NGOS DIAL = 299 "DIAL". This clears the old data "169" and it is substituted with the new data "290" 4) Up to 127 local variables can be used on A-turret and B- turret, respectively. 5) When a subprogram call command (CALL statement) is programmed in the main and the subprogram with local variables set in the block containing CALL statement, the variables assigned vith the numeral values in such block are all registered as local variables and their numeral values are stored in memory. Even when the local variable having the same name as the one already registered before the call statement is programmed is designated, it is newly registered as a new variable. Subprogram Main Program o1gag N19 CALL 01499 aBceigy N1950 CALL 02009 aBC=5dd & DEF = 159 & DE = 750 \ i Registering Local Variable in Memory abe 10d Numerical data assigned to the local ]RE variables by the CALL statement in DEF 150) the main program | anc 50a Mumerieal data assigned £0 the Local DEF 750 the subprogram As shown above, the variables having the same name as those already registered are newly registered as different variables. OKUMA MACHINERY WORKS LTD. Main program 6) 2452-E P-357-R3 When using local variables in the subprogram called the numerical data assigned last to the local variable is used when there are several local variables assigned with the same name registered in the memory. The local variables set in the block containing CALL state- ment are all cleared when the RTS statement in the called subprogram is executed. Subprogram 1 Subprogram 2 Subprogram 3 Nig9 CALL 01806 4 ancen09 DEre138 \ qa) Registration of local variables Wain program Subprogram 1 Subprogram 2 Subprogram 3 9 2009 000 1859 CALL 02060- x3p29 caLL 03440-~ 4 anceses DuP=759 4 asceuop DEE=359 mous is RIS | @) A @) + Cleared in (1) wees Cleared in (2) sees Cleared in (3) In the example above, execution of N21G in the subprogram 2 registers 4 kinds of local variables ABCs and DEFs and the subprogram 0300 is executed. If the subprogram 03609 con- tains local variable names ABC and DEF, the numeral data registered last, i.e., ABC=46@ and DEF=35@ are called for. At the end of the subprogram 03999, that is, when the RIS statement in 03909 is executed, the local variables registered by the subprogram CALI. 0394, ABC=409 and DEF=359 are cleared from the memory. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-358 7) When a local variable is newly set in a subprogram, its name and numerical data are registered in the memory. They are effective only in the subprogram in which they are set, and are cleared when the RTS statement in that subprogram is executed. Main Program Subprogram 0100s N1G@ CALL O1d09, | Local variables set within 1 | these blocks are all \ | cleared when block 1106 1 | is executed. 1 1 1 NLIQG RTS 8) When numerical data is assigned to the local variable name which is already assigned with another numerical data while a subprogram is executed, the numerical data is renewed. If several local variables having the same variable name are registered in the memory, the numerical data of the local variable registered last is renewed. Registration of Local Variables Subprogram 2 Main Program o2gad Subprogram 1 N2gid Subprogram 2 N2g4d ABC=224 DEF=309 N219 RTS While the subprogram 2 is executed, local variables ABC=40U and DEF=35 are registered in the memory but they are cleared by executing program 3 RIS. Therefore, the variables registered when progran 2 is called in N195@ are effective in the blocks up to N2839. Therefore, when block N204G is executed, the numerical vaiues of locai variables ABC and DEF registered in the subprogram ? are renewed to 220 and 300, respectively, and those registered in the subprogram 1 and the main program are not renewed. ‘OKUMA MACHINERY WORKS LTD. @) 2452-E P-359 System Variables System variable means the variable specific to respective aystems and its name is fixed. The system variables are set for respective turrets independently and not cleared when the control is reset. System variables available are: - Zero offset variable - Zero shift variable - Tool offset variable - Nose radius compensation variable - Tool interference data variable - Variable soft-limit variable = Chuck barrier variable = Droop variable - Tailstock barrier variable - Pitch error compensation variable - User restart variable - Alarm comment variable These variables can be set, changed and used in a program according to the format detailed later. Therefore, they can be effectively used in programs requiring them, such as work gauging program, tool gauging program, and post-process gauging program. They, of course, can be set by selecting ZERO SET, TOOL DATA or PARAMBTER mode. For details of setting procedure, refer to the Operation Manual for OSPSUGL-G/OSP5G0GL-C. System variables are detailed hereinafter: Fundamental Program Format of System Variable System variable .... (character string in this part is determined and the use of illegal character string causes alarm. All the system variables are pre- ceded by character "Vv". ‘OKUMA MACHINERY WORKS LTD. 2452-E P-360 a) Zero offset variable Variable name Zero OFfset of Z-axis Zero OFfset of X-axis Zero OFfset of W-axis (only for programmable tailstock specification) ........ Zero OFfset of C-axis (only for multi-machining model) When setting a variable, designate as VZOFZ = 12364.256. b) Zero shift variable Variable name Zero Sift of Z-axis Zero SHift of X-axis Zero SHift of C-axis Conly for multi-machining model) When setting a variable, designate as VZSHZ = 50. These zero shift variables deal with shift anount set by zero shift operation called by G5¢, and the set shift amount is cleared when the control is reset. €) Tool offset variable Variable name <¥TOFZ> [Tool Offset No.] ..... Tool OFfset of Z-axis SVTOFX> [Tool Offset No-] ..... Tool OFfset of X-axis When setting a variable, designate as VTOFZ [5] = 2.634. \ \ This indicates that tool offset amount of Z-axis for #5 is set 2.634. ‘OKUMA-MACHINERY WORKS LTD. 2452-E P-361 8) Nose radius compensation variable Variable name [Nose R Compensation No.] NoSe Radius compensation of Z-axis [Nose R Compensation No.] NoSe Radius compensation of X-axis When setting a variable, designate as VNSRZ [4] = 9.8 This indicates that nose radius (in Z-axis) of che tool assigned with nose radius compensation no. 4 is set to G.8 mm. e) Tool interference data Pattern 2 ZN, 2p Pattern 1 fe a ‘OKUMA MACHINERY WORKS LTD. f) 2652-E P-362-R3 Variable name [Tool No.] .... Tool Interference on Z-axis at Negative end; ZN [Tool No.] .... Tool Interference on Z-axis at Positive end; ZP [Tool No.] ...+ Tool Interference on X-axis at Negative end; XN [Tool No] .... Tool Interference on X-axis at Positive end; XP [Tool No.] .... Pattern number Note: In the graphic specification, tool interference data is calculated in the NC device by the protrusion amount designated on the tool shape selection page and tool diameter and tool interference variable for automatic determination. Therefore, if the interference data is rewritten by using tool interference data variables, it is not used. Variable soft-limit variable Variable name ....+... Positive Limit on Z-axis PositiVe Limit on X-axis + NegatiVe Limit on Z-axis NegatiVe Limit on X-axis PositiVe Limit on W-axis (only for programmable tailstock specification) NegatiVe Limit on W-axis (only for programmable tailstock specification) 63 When setting a variable, designate as VEVLZ = 235: This indicates that variable soft limit of Z-axis in positive direc— tion is set at Z = 2352.168 om. Numerical data of these variables are referenced to the origin of the machine coordinate system (machine origin). ‘OKUMA MACHINERY WORKS LTD. 3) op pL 2452-E P-363-R3 Ghuck darrier/tailstock barrier variable LL Workpiece end face cz a) Variable name Jaw dimension LI .. Jaw dimension D1 Jaw position oz .. + Center dimension L2 ......-. Center dimension D2 . + Center position D3 .. ++ Workpiece end face Numerical data of these variables are referenced to the origin of the program coordinate system (programming zero). Droop variable Variable name ....+.4. Droop amount in Z-axis IN Position 2-axis ++ Droop amount in X-axis IN Position X-axis ++ Droop amount in C-axis IN Position C-axis . ‘OKUMA MACHINERY WORKS LTD. i) D kK) 2U52-B P~364-R5 Pitch error compensation variable Variable name ....+.++ Piteh compensation amount in Z-axis Pitch Fillup Value Z-axis ......4+ Pitch compensation amount in X-axis Pitch Fillup Value X-axis ........ Pitch compensation amount in C-axis Pitch Fillup Value C-axis Pitch amount in Z-axis PitCH Z-axis ........ Pitch amount in X-axis PitCH X-axis ...... These variables are used only for the pitch error compensation specification. Restart variable Variable name 2.00... ReSTarT This indicates the restart state in the sequence restart operation. 90 = Not in restart #80 = In restart Example: Nigd IF [VRSTTUNEW us n200 Alarm comment variable Variable name [Input variable no.] ....... Data INput Left bracket Right bracket Input Variable Contents of Data Input Equipment No. 1-8 | Bit data: @ (OFF), 1 (ow) Panel input 9 1 byte data in which data of variables | Panel input #1 through #8 are corresponded to bit J through bit 7. 6 5 bits data of hexadecimal number, 8@ | Panel input through SIF ‘OKUMA MACHINERY WORKS LTD. 2452-E P-367 customer. Input Variable Contents of Data Input Equipment No. 11-18 | Bit data: 9 (OFF), 1 (on) External input (EC) 19 1 byte data in which data of variables | external input (EC) #11 through #18 are corresponded to bit @ through bit 7. 21-22 [Bit data: @ (OFF), 1 (ON) Panel input 23-24 | Bit data: @ (OFF), 1 CON) External input (EC) 31-38 | Bit data: @ (OFF), 1 CON) Panel output 39 1 byte data in which data of variables #31 through #38 are corresponded to bit G through bit 7. 81-88 | Bit data: § (OFF), 1 (oN) Robot input 89 1 byte data in which data of variables #81 through #88 are corresponded to bit @ through bie 7. agi - 812 [1 byte data Post~processing input 821 - 832 [1 word data Post-processing input 1009 - 1004 | Timers: 1 msec., 1 sec., 1 min., l hour, 1 day (with power turned on, timers are reset to "g" and starts counting up after that: 4-byte counter) 1149 - 1123 | Condition of external inputs: External input (EC) #1 through #24 1124 = 1149 [Condition of panel inputs: Panel input #1 through #26 1150 = 1165 | Condition of external outpute: External output (EC) #1 through #16 [1166 = 1194 | Condition of panel outputs: Panel output #1 through #29 1195 ~ 1218 | Condition of extended external inputs: | BC extended input #1 through #24 1219 ~ 1234 | Condition of extended external inputs: |G extended output #1 through #16 1235 ~ 1250 | Condition of specification codes: #1 through #16 Note: Details of specifications must be discussed with a ‘OKUMA MACHINERY WORKS LTD. 2452-E P-368 (2) Output variable Variable name [Output variable Now] seseeeeeeee+ Data OUTput Left-bracket Right bracket Output Variable Contents of Data Output Equipment No. 1-8 | Bit data: G (OFF), 1 (ON) Panel output 9 1 byte data in which data of variables | Panel output #1 through #8 are corresponded to bit J through bit 7. 11-18 | Bit data: (OFF), 1 (on) External output (EC) 19 1 byte data in which data of variables | External output (EC) #11 through #18 are corresponded to bit @ through bit 7. 21-22 | Bit data: @ (OFF), 1 (ON) Panel output 23-24 | Bit data: @ (OFF), 1 (ON) External output (EC) 31-38 | Bit data: @ (OFF), 1 (on) Panel output 30 1 byte data in which data of variables | Panel output #31 through #38 are corresponded to bit @ through bit 7. 41-48 | Bit data: @ (OFF), 1 (ON) Panel output 49 1 byte data in which data of variables | Panel output #41 through #48 are corresponded to bit G through bit 7. 81 - 88 | Bit data: (OFF), 1 (on) Robot output 89 1 byte data in which data of variables #81 through #88 are corresponded to bit @ through bit 7. 91-98 | Bit data: 9 (OFF), 1 (ON) Robot output 99 1 byte data in which data of variables #91 through #98 are corresponded to bit @ through bit 7. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-369 Output Variable Contents of Data Output Equipment No. 991 Alarm C User code Alarm output 992 Alarm B User code Alarm output 993 Alarm A User code Alarm output Note: Details of specifications must be discussed with a customer. 22-3-3. Arithmetic Operation Function Arithmetic operation using variables can be performed. Its programming may be done in the same manner as general arithmetic expression. SAddress character>, , = The expression in the right: hand side, requesting arithmetic operation, is made from constants, variables, functions, boolean expressions, com— parison expression, and operators. ‘Types and contents of them are detailed on the following page. (1) Arithmetic Expression Operator Meaning Example | Rule and Remarks + Positive sign #1234 - Negative sign ~1234 + Sum (addition) X=12.3 + VI - Difference (subtraction) | X=12.3 - v1 * Product (multiplication) | X-V1g * 19 / Quotient (division) XeV1l / 19 ‘OKUMA, MACHINERY WORKS LTD. 2652-E P3718 (2) Comparison Expression Operator Meaning Example Contents Rule ut | ess than, <) | IF [v1 LT 5) N1G@ | Jump to N1dd when VI is less than 5. ué — |Gess than or | IF [v1 LE 5] N99 | Jump to NIGd Equal to, 3) when VI is less than or equal to 3. EQ | (Equal to, TF [V1 £Q 5] N1GO | Jump to N1GB Provide a when VI is equal | space on to 5. either side of ne (tot Equat co, [IF [vi NE 5] NIG | Jump to Nidd the * when V1 is not | operator. equal to 5. ct | (Greater Than,>) | IF [V1 GT 5] N1GG | Jump to NGS when VI is greater than 5. ce | (Greater than or | IF [V1 GE 5] NIG | Jump to N1GO Equal, 2) vhen VI is greater than or equal to 5. (3) Boolean Expression Operator Meaning Example Rule oR Logical sum VDIN [11] OR WDIN [12] Provide a space on AND | Logical product | VDIN [11] AND VDIN [12] | either side of the operator. BOR | Exclusive OR VIN [11] BOR DIN [12] wor | Negation ‘OKUMA MACHINERY WORKS LTD. (4) Functions 2452-E P-371 Rule and Remark The numbers after the function opera- tion symbols must be enclosed using '[' and 'J'. In addition, they are used for specifying the priority of operation execution order. When two elements are specified in "[ J", place a comma "," between them. ‘The position of a decimal point is determined in accordance with the unit system selected. Unit systems for angle commands are: 1 deg. for 1 mm and 1 inch unit system, 9.001 deg. for 1 yl unit system, 9.d¢91| deg. for 6.9091 inch unit system. Operator Meaning Example SIN Sine X = 15*SIN [22.5] cos Cosine Z = 15%C0s [22.5] TAN Tangent 2 = 15¥raN [12.5] ATAN | Arctangent (1) X = LS*ATAN [22.5] Value range: -99° ro 99° avan2 | Aretangent (2)* ATAN2 [19.15] sqrt | Square root X = 15*SQRT [224.5] ABs Absolute value as [V15] BIN Decimal to binary BIN [V15] conversion 4 BYTE BoD Binary to decimal BoD [v2] conversion 4 BYTE ROUND | Rounding off fractions RounD [v5] FIX Cutting off fractions FIX [v7] FUP Counting fractions as Fup [vis] a whole number DROUND | Rounding off the frac~ — | pROUND [v2d] tions to three decimal places (metric system) or to four decimal places Cinch system) DFIX | Cutting off the fractions | DFIX [v2] blow the third place of decimals (metric system) or below the fourth place of decimals (inch system) DFUP Count the figures below | DFUP [v21] the third place of deci- mals (metric system) or below the fourth place of decimals (inch system) as a whole number Mop Remainder (a-fix[a/b]*b) *: The value of ATAN2 [b,a] by the coordinate values represents the angle of the point defined (a,b). Its range is from -180° to 180°. ‘OKUMA MACHINERY WORKS LTD. 2452-B P-372 « Combination of Operations (1) operations and functions explained in the previous page can be con- bined as needed. X = VI + v2 - v3 + v4 * cos [39] (2) Designating operator precedence by [1 Operator precedence can be determined with the use of [ ]. Example: Vi = [v2 + V3] * v4 + STN [[[V5 - v6]/v7] + v8] —o —® ‘OKUMA MACHINERY WORKS LTD. 2452-8 P-373 22-4, PROGRAM EXAMPLES Three typical program examples are provided in the following pages. They are prepared only for your reference purpose and they do not cover all the functions available with User Task 2. Please refer to the examples so that you can make the most of User Task function for preparing programs. ‘OKUMA MACHINERY WORKS LTD. 2452-E 376, ....... [Shaft work with similar contour] Progranming Fig. 22-3 Assuming three different workpieces having similar contours as shown above are to be cut, programs are prepared using user task function. (1) Assign respective workpieces with file names: SHAFT~8 SHAFT-3 SHAFT-C (2) Since these workpieces have similar contours, their contours are defined with a subprogran. File name of the subprogram is "SHAFT-ABC. SUB". (3) The elements (dimensions) used to define the contour, and the tool numbers and the cutting speeds are expressed using the local variables and the common variables, respectively. V1 = Roughing tool DX1 = Diameter Dx1 V2 = Finishing tool DX2 = Diameter DX2 V3 = Cutting speed in DX3_ = Diameter Dx3 roughing cyele WLZ1 = Finish allowance in V4 = Cutting speed in longitudinal direction finishing cycle wal LZL = Longitudinal UDX1 = Finish allowance on dimension LZ dianeter UX1 122 = Longitudinal Xs = X coordinate of LAP dimension L22 starting point 123 = Longitudinal Zs = Z coordinate of LAP dimension 123 starting point (4) For cutting a workpiece, LAP mode is used. (5) Described above are summarized in Table 22-1. ‘OKUMA MACHINERY WORKS LTD. 2452-8 P-375 Table 22-1 Work A Work B Work ¢ SHAPT-A SHAFT-B SHAFT-C Roughing tool va aa 303 505 Finishing tool v2 6202 wage. 606 Gutting speed an 9 in roughing cycle | V7 i” ¢ e Cutting speed in finishing eyele| _“* ia a 190 al Lal 200 25 300 122, a2 158 17d 200 123 123 8g 198 124 DxI Dx 30 a 50 Dx2 Dx2 56 10 90 Dx3 Dx3, 30 12d 13 wal WLZ1 1 15 0.2 vx UDx1 0.2 9.25 a3 Xs Xs 190 14g 170 Zs Zs 20 260 300 The subprogram defining the contour, prepared using local and common variables, can be programmed as below according to Table 22-1. §_ SHAFT-ABC. SUB % O1dge NLAPI CBr NIGdL (GOO X=DXT Nig CHL FO.2 i903 X=DXD N1GG4 N1OOS H=DXS 1006 2G NIGG7, Car NGI cio x80d Z=400 NIGLL G96 X=Ks 0s ae was _ Mga NIGLZ G85_NLAPI Da F9.35 N12 Cid x60 Zag NIg21 Nig22 (G87 NLAPT ‘OKUMA MACHINERY WORKS LTD. 2452-E P-376 The main program for each workpiece is progranmed as below using the subprogram. Workpiece A §_SHAFT-A.MIN % odd N1G1 COG xO0d ZAG NIg2 CALL 01090 V. Lz1=298 Lz2=159 Lz. § Dx1=34 DX2=5¢ DX3-89 = WLZ1=G.1UDxI= Gl v2=0202 V3=100 Wa=120...... a) 2 XS=109 28-219 Rigs uG2 a) File name of the main progran ... Program $ proceeding the file b) Specify % code at the beginning of a program. ¢) Program name ... 0109 in this example 4) With the commands in N1G2, the subprogram 0109 is called and exe- cuted. Numerical data for the variables used in the subprogram to be called are all set. When the commands in this block cannot be written in one line, separated them in several lines with placing "$" code at the beginning of the 2nd and later lines. The control recognize those commands as progranmed in one block. Workpiece B §_SHAFT-B.MIN, x ogi Nigi_ GOS _xe00 2400 W1G2 CALL 1000 Vi=9393 V2=9404 V3=110 Wa=130 LZ1=250 L22=176 L23-199 $_DXI=4 DX2=7 _DX3"120 WLZI=G.15 UDK1=G.25 XS=140 28-260 NiG3 102 Workpiece ¢ $_SHAFT-C.MIN % olga Nig] COG xadd 2009 N1G2 CALL 01000 VI=9505 V2=G608 V3=39 Va=ISd LZ1=300 122=206 123-129 §_DX1=56_DX2=99_DX3=15¢_WLZ1=G.2 UDXI=G.3_XS179_zS=360 Nig3_HG2 ‘OKUMA MACHINERY WORKS LTD. 2452-E P-377 + (Cutting contour requiring calculation for defining 1) eae [-Contour of material i = ae Programming Ly zero 7" Jot When cutting the contour containing a circular arc and a taper and when the point(s) of intersection is not indicated on the part drawing, the user task function featuring operation function is effectively used for pre~ paring a program for such contour. (1) With enlarging section A, have the control calculate the points of intersection using the variables and the operation function of the user task. ‘The points that must be calculated are Z-coordinate of point a and X- and Z-coordinates of point b. To obtain them, variables are set as below. OKUMA MACHINERY WORKS LTD. 2452-R P-378 Set using common variables Vig = Taper angle (15°) VI1 = Are radius (16 mm) Set using local variables XD1 = Diameter of point XD2_ = Diameter of point "b' XD3_ = Diameter of point "c" (194 mn) ZL1 = Z-coordinate of point "a" ZL2 = Z-coordinate of point “b" ZL3_ = Z-coordinate of point "c" (32 mm) DISI = Distance: DX3 ~ DX1 DIS2 = Distance between the center of arc and point "b" (along X-axis) DIS3 = Distance between point “a" and point "b" (along Z-axis) DIS4 = Distance between point "b" and point "c" (along Z-axis) (119 om) The point of intersection can be calculated in the following equations. DIsi = (xp3 - xp1]/2 DIS2 = VI1*SIN [VIG] DIs3 = vi1*C0S [vig] DIS4 = (DIS1 + DIS2 ~ vil]*raN [vig] XD2_ = XDI + 24(V11 ~ DIS2] 212 = 213 + DIS& 2L1 = 212 + DIS3 OKUMA MACHINERY WORKS LTD. @) 2452-E P-379 Since the pattern appearing in Section A can be used in common with other workpieces, it is advisable to program such contour as a sub- program. Name such subprogram "RADIUS~TAPER.SUB" (file name). Setting of variables , , and is made within this sub— program, and other variables are set in the main program. Subprogram RADIUS~TAPER. SUB % ORTGI NIGGO_XD2=KD1+2*(VI1-DIS2]) _ZLI=ZL3eDIS4 $_ZL1=21.24D183 NIG@1 GOL TL Nigg2__co2 12_L=VI1 NIGd3 GOL 2=Z13 Nigg% RTS ~ Variables are set in block NIOdd. ~ Z coordinate of point "a" is commanded in block NIG@1. ~ X and Z coordinates of point "b" and are radius are commanded in block N1992. - X and 2 coordinates of point "c" are conmanded in block N1GJ3. - RTS in block N1GG4 indicates the end of the subprogram. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-385 (3) Prepare the cutting program as a main program. File name of the main program is "FLANGE-1.MIN". LAP and nose radius compensation function are used in the main program. The main program is shown below. Main Program FLANGE~1_.MIN % org NIL VIG=15_ Vi1=16 XDI=119_XD3=199_213=32_ NIG2 COS xed 2300 WLAPI G81 M103 GUS 76-2137 = N04 Gh2GOL_—_2135__-FO.2 NGS G75 xeg__—iL-2 N16 Z15 Mg7_G75___X=XDI_L=3 NIG8 CALL ORTGI DISI=[XD3-KDI]/2_DIS2=VII*SIN| VIG] $_DIS3=VI14COS[VIG} _DIS4=[D1S14+D1S2-V11] *TAN[VIG] NIg9 Zao Ng o_o xT Nill G8g, NI2G cdg x80 2300 N121 696 x2g2_z137 S119 TH1G1G1_— M3 GB N122_G85_NLAPID6___FG.35_UJ.2 WG. Ni23 C6 _—«XBGT «2309 124, Si3d__ T920202 NI25__G87____ NLAP2 N126 COG x8go_ 2300 OS 609 Niz8 waz, Note: The subprogram ORTG1 is called for by the command in block N1G8 for defining the contour consisting of circular arc and tape. Variables used for defining such contour are all set in this block. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-381 + (Cutting contour consisting of repetitive contour) .. In this example, the contour having the repeated same contours in it such as a pulley is programmed. 159 Programming zero Fig. 22-6 (1) Assume that there are different pulleys having the similar contour as above. For simplify the programs of those pulleys, express the con— tour of part A using variables. ‘Tool offset effective on Pong this point Teagsds i ik] [x] ce Greater than or equal to > Logical zor | Exclusive or |] i expression on Logical sum |{z] —~ [1] | 3] —~(11 ul ano | Logical (Cutting off | (Cutting off product fractions) | fractions) yor — | Negation (1] or {R] —= [1] ia) (Guteing off fractions) ‘OKUMA MACHINERY WORKS LTD. 2452-E P-389-R3 (5) Operation rule of functions and evaluation of value Note: Abbreviation symbol tn. Integer type k] Real type ea] : Change to real type ik) — [1]! Change to integer type Function] yeni, unit type of | type of | Type of Result Name ne System |Element 1 | Element 2 | of Operation sy | Sine Lom | (1} Ea) | te1/asdo (R] deg. cos: Cosine (metric system) fig | (R} [el/1909 (R] inch deg. Cinch system) 7 tan | Tangent wm [Tt] —=TR] TR inch | [R] (degree) {R] TAN | Arctangent Tan f(t] —=TRT TRIFIOGG ATAN2 (C1009 degree) (metric system) 119900 | CR) [R]*10909 inch C1/19000 degree) (inch system) BQ | Square root =| —=1RI = TR] (Rl 48S | Absolute value | - | (1) —=TR] = TRI (R) BIN [Be —= BIW =} (g] = (1) - (r) (cutting off frac~ tions) BoD [ain —= BD =) (x) (1) - rea] (Cutting off frac~ tions) ROUND | Rounding ofF Tr] Tz] (Wor changed) fractions = ite (1) FIX Cutting off a [1] (Not changed) fractions = [R} = (1 wae | feaneens: See] fin [1] (Wor changed) whole number fal tn ‘OKUMA MACHINERY WORKS LTD. 2452-E P-39G-R4 SECTION 23 INCH/METRIC SWITCHABLE The OSPS@GL~G/OSPSGIGL-G allows the system to operate under the desired dimensioning unit system by setting a proper parameter. (1) Parameter setting PARAMETER SET Paget A turret {OPTIONAL PARAMETER BIT + No. No. 91090011 9 pagodas 17 g6s9a—A0 sogss000 G9GGdIdH 19 GodsOGIA 18 ggeDBpED pponpna— OpdddKD 11 godssoss 19 vadogdaD ooooesa9 opod0dd 12 eddsId 29 gonNN——d oodog90— Goodondd 13 oUd0dGdD 21 pos9v—R spsga000 dooodods 14 donysd9G 22 sovOWIED apnoo909 Gddddood 15 dodddeAA 23 nUdpGadT agnoaaye OpOAGAGS 16 HaAGaGIG 24 pABOPR0a eoas0908 ENED Setting of the dimensioning unit system is possible by the setting of Parameter data at bit @, 1 and 2 of optional parameter (bit) No. 3. Bit O. Bitl. Bit 2. « inch/metrie selection + mm unit (inch unit) +19 um unit Bit 2 Bit 1 Bit Operation Condition A 4 1 4 1 mm unit system B 1 6 4 1G ym unit system c 4 9 4 1 ym unit system D 4 1 1 1 inch unit system B o a 1 1/1009 inch unit system The standard setting is A. ‘OKUMA MACHINERY WORKS LTD. (2) 2452-E PH391 Operations a) Inside the system, dimension data is all processed in units of 1 wm (metric system). The units for function generation and posi- tion detection are also | ym. ) For the entry of tool offset data, zero set data, parameter data and others, the data is entered in units of inches. But they are stored in units of metric system selected. For the purpose of display, the data is converted into the unit in inch system selected and displayed on the CRT. ¢) Both program data and MDI data are input in the unit in inch system. However, they are inmediately converted into the data in units of 1 wm for positioning operations. 4) For instance, when an axis is to be fed in units of one pulse (G.d0d1 inches), the axis is fed in accordance with the values converted into those of 1 ym units. Commands in Theoretical Metric Values Inch System Metric Values for Positioning 4.49001 inch 2.544 3.0 2 5.08 5.4 3 7.62 a 4 18.16 1.8 The command in inch unit is multiplied by 2.54 to be converted into metric values. Fractions smaller than 1 pm are rounded. OKUMA MACHINERY WORKS LTD. 2452-E P-392-R4 (3) Unit table (units when "1" is designated) Metric System Inch System ness i; Lam 10 ym 1 om fnch| 2 inch Length: X,2,1, 6.001 .01 1 4.0901 1 K,D,B,1,0,W (om) (mm) (nm) (inch) Cineh) Feed (/rev): 4.901 g.01 af 9.0001 1 FE (om/rev) | (mm/rev) | (mm/rev) | (inch/rev) | (inch/rev) Feed (/min): 6.1 i 1 g.01 1 FYE (om/min) | (mm/min) | (mm/min) | (inch/min) | (inch/min) Angle: 4.001 G.01 1 9.9001 1 A,B,C (deg.) (deg.) (deg.) (deg.) (deg) Time: oan G1 1 O01 1 EE (see) (sec) (sec) (sec) (sec) Spindle RPM: 1 1 1 1 1 8 (rpm) (rpm) (pm) (rpm) (rpm) Surface speed: 1 1 1 1 1 8 (n/min) (a/nin) (m/min) | (feet/min) |(feet/min) ‘OKUMA MACHINERY WORKS LTD. 2465-E P-393-A1 SECTION 24 GRAPRIC CRT DISPLAY 24-1, OUTLINE OF GRAPHIC CRT DISPLAY This function displays the progress of the program in animation in addition to the programmed tool paths on CRT. The OSPSGUGL-G has the color graphic CRT on which workpieces, cutting tools, etc. are differentiated by colors. The OSP50GL-G has the monochrome graphic CRT on which workpieces, cutting tools, ete. are differentiated by patterns, line types, and brightness. ‘OKUMA MACHINERY WORKS LTD. 2452-E P=394~A1 24-2. FUNCTION KEYS USED FOR GRAPHIC DISPLAY OPERATION The graphic display is possible in the auto, MDI and manual operation modes. AUTO OPERATION fo] _ext_ | NORWAL [ewcanctf TRACE] arentac| cuaa| caaparcloeararcl scate | scaue lavimarel exreND) (1) FL (STD GRAPHIC) Graphic display mode in the scale set from the NORMAL SCALE function is selected. (2) F2 (EXT GRAPHIC) Graphic display mode in the scale set from the ENLARGE SCALE function is selected. Note: Switching between the standard and enlarged graphic display modes during the execution of a program is impossible. ‘OKUMA MACHINERY WORKS LTD. (3) 2452-E P-395-al F3 (NORMAL SCALE) SCALE am G-098 ‘auTo | Scate scauz | ser This function selects the unit length of an axis on the graphic display. On the graphic display, a dotted line with arrow marks at both ends is displayed with SCALE indication and scale value. ‘This represents the scale length. The standard scale is set in two different methods such as a) Automatic determination b) Arbitrary setting The procedure for setting the standard scale is explained below. Note that the standard graphic page must be displayed for setting the stan— dard scale. a) Automatic determination The graphic scale is automatically determined by pressing the function key [F1] (AUTO SCALE). When this key is pressed, the progran is read up to the end of the program (M@2) and the scale is determined automatically so that the machining area can be displayed on the CRI. OKUMA MACHINERY WORKS LTD. 2U52-E P-396-A1 Remarks: 1) 2) 3) 4) 5) 6) Before executing the automatic determination, select the desired program. If following commands are used in a part program, they are executed when the program is read by the pressing of the func tion key [FI] (AUTO SCALE). READ, WRITE, GET, PUT, DELETE, SAVE and DEF If output variables, system variables and common variables are used in a left member of expression in a part program, they are rewritten by the automatic determination operation. If the scheduled operation mode is selected, automatic deter- mination of the scale value is possible only for the program selected by the first PSELECT command. If an alarm occurs during the reading of a program for automa tie determination, or if the program reading is looped due to the statements GOTO, IF and other program execution order designating commands and automatic determination of the scale is not completed, then escape such state by resetting the control. ‘The drawing area automatically determined is calculated from the following formula. Operating area in the * cutting G code mode ) * (109 + n)% Here n is a factor to allow margin in the tool path drawing operation and set by optional parameter (word) No. 51. £m £190) ‘OKUMA MACHINERY WORKS LTD, 2452-E P-397-Al b) Arbitrary determination AUTO OPERATION STANDARD —j 50 100 159 200 259 The scale value can be directly entered through the keyboard after pressing the function key [F2] (SCALE SET). In this scale setting, setting range is from 12.5 mm to 125G mm. The position of the coordinate axes can be set at a required posi- tion using the cursor after setting the scale value. The standard scale setting operation ends by pressing the function key [F7] (ScaLE uit). (OKUMA MACHINERY WORKS LTD. 2452-E P-398-Al (4) 4 (ENLARGE SCALE) AUTO OPERATION EXTENDED a a ae te 5 199 150 200 250s) FRAME | FRave SCALE ENLARGE! REDUCE quit The display area to be zoomed up from the standard graphic display or enlarged graphic display can be set as needed. Pressing the function key [FI] (FRAME ENLARGE) reduces the frame indi- cating the display area. Pressing the function key [F2] (FRAME REDUGE) enlarges the display area indicating frame. Setting the posi- tion of the display area frame is made using the cursor key. The enlarge scale setting function terminates when the function key [F7] (SCALE QUIT) is pressed. ‘OKUMA MACHINERY WORKS LTD. ) 2452-E P-399-Al F5 (TRACE /ANIMATE ) AUTO OPERATION sto [ext [ wommat]entance|reace/ craparclerapure scate | scat laxrmarel Juarenzat,|CLEAR] (exreND} The graphic display mode is selectable from the three modes indicated below by pressing the function key [F5] (TRACE/ANIMATE). Note that selection of the graphic display mode must be made before starting the operation. The selected mode can not be changed during the operation. a) TRACE/ANIMATE mode In this mode, tool shape, chuck shape, blank shape and tailstock spindle shape are displayed in addition to programmed tool paths. The blank shape is actually removed in accordance with the progress of the part program. b) TRACE mode In this mode, only the programmed tool paths are drawn, ¢) ANIMATE Mode In this mode, tool shape, chuck shape, blank shape and tailstock spindle shape are displayed and blank shape is actually removed in accordance with the progress of the part program. Display of the tool paths is not available. ‘OKUMA MACHINERY WORKS LTD. 2465-E P-400-Al (6) F6 (MATERIAL) ‘The blank shape, chuck shape and tailstock spindle shape registered are displayed. (7) FT (CLEAR) Tool paths, blank shape, chuck shape and tailstock spindle shape displayed on the CRT are all cleared. OKUMA MACHINERY WORKS LTD. 2452-E P-4G1-Al 24-3. GENERAL PRECAUTIONS FOR ANTMATION MODE DISPLAY (1) Scale value setting range Setting ranges of the scale value are indicated below: Normal scale: 12.5 mm to 1256 mm Enlarge scale: 6.4 mm to 1259 mm (2) Relationship between animation display and scale value Available animation display differs depending on the scale value setting and the relationship between the set scale value and animation display available is summarized in the table below. Function | Tool shape | Blank Removal Tool Path Scale Vale Display Display | Display 1259 mm - 5 mm ° ° ° 5 mm ~ 2.5 mm « ° ° 2.5 mm - 6.4 mm x ie ° (3) Animation drawing speed The animation drawing function has a limit in the drawing speed (feedrate of 1 meter per min. will be the maximum drawing speed at a seale value setting of 25 mn). This means simulation with the animation drawing in the machine lock mode automatically overrides the specified feedrate (animation speed override), In actual machining operation, however, animation speed override is impossible and if program is executed at a feedrate for which animation drawing is impossible, the control displays the message “ANIM SPEED OVER" and erases animation drawing. In this case, only progranmed paths are displayed on the CRT. Note: To clear the message "ANIM SPEED OVER", press the function key [F7] (CLEAR) after the part program has been completed. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-4G2-Al (4) Parameter data for selecting the elements of animation and tool paths drawing For the display or drawing of animation and tool path, display ele- ments can be selected by a parameter data - optional parameter (bit) No. 16. bie on /ore Bit J Jog feed path drawing Bit 1 Rapid traverse path drawing Bit 2 Cutting feed path drawing Bit 3 Blank shape drawing Bit 4 Chuck shape drawing Bit 5 Tailstock shape drawing Bit 6 Tool shape drawing Bit 7 Blank removal drawing 24-4, HIGH SPEED DRAWING Programmed tool paths can be drawn at a high speed in the machine lock and ary run on mode. Setting of the single block function is effective. In this programmed path drawing operation, since the tool path in the GOd rapid traverse mode is not the same as the actual movements, this must be taken into consideration. 24-5. DISPLAY PAGE AUTO OPERATION SHAFT.MIN OSHT1 10935 STANDARD trance) [aN ACTUAL POSITION XA 150.609 2A 156.608 30 XB 130.000. [a5 156-669 [eo 9-0961+2 SCALE, an 29.998 a macumte TIE ° 188 1s 3:59 ‘Sid_[ EXT] NORMAL [ewtancel Race; craparclcraratcl scaLe | scaLe laxraatel"ATPRIAL| curAs | [EXTEND] “1 Data in [ ] is available for two-saddle models. 42 Data in [ J is available for multi-machining specs. OKUMA MACHINERY WORKS LTD. 26-6. 24-7. 2452-E P-A93-A1 MACHINE TIME DISPLAY Actual program execution time in the automatic and MDI mode operation is counted and displayed. While the control is in the slide hole mode or the program stop mode, such time is not counted. In the high speed drawing mode (machine lock and dry run on), machine time display is not available. If machine time calculation is required through the execution of the high speed drawing operation, optional function for this operation is necessary. ADDITIONAL FUNCTIONS FOR MULTI-MACHINING MODELS The function keys available are basically the same as used for standard models. (1) Standard graphic display For the blank display, the page key is used for switching the view angle from the side to the front and from the front to the side. This display change is possible even during the progress of cutting opera- tions. Note that the page key is not effective for other than the multi-machining models. ‘AUTO OPERATION SHAFT. MIN oswr agg STANDARD mean ACTUAL POSITION XA 158.0009 ZA 158-000 x0 159-000 ze 139.990 cp.ond SCALE om 20.008 HaCKINE THE 1:03: 59 ext |wowat femance] traces foram! scabe T scave lamueMATERtal cueaR | [EXTEND) * Data in [ ] is available for 2-saddle models. OKUMA MACHINERY WORKS LTD. Q) (3) ca) 2452-E P-4G4~Al ‘AUTO OPERATION ? OsHT! M100 35 STANDARD ACTUAL Postrion EG] XA 158.000 Za 150.008 x8 150-088) ze 138.008. © 9.808 SCALE ne maa 26.000 MACHINE TIME 292: 59 ext [Nowial Nuance] Trace? idcearuid scate | scate Tanimareharentay Clear | [EXTEND] * Data in [ ] is available for 2-saddle models. The front view is displayed on the coordinate system on which C-axis angle is fixed as shown above. The indications on the scale represent X-axis values (in radius), Enlarged graphic display In the enlarged graphic display mode, switching the view angle between the front and side views is possible as in the standard graphic display mode. Standard scale setting Independent scale setting on the side and front views is possible. For setting the scale for these two views, first display the required view. When the same scale setting is used for both of the displays in common, then the setting is necessary only from either of the displays. In this case, specific scale value is set both for the front and side views. Setting procedure is the same as used with standard models. Enlarged scale setting In the enlarged graphic display mode, independent scale setting for the different two displays ~ front and side. As in the scale setting from the standard display mode, display the required view and setting should be done from that display. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-4G5~AL (5) Switching between trace and animation displays As with the standard models, the function key [F5] (TRACE/ANIMATE) is used for selecting the three different display modes. a) Trace/Animate Side View: Tool shape, chuck shape, blank shape and tailstock spindle shape are displayed. Tool paths are also displayed in cyan and the blank is removed as the progress of cutting. While the C-axis is connected (only for A-turret tools for two- saddle model), the tool paths are displayed in magenta and remo- val of blank will not occur. Front View: The front view of the blank shape is displayed and the tool tip point is indicated by red marker. During the cutting, the tool outline is displayed in the specified interval*l. Removal of blank does not occur. The marker and tool outline are displayed only while the C-axis is connected. “1: The tool outline is dravn in dots in accordance with the tool mounting direction, tool diameter (D) and cutting angle (Al) when the revolving tool is selected (tool classification code: 27-38) as the tool shape. Tool Front Display Tool Side Dispaly Tool point ‘OKUMA MACHINERY WORKS LTD. b) 2) 2452-E P-496-Al The interval of the tool outline drawing is the distance the tool point has moved from the previous tool outline display position as indicated below: Drill diameter + 79g “n! represents the factor to designate the tool outline drawing interval and is set at optional parameter (word) No. 55 within a range of 14 to 100. ‘The tool outline is drawn on the display, in addition to the con- ditions indicated above, when the feedrate is changed from the rapid traverse to cutting feedrate or the commanded point is reached (with C-axis connected). Trace Side View: The display is only tool paths, chuck shape and tailstock spindle shape. As in case a) above, tool path is drawn in magenta while the C-axis is in connection (only for A-turret for two-sadéle model) and in cyanic in other cases. Front Vie The tool, point position is identified by red marker and tool outline is drawn in magenta in the specified interval for cutting feed (only during C-axis connection). Blank removal will not occur. Tool outline drawing conditions are the same as in a) above. Animate Side View: Tool shape, chuck shape, blank shape and tailstock spindle shape are displayed. Tool path display is not available. Removal of blank occurs in accordance with the progress of cutting. Note that when the C-axis is in connection (only for A-turret for two-saddle model), removal of the blank does not occur. Front View: Same as in case a) above. ‘OKUMA MACHINERY WORKS LTD. (6) on (a) 2452-E P-4G7~Al Blank drawing function key Side view Blank shape, chuck shape and tailstock spindle shape registered are displayed. Front View: Blank shape registered is displayed. This function key is effective only for the page currently displayed. That is, pressing this key while the side view is being displayed displays only the side view of the blank and front view of the blank cannot be display. This is the same for the front view display page. Delete function key Side View: Tool paths, blank shape, chuck shape, the tailsteck spindle shape and tool shape displayed on the side view page are all deleted. Front View: The tool outline drawing and the blank shape displayed on the side view page are deleted. This function key is also effective only for the page currently displayed. Others Parameter for canceling front view: Setting "I" at bit 8 of optional parameter (bit) No. 19 cancels the display of the front view as with the standard models. With this Parameter setting, functions (1) through (7) above are all ineffec- tive. Initial setting of this parameter is "9" (front view display active). Differences in side view display depending on whether the front view display is available or not are indicated below: When the front view display is canceled, the blank shape obtained in the process of cutting is stored and can be displayed again even after the display mode is switched from the standard (enlarge) to the enlarge (standard) and then back to the standard (enlarge). When the front view display is selected effective, then the switching of the display mode cancels once. Here, the switching of the display between the standard and the enlarge indicates the switching operation while the control is not in operation. The parameter setting requires turning off of power three minutes after the new parameter data has been set. ‘OKUMA MACHINERY WORKS LTD. 2u-8. 2452-E P-4g8-A4 ‘TOOL FORM SELECTION Procedure to set the tool form used in animation display is explained below. The operation to set the tool form means that the data necessary to select the form pattern appropriate to the tool to be used from the tool form pat terns already defined. 1) Select the TOOL DATA SET mode. At —MODE— ay 2) Press the function key [F7] (ITEM!) to display the TOOL FORM SELECT page. 3) Using the PAGE keys to be set. » display the sereen for the tool number TOOL DATA SET feat =a Batic «Toe Perm SELECT ‘OKUMA MACHINERY WORKS LTD. 2452-B P-499-A4 4) Press the function key [¥3] (TOOL KIND) to display the page from which the tool code number can be set. 5) Input the tool code number. Té keys [3] and [WRITE] are pressed, the display indicated below is displayed. TOOL TOOL NB. Lrops core ne! 2 Foe PATTERN FIGURE — ist tool item code 1 sal sore coe rent | ston ES ‘OKUMA MACHINERY WORKS LTD. 2452-E P-41g-Ad 6) Input the FORM CODE NO. If form code "3" is designated, the display will change into the page as shown below. 7) From this page, set the TOOL EDGE DATA by locating the cursor at the required data position. TOOL ANGLE AL EDGE ANGLE A2 STICKING OUT L. 8) Input the offset number (ON1 - ON3) of this tool by locating the cursor at the required offset number data position. This number is used to designate the tool form provided as the graphic guide at the tool offset setting page. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-A11-Ag 24-9. DRAWING BLANK SHAPE The user graphic commands (UGC) are provided so that arbitrary blank shapes may be drawn on the color graphic CRT. a@ (2) Definition Format The format used for blank shape drawing is indicated below. DEF WORK .. tteesssseeeses Declaration of blank definition 4 group of user graphic commands used for drawing blank shape END . sseees End of blank shape definition DRAW... ee. ++ Blank shape defined is drawn User Graphic Commands (UGC) The user graphic commands are largely classified into four types such as drawing point setting, line drawing, circle drawing and painting. The explanation below provides the format of the representative com- mands. 1) Coordinate System for Drawing and Setting Unit The coordinate system used for drawing the blank shape is the 2-X coordinate system having the programming zero as the origin. The unit system used is: 1 mm for metric system, and G.1 inches for inch system Programing zero OKUMA MACHINERY WORKS LTD. 2452-B P-412-A4 2) Setting Drawing Point POINT [26, x0] Note: The command underlined may be used instead of fully giving command characters. POINT, for instance, can be commanded by the underlined characters PO. ‘The POINT command simply sets the starting point (2G, X@) for the draving and no actual drawing operation occurs. This sets the last reference point (LP) for the drawing. 3) Drawing Straight Line A straight line is drawn from the last reference point (LP) of the drawing up to the commanded end point (Z1, X1). The end point is referenced to the LP. That is, the command must be given in a relative value, After the execution of the command, the LP is established at the end point of this command. Solid line Dotted line ~~~ Short dashes line ————— Long dashes Line Alternate short and long dahses line —-——-— 5 = Alternate long and two short dashes 1ine—-—.— 6 = No axis display 7 = Erasing Line code: bores Default is "G (solid Line)". 4) Circle Drawing irection><, line-code> RCLE [Z1, X1], [Ze, Xe] <,rotation: An are is drawn in the following conditions: Starting point: LP End point (zi, x1) Center (ze, Xe) ‘The coordinates of the end point and the center are referenced to the LP. After the execution of the command, the LP is established at the end point of this command. ‘OKUMA MACHINERY WORKS LTD. 2452-E P=413-A4 Rotation Direction: R: Clockwise R_(clockwise) L: Counterclockwise i Default is "R (clockwise)". L (counterclockwise) z Line code: Bight codes as used for drawing a straight Line. 5) Painting PAINT (or PF) <,vertex-coordinates> <,tile-pattern> The PAINT command is used for painting triangles, rectangles and circles defined on the absolute coordinate system. Number of Vertexes: Circles or sectors Triangles 4: Rectangles Vertex Coordinates: The designation of coordinates depends on the number of vertexes specified. Number of vertexes = 0 (zi, x1], [22, X21 [2c, Xe] <,rotation-direction> Zi, X1: Start point 22, X2: End point Ze, Xe: Center X4 R (rotation direction) ye a age Z1 ‘OKUMA MACHINERY WORKS LID. 2452-E P-414-A4 Number of vertexes = 3 (21, x1],{22, x2],(Z3, x3] (x1 ¢ x2 ¢ x3) X 422%) (2%) (ZX) z Number of vertexes = 4 (21, x1],[22, x2], (23, x3], [24, x4] (XL g x2 < x3 ¢ x4) 7 (24,4) (ZaX3) 21% S<, reference-point-coordiantes> <,vertex-coordinates><,tile-pattern> ‘The PAINTI command is used for painting triangle, rectangles and circles defined on the incremental coordinate system in reference to the reference point specified. Number of Vertexes: Circles or sectors Triangles 4: Rectangles Reference Point Coordinates: ‘The coordinates of the reference point for defining a shape; [z9, xd) The values must be given in absolute values. Vertex Coordinates: The designation of coordinates depends on the number of vertexes specified. Number of vertexes = (22, x2], [22, x2] [ze, Xe] <,rotation-direction> Z1, Xl: Start point 22, X2: End point Ze, Xe: Center xq ® (rotation direction) I (ta¥2a,KotX2) (ZotZ,,Xo+X, ) (Zo+Ze, Xo+Xe) t GosXo) a Number of vertexes = 3 (21, x1), (22, x2],[23, x3] (51842653) 2% (ZotZs,Xo+Xs) (ZotZ,X04%e) (Zot), XotX) (Zo,X0) 2 OKUMA MACHINERY WORKS LTD. 2452-E P-416-A4 Number of vertexes = 4 (a1, x1] ,(22, x2],[23, x3],[24, x4] (R1gR2gK3SK4) Xa (ZobZay XotXs) | (abt S84) (2441948) (Ayre, XptXy) z Tile Pattern: Eight patterns, @ through 7. PAINTS , (28, XJI,la, b] <,tile-pactern> ‘The PAINTS comand is used for painting a rectangle having lengths of a and b. Reference Point Position: This specifies the position of the reference point on the rec~ tangle being painted. Left Lower Left center Left upper Center upper Right upper Right center Right lower Center lower Reference Position [Z6, X@]: The coordinates must be specified in absolute values. Tile Pattern: Bight patterns, @ through 7. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-417-A4 PAINTP , [Z; <,angle~code><, til Xd1,[a, b] The PAINTP command is used for painting rectangles and triangles. Reference Point Position: This specifies the position of the reference point on the rec~ tangle and triangle being painted. LC: Left center CU: Center upper RC: Right center CL: Center lower Reference Position (20, XG]: The coordinates must be specified in absolute values. x 2 x x x CULZs,X0) rT AS aX | , DPD. fo IC Ze X0) lb (Zon Xs) nd CL (Zo. x8) Zz z Zz Angle Code: G: Angle A of triangle is 36° 1: Angle A of triangle is 66° 2: Angle A of triangle is 129° Default is "6 = 39°", Tile Pattern: Eight patterns, @ through 7. OKUMA MACHINERY WORKS LTD. 2452-E P-41B-AG (3) Example of Painting a) Blank material viewed from side This item explains the procedure to paint the blank shape indi- cated below. 1am a Reference wie ~ \ oom Agen : ol z / ; Programming zero U ‘Painted This painting operation uses the PAINTS command. Reference point [20, x@] Dimensions la, b] {d, 91 (74, 961 PAINTS LC,[, @1,[74, 961,4 ‘The opening in the blank should be defined using the tile pattern "g" vhich represents all dots off. Reference point [2, x4] = [, U1 Dimensions [a,b] = (70, 46] PAINTS L¢,19, 91, (70, 461.0 Therefore, the painting is programmed as indicated below: DEF WORK PAINTS L¢,[0, J],[7d, 961,4 PAINTS LC,[¢, 91,[74, 46],0 END DRAW Using simple commands, the sane painting is progranmed as indi- cated below: DEF work Ps 16, (0, 0}, 170, 96] PS Le,(B, G1,179, 46),0 END Draw OKUMA MACHINERY WORKS LTD. Example Program 1 0 300 Example Program 2 7300 2452-E P-419-A4 Reference Point ..... te DEF WORK Os Kem [-104, 0], [306,209] END Reference Point ..... Le DEF WORK PS Lo, [-100, B], (368, 490] PS LO, [-109, J], (300, 200], a, (#1) END Note: @ (#1) indicates drawing not to be done. OKUMA MACHINERY WORKS LTD. 2452-E P-42G-A4 Example Program 3 Reference Point ..... LC DEF WORK Psic, [ B, G1, (209, 600) Ps LC, (200, 1, [200, 40d] END 0 699 209 3994 4907 Tile patterns in the examples 1, 2 and 3 are painting of all dots. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-421-A4 Blank material viewed from front (only for multiple machining specification) Description of Commands: DEF WORK ...... sseee+ Definition statement ~ Front view of blank PF. [9, @), 19, D ..... Command to draw blank L asignatton of tienes of ciccle to be paleced “Circle diameter Coordinate of circle center (coordinate of apex) Designation of circle seeeees End statement DEF WORKF Pro, (0, GJ, [, Gl, 10d, D Designation of diameter of circle to be painted Circle diameter Coordinates of reference point + Coordinates of apex {___- coordinate of circle center Designation of circle END ‘OKUMA MACHINERY WORKS LTD. Example Program 5) 100 159 200 2U52-E P-422-A4 DEF WORKF Prd, (9, Gl, 19d, D END DEF WORKF PF @, [, G1, 200, D PFO, (9, 0], 100, D PF 6, 10, 9], 50, D END DEF WORKF Prd, (108, 100], (9, G1, 209, D (19, 190], [9, 1, 190, D, o ca) END Note: § (#1) indicates drawing not to be done. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-423-A4 24-14. HOW TO SET DRAWING POSITIONS OF CHUCK AND TAILSTOCK To set the chuck and tailstock positions on the CRT screen with respect to the workpiece material, input proper data at JAW SIZE (L1, D1), JAW POSE. (CX, C2), CENTER (L2, D2), CENTER (D3) and FACE (WR) on the *CHUCK/ TAILSTOCK BARTER* page in the PARAMETER SET mode. Example: 200 z PARAMETER SET PAGE A TURRET WIT 1m *CHUCK/TAILSTOCK* yaw size o> ky FACE nie | JAW Post. Cx of Fiz C CX/2, CENTER: D a ? Ar FACE wi DL Fei ‘OKUMA MACHINERY WORKS LTD. 2452-E P=424—A4 When the following data is input at the *CHUCK/TATLSTOCK BARIER* page in reference to the blank material illustrated above, the chuck and tailstock are drawn as below. Ll = 50 Di = 50 cx = 200 02 = -150 12 = 5d D2 = 50 D3 = 20 wR = 200 * 109 156, 209 z 199 Note: If the blank material shape is not symmetric in reference to Z~ axis, the chuck and the tailstock cannot hold the material correctly. ‘OKUMA MACHINERY WORKS LTD. Ghanging Chuck and Tailstock Dimensions JAW SIZED JAW SIZE L X CENTER D1 2452-E P-425-A4, [> CENTER LI C CENTER 1. Chuck and tailstock dimensions can be changed by setting required values at parameters No. 18 through No. 23 of optional parameter (long word) which can be displayed in the parameter set mode. No. No. No. No. No. No. 18 19. 20 al. BD 6 23. JAW SIZE L +++ JAW SIZE D CENTER L. CENTER D CENTER L1 CENTER D1 OKUMA MACHINERY WORKS LTD. 2452-E P-426-Ad, 24-11, SYSTEM VARIABLES FOR ANIMATION DISPLAY The tool shape data, chuck barrier data and tailstock barrier data can be commanded in the same manner as conventional part program using the system variables. (1) Tool Shape Definition The seven system variables indicated below are used for defining the tool shape. Variable Name Contents Data Size vruin{t] | Toot classification code 1 to 26 vrirw[t] | Toot shape code 1 to & vrual(t] — | toot angle # to 369.000 vmna2(t] | Bdge angle -369.000 to 360.008 vr lt] Holder length/Sticking out @ to 9999.999 Jength/Drill length vrip[1} Holder diameter/Drill diameter @ to 9999.999 vruwi1) Tool width @ to 9999.999 The index [I] of the system variable is designated by the tool number . The tool number indicates the station number of the turret. For the tool life management specification, the system variable name is assigned in the format VGR*#[I]. The index [I] is the tool group number. ‘OKUMA MACHINERY WORKS LTD. 2452-E P-427-A4 RoucH oD ~ ROUGH ID ~ ROUGH FACE + ROUGH OD + ROUGH ID ~ ROUGH FACE t FINISH OD ~ FINISH ID ~ FINISH FACE + FINISH OD ~ FINISH ID = FINISH FACE 1 THREAD OD + THREAD ID ~ THREAD FACE 4 THREAD OD ~ THREAD ID > THREAD FACE + GROOVE OD 4 GROOVE ID 1 = GROOVE FACE + DRILL uss DRILL CARBIDE DRILL CENTER RECESS OD ~ 26 = RECESS ID Tool Classification Code: nun Tool Shape Code: Tool shape number which corresponds to the tool shape usable for the tool selected by 1 2 3 the tool clessification code. 4 L Sticking out {f} length LI er (ROUGH OD=, FINISH OD—: Example: ROUGH OD ‘TOOL No. TN=2 TOOL ANGLE Al=8g° EDGE ANGLE A2= 3° STICKING OUT L=4( mm VTLIN(2] = 1 VILFN[2] = 1 VILAl[2] = 86.900 vrua2z[2] = 3.900 VILLI2] = 40.000 OKUMA MACHINERY WORKS LTD. (2) Chuck Barrier Definition 2452-E P-428~A4 The four system variables indicated below are used for defining the chuck barrier. Variable Name Contents Data Size B to 999.999 VORKL Chuck jaw Length voxKD Step on chuck jaw @ to 9999..999 VOHKX Gripping diameter =9999.999 to 9999.99 voRKz Distance from progranming zero | ~9999.999 to 9999.99 Programming zero cq OX voHKL > 4 veenn 14 VCHKZ Torrrereq |NCHKK ‘OKUMA MACHINERY WORKS LTD. 2452-E P-429-04 (3) Tailstock Barrier Definition The four system variables indicated below are used for defining che tailstock barrier. Variable Nane Contents Data Size wR Blank face position =9999.999 to 999.999 VIsL Sticking out length of @ to 999.999 tailstock spindle vrspa Center hole diameter # to 999.999 vrspB Tailstock spindle diameter # to 9999.99 x Blank face Programming zero OKUMA MACHINERY WORKS LTD. 2452-E P-430-A4 24-12. BLANK MATERIAL DRAWING METHOD To draw blank material, designate the blank material drawing commands and display the shape (square, rectangle) of the material by pressing the material shape key. (1) Blank Material Viewed from Side Description of Commands: seee+ Definition statement DEF WORK . PS LU, (109, -100], (200, 300) +++ Command to draw blank Blank material size Width 200 Height 390 \__. coordinates of reference point Zz 10g x -100 Reference point END .. . End statement To draw blank material, at least the above indicated three statements must be written. Note: Reference Points: x Minimum Setting Unit: 1 mm (9.1 in.) ‘OKUMA MACHINERY WORKS LTD. 2452-B P-431-a4 Example Program 1 Reference Point ..... LU DEF WORK PS LU, [-100, 169], (309, 299] 0 END 20 Ww jj z 208-00 08 7/185 0 0 tee Love Example Program 2 Reference Point ....- ur DEF WORK PS WU, [-100, 200], L390, 49g] Son PS 1, [-108, 100], [309) 209), 6) (a) w_| END é co be done. LU OU Lane OKUMA MACHINERY WORKS LTD. 2452-E P-432-A4 Example Program 3 Reference Point ..... LU DEF WORK 40-- Ps LU, [ 6, 300], (209, 609] Lu Ps ww, (208, 2001, (200, 400) 300 END Lu 200- 100 4 Lt ‘0/400 0 ota 106} Y/) ont 3m: 90- ‘OKUMA MACHINERY WORKS LTD. 2452-E P-433-A4 (2) Blank material viewed from front (only for multiple machining specification) Description of Commands : + Definition statement ~ Front view of blank DEF WORK . Pe, [, J, 100, D ....... Command to draw blank TOT T | ee of diameter of circle to be painted Circle diameter Coordinate of circle center (coordinate of apex) Designation of circle END . + End statement U DEF WORKF Prd, (0, dl, Id, 1, 199, D TL xvesignation of ataneter of circle to be painted |__.Gircle diameter of reference point + Coordinates of apex {____.. coordinate of circle center Designation of circle END OKUMA MACHINERY WORKS LTD. 2452-E P~434—A0, | Example Program DEF WORKF PE @, (0, 1, 100, D END DEF WORKF PF @, (0, G], 200, D PF @, (0, G1, 10d, D PF @, (6, G1, 50, D END om -+--5 150 100 DEF WORKF PIG, (106, 100], (9, G1, 200, D st i PIG, (109, 190], (9, 9], 190, D, o t (*l) END Note: @ (#1) indicates drawing not to be done. ‘OKUMA MACHINERY WORKS LTD. 118 119 2452-B P-436-R5 ALARM-A Chuck condition illegal Chuck open or close command (M83 or M84) is designated uhile the spindle or the milling tool spindle is rotating. Or while the exter- nal interlock signal is active. This alarm does not take place for SMW chuck, or while the internal interlock is deactivated. Index : ‘TURRET Character~string: None Code 8 1 ssssss No spindle zero speed signal (Bit 3 of EC input #9 is J.) +++ The spindle is not at a still. (5 epm or higher) + Spindle rotation command is ON. External interlock signal is active. Git 7 of EC input #9 is g.) + No milling tool spindle zero speed signal (Bit 4 of EC input $22 is #) 6 Milling tool spindle is not at a still. 7 .sss+e, Milling tool spindle rotation com mand is ON. ALARM-A Chuck open A spindle rotation command or a milling tool spindle rotation command is designated while the chuck is not closed, or the chuck close signal is turned off during the rotation of the spindle or the milling tool spindle. This alarm does not take place while the internal interlock is deac~ tivated. Index ‘TURRET or None Character-strin, None Code. 1 ssses+. Spindle rotation command is designated. 2 ++ Chuck close signal turned off during spindle rotation. Milling tool spindle rotation com- mand is designated. Chuck close signal turned off during Milling tool spindle rotation. OKUMA MACHINERY WORKS LTD. 2452-E P-435-Al SECTION 25 CHUCK AUTO OPEN/CLOSE BY M CODES 25-1. 29-2. M CODES USED FOR OPENING/CLOSING CHUCK 83. Chuck close M84....... Chuck open Selected mode is not influenced by turning on the control or by resetting its For the two-saddle models, the M codes above may be designated at either G13 or C14 mode. ALARM MESSAGES 117 ALARM-A Chuck clamp During 2 chuck open/close operation, ID/OD gripping was changed. Or low chucking pressure state has continued for more than two seconds. Index : None Character-string None Code : « Low chucking pressure state has con~ tinued for more than two seconds (Bit 6 of EC input #1 is 6.) + Boch panel OD gripping signal (Bic @ of panel input #6) and panel 1D gripping signal (Bic 1 of panel input #6) are OFF. + Both panel OD gripping signal and panel ID gripping signal are ON. ‘OKUMA MACHINERY WORKS LTD.

You might also like