The structure of numerical control program and format

  • Time:
  • Click:98
1.

Program of program structure numerical control ends paragraph of composition by content of program number, program and program. For example: Program number: 001 programs content: N001 G92 X40.

0Y30.

0; N002 G90 G00 X28.

0T01 S800 M03; N003 G01 X-8.

0Y8.

0F200; N004 X0 Y0; N005 X28.

0Y30.

0; N006 G00 X40.

0; program ends paragraph: Number of program of N007 M02;(1) uses program number address to pile up the program in divisional memory, code of address of number of program of system of different numerical control is different, if system of Japanese FANUC6 numerical control uses O to regard program number address as the code; System of AB8400 numerical control uses P to regard program number address as the code; System of SMK8M numerical control is used % wait as code of program number address. (Portion of content of program of 2) program content is the core of whole process, by a certain number of block composition, every block is formed by word of one or more instruction, every instruction word is comprised by address accord with and number, it represents a position of the machine tool or an action, each block end is used " ; " date. (3) program ends the sign that Duan Yicheng foreword ends instruction M02 or M30 regards whole process as the end. 2.

Block format every block is by block number, a certain number of instruction (functional word) end symbolic composition with block. N, G, X, Z, F is address code, "- " for the symbol (minus) 64.

0 amount to occupy word N -- block address code, with will make block serial number; G -- code of preparative function address, g01 is linear interpolation instruction; X, Z -- code of reference axis address, data word shows the distance that cutting tool should move in direction of this reference axis at the back of its; F -- code of feed speed address, data word states speed of cutting tool feed is worth at the back of its, f100 states feed speed is 100mm/min. ; -- block ends a code, with " NL " , " LF " or " CR " , " * " wait for symbolic meaning equivalent, provision of different numerical control system has different block to end accord with. Express specification of format of 1 common block: The statement form of numerical control machine tool has a lot of levels in the world, agree not completely. And the development as numerical control machine tool, be improved ceaselessly and innovate, its system function is mixed more by force greatly use convenient, between system of different numerical control, certain difference exists on block format, accordingly, be in specific when undertaking process designing of machine tool of some numerical control, want to know the process designing pattern of system of its numerical control carefully, referenced manual of process designing of machine tool of this numerical control. 3.

Commonly used process designing dictates (functional word) functional word also calls a program the word or dictate, it is pilot of machine tool number special technical terms. His definition has the code sign of compasses graded one group, can put store as an information unit, deliver and operate. (1) coordinate word: Use set machine tool the displacement quantity of each coordinate is comprised by coordinate address accord with and number, wait for alphabetical begin with X, Y, Z, U, V, W commonly, from the back follow closely " + " or " - " reach a string of number. This number is an unit with pulse equivalent commonly, do not use decimally, if make decimally shows this number, main unit is Mm. (2) prepares functional word (abbreviation G function) : Appoint the athletic way of the machine tool, the interpolation operation that is numerical control system prepares, by accord with of preparative function address " G " comprise with place of two digit word, the code name of G function already was standardized, a few muti_function machine tool, already the number is more than the instruction of 100. Commonly used G dictates: Coordinate fixed position and interpolation; Coordinate plane chooses; Secure circular treatment; Cutting tool compensation; Absolutely coordinate and increment coordinate. (Word of 3) feed function: Appoint cutting tool the athletic speed of opposite workpiece, feed function word with address accord with " F " head, heel a string of word code, unit Mm/min, when feed speed and main shaft rotate speed are concerned, if have a car whorl, tap or set buckle when waiting for treatment, use unit still can be Mm/r. Law of 3 digit code: F heel 3 digit word, the first integral digit that is feed speed is added " 3 " , hind before 2 significant numbers that 2 are feed speed. If 1728mm/min is appointed,be F717. Law of 2 digit code: F heel 2 digit word, set with 00, the speedometer of 99 photographs correspondence, divide 00 with 99 outside, digital code by 01 to 98 when increasing by degrees, rate rises by geometric ratio relation, fair than for 1.

12. Be like F21 speed 11.

2mm/min, f54 speed 500mm/min. Law of one digit code: Heel of less to speed archives machine tool F one digit word, namely 0, 9 come the speed that correspondence books 10 kinds. Appoint a law directly: Write directly according to booked unit after F on the feed speed of the requirement. (Word of function of speed of 4) main shaft: Appoint main shaft rotate speed coming back to spend, head with S of address accord with, heel a string of number. The digital meaning, method that divide shelf and contrast watch and feed function word are general, it is an unit only for: R/min. (Word of function of 5) cutting tool: When the system has the function that change a knife, in order to of word of cutting tool function chooses replaced cutting tool, head with T of address accord with, follow 2 digit word commonly ever since, this number represents the number of cutting tool. (6) assists functional word: The craft sex that is used at the machine tool processes an operation dictates, head with M of address accord with, follow 2 digit word ever since (M00, M99) , commonly used M dictates: Of main shaft change direction with open stop; Of cooling fluid with stop; The clamp that appoints machinery and loose; Those who appoint workbench to wait is fixed and linear with angular displacement; Demonstrative program stops or punched tape ends etc. (7) mode dictates and be not mode instruction: G instruction and M instruction all have the branch of mode and blame mode instruction. Mode instruction: Also call add effect the instruction, by the function cent is a certain number of groups, watch 2 win the bid the 2nd times identical abecedarian is with group. Once mode instruction is appointed in block, effective all the time, till invalidation of the ability when appearing to be the same as group of another instruction or be cancelled by other injunction, with on one paragraph of identical mode the instruction can be not written elliptically. M of standard of 3 JB3208-83 of function of instruction of G of standard of watch 2 JB3208-83 dictates the function is not mode instruction: Be not add effect instruction, in the block that appearing only effective, when below one paragraph of program needs, must rescript (like G04) . For example: N001 G91 G01 X10 Y10 Z-2 F150 M03 S1500; N002 X15; N003 G02 X20 Y20 I20 J0; N004 G90 G00 X0 Y0 Z100 M02; Explain: 1) appears the first paragraph G91 of 3 mode instruction, G01, M03, because they are different group and all add effect, among them the invalidation when G91 function continues to the 4th paragraph of occurrence G90; G01 function relays in the 2nd paragraph add is effective, appear to the 3rd paragraph be cancelled when G02; M03 function till invalidation of the ability when become effective of the 4th paragraph of M02. 2) is expressed 2 (3) column has " * " with the watch 3 (5) column has " * " person dictate to be not mode, in the block that its function is appearing only effective. 3) is expressed 3 (2) column has " * " M instruction, its function and the movement that are the same as paragraph of other injunction begin at the same time. Watch 3 (3) column has " * " M instruction, its function begins with the ability after be the same as paragraph of other injunction action to finish. CNC Milling