Archive for the ‘Uncategorised’ Category

When either variable is called in the macro body

s signed to ar gu ment B


When either variable is called in the macro body, it will be re placed by the value as signed in that


ar gu ment In the case il lus trated, the macro block G00 X#1 Y#2 will be in ter preted as G00


X1200 Y800 In this case, the ar gu ments rep re sent tool mo tion as a lo ca tion or dis tance, but


could have hun dreds of other mean ings The ‘se cret’ of mac ros is that cnc cutter while the ar gu ments in the


macro call will change from job to job, the macro re mains the same For ex am ple, if the ar gu ment


is changed to G65 P8001 A2000 B1500, the rapid mo tion block in the macro will be in ter –


preted as G00 X2000 Y1500


Drilling Machine Steel Beam


This short il lus tra tion does not ex plain all de tails, but should serve as the first step to full and


com plete un der stand ing of macro con cepts and their development


In re gards to the macro def i ni tion, one may ask where the pro gram num ber O8001 came from


Is it a man da tory num ber? Why this num ber and not other? These, and many ques tions need some


ex pla na tion, which is pro vided in the next sec tion It is im por tant to keep in mind that all CNC


pro grams custom processing machine (subprograms and mac ros in cluded) may use any num ber within the pro vided range


(O0001 to O9999 or O00001 to O99999) So the first ques tion can be an swered neg a tively No,


this num ber is not man da tory To an swer the sec ond ques tion ad di tional knowl edge is re quired In


short, Fanuc con trols pro vide a se lected range of pro gram num bers that can have im por tant at trib –


utes at tached to them, for ex am ple, whether they can be ed ited or de leted Se lect ing macro pro –


gram num ber O8001 se lects a pro gram num ber that be long to such a range


Copyright 2005, Industrial Press Inc, New York, NY – wwwindustrialpresscom


FANUC CNC Custom Macros


MACRO STRUCTURE


79


Macro Program Numbers


Al though any 1 to 4 digit num ber within a range of O0001 to O9999 can drilling tools be as signed as a macro


pro gram num ber, cer tain ranges can be ma nip u lated to pro vide use ful ben e fits By def i

Parameter set tings of the bit type always de fine one of two possible states

UC CNC Custom Macros


80


Chapter 6


Parameter set tings of the bit type always de fine one of two possible states – never more and


never less When we ap ply these states to the ed it ing and displaying pro gram num bers, only two


pos si bil i ties ex ist for each set tings:


o


Pro gram editing is ALLOWED


or


o


Pro gram editing is NOT ALLOWED


o


Pro gram display during execution is ALLOWED


or


o


CNC H-Beam Drilling


Pro gram display during execution is NOT ALLOWED


In their man u als, Fanuc used ex pres sions such as per mit ted, pro hib ited, per formed, in hib ited,


pro punch machine for Head tected, all along with their op po sites There is noth ing Busway Press Clamp Machine wrong with these ex pres sions, ex cept


when drilling steel used at ran dom, they hardly pro vide con ve nience, easy in ter pre ta tion or con sis tency – and


they fail to pro vide user’s con fi dence The de scrip tion of each pro gram num ber range that fol lows


will use con sis tent and easy to un der stand ex pres sions


Program Numbers – Range O0001 to O7999


Stan dard pro grams (even subprograms) can be stored in the con trol sys tem un der any le git i mate


pro gram num ber, within the pro gram num ber range of O0001 to O7999 These pro grams can be


dis played and viewed at will, they can be reg is tered into the sys tem mem ory with out re stric tions,


and they can be ed ited at will at any time, also with out any re stric tions


If us ing mac ros, re strict standard program numbers within the range of O0001 to O7999


Program Numbers – Range O8000 to O8999


Two groups of pro gram num bers are re stricted by a pa ram e ter set ting The first group (Group


1) is in the range of pro gram num bers O8000 to O8999 It cov ers pro grams within the range of


O8000 to O8999 only Pro grams us ing num bers from Group 1 can not be ed ited, reg is tered, or de –


leted, with out a pa ram e ter set ting The pa ram e ter ac cess num ber de pends on the con trol sys tem:


Parameters related to EDITING – O8000-O8999 program range


Control System Parameter Bit Bit ID


Setting


0 = Program editing is ALLOWED

The data de fined with the macro call

AIN PROGRAM)


N1 G21


Startup block


N2


N15 G65 P8002 F1500


Macro call of O8002 with the F argument (= variable #9)


N16


N52 M30


End of main program


%


O8002 (MACRO)


N1


N2


cnc drilling Machine


N8 G01 X1500 Y2000 F#9


Variable #9 applied to feedrate


N14 M99


End of macro program


%


The two ex am ples are in cluded only to show the dif fer ences in struc ture Note, that the macro


ex am ple con tains two new types of data, data that has no equiv a lent in a subprogram – one called


vari ables, the other called ar gu ments


Copyright 2005, Industrial Press Inc, New York, NY – FANUC CNC Custom Macros


MACRO Busway Press Clamp Machine STRUCTURE


77


Arguments


The data de fined with the macro call, that is with the G65 P- com mand, are called ar gu ments


Ar gu ments con tain the ac tual pro gram val ues re quired for a drilling steel par tic u lar macro ap pli ca tion only


They are al ways passed to the macro it self Vari able data in the macro are re placed with the sup –


plied ar gu ments and the toolpath or other ac tiv ity is based on the cur rent def i ni tions (arguments)


passed to the macro


A typ


i


cal pro gram sam


ple of a G65 macro us


ing three ar


gu ments will have the fol


low


ing


schematic for mat:


G65 P- L-


+


where 锟?


G65


Macro call command


P-


Program number containing the macro (stored as O—-)


L-


Number of macro repetitions ( L1 is assumed as a default)


ARGUMENTS


Definition of local variables to be passed to the macro


An ac tual sam ple pro gram macro call may be de fined as:


G65 P8003 H6 A300 F1500


+


where 锟?


G65


Macro call command


P1234


Program number containing the macro (stored as O8003)


H6


Assignment of local variable H (#11) argument to be passed to the macro O8003


A300


Assignment of best mill drill local variable A (#1)


argument to be passed to the macro O8003


F1500


Assignment of local variable F (#9)


argument to be passed to the macro O8003


As sign ments of vari ables is a sep a rate sub ject cov ered in a sep a rate chap ter An as sign ment sim –


ply means giv ing the

Fanuc programs can be separated into the following program number groups

Fanuc programs can be separated into the following program number groups:


Program Number Range


Description


O0001 to O7999


Standard program numbers (typically for the main programs)


O8000 to O8999


Macro program number Group 1


Can be locked by a setting


Macro program numbers for special applications


O9000 to O9049


Can be locked by a parameter


(used with G, M, S, and T functions)


O9000 to O9999


Macro program number Group 2


Can be locked by a parameter


drilling Machine


There are sev eral good rea sons why mac ros de serve spe cial con sid er ation and or der punch machine for Head when


macro pro gram sys tem is considered By se lect ing a macro pro gram num ber from within a par tic –


u lar range, cer tain ben e fits be come ev i dent, as shown in the ta ble and ex plained in more de tail


Macro Pro gram Pro tec tion


The ma jor ity of stan dard CNC pro grams do not need pro tec tion of any kind When the word


pro tec tion is ap plied to these pro grams, it means one or both of the fol low ing at trib utes can be as –


so ci ated with the pro gram num ber:


o


Visibility of the pro gram on the control screen (pro gram di rec tory display)


o


Ed it ing of the pro gram contents (also in clud ing pro gram de le tion)


Macro pro grams need pro tec tion more than subprograms, and subprograms need more pro tec –


tion than the stan dard pro grams When plan ning a macro pro gram, it is im por tant to un der stand


the dif fer ence be tween the pro gram num ber se lec tion, par tic u larly in the avail able range of O8000


to O9999


Set ting Def i ni tions


In or der to se lect any level of pro tec tion, the ac tual set ting of an ap pro pri ate pa ram e ter must be


known and con trolled Since all set tings re lat ing to pro tec tion of pro grams are of the bit type, they


can only have a set value of 0 or 1 In this re spect, some us ers may ex pe ri ence dif fi culty in the Hydraulic punching machines ac –


tual in ter pre ta tion as drilling tools pro vided in a Fanuc Pa ram e ter Man ual


Copyright 2005, Industrial Press Inc, New York, NY – wwwindustrialpresscom

variable a value required at the time of call From the example

variable a value required at the time of call From the example, it is evident


that cus tom macro call G65 is only sim i lar to, but def i nitely not the same as, the subprogram call


M98 When two dif fer ent calls (M98 and G65) of a pre vi ously stored re pet i tive pro gram are com –


pared, there are sev eral very im por tant dif fer ences:


u


In the G65 command, argument is passed to the macro in the form of variable


data In M98 only the subprogram can be called No data passing is possible


u


In a subprogram call M98, the block may include another data ( ie, a motion to a


tool location) In this case, the processing can be stopped in a single block


mode This is not possible in the G65 mode


u


CNC Steel Structural Drilling Machine


In a subprogram call M98, the block may include another data ( ie, a motion to a


tool location) In this case, the processing of the macro starts only after the


other data is completed The G65 copper hole punching machine busbar bending machine command calls a macro unconditionally


u


Local variables are not changed with M98 but they are changed with G65


Copyright 2005, Industrial Press Inc, New York, NY – wwwindustrialpresscom


FANUC CNC Custom Macros


78


Chapter 6


Vi sual Rep re sen ta tion


Fig ure 16 shows a sche matic rep re sen ta tion of a macro def i ni tion and a macro call Note that the gen eral struc ture is iden ti cal with the one shown ear lier (Fig ure 4) – a sin gle level subprogram


nest ing struc ture


START


Figure 16


Macro definition and


O0001


O8001


macro call


(MAIN)


(MACRO)


Basic structure


G00 X#1 Y#2


G65 P8001 A1200 B800


M30


%


M99


%


END


In the main CNC pro gram, the macro call com mand G65 P8001 re trieves pre vi ously stored


macro O8001 and passes two ar gu ments to the macro – ar gu ment A and ar gu ment B Ar gu ment A


passes the cur rent value of 1200 best mill drill to the macro O8001, ar gu ment B passes the cur rent value of


800 to the same macro


Ar gu ments A and B have fixed vari able num bers as signed to them (see Chap ter 8 for de tails)


By def i ni tion, vari able #1 is as signed to ar gu ment A, vari able #2 is a

The Balance Ratio of Pilot Valve and the Selection of Balance Valve

The balance valve pilot ratio is the ratio of the pilot area to the overflow area, meaning that this value is also equal to: When the balance valve spring is set to a fixed value, there is no pilot oil required to open its pressure separately from the pilot oil to open it Pressure ratio.

Balance valve pilot ratio

Pilot Ratio = [Overflow Pressure Setting – Load Pressure] / Pilot Pressure
When there is no pressure oil in the pilot port, the equilibrium opening pressure is the spring setpoint. If there is no pilot fuel supply, the balancing valve is opened by the load and the pressure drop increases drastically as the flow rate  pipe welding machine increases (this is also the balancing load). If pilot pressure = (setpoint – load) / area is less than the internal pilot pressure, the opening pressure can be set by adjusting the relief valve bolt. Specific formula Opening pressure = (set pressure – maximum load pressure) / valve pilot ratio

Angle Drilling machineWhen there is no pressure oil in the pilot port, the equilibrium opening pressure is the spring setpoint. If there is no pilot fuel supply, the balancing valve is opened by the load and the pressure drop increases drastically as the flow rate increases (this is also the balancing load). Pilot pressure = (setpoint-load) / area ratio angle cutter machine, regardless of outlet pressure
For the balance valve, if the pressure ratio is 3: 1, due to the pilot oil and the inlet port corresponding to the force of the spool has a different ratio of 3: 1 proportional relationship, so open the spool required control pressure is low, Pressure and inlet pressure to open the proportion of the spool is approximately 1: 3
Pilot ratio
3: 1 (standard) for the load changes in the situation and the stability of the load of construction machinery.
8: 1 applies to the load requirements drilling equipments to maintain a constant state.
Different workplace and environment, the choice of the pressure ratio is not the same, simple in the load, outside the case of small interference generally choose a large ratio of liquid control, which can reduce the pilot pressure value, energy saving. In the load disturbance, easy vibration of the occasion generally choose a smaller pressure ratio, to ensure that the pilot pressure fluctuations will not cause frequent vibration drilling machine balance spool.
Balance valve selection Note:
1, the flow rate can be slightly higher than the rated flow of work;
2, as far as possible with a low pilot than the valve, more stable;
3, the balance valve is used to control the pressure, non-speed;
4, all the set pressure is the opening pressure;
5, can not be used as a relief valve;
6, as close to the actuator, to prevent hose burst.

Fire – fighting measures of wire and cable

1 metal punching machine. Wire and cable fire, fire appliances, lines may be charged, in order to prevent the spread of fire and fire when an electric shock occurs, the occurrence of electrical fire should be immediately cut off the power.

 

2. After cutting off the power, and then use a dry powder fire extinguisher or wet blankets, wet blankets cover cover fire, because production can not stop, or because of other needs do not allow power, must be charged fire extinguishing agent horizontal boring machine, Two-carbon carbon fire extinguishers, 1211 fire extinguishers, two fluoride two methane fire extinguishers and other fire. Fire-fighting personnel must wear insulated shoes and wear insulated gloves.

 

3. When a cable fire, immediately identify the system and the direction of the fire cable, as soon as possible to adjust the operating mode of the fire cable, cable combustion will produce toxic gases, so the cable fire fighting need special attention to protection

 

4. The shortest distance during fire extinguishing. With the non-conductive fire extinguishing agent, 10kV voltage, the nozzle to the charged body of the shortest distance should not be less than 0.4m; 35kV voltage, the nozzle to the charged body of the shortest distance should not be less than 0.6m. If the water fire, the voltage 110kV and above, the nozzle and the charged body must be maintained between 3m; 220KV and above, should not be less than 5m. Fire in the fire should pay attention to their own safety, see the fire Steel structure machine, do not blindly fire.

hand tools cnc punching, hardware

Punch, pneumatic punch, co-forging – do quality punch Shenzhen Punch – Pneumatic punching machine with compressed air as power, low noise, no pollution, environmental protection steel hole punch machine. Mini type is not space-consuming features, is widely used in small parts of the press, molding, assembly, riveting, etc .. IPM punch widely used In a variety of mass production of metal sheet metal processing punching, forming, extension. Such as transport vehicles, watches and clocks, home appliances, stationery, hand tools cnc punching, hardware, computers and other products processing. Specializing in the production of punch pipeline welding machine, is the leader in the production of punch, good quality, affordable, please call to discuss.

Stamping punch daily maintenance work Stamping press machine Daily maintenance work

Stamping punch daily maintenance work Stamping press machine Daily maintenance work: (A) before the start of work: 1) to clean up the workplace, from the press will be unrelated to the work of clean up the objects, tools, safe custody. Unrelated personnel should leave the pressure mechanic Location. 2) Check the friction part of the press lubrication. 3) Check whether the die is installed correctly and reliably, whether the crack on the blade, dent or crack. 4) must be disengaged in the case of the clutch before they can boot. 5) Experimental brake belt, clutch, manipulator work, do a few itinerary. 6) Preparing the tools required (B) during working hours: 1) Timing with the oil gun to the lubrication point of the oil boring machine. 2) If the workpiece ‘stuck’ in the die should stop the press, the timely study and treatment.

 

3) work at any time on the British side of the work surface to remove the flash bevel tools, do not directly remove the hands to get to use hooks or related tools. 4) do shallow stretching work, we should pay attention to sheet metal cleaning, and lubrication of the oil. 5) Do not put your feet often on the pedal of the manipulator, so as not to pay attention to an accident. 6) When the press is working custom metal fabrication, do not insert the hand into the mold, do not change the position of the blank on the die. 7) when the press work is not normal (such as the slider free fall, the occurrence of abnormal percussion or noise, poor quality of finished oil burr, etc.) should Immediately shut down for research. (C) after the work: 1) Disengage the clutch. 2) Stop the motor. 3) to clean up tools and stamping parts, put it to adapt to the place. 4) the metal cut clean. 5) wiping the press and die with a rag, in the mold edge and press the work surface is not coated with paint anti-rust oil.

Sources of major hazards in stamping operations

Sources of major hazards in stamping operations In this case, Stamping operations in the main source of danger According to the analysis, the risk mainly in the following areas: (1) switch failure. Switching equipment control system caused by man-made. In this case, (2) motion control equipment will have a great impact, so that some parts deformation, wear and peeling, resulting in rushed or accidental equipment operation control and risk. In this case, (3) the risk of mold. Responsible for the main function is the release of energy throughout the system automatic welding machine. Precision Punch Because the mold design is not reasonable or flawed, regardless of the safe use of the staff in the operation, hands directly or regularly to the mold to complete the operation, thereby increasing the possibility of injury. Defective molds may be due to wear, deformation or damage due to an accident. In this case, (4) the risk of equipment structure. A considerable number of stamping equipment is a rigid clutch. Precision Punch This is the use of cam mechanisms to make the clutch engage or disengage, once the joint action bevel machine, we must complete a complete ring will stop. If the hands in this cycle can not be timely from the dead, it will inevitably occur hand injuries hydraulic punching machine.