this brings very close the subject of ‘real’ macros

this brings very close the subject of ‘real’ macros – a sub ject needed to learn in more depth


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


FANUC CNC Custom Macros


ASSIGNING VARIABLES


105


Local Variables and Nesting Levels


busbar Machine


Subprograms and mac ros can both be nested within the pro gram structure Nest ing, as a pro –


gram ming feature, means that one subprogram or one macro can call an other subprogram or a


macro, which can call an other subprogram or a macro, and so on, up to four lev els deep Having a


four-level depth of nest ing offers some real pro gram ming power, but it is rather Busway Press Clamp Machine rare to pro gram


more than two lev els of nest ing depth Re gard less of how many lev els the macro (or subprogram)


is nested, it is im por tant to un der stand the re la tion ship be tween lo drilling steel cal vari ables and each macro


level Fig ure 18 is a sche matic rep re sen ta tion of the macro nest ing, show ing all four levels:


O0001


O9001


O9002


O9003


O9004


(MAIN)


(SUBPRG)


(SUBPRG)


(SUBPRG)


(SUBPRG)


#1=


#1=


#1=


#1=


#1=


#33=


#33=


#33=


#33=


#33=


G65 P9001 —


G65 P9002 —


G65 P9003 —


G65 P9004 —


M30


M99


M99


M99


M99


%


%


%


%


Figure18


Local variables definitions and levels of macro nesting


As the il lus tra tion shows, each set of lo cal vari ables #1 to #33 can be de fined up to five times –


once in the main pro gram, and once for each macro level (up to four more times)


Ev ery time a new nest ing level is pro cessed, the new set of vari ables takes over for that macro,


but the old set is still in mem ory, and will be re called when the macro re turns to the level it orig i –


nated from The vari ables will still re tain their val ues Re mem ber that it is the mis cel la neous func best mill drill


tion M99 that clears all lo cal vari ables, not a jump to an other pro gram Un til the pro gram flow


en coun ters the M99 func tion (end of subprogram or a macro), no lo cal vari able is cleared When


the whole pro gram is com pleted, pro gram end func tion M30 will clear any a

i cal to run

i cal to run


So far, the com mon vari ables (#100+) have not yet been dis cussed Can they be used with


some ad di tional ben e fits? Once you un der stand their pur pose, the de ci sion will be yours


In short, yes, the com mon vari ables (#100+) could also be used, but with a lit tle ben e fit Take


the above ex am ple for what it is – it only at tempts to dem on strate the prin ci ples of lo cal vari ables,


busbar Machine


not nec es sar ily pres ent their most ef fi cient us age As a mat ter of fact, there are sev eral other ways


to im prove on this pro gram, all a lit tle ad punch machine for Head vanced at this point One method in cludes the use of op –


tional stop, pro vid ing function can be used in the mid dle of a com mand (not all con trols sup port


this fea ture) As a rule, keep hydraulic busbar cutter away from us ing the block skip func tion (the slash func tion /) from


pro grams us ing vari ables and par tic u larly from us ing it in mac ros There are times when the block


skip func tion can be used very ef fec tively, and times when it should not be used at all, for ex am –


ple, with vari ables Since a block skip func tion is a very prim i tive branch ing method, to pro vide


some min i mum ‘branching’ flex i bil ity to stan dard pro grams, it is ac tu ally not needed it in macro


pro grams at all Mac ros of fer a num ber of very so phis ti cated pro gram ming fea tures – es pe cially


de signed for branch ing – with much su pe rior con trol than block skip func tion can provide


At this level of macro pro gram de vel op ment, there is a pos si ble small im prove ment that can be


used to make the pro gram ming ef fort more ef fi cient that has noth ing to do with mac ros The pro –


gram for tool T05 can be stored as a subprogram, which can in clude all lo cal vari ables As long as


the vari ables are de fined in the main pro gram be fore the subprogram call, this im prove ment can


be very use ful When one set of parts is done, the drilling tools vari ables will be changed for dif fer ent cut ting


con di tions, and the same subprogram can be called again How ever,

the variable values have to be as signed to

6 is used, the variable values have to be as signed to


the cor re spond ing ar gu ment let ter Would it not make sense to get used to the idea right from the


be gin ning and pro gram let ters that look like they ‘mean’ some thing? It would make the pro gram


much eas ier to read and in ter pret


In the case pre sented, it is more prac ti cal to use vari able #19 (as sign ment S) for the spin dle


speed, #9 (as sign ment F) for the feedrate, and #17 (as sign ment Q) for the peck depth Here is the


above pro gram (still for soft ma te rial) mod i fied:


O0009


Soft material


busbar Machine


#19 = 1500


Spindle speed


#9 = 2250


Feedrate


#17 Busway Press Clamp Machine = 150


Peck drill depth


(T05 – 65 MM DRILL)


N61 T05


N62 M06


N63 G90 G00 G54 X1000 Y1250 S#19 M03 T06


Spindle speed variable applied


N64 G43 Z250 H05 M08


N65 G99 G83 R25 Z-750 Q#17 F#9


Peck-depth and feedrate variables applied


N66 X1250


N67 Y1500


N68 G80 G00 Z250 M09


N69 G28 Z250 M05


N70 M01


N145 M30


%


Again, when the custom processing machine pro gram O0008 is com pleted, all lo cal vari ables will be cleared au to mat i cally


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


FANUC CNC Custom Macros


104


Chapter 8


Pro gram for the harder ma te rial only re places the three vari able def i ni tions (#19, #9, and #17) listed at the pro gram be gin ning – the rest of the pro gram (for T05 in the ex am ple) does not change


at all – all blocks be tween N61 and N145 are iden ti cal:


O0010


Hard material


#19 = 1100


Spindle speed


#9 = 1750


Feedrate


#17 = 120


Peck drill depth


(T05 – 65 MM DRILL)


N61 T05


N62 M06


N63 G90 G00 G54 X1000 Y1250 S#19 M03 T06


Spindle speed variable applied


N64 G43 Z250 H05 M08


N65 G99 G83 R25 Z-750 Q#17 F#9


Peck-depth and feedrate variables applied


N66 drilling tools X1250


N67 Y1500


N68 G80 G00 Z250 M09


N69 G28 Z250 M05


N70 M01


N145 M30


All three local variables are cleared


%


This method of us ing vari ables in the main pro gram with out ac tu ally de vel op ing mac ros can be


a very pow er ful way to make many jobs more flex i ble and eco nom

nd all lo cal vari ables

nd all lo cal vari ables


de fined in the main pro gram Lo cal vari ables can not be passed from one macro to an other – that is


why they are called lo cal vari ables


In many macro de vel op ment cases, there is a strong need to pass a busbar cutting machine de fined vari able from one


macro to an other macro For nest ing, this re quire ment presents no prob lem, as just shown The


busbar Machine


prob lem be comes ap par ent, when the lo cal vari ables have been cleared and there still is the need


to pass one or more vari able val ues to an other macro To achieve this goal, Fanuc of fers an other


set punch machine for Head of vari ables – an other range – called the com mon vari ables – vari ables that can be passed from


one macro to an other, with out be ing cleared be fore the transfer


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


FANUC CNC Custom Macros


106


Chapter 8


Common Variables


The sole pur pose of com mon vari copper busbar bending machine ables is that they re main ac tive when the macro they were de –


fined in is com pleted Make sure to un der stand how the com mon vari ables work (there are some


dif fer ences be tween con trol mod els), and also when and how the com mon vari ables are cleared


Com mon vari ables are never as signed as ar gu ments in the G65 macro call They can only be


de fined in the macro body, and they start with the first com mon vari able – #100 There is an other


range of com mon vari ables, one that starts with the com mon vari able #500 The dif fer ence be –


tween the two is very sig nif i cant:


Variables #100 to #199 are cleared when the power of the control system is turned off


Variables of the #500 to #999 range remain in effect


even when the power to the control system has been turned off


For the com mon vari ables in the ranges #100 to #199 and #500 to #999, Fanuc of fers four avail able op tions (ac tual num ber of avail able vari ables) on its var i ous con trols:


o


#100 to #149 and #500 to #549


Option A


o


#100 to #199 and #500 to #599


Option B


o


#100 to #199 and #500 to #699

One of the hydraulic magic: the pressure loss on the pipeline

1, the line pressure loss is divided into the resistance along the path loss (like gasoline along the way + vehicle depreciation) and local resistance loss (like tolls to pay the tolls);
2, both are proportional to the square of the flow rate, and the resistance hydraulic drilling machine coefficient is proportional to (λ or ζ), the basic formula is:

154825pb5kblrks92l2rl5.png.thumb154826mjp22bflfuvjlifz.png.thumb

As for laminar and turbulent flow of these two different, of course, some differences, but in hydraulic technology, a more macro-study, the majority of cases can be considered as turbulence to deal with.

drill mill machine

3, the pressure loss along the flow is proportional to the square of the meaning of the flow is proportional to the square of the flow in the pipeline (flow 1 times, that is, the original 2 times the loss is 4 times the original), and pipe cross-sectional area Inversely proportional to the square, that is, inversely proportional to the diameter angle iron shear of the tube 4; another formula in the second denominator, also contains the pipe diameter d, so the final pressure loss along the pipe diameter will be inversely proportional to the 5th power;
For example, if the pipe diameter is reduced by half, the pressure loss at the same flow rate will increase to 32 times!
Another example: If the original diameter is 8mm, now changed to 10mm, the pressure loss along the way will be the original 0.17 times, which is only about one-sixth of the cnc drill machine original; conversely, if the original should be 10mm back Tubing, is 8mm with the return pipe, the oil back pressure loss will be about 6 times the original;
This is often the half-way monks do not pay attention to the hydraulic blind spot. For us to understand, deal with on-site issues, especially on the return pipe, oil pressure back to the deal, should always think of this problem. Return pressure loss along the pipeline, said white, that is, back to the oil back pressure. Do not allow too high back pressure, the system will bring a series of drawbacks.

The Principle Design of the Cutter Structure of the Drill Hole Chamfering Compound

The aim of the tool design is to provide a tool with high productivity, high precision and low production cost, which combines a drill bit, a reamer and a chamfering knife. The tool comprises a cutter head and a handle. The cutter head is composed of a twist drill bit tapping machine, a reamer and a chamfered part. The reamer tooth is a four-tooth spiral blade, the handle is a straight handle, and the whole cutter structure is an integral type Tool.

(1) Drilling part: According to the high efficiency of drill hole drilling, the drilling part of the tool still adopts the structure of traditional twist drill, and the helix angle of the spiral groove part is 300. Side edge should be grinding out 0.02 – 0.04mm inverted cone to reduce friction mill drill machine, the blade processing of the chip can be smoothly guided to the spiral groove discharge sheet metal fabrication. This part completes the roughing process of the hole, and the roughness and the straightness of the hole are poor, and the dimension precision is not high, so as to prepare for the reaming process.

(2) reaming part: the use of four-tooth double-edged outer-chip reamer, each cutting edge by a precision main cutting edge and a minor cutting edge composition. Work, the main cutting edge from the main cutting effect, auxiliary cutting edge from the role of repair light. The reaming part is placed in the hole to finish the finishing of the hole to ensure the accuracy of the hole (the position accuracy and surface roughness of the hole).

(3) Chamfering: After finishing the hole, continue chamfering the hole with the chamfering knife. Chamfer should be carried out by manual control. As the composite tool is generally used for processing holes with relatively small aperture, so the tool holder part (ie, handle) made of straight handle. In order to facilitate the chip to avoid the cutting tool to participate in various parts of the same time cutting (cutting force reduction), each tool cutting the starting point in the axial direction with a certain interval, but also increases the capacity of chip space, The cuttings from the front and rear flanks interfere and block each other. In addition, the need to consider the tool manufacturing process for the wheel to leave out the appropriate way to slot. Tool size must be determined according to the specific size of the hole.

Punch, punch manufacturers, Dongguan precision punching machine

Punch, punch manufacturers, Dongguan precision punching machine (15T-500T), and has a large and a large number of CNC machining equipment, the precision testing equipment cnc punching, and a full set of physical and chemical facilities, and other advanced quality control methods to achieve the purpose of the production of precision punching machine angle bending machine, ERP, PDM, CAM and other enterprise information engineering. Dongguan precision press equipment – IPM, based on skilled engineering and technology, customer satisfaction for the purpose of service, clear quality objectives and follow the principles to ensure that the advanced nature of the product milling drilling machine, reliability in the market Competitive advantage position. Welcome customers to buy!

Punch quality – to ensure personal safety

At present, many companies in the use of punch processing production, the hand directly in the mold cavity to take parts, and a large number of punch equipment are responsible for a variety of products manufacturing tasks. In this case, if the punch equipment and mold without security guards, it is prone to hand injury accident. Therefore, in punch production CNC busbar punching, strengthen security protection, improve the degree of mechanization, is to prevent the occurrence of an important way. Punch operation security technology measures a wide range, which includes improving the punching mode of operation, reform the mold structure, to achieve mechanical automation. The use of complex mode, continuous mode, multi-station mode can play a reduced process, simplify the process, simplify operations, reduce the role of the operator risk. The use of hand tools can be avoided because of mold design and equipment failure caused by unexpected accidents. Common safety tools are: elastic clamp, special clamp, magnetic sucker, tweezers, pliers, hooks and so on. To achieve stamping mechanization and automation, is to ensure the safety of workers and personal safety equipment, the fundamental way. Only the realization of punching feed, reclaiming the full automation of production is the best technical measures to achieve safe production adjustable stand. Practice has proved that the use of complex mode angle steel bender, multi-station continuous mode instead of a single process of dangerous mode, or set in the mold machinery out of material institutions, to achieve mechanization, automation and so can achieve improved product quality and production efficiency, reduce labor intensity, , To ensure the safety of purpose.

The Guarantee of the Quality of Punching Equipment Punch is a high-risk machinery

99% of the punch presses are due to the quality of the punch and the negligence of the workers caused, it is clear that the quality of the press determines the safety of life of the boot, then as a punch manufacturer to punch quality Detection? 1 drilling sheet metal. Any kind of machinery or products are made of raw materials, the quality of raw materials determines the quality of the key machine, our precision machine tools in the selection of punch material done on the study, the use of HT250 punching material, Processing, material requirements to achieve the current high-end punch industry. 2. Production process can not be ignored, the accuracy requirements of any machinery and equipment production is inevitable, ISO inspection is all of our machinery production inspection procedures, in the production process to ensure the accuracy of production is the core of quality control, this process is mainly Is the management and norms, our company is mainly 6 S management and ISO testing procedures to control the quality of production. 3. Assembly is part of the mechanical assembly, the assembly of the machine is the production of our responsibilities cnc machines, we require our assembly workers, and strictly enforce the good of each assembly process, with the gap to the equipment needs, workshop supervisors, quality inspectors of the Each assembly process a good inspection, after the acceptance of qualified to ensure the accuracy of the machine and the machine running smoothly copper busbar bending machine.

Punch industry is facing a major industry problem

First, the punch industry financing difficulties, funding strand breaks With the tightening of the monetary policy of the state, the central bank raised the deposit reserve ratio one after another, the banks affected by the policy, coupled with performance-based considerations, not to the debt ratio is relatively high and credit concept is relatively thin small business idle loan. In order to allow the normal operation of enterprises, small and medium business owners have to seek help solve civil emergencies. However, private lending ‘crisis-ridden’, high cost of borrowing bus bar bending machines, corporate survival pressure, overwhelmed, the bankruptcy has become the only option. In addition, JB21S steel deep throat punch presses are mostly small and medium enterprises private enterprises CNC Angle Line, ‘triangle debt’ phenomenon is very common. Enterprises in order to win over customers, and more customers to take on the end of a month, a month, a few months is a normal phenomenon. However, as the factory needs to produce, need raw materials, capital is not in place will enter a negative state of operation, once a part of the lack of funds, funding strand breaks become inevitable. Second, the punch competition, living space becomes narrow In China, the hardware and electrical industry as a result of barriers to entry is low, whenever in this industry for a few years, the hands of the initial capital with the point can start their own businesses, so that small and medium enterprises have mushroomed into the JC21 open fixed Taiwan punch pressure Machine Hardware Electrical and Mechanical Industry, to seize the market. In addition, as the market continues to move forward, lack of demand exacerbated the intensified competition between the brand and the brand, compressed the survival of enterprises. Congenital hypoplasia of the mechanical and electrical hardware enterprises, in addition to the development of capital is not enough, the performance of the fatal point in the lack of core competitiveness. Enterprises are difficult to form a different competition, in particular, can not withstand the blows of the storm. In 2011, the difficult financing environment, those forced to stop production or bankruptcy factories metal saw, mostly for this reason.