A kind grand function applies FANUC

  • Time:
  • Click:176
  • source:ACHER CNC Machining
User grand function is a kind of when improve performance of numerical control machine tool special function, in using, stock a series of instructions that can fulfil some function like the subprogram normally memory, represent them with a total instruction next, when using, need to give out only this total instruction can execute its function. User grand function main body is a series of instructions, be equivalent to subprogram body. Can offer by machine tool manufacturer already, also can weave by machine tool him user. Macroinstruction is the total instruction that represents a series of instructions, be equivalent to a subprogram calling a statement. User the biggest characteristic of grand function is, can have operation to variable, make program application more agile, convenient. Grand function has the user A, B two kinds. A basically introduces here kind grand function, b kind the B that grand function refers to this course please kind grand program introduces. 1.

Variable is inside groovy main program and subprogram, always give an address a specific numeric ode. To make the program is provided more more versatility, agile, variable was installed in grand program. (The expression of 1) variable is variable and OK will express with "#" date and the variable serial number after following therewith: #i(i = 1, 2, 3.

.

.

.

.

.

)   exemple: #5, #109, #501. (The adduction of 2) variable will follow to use a variable to replace in the numerical value after an address, introduced variable namely. Exemple: To F#103, be like #103 = 50 when, it is F50; To Z-#110, be like #110 = 100 when, criterion Z is - 100; To G#130, be like #130 = 3 when, it is G03. (The variable cent of the system of 0MC of type     of 3) variable is communal variable and systematic variable two kinds. 1) communal variable of communal and variable   is each user that calls in main program and main program the public variable inside grand program. That is to say, the #i in a macroinstruction and the #i in another macroinstruction are identical. The serial number of communal variable is: #100 ~ #131; #500 ~ #531. Among them communal variable of #100 ~ #131 cuts off the power in power source hind namely to clear, when switching on the mobile phone afresh, be installed to be "0" ; Although communal variable of #500 ~ #531 cuts off the power hind, their value also keeps constant, because this also is called,maintain model variable. 2) definition of variable of system of systematic variable   is: Have the variable of fixed utility, its value decides systematic position. Systematic variable includes cutting tool to slant buy is variable, the input of interface / output signal is variable, positional information variable. Some kind of condition of the serial number of systematic variable and system has strict corresponding concern. For example, cutting tool slants buy variable serial number is #01 ~ #99, the method that these values can replace with variable tries to change, in serial number 1 ~ 99 in, need not make a knife slant the variable of the quantity can use as maintain model #531 of ~ of communal and variable #500. Interface inputs #1015 of signal #1000 ~ , #1032. Through reading these systematic variable, can know each input buccal circumstance. It is when variable value " 1 " when, explain contact closes; It is when variable value " 0 " when, show contact disconnects. These variable numerical value cannot be replaced. Read variable #1032, all input signal is read in. 2.

G65 of macroinstruction of macroinstruction G65   can realize rich grand function, include the processing function such as arithmetic manipulation, logistic operation. Common form: In type of G65 Hm P#i Q#j R#k: M: Express grand program function, scale 01 ~ 99; #i: State operation result deposits the variable name of place; #j: Represent the first variable that is operated, also can be a constant; #k: Represent the 2nd variable that is operated, also can be a constant. For example, when program function is addition operation: Program P#100 Q#101 R#102.

.

.

.

.

.

The meaning is P#100 Q-#101 R#102 of program of #102 of + of #100 = #101.

.

.

.

.

.

The meaning is #100 = - P#100 Q#101 R15 of program of #101 + #102.

.

.

.

.

.

The meaning is + of #100 = #101 15 grand functions dictate cent is: (click the link below to examine specific specification) instruction of trigonometric function of instruction of operation of logic of arithmetic manipulation instruction controls kind of instruction 3.

Use attention is those who assure grand program is normal move, using an user in the process of grand program, should notice the following; (any choices that the H code that 1) sets by G65 does not affect deflection to measure; (if 2) was not appointed with the Q at each arithmetic manipulation or R, become 0 processing; (3) is in branch move target, if serial number is,be worth, retrieving a process is search to large order name first, if serial number is negative worth, retrieving a process is search to small order name first. (serial number of 4) move target can be variable. Graph 4.

Grand program uses the user citing (click the link below to examine specific specification) exemple one: Machine aperture of circumferential divide into equal parts with grand program and subprogram function. Exemple 2: According to offerred data, grand program function machines the user aperture of circumferential divide into equal parts. 5.

If right plan institute is shown,think grow in the edge 8 hole are drilled on the square that is 100 millimeter, process designing coordinate fastens set to be like right graph, z Xiang Ling nods those who be set in workpiece to go up the surface, hole depth is 35 millimeter, use an user grand program writes its machine program. CNC Milling CNC Machining