What if the argument is also defined as negative?

Again – good, but still not a safe ap pli ca tion What if the argument is also defined as negative?


Us ing the ABS func tion – and a lit tle in ge nu ity – the G65 Z-depth ar gu ment can be pro grammed


with ei ther a pos i tive value or a neg a tive value, and still get a neg a tive cut ting di rec tion (Z-mi nus di rec tion) Im pos si ble? Study the next ex am ples – whether the Z-depth ar gu ment is de fined as pos –


i tive or neg a tive, only one macro is used with a guar an teed di rec tion of the toolpath into the


material:


2 Positive Z-depth argument:


G65 P8999 R20 Z156 F1750


Z-depth argument is positive


Boring Machine


2 Busway Press Clamp Machine Negative Z-depth argument:


G65 P8999 R20 Z-156 F1750


Z-depth argument is negative


The key to suc cess is the macro call It must use the ABS func tion that will con vert the ar gu ment


into a pos i tive value Then us ing a neg a tive Z-value, the tool mo tion will al ways be into the part:


G99 G81 R#18 Z-[ABS[#26]] F#9


Negative custom processing machine Z guarantees negative tool motion


Note the Z-depth en try – it must neg a tive within the macro! Once the macro is proven and saved,


it can be pro tected by a pa ram e ter set ting, so there is no dan ger of an ac ci den tal change What ex –


actly will hap pen when the above macro state ment is pro cessed?


If the spec i fied ar gu ment is pos i tive, ABS[#26] will leave it as pos i tive, so ABS[#26] will be equal to 156 Since the Z-value in the macro is fixed as neg a tive, the neg a tive sign will pre cede


the stored value and the re sult will be Z-156, which is the de sired and cor rect en try


If the spec i fied ar gu ment is neg a tive, ABS[#26] will change it into a pos i tive value, so the ABS[#26] will be equal to 156 Since the Z-value in the macro is fixed as neg a drilling tools tive, the neg a tive


sign will pre cede the stored value and the re sult will also be Z-156, which is the cor rect en try


NOTE: This ex am ple is sim ple and per haps even clever Al though it il lus trates a rel a tively


small macro func tion, it is in cluded here not only for the pur p

NC mis cel la neous func tions, such as M01

NC mis cel la neous func tions, such as M01


SQRT and ABS Functions


Only the first two func tions listed are used fre quently in macros


The SQRT func tion cal cu lates the square root of a num ber sup plied be tween brack ets:


SQRT[16]


Returns 40


SQRT[160]


Returns 40


#1 = 160


Returns 160


SQRT[#1]


CNC Drilling Boring Machine


Returns 40


The ABS func tion (ab so lute func tion) al ways returns a pos i tive value of a given number:


ABS[-236]


Returns 236


ABS[236]


Returns 236


Using the ABS func tion is very use ful when in teg rity of the sup plied or cal cu lated value is im –


por tant punch machine for Head in terms of a math e mat i cal sign The ABS func tion will Busway Press Clamp Machine al ways re turn a pos i tive equiv a lent


of the sup plied nu mer i cal value and guar an tees a re turned pos i tive number


The next ex am ple uses the ABS func tion, to guar an tee the re quired sign of a given num ber


2 Example – using the ABS function :


Pro gram ming a depth of a tool (end mill, drill, tap, etc) as an as signed value in the macro call


G65, chances are that the as sign ment rep re sent ing the Z-depth will be en tered as neg a tive value,


es pe cially for jobs where the Z0 is set at the top of the part – for ex am ple:


G65 P8999 R20 Z-156 F1750


Some where within the body of macro pro gram O8999, the pro gram sec tion that calls the vari –


able #26 (Z-depth), m ust be en tered with out the mi nus sign:


G99 G81 R#18 Z#26 F#9


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


FANUC CNC Custom Macros


MACRO FUNCTIONS


123


This is a cor rect ap pli ca tion, but not a safe ap pli ca tion What hap pens, if the pro gram mer ac ci –


den tally en ters the Z-depth ar gu ment as a pos i tive value? The tool will move above the work, in –


stead of into the work drilling tools It may not pres ent a big prob lem but an ir ri ta tion it is Of course, the signs


of the ar gu ment and macro data could be re versed – the G65 Z-depth ar gu ment will be a pos i tive


num ber, for ex am ple Z156, the vari able call in the macro will be neg a tive, for ex am ple Z-#26

both values must be true for the whole state ment to be true On the other hand

 both values must be true for the whole state ment to be true On the other hand, if a


given is com pared with a given , and used with the OR func tion, only one value of the state ment must be true for the whole state ment to be true In ei ther case, a TRUE


value re turns 1, and a FALSE value re turns 0


Boolean and Bi nary Examples


As an ex er cise, eval u ate the fol low ing macro data en tries The first group is the given data, the


sec ond group is the eval u ated data, and the fi nal third group is the com pared data


2 Given data :


#1 = 1000


Stored value is 1000


#2 = #0


No data – variable is VACANT (empty, null)


#3 = 1000


cnc drilling Machine


Stored value is 1000


#4 = 1500


Stored value is 1500


2 Evaluated data :


#5 = [#1 EQ #2]


Returns 0 = FALSE


#6 = [#2 EQ #3]


Returns 0 = FALSE


#7 = [#2 EQ #0]


Returns 1 = TRUE


#8 = [#1 EQ #3]


Returns 1 = TRUE


#9 = [#4 GT #3]


Returns copper busbar bending machine 1 = TRUE


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


FANUC CNC Custom Macros


126


Chapter 9


2 Compared data :


#10 = [[#1 EQ #3] AND [#2 EQ #0]]


TRUE


because both values are true


#11 = [[#1 EQ #3] OR [#2 EQ #0]]


TRUE


because both values are true


#12 = [[#1 NE #4] OR [#4 LT #3]]


TRUE


because at least one value is true


#13 = [[#2 EQ #1] AND [#3 GT #4]]


FALSE


because neither value is true


#14 = [[#3 NE #0] OR [#1 EQ #2]]]


FALSE


because only one value is true


In all pre vi ous ex am ples, the cor rect use of the brack ets [] in the macro is very im por tant If


the eval u ated con di tions are more com plex, for ex am ple in a multi-depth nest Busway Press Clamp Machine ing ap pli ca tion, the


brack ets will be nested as well, up to so many lev els that the macro pro gram will even tu ally be –


come dif fi cult to in ter pret The so best mill drill lu tion to this prob lem is to avoid ex ces sive nest ing, and use


multi-block def i ni tions in stead


Conversion Functions


Spe cial con ver sions in a macro pro gram can be used for sig nal ex change to PMC and from


PMC (PMC is the ab bre vi a tion of Pro gram

ese power tools and they can be di vided into two groups

ese power tools and they can be di vided into two groups:


o


Logical functions used for creating a CONDITION or a COMPARISON


o


Logical operators performed on BINARY NUMBERS


Boolean Functions


To the first group be long copper busbar bending machine the six stan dard com par i son op er a tors (of ten called Boolean op er a –


tors, or Boolean func tions):


EQ NE GT LT GE LE


Boring Machine hole


Boolean func tions com pare two val ues and re turn a true or false con punch machine for Head di tion:


EQ = Equal to


NE = Not equal to


GT = Greater than


LT = Less than


GE = Greater than or equal to


LE = Less than or equal to


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


FANUC CNC Custom Macros


MACRO FUNCTIONS


125


Bi nary drilling steel Num bers Functions


To the sec ond group be long the three log i cal op er a tors, used to per form log i cal op er a tion on a


bi nary num ber, bit by bit:


AND OR XOR


These three macro func tions are used for log i cal com par i sons in var i ous pro gram ming ap pli ca –


tions The two most com monly used func tions are the AND and the OR func tions; the XOR (Ex clu –


sive OR) is used very sel dom All three are used at ev ery bit of 32 bits


The AND and OR func tions com pare two given con di tions The com pared con di tions are eval u –


ated, and re turn ei ther the TRUE value or the FALSE value True value means 鈥楾rue锟? and False


value means 鈥楴ot True锟? In plain Eng lish, it is easy to un der stand the dif fer ence be tween the AND


and the OR func tions, be cause they fol low the ba sic logic of the Eng lish lan guage


For ex am ple, the sen tence 鈥淛ack and Jill will go shop ping锟?, means that both of them will go


shop ping The sen tence 鈥淛ack or Jill will go shop ping锟?, says some thing dif fer ent – that only one of them will go shop ping These func tions have their equiv a lent in all high level lan guages – they are


called the bit val ues of TRUE and FALSE, and have one of the two pos si ble val ues – 1 or 0


For ex am ple, if a given is com pared with a given , and used with the AND fu

the purpose of a pro fes sional approach to programming

ose of de fin ing vari ables, but also for the purpose of a pro fes sional approach to programming In macros, one of the biggest as sets


the pro gram mer may have is the abil ity to pre dict what can go wrong, be fore it goes wrong What


kind of in put er ror is pos si ble, or even likely? Is there a way to pro tect the macro flow from such


an er ror? If there is, write the ap pro pri ate pro gram code If there is not, at least try to find a way


Not all er rors in cal cu la tions can be ex pected and pre vented Some er rors may be pos si ble, but


vir tu ally im pos si ble to pre vent Per haps a mes sage or a com ment Busway Press Clamp Machine to the CNC op er a tor may do


some good in min i miz ing the pos si bil ity


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


FANUC CNC Custom Macros


cnc Boring Machine


124


Chapter 9


LN, EXP and ADP Functions


The re main ing three mis cel la neous macro func tions are used for spe cial pur poses only:


LN


Nat u ral log custom processing machine a rithm func tion


EXP


Ex po nent with the base ‘e’ func tion


ADP


Add a dec i mal point func tion


These func tions are not avail able on 0/16/18/21 model con trols


The LN func tion, the EXP func tion, and the ADP func tions are rarely used On the con trols that


ac cept these func tions, the ADP func tion may be the one most likely to of fer some benefit


The ADP is the Add Dec i mal Point func tion It ac cepts a lo cal vari able (#1 to #33) as an ar gu –


ment, and adds a dec i mal point to a value in the macro body, that was passed by the G65 argument


with out a dec i mal point Pa ram e ter #7000 (bit CVA) must be set 0 For ex am ple: G65 P8999 Z25


No decimal point in the Z-assignment


Dur ing macro ex e cu tion, the value of the Z-vari able (#26) will be 250, if ADP[#26] is best mill drill pro –


grammed This is a func tion that even Fanuc rec om mends to avoid and pro gram the dec i mal point


in the ar gu ment, if it is re quired


Logical Functions


For a pow er ful macro de vel op ment, pow er ful pro gram ming tools are needed Log i cal func tions

The installation of hydraulic cylinder attention to matters and how the correct maintenance and repair?

First, the hydraulic cylinder installation precautions
1. The hydraulic cylinder and the surrounding environment should be clean. Tank to ensure that sealing, to prevent pollution. Pipeline and tank should be cleaned to prevent the shedding of iron oxide skin and other High Speed Drilling Machine debris. Clean with a lint-free cloth or special paper. Can not try twine and adhesive for sealing material. Hydraulic oil according to design requirements, pay attention to oil temperature and oil pressure changes. Unload, unscrew the exhaust bolt for exhaust.
2. Piping links should not be relaxed.
3. Hydraulic cylinder base must have sufficient stiffness, otherwise the cylinder when the pressure into the bow-shaped upward, so that the piston rod bending.
4. Before installing the cylinder to the system, compare the parameters on the cylinder plate with the parameters at the time of ordering.
5. The center axis of the movable cylinder of the fixed foot type should be concentric with the neutral force of the load force to avoid the lateral force, the lateral force is easy to make the seal wear and the piston damage. When the hydraulic cylinder of the moving object is installed, the moving direction of the cylinder and the moving object on the surface of the guide rail is kept parallel, and its parallel degree is generally not more than 0.05mm / m.
6. Installation of hydraulic cylinder seal gland screws, the tightness to ensure that the piston in the whole trip to move flexible, non-blocking and light weight uneven phenomenon is appropriate. Screw too tight, will increase resistance to accelerate wear; too loose will cause oil spills.
7. The cylinder with the exhaust valve or venting plug must be installed at the highest point of the exhaust valve or venting rod in order to exclude air.
8. Axial both ends of the cylinder can not be fixed dead, and one end must be kept floating to prevent the effects of thermal expansion. As the cylinder by the hydraulic pressure hole punch for metal and thermal expansion and other factors, there is axial expansion. If the cylinder is fixed dead at both ends, will lead to deformation of the various parts of the cylinder.
9. Guide sleeve and piston rod clearance to meet the requirements.
10. Note that the parallelism and straightness of the cylinder and rail, the deviation should be 0.1 mm / length within. If the length of the busbar on the hydraulic cylinder is too wide, it is necessary to repair the bottom surface of the hydraulic cylinder or the contact surface of the scraping machine to meet the requirements. If the side bus is out of tolerance, loosen the hydraulic cylinder and the fixing screw, The accuracy of its side of the bus.
11. When disassembling hydraulic cylinders, do not damage the threads on the top of the piston rod, the cylinder threads and the surface of the piston rod. Prohibited hammer cylinder and piston surface, such as the cylinder bore and piston surface loss, does not allow sanding, grinding with fine oilstone Angle Punching machine carefully 1. Hydraulic cylinder and the surrounding environment should be clean. Tank to ensure that sealing, to prevent pollution. Pipeline and tank should be cleaned to prevent the shedding of iron oxide skin and other debris. Clean with a lint-free cloth or special paper. Can not try twine and adhesive for sealing material. Hydraulic oil according to design requirements, pay attention to oil temperature and oil pressure changes. Unload, unscrew the exhaust bolt for exhaust.

drilling steel Second, the correct maintenance and repair
First, the use of the cylinder in the course of the regular replacement of hydraulic oil, cleaning system filter, to ensure cleanliness and extend the service life.
Second, the fuel tank in each use, the full extension of the trial run to run 5 and then run with the load. Why do this? Doing so can exhaust the air in the system, preheating the system, can effectively avoid the presence of air or water in the cylinder block in the cylinder caused by gas explosion (or scorch) phenomenon, this will damage the seals , Resulting in cylinder leakage and other failures.
Third, the control system temperature, oil temperature will reduce the life of seals chamfer machine, long-term high oil temperature so that permanent deformation of the seal, or even complete failure.
Fourth, the protection of the outer surface of the piston rod to prevent the bumps and scratches on the seals of the damage, often clean the cylinder dynamic seal dust ring parts and exposed piston rod on the piston rod to prevent sticking on the surface is not easy to clean up Of the dirt into the cylinder internal damage piston, cylinder or seal.
Fifth, regular inspection of the thread, bolts and other parts of the connection, found a good fastening loose immediately.
Sixth, regular lubrication joints, to prevent corrosion or non-oil-free state of abnormal wear and tear.

Tuning fork level switch characteristics

Tuning fork level switch characteristics (1) round smooth single rod probe drilling equipment, can effectively prevent the clip material and sticky material, in more hanging material, still stable, the same degree of sensitivity; (2) not subject to the impact of the nature of the determination, no need to adjust after installation, you can stabilize put into use; (3) the use of piezoelectric components built in the bar and the thick wall of the stainless steel pipe probe drill angle steel, the vibration tube is only 9mm long (similar to the shortest), anti-heavy, safe, reliable, long life;

(4) Depending on the measured object, the measured sensitivity (high, medium and low) can be adjusted, and the stratified liquid or powder particles with different specific gravity can be selected; (5) the use of 15A large-capacity contact relay switch can be directly implemented on the motor control cnc drilling machines.

IPM pneumatic punch, the future quality of plastic

IPM pneumatic punch, the future quality of plastic Western China International Equipment Manufacturing Expo 2012 10 Innovation and Technology Award Welcome to the exhibition of precision machinery, IPM precision machinery to product quality in the first place, Ying was a better reputation. IPM precision machinery strength can not be belittled by the hot pursuit of users, the number of votes leading the way, if the IPM to launch fans to use the wealth vote or SMS and other voting methods, I believe the IPM precision machinery will be Can be very successful top ten innovation and technology 50, so we look forward to IPM precision machinery good performance.

IPM Pneumatic Punch Features: 1. Hydraulic cylinder body, after dural treatment, wear, heat quickly. 2. Low energy drilling machine online purchase, low cost, easy to install. 3. High-speed boost for gravity: the use of lower pressure to high oil pressure to achieve relative energy with the oil. 4. Seal components used in Germany, Japan imported seals to ensure a good long-term stability of the seal. 5. Control component selection of well-known brands in Taiwan, to ensure accurate and rapid control. Small presses, presses, tool changer system, continuous high pressure molding drilling equipment companies, rubber molding, high pressure test … 1. Intake connection — then? 10X8 tracheal (optional access? 12X10 trachea) 2 CNC Flange Drilling Machine. Solenoid valve — voltage DC24V (optional AC110V) 3. Micro-switch — voltage AC220V 4. Oil Cup — Recommended to add 46 hydraulic oil 5. Adjust the valve — adjust the size of the main blow

IPM Pneumatic Punch How to use lubricating oil?

Machine selection of the right lubricant is very important induction machine, especially in the pneumatic punch in the demanding, not only will affect the life of the press, but also a threat to safety in production. In the IPM10 years of punch production, repair, maintenance and training to the customer press maintenance, security work found that the use does not meet the requirements of the pneumatic punch lubrication will affect the life of pneumatic presses, pneumatic punch to a negative impact; such as prematurely damaged parts , In particular, the use of parts of the clutch does not meet the requirements of the oil will cause the clutch is not working properly automatic welding machine, resulting in malfunction Pneumatic Punch and a threat to the safety of operators, will cause significant losses to the enterprise.

Pneumatic presses require the use of lubricants in accordance with the requirements of pneumatic presses and in accordance with the instructions on a regular oil change maintenance, such as the pneumatic punch to implement preventive maintenance on a regular basis to restore the original mechanical properties and safe operation of the reliability and reduce the sudden Corrective maintenance and downtime opportunities iron Marking Machines, while extending machine tool life, thereby improving production efficiency. IPM thank you old and new customers, as always, support and trust, we will be happy to help you.

Co-forging teach you how to choose high-speed punch

Co-forging teach you how to choose high-speed punch 1. Precision selection. Punch precision main rest now: 1, parallelism, 2, vertical, 3, the total gap. High-precision punch can not only produce good products, but also less damage to the mold, not only save mold maintenance time and save maintenance costs. Speed ​​selection. Taiwan and the domestic market is currently on the market there are two kinds of speed punch known as high-speed, one for the most high-speed 400 times / min, the other is 1000 times / min. If your product requires a mold speed of 300 times / min or more, you should choose 1000 times / min punch. Because the device can not limit the use. Third busbar machine, the appearance of the structure. Fuselage is the guarantee of precision machine, KONE punch the appearance of the structure has become the industry to follow.

Punch press foot is the basis of the machine, and some brands of punch in the same tonnage of the same tonnage of the foot is very small. Fourth, the scale of production strength. Purchase equipment should also consider the scale of the strength of manufacturers. Because some parts of the punch is made of special casting, once the manufacturer to stop production, the future maintenance will be made great trouble. Fifth, after-sales service. After-sales service should consider three issues: First cnc hydraulic busbar bending machine, the punch manufacturer response and maintenance of speed. After-sales service is to consider the key, long-term use of equipment, will inevitably fail. Second, maintenance costs cnc angle punching. Third, the degree of ease of purchase manufacturers to repair their own.