Download as pdf
Download as pdf
You are on page 1of 23
MACHINERY SBN. BEED. ENCEATHE BASIC PROGRAMMING GUIDE OKUMA OSP-7000L/0SP-700L ‘NUMAC MACHINERY SDN. BHD, Chapter 1 Introduction 1.1 NC Programming Concept Th purpose of NC programming i writing a program to command the CNC machine (9 machine ‘a work pie aoc ding to tho given drawing. ‘Tse procedures are lustrated in Figure 1-1 a Tooting ae ane Selection & Program rang igae Fistte [>] Pont Design pane Catia Opiiized hl Cauing [Tex cur say Condition Figure 1. 1.2. Machine and Program Coordinate System ( Standard CNC Lathe) ‘Ta coordinate system of CNC lahe is shown in Figure 1-2, ve iL] ane Figure 12 # Noe: Kes codrdinate sated in dinmete value Program 2ero must be seleced before slat programming. Deesinber 1998 1 “Training Manual ~ Lathe NUMAC MACHINERY SDN. DED. bf a Exercise Sesember 198 2 NUMAC MACHINERY SDN. BHD. “Training Manual ~ athe Chapter 2 Basic Programming 2.1 Program Configuration Geocrally a program consis of 1) Fregram Name, 2) Sequence Nase and Sequence label. 5) Coordinates and commands 4) Remarks 5) End of Program block. ‘This information is presented using ALPHABATIC CHARACTERS and NUMERIC CHARACTERS, [Esch line of characters is called a BLOCK. o. (Caube omited if only one program in the fk} G_X_2_8_T_M_ Ma Example 2.1: Progmamning format [oon N100 G30 $2000 p01 Gan X800 7480 }waT0} GOUGH CUT OD) Nioz TOLOIOL 103 _-XB0Z50 $450.03 Mos. Nios Xx70Z30 2105 G01 XZ30-285 FOS psso0 cco x300 2450 Mes M09 2 2.1.1 Program Name (Program Number) 2) Program same designation ©. 7 Up tod ehacacteecanbewee—— “The 4 characters san he nomenc Alpbabric character must bea bead of numeri character [Example2 2 PromamNane | | wou ¥ oa v IAD = 013 + 0s 2 Prograra Nast can be omite if thers is oaly one ain progr in the fle, December 1988 eanusg Mama - Lathe NUMAC MACHINERY SDN. BHD, 2.1.2 Sequence Name and Label 1) A soquence name is defnad a 2 name assigned to a block, Numerie or alphabetic characters following Bec Ware designated for a sequence name, . N. Sequence name mt be placed tthe Begining ofa Block However, i nt essetil to ince seqzened name in a program, Sequence nue ingy be specified in any order, Brample 23. Program Name anne v pat2 ¥ ONIATD —® ONIN > NOI 2.1.3 Coordinates and comman 2) Machine aries out ts tasks by following the commands weinen ina program, These commas are rsented by groups of codes, socalled G codes and M codes. Fach ende commands the machine to doa specific acon. For example: 8) GO) commands the machine o move the cuter at a rapid speed vo a specif point in the ‘work 1) MO8 commands the machin: to start spraying coolant through the norzes Tae? |. Cade Chee [CONTENT Gon Fesioning cor Sight inc ating coz Carl cting (clocanse) Gos Cacia tg (counteciocini) Gos Dire = Gal Tool nose ads compenstion’ Cancel Gat Tool nose mc compensa 6 “oal nose ais compenstion: right Gi Maxnum Spindls sped dosignsion Gir ogi compouns (a aud cating le : Longitudinal groeit compound xed eyle Trannerse provigil compound fixed oe Tapping compound Bxed ee. Gh Tend af shipe designation AP Saat of longitudinal shape dosgaion CAP) ar Stat of Gaxavere slape design LAP lf rough ae rng cl [Call of fishing ele CAP) 7 ‘Abslic pragronniag Tuten ogranuning — Feed pee mine mode (nun Deceaber 1998 4 Manual ~ Lathe NUMAC MACHINERY SV BHD ‘Moe Mol Ms MOS ‘M08 ‘wo2, Vesa react vi tte odin psn wt “gpecified. The coordinate value is represented by XZ, A.C. Land K axis. However. caly X and Z axis is Sonar 90. eet 9 1am o 010m defaul, th nit system lows significant afr he desi port x00 pint nox exec ier ve is assigned X90 iefTecve as X90, 0 X9.0 [Exampiea ‘X:70,711 Z100, +x90.001 290 code adress include F ST. P.Q. hee = Food rate S> Spine Speed Tool sumer amd tol offet camber NUMAC MACHINERY SDN. BED cf cutting tol is made by 4g figures following a character T 7 Example 24 Convention) Spindle Stops Revi mio! 8 “Too! Offer Number “Tool Number To202 ‘Designate the spnaie aad Tool nse radius compensition function is uscd, selection ofa cuting tool is made by 6-

You might also like