only two selections and counting starts from zero

r – ‘bi nary’ means based on only two selections and counting starts from zero, not from one, to the left)

In each avail able bit, the set ting can be ei ther 0 or 1, de pend ing on whether the mir ror im age is

cur rently dis abled or en abled:


0 = Mirror image function for the selected axis is disabled

CNC busbar Machine


1 = Mirror image function for the selected axis is enabled

Variable #3007 cannot be written to – it is a read-only variable

As usual in this type of vari ables, it is the log i cal sum of the cur rent sta tus (sum of bits) that de –

ter mines the sta tus of all axes, there fore the re turn value of the sys tem vari able #3007 The re –

turn value of vari able #3007 will be the sum of all bits; it is im por tant to know how to in ter pret

this re turned value cor rectly In ci den tally, this 鈥榮um of bits锟?is quite com mon in pro gram ming,

and re quires at least the ba sic knowl edge of the bi nary num ber sys tem (see Chap ter 4)

Interpreting System Variable #3007

For the ex am ple, the com mon mir ror im age set ting in ma chine shop ap pli ca tions will be used

This set ting ap plies to the first two axes only (typ i cally the X-axis and the Y-axis) of a typical

CNC ma chin ing cen ter To find out what the sta tus of the cur rent mir ror im age set ting is, eval u ate

the fol low ing ex am ple – Dished Head Punching Machine read ing it twice may help:

Copyright 2005, angle shearing machine Industrial Press Inc, New York, NY – wwwindustrialpresscom

FANUC CNC Custom Macros



2 Example – #3007 reads 3 – Active mirror image is in the X and Y axes

Why? When the sys tem vari able #3007 is equal to 3 (re turned value is #3007 = 3), the cur –

rently mir rored axes are the first two axes in the chart, the X-axis and the Y-axis Angle Punching This out come

can only be known by the in ter pre ta tion of the re turned value, stored in sys tem vari able #3007

To in ter pret the re turned value, step through a small step-by-step pro ce dure The step one is to

sub tract the larg est bit value pos si ble from the value stored i

mirrored From these examples and with a little

mirrored From these examples and with a little

knowl edge of bi nary num bers, there should be no prob lem to ead- to in ter pret – other re turned

val ues of the sys tem vari able #3007

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


Chapter 16

Controlling the Number of Machined Parts

copper cutting Machine

There are two more sys tem vari ables that re late to auto mode op er a tion Two sys tem vari ables,

#3901 and #3902 con trol the count ing of ma chined parts dur ing an au to matic op angle machine er a tion

They are:


Number of parts completed (machined)


Number of parts required

Sys tem vari able #3901 is used for the num ber of parts ma chined The value of this vari able

stores the num ber of com pleted parts

Sys tem vari able #3902 is used for the num ber of parts re quired The value of this vari able

stores the num ber of re quired parts (the tar get num ber)

Both vari ables can be used to write to or to read from (read/write type) A neg a tive value should

not be used with these vari ables in mac ros (con sider us ing the ABS func tion)

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

FANUC CNC Custom Macros



Cus tom Dished Head Punching Machine macro files are of ten loaded from an ex angle shearing machine ter nal com puter to the CNC sys tem mem ory

Long or com plex mac ros are better ed ited in the com puter file, then re loaded to the con trol sys tem

later There are also many cases where this method may not be con ve nient, for ex am ple when the

mac ros are very short or when ed it ing ex ist ing mac ros, al ready loaded in the sys tem In such

cases, macro state ments can also be in put through the con trol panel key board, right at the CNC

ma chine There is not much of a dif fer ence in ed it ing mac ros than ed it ing con ven tional CNC pro –

grams – they are ed ited by words; for ex am ple, to change the word X-123456 to X123456, the

whole word has to be al tered (ed it ing of in di vid ual char ac ters is not nor mally pos si ble

that has been stored in the control memory can be edited by moving the cursor

on most

con trols) Macro pro grams are en machine bending tered and/or ed ited by spe cial ed it ing units

Editing Units

A macro that has been stored in the control memory can be edited by moving the cursor to any

busbar saw Machine

ed it ing unit that starts with the fol low ing char ac ter or sym machine bending bol:


Address (alpha character of a word, for example X, Y, Z)


Number symbol # at the left side of the = sign


First character of IF, WHILE, GOTO, END, DO, POPEN,



Symbols /, (, =, and ;

Program Comments

In a pro gram, com ments, mes sages and alarm in di ca tors aimed at the ma chine op er a tor, are

placed within the body of the pro gram, us ing pa ren the ses (not brack ets) For ex am ple, a mes sage

to the op er a tor used with the mis cel la neous func tion M00 may read:


An ex am ple of a user gen er ated alarm could be

N1001 #3000 = 118 (RADIUS TOO LARGE)

When en ter ing a com ment or a mes sage from the con trol key board, look for two char ac ters

The con trol-out char ac ter ‘(‘ and the con trol-in char ac ter ‘)’ must be avail able on the key board


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

FANUC CNC Custom Macros


Chapter 17

Not all Fanuc mod els have these char ac ters on the keyboard For ex am ple, some ear lier types

of Fanuc 16 do not have the two char ac ters on the key board, but do have it avail able as a softkey

se lec tion If the con trol sys tems al lows mes sages of any kind to be used, it may be con ve nient to

type them (with the rest of the pro gram) on an ex ter nal com puter, and load them via a ca ble from

the com puter to the CNC unit

Abbreviations of Macro Functions

Many macro func tions are spe cial Angle Punching words (called func tions) of more than two or three char ac –

ters Dur

ing a key

board in

put of these char


ters, ex

tra time is needed to en

ter the whole

multi-character words, of ten with the fre quent use of the Shift key Fanuc of fers a two-character

converted to decimal values

converted to decimal values

Mirror Image Status Check

Mir ror im age is gen er ally a ba sic fea ture of most CNC ma chin ing cen ters and even some CNC

lathes Its main pur pose is to re verse the di rec tional sign of the spec i fied axis, ei ther the X-axis,

the Y-axis, or both the XY-axes on CNC ma chin ing cen ters, and the X-axis on CNC lathes In ad –

di tion, the axis re ver sal may cause not only the change in the axis-mo tion di rec tion, but also the

copper busbar Machine

change in the arc di rec tion (CW vs CCW), and the cut ter ra dius off set It is the cut ter ra dius off –

set that is most crit i cal, not the other fea tures Machinability of the part ( climb mill ing vs con ven –

tional mill ing) may also be af fected

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


Chapter 16

In the mac ros, the sta tus of the mir ror im age can be mon i tored for each axis individually This

macro fea ture is called the mir cnc equipment ror im age check sig nal At any time dur ing the macro pro cess ing,

the macro can in quire as to the sta tus of the cur rent set ting of the mir ror im age The re sult of the

in quiry is a bi nary value re ceived and con verted into a dec i mal for mat

On most Fanuc con trols, the sys tem variable that stores the mir ror im age re lated in for ma tion is

#3007 ( bit type) – note the de tails of angle shearing machine bits eval u a tions:

8th axis

7th axis

6th axis

5th axis

4th axis

3rd axis

2nd axis

1st axis

















This typ i cal sta tus shows up to eight axes In prac tice, how ever, only the first two axes will prob –

a bly used most of ten – the X and the Y axis (com monly the 1st and the 2nd axis) on a CNC ma Angle Punching

chin ing cen ter Some older con trols may have fewer than eight axes avail able un der the vari able

#3007 The first line of the ta ble is the axis de scrip tion, the sec ond line is the axis iden ti fi ca tion –

the third line con tains the bi nary equiv a lent of each bit (re mem be

the #3007 variable In this particular case

 the #3007 variable In this particular case, the largest bit value that can be Drilling Machine for Plate sub tracted from 3 is 2 The num ber 2 is de fined as the

Y-axis, so the Y-axis is cur rently mir rored The step two is to sub tract the new value ( cal cu lated as metal hole punch machine 2 in the ex am ple ) from the value of vari able #3007 (= 3 in the ex am ple):

busbar sawing Machine

3 – 2 = 1

Since the re sult ing num ber 1 is re lated to the X-axis, it means the X-axis is mir rored as well

But – there still is the step three to do – to see what all other axes are there to cal cu late Take the re sult ing num ber that is 1, and sub tract one from it, 1 – 1 = 0, so there are no more axes to con –

sider In the fi nal eval u a tion, if #3007=3, both axes are mir rored The same method can be

shown in three sim pli fied steps:



#3007 = 3

Largest bit value that can be subtracted from 3 is 2


Step 1

The number 2 is defined as the Y-axis, so Y-axis is mirrored


Step 2:

3 – 2 = 1

The number 1 is defined as the X-axis, so X-axis is mirrored


Step 3:

1 – 1 = 0

No other axis is mir rored

2 Example – #3007 reads 2 – Active mirror image is in the Y axis only

In this case, the sys tem vari able #3007 is equal to 2 (re turned value is #3007 = 2), the cur –

rently mir rored axis is the Y-axis The in ter pre ta tion is the same as be fore:



#3007 = 2

Largest bit value that can be subtracted from 2 is 2


Step 1

The number 2 is defined as the Y-axis, so Y-axis is mirrored


Step 2:

2 – 2 = 0

No other axis is mirrored

2 Example – #3007 reads 1 – Active mirror image is in the X axis

In this last case, the sys tem vari able #3007 is equal to 1 (re turned value is #3007 = 1), the

cur rently mir rored axis is the X-axis The in ter pre ta punching machine tion is the same as be fore:



#3007 = 1

Largest bit value that can be subtracted from 1 is 1


Step 1

The number 1 is defined as the X-axis, so X-axis is mirrored


Step 2

1 – 1 = 0

No other axis is mirrored

If #3007 = 0, there are no axes that are

Comparison of Switch Control and Closed Loop Control

There are a number of factors to consider when deciding whether to use switch control or closed-loop control. In fact, this decision is not as simple as Apple’s choice of Apple because the switch control  Laser cutting robots (sometimes referred to as “Bang Bang control”, because the actuator suddenly stops when the bang noise) is fixed output, and closed-loop servo Control means continuous linear feedback and continuous linear output control.

angle bending machine

In particular, an on-off valve without feedback may be used to provide coarse position information using discrete limit switches or photoelectric sensors, or continuous position or velocity feedback may also be used. Continuous feedback can come from analog feedback devices, encoders or magnetostrictive displacement transducers (MDTs). There are many ways that we can achieve the same functionality as using a servo or proportional valve by using only open circuits or on / off valves with the same feedback. In short, some high-end system with encoder boring machine or MDT to achieve feedback, servo valve or servo proportional valve to form a closed-loop control loop. These options are tabulated, in the form of feedback, and in the horizontal form of control (see Table 1).
Obviously, the cheapest feedback is simply not used. This feedback-free control is usually performed by the operator using their observations and reactions to operate the actuator for “loop closure.” For automation, the applicability of this approach is limited, only for the final position and the cylinder fully extended position consistent situation. The operating speed of the actuator varies with load, pressure and oil temperature. However, this approach is accurate enough for many devices.
The second way is discrete feedback control (using limit switches and photoelectric sensors). In this solution, an on-off valve or a proportional valve is used to control the hydraulic system. Although the limit switch and photoelectric sensor wire can be connected to the valve, or the use of mechanical relays, but the worst result will be the system is not flexible enough. Changing the wiring is very expensive, and the position of the limit switches and photoelectric sensors can vary depending on the manufacturing requirements. In addition, the accurate installation of limit switches and photoelectric sensors to the required location is also very difficult. Therefore, in order to provide the required flexibility angle shear, a computer or a programmable controller is usually provided between the detection device and the valve. Because of this, a lot of potential expenses must be considered, that is, the cost of programming.
The most flexible way of feedback is to provide position feedback continuously. The MDT is mounted inside or next to the cylinder to provide accurate position feedback signals. According to the continuous feedback signal, you can determine the position by determining the speed of the speed of change. This information is critical for devices that require precise and repeatable motion.
Control output selection
Open-loop control with on-off valves – the easiest to use on-off valves, but the most limited flow control. To achieve synchronous action control is very difficult. However, a multiple on-off valve can be used to achieve a rough control of the speed. In the past, it was common to have a large number of flow and small flow valves in the system. When the actuator is close to the set point, the flow rate of the fluid is reduced by closing the large flow valve to slow the actuator and only the small flow valve supplies oil. When the actuator is very close to the set point, shut down. This combination of high and low speed valves allows for relatively precise control without feedback. On request, the on-off valve can also be used with limit switches or continuous feedback devices. Back to the late 80s of last century, early 90s, large / small flow valve with the MDT feedback with the use of common in the sawing machine positioning system.
Open loop control with proportional valves – Replacing high and low speed on / off valves with proportional valves can improve accuracy and throughput. Even a simple system can use open-loop control until a “ramp region” is reached. When the actuator approaches the preset target point, the output signal decreases as a function of the set remaining distance. This is not strictly closed-loop control, because the error (the distance between the actual point and the target point) is not used as feedback. However, this is an effective control method when the load is relatively constant.

angle steel bender

Proportional and servo valves are available in open-loop or closed-loop systems.
Sometimes the open-loop system can meet the requirements. If a process is sufficiently repeatable, then the output signal required to achieve the desired speed can be determined. This is easy to implement because a relatively simple controller or a PLC with analog output can be used. The analog output voltage range of the PLC or computer is from -10 V to +10 V, and the spool can continuously change when the voltage acting on the valve High Speed Drilling Machine changes. So that flow and speed can be roughly controlled as long as some variables, such as pressure and load through the valve, remain constant.
A more accurate method is to use feedback in the form of a distance function to change the output, rather than closing the loop. Turning the control output into a distance function is usually done with a PLC or a simple motion controller. This form of control is more applicable in systems that require more stability than required for accuracy. In general, accurate motion adjustment is not required in these systems.
Closed-loop control
The use of closed-loop control is mainly due to its flexibility, accuracy, speed controllability and the ability to maintain fine adjustment under different operating conditions, such as load variations. As productivity requirements increase, more and more equipment and production processes require the use of more complex closed-loop controllers.
The most high-end control is the continuous feedback and closed-loop control. Closed-loop control compares the position feedback signal sent by the feedback device to the desired position. The error multiplies the proportional gain (the ratio of the position error unit to the output voltage or current signal) to the output. The larger the error, the greater the output signal that corrects this error. The high-side controller increases the proportional (P) gain with the integral (I), differential (D) gain and pre-feedback. The control system shown in Fig. 1 indicates that the gains are combined with each other to perform an accurate closed-loop control.
Feedforward is actually just an open-loop gain as a predictor of the combination of closed-loop control. For example, if you know that a voltage of 1V causes the actuator to run at 2in./sec., Then a voltage of 4V can achieve a speed of 8in./sec. Of course, this assumption is a prerequisite for a linear drill machine for flange hydraulic system response, but in fact not the case. However, if the feedforward gain block is used to provide an output close to the desired voltage, the PID gain can correct any unexpected changes in load nonlinearity. If there is no feedforward unit, the PID unit will need to compensate for larger errors, which will lead to system hysteresis and increased instability.
PID, feedforward, continuous feedback, and the combination of a servo valve or servo proportional valve allows the controller to move to the desired position at user-set speed or acceleration and deceleration. Controlled acceleration and deceleration reduce hydraulic and mechanical system fatigue and damage. Take the press, for example, when the tool is close to the workpiece, the speed can be reduced to provide only the kinetic energy required for the job. Figure 2 shows a high-end press hydraulic system, the position feedback provided by the MDT, differential pressure (force) feedback from the cylinder installed on the two pressure sensors. Control is achieved by a proportional servo valve.

The daily maintenance of wire and cable

1. To ensure the construction quality, in particular the production of cable head quality must be strictly in line with the requirements. 2. Cable trench to keep dry, to prevent the cable damp, resulting in insulation decline stainless steel fabrication, causing short-circuit. 3. Regular cleaning of the dust on the wire and cable, to prevent spontaneous combustion of dust caused by the cable on fire. 4. To strengthen the wire and cable circuit protection and periodic inspection and maintenance, to ensure its reliable action. 5. Strengthen the wire and cable operation and monitoring, to avoid overload operation. 6. On-time wire and cable testing and found that should be handled in a timely manner is not normal.

7, rain, such as power outages should be immediately cut off the power, the electrician to check the reasons machine cnc, and send someone to care. Maintenance of cable equipment 8. Cable laying to keep enough distance with the heat pipe, control cable is not less than 0.5 meters; power cable is not less than l meters. Control cables and power cables should be divided into troughs, layered and arranged separately cnc busbar machine, can not be placed between layers. For non-compliance with the provisions of the site, the cable should take fire-retardant, heat insulation measures. Tips: to extend the use of wire and cable period, it is necessary to rely on the excellent quality of the cable itself, but also rely on the daily maintenance of the cable in a timely manner plate bevelling machine, so as to create a safe and comfortable living environment.

IPM Pneumatic punch, catch up with the world’s giant

IPM Pneumatic punch, catch up with the world’s giant The total output of 92 hydraulic press manufacturers,000 units, pneumatic punch output of 28,000 units, the sales revenue of 14 billion yuan, the world’s industry rankings from 36 in 2002 jumped to 2010, the first two of the outstanding achievements of remarkable. In April this year, Shenzhen Punch is achieved sales income of 5.88 billion yuan, an increase of 33%, the year is expected to complete the sales income of 18.0 billion yuan milling drilling machine, a net increase of 6.7 billion yuan in 2008. ‘Compared with Okuma, Mori Seiki, DMG and other world machine tool giant, Shenzhen Punch in the sales network, research and development direction, profitability has formed the three most competitive, especially the sales system has been leading Punch the world enterprises cnc machines. \u0026 Rdquo; ‘Both big and strong, the world’s first’, for the Shenzhen punch, this ambitious goal is not out of reach.

Pneumatic Punch of the unique Shenzhen IPM Precision Machinery

Pneumatic Punch of the unique Shenzhen IPM Precision Machinery Co., Ltd. has a large and a large number of CNC machining equipment steel punch press, the precision testing equipment, and a full set of physical and chemical facilities and other advanced quality control methods, specializing in the production of pneumatic punching, precision punching, sheet metal punching, forging presses and a series punch. 1, high-quality steel welding body, have been tempered (or vibration aging), shot blasting treatment, good rigidity, accuracy and stability; crankshaft longitudinal, compact, crankshaft after high-frequency quenching grinding, smooth finish, ; Rectangular six-sided extended guide, guide surface bronze panel, high precision; 2, Pneumatic double balance cylinder, balancing slider and the weight of the model to reduce the impact and noise, eliminating the gap between the connecting rod and slider to reduce the impact and wear parts The machine adopts imported PLC centralized control, gas selection of imported safety dual Valve control, can achieve jog, inch move, single and continuous punching;

3, the slider Plate Notching Machines, rail, table plate, connecting rod, sleeve and other key pieces are made of resin sand casting, and \u0026 mdash; clay sand casting compared to improve the surface roughness 1-2, to improve the dimensional accuracy of 2- 3; 60T and above tonnage of products using electric regulation Die height; fine configuration, key components such as pneumatic components, electrical components, seals, buttons, etc. are selected imports; 4, the choice of dry or wet friction from the Taiwan, the choice of hydraulic overload protection device or crush-type fuse; 5, according to user requirements matching automatic lubrication, photoelectric protection Angle Straightening Machine, frequency control, air blowing and other devices. 6. Adjustable height, speed, die stroke, pressure size and time range, depending on the product

Which punch manufacturers good?

Which punch manufacturers good? In the machinery manufacturing industry is now more widely used drilling sheet metal, the role played by more and more important. Then the first stage of the punch manufacturers are more and more, more and more quality brands, so that consumers buy dazzling. Due to the uneven quality, consumers in the purchase of punch, be sure to pay more attention.

Then among the many brands, Which punch the best quality, the specific point is which punch is good. IPM company specializes in producing precision, high-speed series of punch (15T-500T), and has a large and a large number of CNC machining equipment, precision testing equipment, and a full set of physical and chemical facilities and other advanced quality control methods to achieve ERP, PDM, CAM and other enterprise information engineering, with rapid response to market demand resilience. The company insists on the quality policy of ‘quality first punch machine for flat bars, service wholeheartedly’, and continuously improve the quality consciousness and quality level of the whole staff, make sure the quality target and the principle of the products, and ensure the superiority and the superiority of the products in the market competition Metal Marking Machines. Punch industry-based quality, punch Which is good? Please remember: Shenzhen IPM

« Older Entries