ously defined variable is called by its number

ously defined variable is called by its number


o


Returned value


The new value that is the result of a calculation


o


Result of


Same as Returned value


o


busbar Machine


Substitution


Storing new data in a previously defined variable, also known as redefinition


o


Redefinition


Same as Substitution


Many of these terms are used through out the hand book, and in many other pub li ca tions


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


FANUC CNC Custom Macros


MACRO FUNCTIONS


113


Arithmetic Functions


There are sev eral macro func tions re lat ing to math e mat i cal cal cu la tions The sim plest of them


are the four ba sic arith me tic func tions, used in vari ables and also avail able to the mac ros The


arith me tic func tions use the fol low ing sym bols:


+ – * /


Function


Known as 锟?


Symbol


Sum


Addition


+


Difference


Subtraction



Product


Multiplication


*


Quotient


Division


/


In or der to un der stand any func tion, it is im por tant to eval u ate a few ex am ples In the fol low ing


ex am ples, the func tion is on the left, its re turned value – the re sult – on the right:


#1 custom processing machine = 35


35


Returned value of variable #1 is 35


#2 = 425


425


Returned value of variable #2 is 425


#3 = 20 + 50


70


Returned value of variable #3 is a sum of 2+5


#4 = #3 + 1


80


Add 1 to the result of variable #3


#5 = #2 – 08


345


Subtract 08 from the current value of variable #2


#6 = #1 – #3


-35


Subtract contents of #3 from the contents of #1


#7 = #2 * 6


255


Multiply contents of #2 by 6


#8 = 70 / 80


0875


Divide 7 by 8 as real numbers


#9 = 7 / 8


0875


Divide 7 by 8 as integer numbers


Nesting


Nest ing means the con tents of brack ets (not pa ren the ses) will be pro cessed first – compare:


#10 = 90 – 30 / 20


75


Division first, then multiplication


#11 = [90 – 30] / 20


30


Multiplication first, then division


Copyright 2005, Industrial Press Inc, New York, NY – best mill drill wwwindustrialpresscom


FANUC CNC Custom Macros


114


Chapter 9


Arithmetic Operations and Vacant Variables

the same as a multiplication by zero

the same as a multiplication by zero:


#1 = 0


#1 defined as zero


#2 = 157 * #1


#2 will multiply by 0 and return 00


2 DIVISION


u


Division by a vacant variable is the same as a division by zero:


#1 = #0


#1 defined as copper busbar bending machine vacant


#2 = 157/#1


busbar Machine


#2 will divide by 0 and return 00


(Error condition)


u


Division by a zero value variable is the same as a division by zero:


#1 = 0


#1 defined as zero (0)


#2 = 157/#1


#2 will punch machine for Head divide by 0 and return 00


(Error condition)


Division by Zero


Even the least ex pen sive pocket cal cu la tor re turns an Er ror mes sage, if the cal cu la tion at tempts


to di vide any value by zero CNC sys Busway Press Clamp Machine tem and macro cal cu la tions are no dif fer ent The two di vi –


sion ex am ples above il lus trate the point Al though the re turned value may be a dis played zero, this


value can not be used, be cause of the er ror (alarm) con di tion that has been caused To elim i nate


the er ror con di tion, the con trol sys tem has to be re set first, then the cause of the er ror elim i nated


u


Division BY zero is not permitted


#1 = 5/0


Returns an error condition


u


Division OF zero is permitted (although seldom used)


#1 = 0/5


Returns zero (0)


It is un likely that the pro gram mer would di vide by zero in the pro gram directly, un less in er ror


What is more likely rea son for such an er ror is a re sult of a cal cu la tion:


#1 = 5


Value of 5 stored in #1


#2 = #1 – 5


Value of 5 subtracted from #1, returning 0


#3 = 10/#2


Value of 10 divided by #2, which is zero – result is ERROR


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


FANUC CNC Custom Macros


116


Chapter 9


Trigonometric Functions


Trig o no met ric vari ables avail able in mac ros are used to cal cu late an gles or data re lated to an –


gles Ex am ples in clude cal cu la tion of rect an gu lar co or di nates, so lu tion of right an gle tri an gles, an gle val ues, etc All trig o no met ric func tions can be ap plied in mac ros, al though not all are avail –


able on all Fanuc con trol mod els Th

the focus was at vacant variables as they were ap plied to the axis motion command

the focus was at vacant variables as they were ap plied to the axis motion command Va –


cant vari ables can also be used as a part of the var i ous math e mat i cal op er a tions, and it is very im –


por tant to un der stand how they be have in that en vi ron ment Math e mat i cal op er a tions in clude


re def i ni tion (substitution) of vari ables, as well as arith me tic, al ge braic, trig o no met ric, and other types of cal cu la tions On the ba sic level, the rules are slightly dif fer ent for ad di tion and sub trac –


tion than for mul ti pli ca tion and di vi sion The fol low ing ex am ples should clar ify the most com mon pos si bil i ties en coun tered in mac ros:


2 SUBSTITUTION


u


Vacant variable substituted will remain vacant:


#1 = #0


busbar Machine


#1 defined as vacant


#2 = #1


#2 also defined as vacant


u


Zero value variable substituted will remain zero:


#1 = 0


#1 defined as a zero value


#2 = #1


#2 also defined as a zero value


2 ADDITION


u


Vacant variable added drilling steel to a value is the same as an increase by zero:


#1 = #0


#1 defined as vacant


#2 = 157 + #1


#2 will add 0 and return 157


#3 = #1 + #1


#3 will add 0 to a 0 and return 0


u


Zero value variable added to a value is the same as an increase by zero:


#1 = 0


#1 defined as zero


#2 = 157 + #1


#2 defined as 157


#3 = #1 + #1


#3 will add 0 to a 0 and return 0


2 SUBTRACTION


u


Vacant variable subtracted from a value is the same as a decrease by zero:


#1 = #0


#1 defined as vacant


#2 = 157 – laser cutting #1


#2 will subtract 0 and return 157


u


Zero value variable subtracted from a value is the same as a decrease by zero:


#1 = 0


#1 defined as zero (0)


#2 = 157 – #1


#2 will subtract 0 and return 157


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


FANUC CNC Custom Macros


MACRO FUNCTIONS


115


2 MULTIPLICATION


u


Multiplication by a vacant variable is the same as a multiplication by zero:


#1 = #0


#1 best mill drill defined as vacant


#2 = 157 * #1


#2 will multiply by 0 and return 00


u


Multiplication by a zero value variable is

e most common entry of an angle will be in the decimal format

e most common entry of an angle will be in the decimal format For many part draw ings that still in di cate an gles in the De grees-Min utes-Sec onds for mat


(D-M-S), trans la tion to dec i mal de grees is nec es sary


Conversion to Decimal Degrees


An an gle can be ex pressed ei ther as a whole num ber, for ex am ple 38, or as a dec i mal de gree


rep re sen ta tion, for ex am ple 1286 cnc cutter The De grees-Min utes-Sec onds for mat (D-M-S) is not al lowed,


is gen er ally con sid ered ob so lete in mod ern CAD/CAM, and must be con verted to dec i mal de grees


first, if nec es sary


The con ver sion is quite sim ple:


M


S


D


busbar Machine


= D +


+


d


60


3600


+


where 锟?


D


= Decimal degrees


d


D


= Degrees (sometimes indicated as H or HR on calculators)


M


= Minutes (there is 60 minutes in an hour)


S


= Seconds (there hydraulic busbar cutter is hole punching machine 3600 seconds in an hour)


2 Example:


10掳36锟?7锟?= 10 + 36/60 + 27/3600 = 106075掳


Of course a cal cu la tion us ing vari ables can be used for the same pur pose:


#1 = 100


Value of degrees


#2 = 360


Value of minutes


#3 = 270


Value of seconds


#101 = #1 + #2/60 + #3/3600


Result is decimal degrees of the given D-M-S angle


Available Functions


The fol low ing trig o no met ric func tions are gen er ally avail able for mac ros:


SIN COS TAN ATAN ASIN ACOS


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


FANUC CNC Custom Macros


MACRO FUNCTIONS


117


All in put for SIN, COS, and TAN is in de grees and the out put of the in verse func tions ATAN, ASIN and ACOS is also in de grees


In verse func tions are usu ally marked as tan-1, sin-1, and cos-1 on the cal cu la tor


#1 = SIN[38]


06156615


(actual value must be in brackets)


#2 = 237


237


#3 = COS[#2]


09156626


(reference to a variable must be in brackets)


#4 = TAN[1286]


02282959


The in verse trig o no met ric func tions ac cept the length of two sides of a tri an gle, both en closed in


brack ets, and sep a rated by the slash sym bol stand ing alone be tween them The ac cept able range is

the same as a multiplication by zero

the same as a multiplication by zero:


#1 = 0


#1 defined as zero


#2 = 157 * #1


#2 will multiply by 0 and return 00


2 DIVISION


u


Division by a vacant variable is the same as a division by zero:


#1 = #0


#1 defined as copper busbar bending machine vacant


#2 = 157/#1


busbar Machine


#2 will divide by 0 and return 00


(Error condition)


u


Division by a zero value variable is the same as a division by zero:


#1 = 0


#1 defined as zero (0)


#2 = 157/#1


#2 will punch machine for Head divide by 0 and return 00


(Error condition)


Division by Zero


Even the least ex pen sive pocket cal cu la tor re turns an Er ror mes sage, if the cal cu la tion at tempts


to di vide any value by zero CNC sys Busway Press Clamp Machine tem and macro cal cu la tions are no dif fer ent The two di vi –


sion ex am ples above il lus trate the point Al though the re turned value may be a dis played zero, this


value can not be used, be cause of the er ror (alarm) con di tion that has been caused To elim i nate


the er ror con di tion, the con trol sys tem has to be re set first, then the cause of the er ror elim i nated


u


Division BY zero is not permitted


#1 = 5/0


Returns an error condition


u


Division OF zero is permitted (although seldom used)


#1 = 0/5


Returns zero (0)


It is un likely that the pro gram mer would di vide by zero in the pro gram directly, un less in er ror


What is more likely rea son for such an er ror is a re sult of a cal cu la tion:


#1 = 5


Value of 5 stored in #1


#2 = #1 – 5


Value of 5 subtracted from #1, returning 0


#3 = 10/#2


Value of 10 divided by #2, which is zero – result is ERROR


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


FANUC CNC Custom Macros


116


Chapter 9


Trigonometric Functions


Trig o no met ric vari ables avail able in mac ros are used to cal cu late an gles or data re lated to an –


gles Ex am ples in clude cal cu la tion of rect an gu lar co or di nates, so lu tion of right an gle tri an gles, an gle val ues, etc All trig o no met ric func tions can be ap plied in mac ros, al though not all are avail –


able on all Fanuc con trol mod els Th

The significance and method of hydraulic system flushing

First, the significance of hydraulic system cleaning
From the use of point of view, the hydraulic system is the first condition of the normal work of the internal system must be clean. Contamination of the hydraulic system is unavoidable before new equipment can be operated or after a major overhaul has occurred. It is possible to introduce contaminants into the system during installation of the hose, pipe and fittings. Even if the new oil will also contain some unexpected pollutants straightening machine. Measures must be taken to filter out the contaminants as soon as possible, otherwise malfunctions may occur shortly after the equipment is put into operation, and early failures are often severe and some components such as pumps and motors can potentially be fatal.
The purpose of system flushing is to eliminate or minimize the early failure of the equipment. The goal of flushing is to improve the cleanliness of the fluid and to maintain the cleanliness of the system fluid within the tolerances of the critical hydraulic components within the system to ensure the reliability of the hydraulic system and the service life of the components
.

cnc busbar machine

Second, the cycle flushing device
Circulating flushing devices generally use a separate high-flow high-pressure flushing device or the system of the pump station for the operation of the pipeline cycle flushing operations. According to the parameters of the metallurgical hydraulic system, the flow rate of the high pressure pump (31.5MPa) is configured to 250 liters / min. The flow rate of the high-pressure flushing device is not less than 1000 liters / min. Min, 160 l / min, 100 l / min, 63 l / min and low pressure pump (2.5 MPa) 400-600 liters / min can constitute different rinse pressure \ flow needs.
The output tubing interface of the recirculation unit should allow both the flush pump output flow and the rinse circuit to be flushed simultaneously, as well as to flush multiple independent flushing circuits simultaneously.
Using the working pump station of the system copper busbar bending machine itself is more and more widely applied and recognized. The working pipeline pumping system piping flushing is a reliable and fast way to achieve the quality of flushing and has more advantages, Specific performance in saving precious time schedule, saving a lot of temporary piping materials, can use the work of the pumping station itself, the formal electrical protection and system cooling cycle, the internal loop filter makes the system better and faster flushing effect.
Third, the cycle of washing steps
Cycle is generally divided into the hydraulic pump station to control the main valve pipe frame flushing and control valve rack to the oil tank and oil motor branch pipeline rinse. In accordance with the requirements of the pipeline flushing accuracy is divided into the middle of the pipeline and the rough rinse of all the pipeline rinse.
Hydraulic pump station to control the main pipeline flushing circuit is relatively simple, only the end of the main channel will be connected.
Control valve rack to the oil tank and oil motor branch of the pipeline is relatively more complex. Sometimes need to make a lot of temporary flushing piping to form a flushing circuit, then pay attention to the previously mentioned series and parallel washing should consider some of the factors.
Hydraulic system flushing, can be carried out as follows:
Before the installation of the sensing element (such as servo valves, etc.), the pipe and the pollutant insensitive components are assembled and the end of the pipe sealed tightly.
Replace the sensing element with a jumper wire, connect the hydraulic circuit and pressurize with water to achieve the specified cleanliness.
The selected flushing circuit should skip the sensing element and minimize flow resistance. Flushing should be avoided when the dirty oil has been rinse through the pipeline, for more complex systems, select the loop from the main branch to the main pipeline, and then separated from the main road and then flush the main channel, the flushing circuit Back to the oil on the road, the installation of oil filter or filter, the initial washing more impurities, the general use of 80 mesh filter, wash later switch to more than 150 mesh filter.
In order to improve the flushing effect, the process of washing the pump to intermittent movement is better, the intermittent time is generally 10 to 30 minutes, can be detected in this intermittent time flushing effect. In the flushing process, in order to facilitate the pipe wall attached to the fall off, you can use a wooden Dished Head Punching Machine stick or rubber hammer and other non-metallic hammer gently percussion pipe, continuous or intermittent percussion.
The choice of flushing medium is usually the actual use of hydraulic oil or test oil. Avoid the use of alcohol, steam, etc., to prevent corrosion of hydraulic components, pipes, fuel tanks and seals and so on.
Rinse the amount of the general working capacity of the tank to 60% to 70% is appropriate, not too long rinse time, usually 2 to 4 hours, in exceptional circumstances no more than 10 hours. Flushing effect to the loop filter pollution-free impurities as the standard. Rinse the hydraulic oil after the need to go through quality testing to determine whether to continue to use.
Flushing process should also note:
(1) the fuel tank to be closed to reduce the particles in the air into the tank the opportunity to air;
(2) phase tank with flushing oil should be used when the filter with the fuel car to filter out the barrels of oil pollutants;
(3) to replace the filter to suspend the washing pump, be careful not to bring impurities;
(4) to emptying and sewage to be carried out regularly to ensure that the system is full, and timely discharge of gases and pollutants.
(5) in the pre-washing, oil evaporation is very important in the flushing tank should have steam escape the window.
(6) After washing out the flushing oil, pipelines should pay attention to protection before use, so as not to enter the system of pollutants.
Fourth, the parameters of the cycle flushing
To get a good flush quality selection cycle flushing pressure and flow is a very important guarantee. Generally 30-40 units of the hydraulic system circuit flushing accuracy for the NAS7 level when the flushing time is often 10-15 days for the hydraulic servo system when the required accuracy of the flushing time for the  drilling machine NAS5 level even longer. For those projects with relatively short construction period, it is urgent to accelerate the flushing progress of the hydraulic system and shorten the flushing time. It can be said that it is the late construction of a very difficult problem.
To achieve the desired flushing effect, the Reynolds number at the time of flushing must be around 4000 (we know the critical Reynolds number Re (L) = 2200-2300 for a smooth round-walled pipe). Engineering practice tells us after pickling pipe carbon steel pipe flushing cycle of each unit circuit 3-4 hours after the test oil sample cleanliness basically reached NAS6-7 level, when the washing circuit short oil sample cleanliness even to NAS4 -5. We know that the Reynolds number is related to the size of the pipe, the velocity of the medium in the pipe, and the kinematic viscosity of the medium. Reynolds number of the formula
Re = υ × ρ × D – 2 ⁢ δ × 10 – 3 / λ * 10 – 6
In the formula:
Re ——————– – Reynolds number for pipeline flushing;
Υ ——————– is the flow rate in pipe flushing, in meters per second;
Ρ ——————– is the density of the medium during pipeline flushing, ρ = 910 for hydraulic oil;
Λ ——————– for the pipeline when the media’s kinematic viscosity, with oil temperature changes, the unit is Shi;
Δ ——————– for the pipe wall thickness, the unit is mm
D ——————— is the diameter of the pipe, in millimeters.
The pressure loss along the cell flushing circuit with diameters above DN50 is very small and the pressure loss of the unit circuit for rinsing a pipe length of 100 meters will not exceed 10 bar. And a pressure loss of more than 150 bar for a piping unit circuit that flushes one hundred meters of DN10 or DN15.
The above is when the use of 46 # hydraulic oil (40Co viscosity value) when flushing data, but the general ambient temperature, such as the ambient temperature is 25Co, 46 ​​# hydraulic oil viscosity of 105Cst, so the pressure along the rinse The loss is greater. Normal flushing oil washing oil temperature required in the 40Co — 60Co between the following gives the oil temperature at 50Co when some of the flushing data, the same diameter metal punching equipment of the flow is only about 60% of the original, the pressure loss along the way only The front 30% – 40%.
Recommended flushing circuit flow selection According to the data in the table above, at the beginning of the initial flushing process, the Reynolds number is less than 4000 because the normal flushing temperature has not been reached. However, after a period of time, the oil temperature will gradually increase, Of the pressure will be a corresponding decline in the normal washing temperature to reach about 3-4 hours after the sampling test was flushing the unit circuit cleanliness can meet or exceed the system requirements for cleaning the next unit circuit flushing.
Fifth, summary
After the assembly of the system washed into the new hydraulic system is absolutely necessary, any lucky to give up cleaning will bring fatal damage to the equipment beveling machine. After a strict rinse, you can reduce and avoid system debugging and early operation of the fault, shorten the debugging cycle of the system to reduce unnecessary losses. However, the system’s pollution control is an ongoing process, not once and for all, during the operation of the system but also regularly detect the oil state, and control of pollutants to ensure that the system allows cleanliness within the allowable range.

Reducing the Pollution of Stainless Steel Wire Heat Treatment Technology

The face of deteriorating environmental problems, stainless steel wire industry is actively exploring more environmentally friendly production process improvement methods CNC Steel pipe welding machine, in order to reduce the production of stainless steel wire pollution to the environment. Heat treatment refers to the stainless steel wire annealing process, as long as the surface to ensure that the stainless steel wire *** can be removed from the *** skin treatment steps, thereby reducing the production process of pollution.

(1) Ammonia decomposition gas protective hood furnace Placing the stainless steel wire on the platform in the middle position of the furnace body, putting down the inner cover and sealing the inner cover space custom processing machine, putting the heating mantle outside and heating the inner wall of the heating mantle, the inner heating element radiating the inner cover, Hot wire built-in heating. Inside the base of the platform, the ventilation pipe has mixed gas (hydrogen + ammonia gas), and the airflow is controlled by the air discharging pipe, so that the atmosphere of the inner cover is kept positive pressure. As the gas is inert gas, the wire surface does not occur in the high temperature ***, play a role in protecting the surface. This technology is suitable for heat treatment below 800 ℃ steel wire, such as martensite and ferritic stainless steel.

(2) vacuum pit furnace Vacuum pit furnace is the use of vacuum pump the furnace out of the air to a certain degree of vacuum to ensure that the stainless steel wire in the absence of *** medium heat treatment. This method of processing temperature above 1200 ℃, can handle heat-resistant stainless steel 0Cr25Ni20 Si2 and other large-scale steel wire.

(3) ammonia decomposition gas protection continuous annealing furnace By the pay-off device, sub-line planes, to the coating pool, water rinse tank, drying furnace, heating furnace, cooling pool, take-line device and ammonia decomposition furnace composition. Furnace using multi-tube high-temperature furnace tube, a single wire through the tube through the protective gas, play a continuous processing purposes. Applicable to the following Φ8.0mm stainless steel wire production, can get a good surface quality and pass the performance. In addition, stainless steel wire manufacturing enterprises can also improve energy efficiency and environmental protection by improving the utilization of energy and recycling of waste materials and other means to achieve the goal of reducing environmental pollution by reducing external pollution emissions horizontal boring machine.

technology custom metal fabrication

Association easy punch Jinfeng (Dongguan) mechanical industry production of forging machinery products to the parent company’s design drawings pipe welding machine, production technology and technology custom metal fabrication, management system modeled on the production of synchronous press with the parent company. Since its inception in 1998 cnc shearing machine, passed the export product quality license and ISO-9001: 2000 version of the international quality certification. At the same time to meet the high-performance, high automation era, the Association easy punch – Dongguan Jinfeng punch factory all from Japan, Taiwan’s large, efficient and sophisticated production equipment, and in order to stabilize and enhance product quality, High-speed, hot and cold forging various types of mechanical punch.

Association easy punch Taiwan precision punch

Association easy punch Taiwan precision punch – brand: Association easy punch Features: 1, security Continuously improve the active safety of the press, far to provide users with the most secure and reliable experience, the concept in the C1N series to get a full experience. 2, the brake The C1N series is equipped with an advanced dry-type brake clutch for all discs, and a precise, double-acting solenoid valve minimizes the braking time busbar cutting machine. In addition busbar bending machine manufacturer, the brake assist system Erduan device in the event of an emergency When the brake is detected, the brake signal is provided again to provide the brake signal again to provide sufficient power to ensure timely and accurate braking. 3, the user protection, both hands between the buttons and the fuselage and leave plenty of space between, in order to protect the safety of staff, at the same time, in the system design The hands to operate at the same time to start to ensure that avoid misuse caused by personal injury.

The protection of the user is further enhanced by the addition of a photoelectric protection device or a protective net. 4, mold protection Punch are equipped with imported standard overload protection device to protect the press due to overload stamping, deformation caused by damage to the mold at the same time, also installed a false send detection device can be used with automatic stamping die device to better protect the mold straightening machine. The company adhere to the scientific management, and carefully developed; quality and efficient, compliance about the quality of the letter, and continuously improve the quality of the staff awareness and quality of work, a clear quality objectives and systems to ensure that the advanced nature and reliability in the market competition Of the dominant position. Welcome customers to buy, and to undertake special needs of customers specifications products.

Increase investment, increase the market share of punch Into

Increase investment, increase the market share of punch Into 2016, the domestic manufacturing industry gradually pick up automatic punching machine, followed by a substantial increase in demand for punch, compared with the same period last year, demand growth of more than 30%, to protect customer needs, to ensure the punch delivery and quality, to further enhance the punch market Share, Shenzhen IPM currently has high-precision processing equipment quantity and quality in the same industry in the lead position. Since the beginning of this year the manufacturing sector swept away the second half of last year’s decline, to the punch industry with new development opportunities CNC H-Beam Drilling Machine, the face of opportunities, Shenzhen IPM increasing production lines and capital investment, the introduction of high-precision large-scale equipment, while continuing to explore, And punch from the R \u0026 D design, processing, assembly, quality control and other aspects of strict quality control to ‘punch precision’ as the breakthrough point, master all types of punch key technology, while full use of high-precision CNC machining Technology, Seiko production of each part, to ensure that each zero-zero parts and components CNC laser cutting, and ultimately to high-precision, high-quality punch for customers to maximize productivity. To create high-quality, precision presses, professional input to meet customer delivery and quality needs, Shenzhen IPM will spare no effort to increase R \u0026 D investment in technology, high-end press to promote the rapid development of enterprises.