The G66 is much more practical, there fore more of ten used

The G66 is much more practical, there fore more of ten used, than the G661 Compare the typical for mats for both, the G65 and the G66 com mands, us ing the fol low ing ex am ple:

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

FANUC CNC Custom Macros




Figure 17

Drawing example for a modal macro call


cnc drilling Machine

X0Y0 is at the lower left corner,

5×05 T

Z0 is at the top of the 5mm plate











AL PLATE 75 x 55 x 5

The sim ple ex am ple uses a part draw ing in Fig ure 17, where four holes have to be tapped (drill –

ing op er a tion Busway Press Clamp Machine is omit ted in the ex am ple) The macro will be de signed for a spe cial tap ping op er a –

tion only and G84 tap ping cy cles can not be used This is also a good ex am ple of sum ming up the

sub jects cov ered so far

The main ob jec tive of the macro is to pro gram a lower feedrate when the tap moves into the ma –

te rial and custom processing machine a higher feedrate when the tap moves out This tap ping tech nique is use ful for very fine

threads in soft ma te ri als, to pre vent thread strip ping These are the pro gram ming ob jec tives:


Spin dle speed

850 r/min


Nominal feedrate

425 mm/min (850 r/min x 05 pitch)


Feedrate in

80% of the nom i nal feedrate cut ting in


Feedrate out

120% of the nom i nal feedrate cut ting out


Retract clearance

3 mm


Cutting depth

65 mm (15 mm below the bottom of part)

Se lec tion of Vari ables

Any as sign ment ad dress can be used in the G65 macro call, pro vid ing it meets the cri te ria of

mac ros Since let ters will be used as as sign ments, the macro pro gram mer has 21 of these let ters to

choose from It makes sense to se lect let ters that pro vide some re drilling tools la tion ship to their mean ing in the

macro From the list above, se lect ing ar gu ment F for feedrate, S for spin dle speed, Z for tap ping

depth, R for the ini tial and re tract clear ance, etc, makes it eas ier to fill in the as sign ments This is

only a teach ing macro that does n

(those not listed) will most likely in clude the can cel la tion of feedhold

 (those not listed) will most likely in clude the can cel la tion of feedhold,

feedrate over ride and the sin gle block mode, all for a more re li able ex e cu tion of the pro gram

blocks All of them can be con trolled copper busbar bending machine by a macro, us ing sys tem cnc cutter vari ables and other features, de –

scribed else where in this handbook Not all con trol mod els can ac cept the G661 com mand

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

FANUC CNC Custom Macros

CNC Flanges Drilling Machine



Main Program and Local Variables

Any pro gram that does not call subprograms or mac ros is called the main pro gram – the only

pro gram there is Nor mally, we do not as so ci ate vari ables with a main pro gram, only with macro

pro grams Yet, there are many ap pli ca tions, where this pro gram ming tech nique can be very use –

ful and very sim ple to im ple ment for all con trols that have the macro op tion installed For those

learn ing mac ros from the be gin ning, this may even be a very good way to start the train ing The

best start is a prac ti cal ex am ple, en larg ing on the ba sic con cepts de scribed in Chap ter 7

For the pur poses of train ing, one of the sim plest ex am ples of vari ables in a main pro gram is

peck drill ing in dif fer ent ma te ri als Take two ma te ri als that are sup posed to be laser cutting the same, such as

forgings or cast ings from two dif fer ent sup pli ers Chances are, the ma te ri als will not only be

some what dif fer ent in size and shape, they will most likely have a no tice ably dif fer ent hard ness

Al though the draw ing is the same for the fin ished part from ei ther source, the ma chin ing pro ce –

dure is not The forgings from one sup plier will most likely use higher cut ting speeds and feeds

than forgings from the other sup plier, perhaps even dif fer ent peck ing depth In ba sic pro gram –

ming terms, we will need two pro grams to sat isfy the given con di tions

The pro gram ming tech niques for such a sit u a tion are il lus trated in the sam ple pro gram A typ i –

It is simplified (only one tool is used), it is clear that only three numbers

It is simplified (only one tool is used), it is clear that only three numbers, three val ues, have changed in the whole pro gram Need less to say, more tools used or more

com plex ity in ma chin ing may bring more copper busbar bending machine changes to the pro gram – yet the ba sic ap proach does

not change at all The ma jor ity of the pro gram data re mains iden ti cal in both in stances The ob vi –

cnc drill Machine

ous dis ad van tage is that if a change is nec es sary in one pro gram, it will also be nec es sary in the

other pro gram This could lead to ad min is tra tion prob lems and pos si ble er rors

With vari able data, with the ba sic fea tures mac Busway Press Clamp Machine ros of fer, only one mas ter pro gram is needed In

this mas ter pro gram, the three vari able ma chin ing data will be de fined as – vari ables By chang ing

the def i ni tions of the custom processing machine three vari able data, the ma chin ing will pro ceed as in tended, whether the soft

ma te rial or the hard ma te rial is used

For con ve nience and the abil ity to change the vari able data quickly, it is usu ally po si tioned at

the top of the pro gram (at its be gin ning) Here are the def i ni tions for the softer ma te rial, in its first macro ver sion:


Soft material

#1 = 1500

Spindle speed

#2 = 2250


#3 = 150

Peck drill depth

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

FANUC CNC Custom Macros



Once the cut ting con di tions are de fined as vari ables, they can be used any where in the pro gram:

(T05 – 65 MM DRILL)

N61 T05

N62 M06

N63 G90 G00 G54 X1000 Y1250 S#1 M03 T06

Spindle speed variable applied

N64 G43 Z250 H05 M08

N65 G99 G83 R25 Z-750 Q#3 F#2

Peck-depth and feedrate variables applied

N66 X1250

N67 Y1500

N68 G80 G00 Z250 M09

N69 G28 Z250 M05

N70 M01

N145 M30


Once the pro gram O0008 is com pleted, all three lo cal vari ables will be cleared au to mat i cally

Note the use of vari able num bers #1, #2, #3 were used ar bi trarily There is noth ing wrong with that, ex cept when a true macro call G65 or G6

ot have all the ‘bells and whis tles’ in cor po rated into it

ot have all the ‘bells and whis tles’ in cor po rated into it In this

hand book, there are sev eral ver sion listed

For the ex am ple at this stage (us ing modal macro call), only the fol low ing as sign ments will be

pro vided – the clear ance R-value as 3 mm (#18), Z-depth as -65 (#26), and the feedrate as 4250

(#9) De vel op ment of the macro O8004 is quite sim ple:

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

FANUC CNC Custom Macros


Chapter 8

drill Machine



G90 G00 Z#18

G01 Z-[ABS[#26]] F[#9*08] M05


Z#18 F[#9*12] M04






The macro call in the main pro gram will use G65 first (tap ping only):

N81 M06

N82 T07

N83 G90 busbar cutting machine G00 G54 X130 Y110 S850 M03 T08


N84 G43 Z250 H07 M08


N85 G65 P8004 R30 Z65 F4250

(HOLE 1)

N86 G91 X150 Y100


N87 G65 P8004 R30 Z65 F4250

(HOLE 2)

N88 G91 drilling steel X200 Y120


N89 G65 P8004 R30 Z65 F4250

(HOLE 3)

N90 G91 X130 Y100


N91 G65 P8004 R30 Z65 F4250

(HOLE 4)

N92 G90 G00 Z250 M09


N93 G28 Z250 M05

N94 M01

Note that the O8004 macro call had to be re peated with all the data def i ni tions for each hole lo –

ca tion Even a sim ple change to the given def i ni tions would have to be made sev eral times

The CNC pro gram above can be short ened – quite sig nif i cantly – and made more flex i ble, with

the modal macro call G66, and only one call of the macro def i ni tions G67 com mand must be

used to can cel the modal call:

N81 M06

N82 T07

N83 G90 G00 G54 X130 Y110 S850 M03 T08


N84 G43 Z250 H07 M08


N85 G66 P8004 R30 Z65 F4250


N86 G91 X150 Y100


N87 G91 X200 Y120


N88 G91 X130 Y100


N89 G67


N90 G90 G00 Hydraulic punching machines Z250 M09


N91 G28 Z250 M05

N21 M01

Ad di tional im prove ment

Coupling selection method

Couplings variety, type, specifications a lot, in the correct understanding of variety, type, size, based on the concept of their own, according to the needs of the transmission to select the coupling, the first standard has been developed from the choice of coupling, The development of the international and the subject of dozens of standard coupling, the standard coupling the vast majority of general-purpose coupling, universal coupling notching machine, each coupling has its own characteristics and the scope of the basic Can meet the needs of a variety of conditions, under normal circumstances, designers do not need to design their own coupling, only in the existing standard coupling can not meet the need to design their own coupling. Standard coupling easy to buy, the price than the design of non-standard coupling to be much cheaper. In many of the standard coupling, the correct choice for their needs the best coupling steel structural drilling machine, related to mechanical products shaft drive performance, reliability, service life, vibration, noise, energy saving, transmission efficiency, transmission accuracy, Economic and a series of issues, but also related to the quality of mechanical products. Designers in the selection of coupling should be based on the perspective of the shaft drive and the need to select the coupling, should be avoided only consider the main, driven side coupling selection coupling.

hydraulic hole punch machine
First, the choice of coupling factors should be considered
(A) the mechanical characteristics of the power machine
Power machine to the work machine, through one or several different varieties and specifications of the coupling will be the main and driven side together to form a shafting transmission system. In mechanical transmission, the power machine is nothing more than motors, internal combustion engines straightening machine and gas turbines. As the working principle of the power machine and different institutions, its mechanical characteristics vary widely, and some smooth operation, and some operation when the impact of the formation of the transmission system ranging from the impact. According to the mechanical characteristics of the engine, the power machine is divided into four categories. Universal coupling, see Table 1.

Type code of power machine Name of power machine Power factor (kw)
Motors, turbines 1.0
Four cylinder and four cylinder or more internal combustion engine 1.2
Two cylinder internal combustion engine 1.4
Single cylinder internal combustion engine 1.6

The mechanical characteristics of the power machine have certain influence on the whole transmission system. For different types of power machines, due to their different mechanical properties, the appropriate power factor Kw should be selected to select the optimum coupling suitable for the system. The type of power machine is to select the basic factors of coupling varieties, the power of the power machine is to determine the size of one of the main specifications of the coupling, and the coupling torque is proportional. Fixed mechanical products Powertrain in the drive system are mostly motors, mechanical products to run the drive system (such as ships, all kinds of vehicles, etc.) in the power engine for the internal combustion engine, when the engine for the cylinder number of different internal cnc drilling machine combustion engine, must consider torsional vibration Transmission system, the impact of this factor and the internal combustion engine cylinder number, the cylinder is working properly. At this point the general should be used in flexible coupling to adjust the shaft natural frequency, reduce the torsional vibration amplitude, thereby reducing vibration, buffer, protect the transmission components, improve the performance and improve the stability of the output power.
(B) load categories
Due to the different structures and materials, the coupling capacity of the couplings used in the drive systems of the various mechanical products varies greatly. Load category is mainly for the working load of the impact of the work load, vibration, reversing, braking, frequent start and other reasons to form different types of load. To facilitate the selection of the calculation, the transmission system load is divided into four categories, see Table 2.
Table 2 Load categories

Load Category Load condition Operating factor (k)
Load evenly, work smoothly 1~1.5
Medium impact load 1.5~2.5
Heavy shock load, frequent positive and negative rotation 2.5~2.75
Special heavy impact load, frequent positive and negative rotation >2.75

The load category of the transmission system is the basis for selecting the variety of couplings. Shock, vibration and torque changes in the larger working load should be selected with flexible components that flexible coupling flexible coupling to cushion, damping, compensation axis offset, improve the transmission performance. Start frequently, forward and reverse, the torque is normal braking when the torque is several times the work is overloading work, will inevitably shorten the life of coupling elastic components, coupling only allows short-term overload, the general short-term The overload shall not exceed 2 to 3 times the nominal torque, ie [Tmax] ≥ 2 to 3T n.
Low-speed conditions should avoid the use of only suitable for small and medium-power coupling, for example: elastic sleeve pin coupling, core type flexible coupling, polygonal rubber coupling, tire-type coupling, etc .; need to control overload Safety coupling should be selected with safety coupling, and elastic drill machine coupling with elastic element and better cushioning and damping effect should be selected for shaft system with large load variation and impact and vibration. Elastic couplings have higher load-carrying capacity than non-metallic elastic couplings. Elastic couplings with elastic elements are more reliable than elastic couplings for shearing elastic elements.
(C) the allowable coupling speed
The permissible speed range of the coupling is determined by calculation based on the permissible line speed and maximum outer edge dimensions for the different materials of the coupling. Different materials and varieties, specifications of the coupler allows the speed range is not the same, change the coupling material can improve the coupling allowable speed range, material for steel permissible speed is greater than the material for the cast iron permissible speed. For n> 5000r / min working conditions of the coupling, coupling should consider the outer edge of the centrifugal force and deformation of elastic elements and other factors, and should be dynamic balance. High-speed elastic coupling should not use non-metallic elastic components, the formation of high-speed elastic deformation, should use high-precision flexible coupling, the current foreign high-speed coupling for nothing more than diaphragm coupling and High – precision drum – shaped gear coupling. Universal coupling
(D) coupling the shaft displacement relative to the two axes
The coupling of the two shafts due to manufacturing errors, assembly errors, installation errors, shaft load and deformation, deformation of the base, bearing damage, temperature changes (thermal expansion, cold shrink), the relative movement between components Relative displacement. (X), radial (y), angular (α), and displacement of the shafting under different operating conditions, and the displacement of the two axes is not easy to avoid. In general, The size varies. Only the flexible coupling has to compensate for the relative displacement of Head punching machine the performance of two axes, so a large number of practical applications in the selection of flexible couplings. Rigid coupling does not have compensation performance, the scope of application is limited, so little use. Angle (α) the only larger shafting should use universal coupling, axial movement, and the need to control the axial displacement of the shaft drive, should use diaphragm coupling; only the precision is very High selection of rigid couplings, the standard flexible coupling allowable compensation in Table 3.

Testing standard of bicycle pedal

Pedal, what is it? That is, on certain machines or parts of machinery that are designed for footing. The most common bike is. Texture is generally nylon plastic, but there are professional bicycle which is used in aluminum, magnesium alloy, etc. Foot pedal is divided into bearing and ball-type pedal Do not look at this stuff is very small, in fact, it is an equal arm lever. It is the middle of the axis is divided into two parts, the distance on both sides of the same buy drill machine, so that the human foot in the case of non-stop pedal rotation is still able to maintain a want to state before and after hard, do not adjust the foot back and forth position. Incidentally, this part is the most solid on the bike, and every time you get off the taxi, the body’s weight is pressed on top, can imagine the degree of solid foot pedal. Gear ratio: the ratio of the number of teeth of the driven wheel to the driven wheel is the gear ratio.


If the two gears have the same number of teeth, then pedal a week. The two gears and the rear wheels rotate one each. If the number of teeth of the driven gear is greater than the number of teeth of the driven gear, then the number of revolutions of the driven gear per revolution is greater than one week, and the speed is increased. Therefore, the gear ratio is proportional to the number of teeth of the drive wheel and inversely proportional to the number of teeth of the driven gear. G represents the gear ratio, C represents the number of gear teeth, F represents the number of passive gear teeth, the relationship between them expressed by the formula, namely: g = c / f For example: the car is 49 teeth, the flywheel is 14 teeth, into the formula can be obtained gear ratio: g = c / f = 49/14 = 3.5 In other words, pedaling a week, flywheel three and a half weeks. Transmission ratio (transmission coefficient): Gear ratio multiplied by the diameter after the ring, is the transmission ratio. D represents the gear ratio, b represents the diameter of the back circle, the relationship between them with the formula that: d = c / f × b = gb It can be seen, the gear ratio is determined, the transmission ratio is proportional to the diameter of the back ring.

For example: 49 teeth, flywheel is 14 teeth, the back ring diameter of 27 (usually used in English), generation formula can be obtained transmission ratio: D = C / F × b = 49/14 × 27 = 3.5 x 27 = 94.5 Transmission stroke, each pedaling a week, the car forward movement distance is the transmission, travel, also known as the speed ratio of travel. It is calculated by multiplying the gear ratio by the pi. Where M is the transmission stroke, π is the ratio of the circumference (this is a constant, π = 3.14), and the relationship between them is expressed by the formula. That is, M = D? = C / F? B? Bicycle rear wheel diameter measurement commonly used in English, while the trip is generally used to calculate the metric system, so in the calculation need to convert the British metric system. One hour = 2.54CM, with K to represent, namely: K = 2.54CM. Into the formula, namely: M = G / F × B × π × k For example, the car is 49 teeth angle work machine, the flywheel is 14 teeth, the true diameter of the rear wheel when the bishop of Huang cnc bending machine, seeking it distance, find it distance, generation formula: M = C / F × b × π × k = 49 / 14 x 27 x 3.14 x 2.54 = 754 cm The above data is bike pedaling a week, the car forward for 745cm, or 7.54m.

Punch works Punch design principle

Punch works Punch design principle is to convert the circular motion to linear motion. (Or eccentric gear), connecting rod and other operations, to achieve the linear motion of the slider drill angle steel, from the main motor to the movement of the connecting rod for the circular motion of the main motor to drive the flywheel, the clutch drive gear, crankshaft (or eccentric gear) Link and slide between the need for circular motion and rectilinear motion of the transfer point cnc busbar bender, the design generally has two kinds of institutions, one for the ball type, one for the pin type (cylindrical) drill machine, through this mechanism will be circular motion Into a linear motion of the slider.

Punch the ring, small parts of the role of large

Punch the ring, small parts of the role of large In this case, The sealing ring is mounted on both ends of the ball nut. Contact with the elastic seal cabinet rubber oil or nylon and other materials made of Qi punch machine for Head, the hole made with the screw thread raceway with the shape. Contact the sealed cabinet of the dustproof effect, but because of contact pressure, so that a slight increase in friction torque metal saw. Non-contact seals made of PVC and other plastics, the punch hole in the shape of screw thread with the opposite race, and a slight gap. Non-contact seal also known as labyrinth seal cnc angle machine. Sealing ring is the most indispensable member of the punch.

Classification of presses

Classification of presses 1. According to the slider drive force can be divided into two kinds of mechanical and hydraulic (1) mechanical punch (2) hydraulic presses 2 welding machine for plate. According to the slider movement classification: single-action plate beveling machine, double action, three-action, such as punching 3 Welding adjustable stand. According to the slider drive mechanism classification (1) crankshaft punch (2) without crankshaft punch (3) the toggle type punch (4) friction punch (5) spiral presses (6) rack-type presses (7) connecting rod punch (8) cam-type punch

The main rotating machine parts The main rotating machine

The main rotating machine parts The main rotating machine parts Punch the main rotating parts, fitted with connecting rod, can take up and down the connecting rod (reciprocating) into circular motion (rotation) movement. Is an important part of the punch bed. Its material is made of carbon structural steel or ductile iron. There are two important parts: the main journal, the connecting rod neck, (and others). The main journal is installed on the bed. The connecting rod neck is connected with the big head hole of the connecting rod, and the connecting rod small head hole is connected with the punching slide. It is a typical crank slider mechanism. The lubrication of the crankshaft mainly refers to the bearing between the rocker arm lubrication and two fixed-point lubrication Metal Marking Machines. The rotation of the crankshaft is the power source of the press. But also the source of the entire mechanical system. Shenzhen IPM Precision Machinery Co drill machine., Ltd. is a professional manufacturer of precision punching machine angle punch, pneumatic punching machine, sheet metal punching machine and forging press machine. IPM insists on the quality policy of ‘quality and service’, continuously improve the quality consciousness and quality level of the whole staff, Clear quality objectives and follow the principles to ensure that the advanced nature of the product, the reliability of competition in the market dominance. Welcome customers to buy, and to undertake customer needs to the special specifications of products.