PMPA Craftsman Cribsheet #131:
FANUC Macro Programming Basics

Published September 1, 2024

By David Wynn, Technical Services Manager, PMPA

Download/View Cribsheet

 

 

Macros are an essential part of high-production CNC programing because they allow for blocks of code to be simplified. They also allow programs to easily be used on
families of parts. Macros can even make code more accurate and precise.

Like writing a function in traditional programming, using macro variables in G code can allow a programmer to create repeatable blocks of code that are proven. A macro is a container that holds a value. Using macros changes what the code does but not the underlying process. A programmer must only figure out the details once then let the controller process the math involved in producing the tool path. Let’s look at the basic structure of FANUC macros.

Null means no value. It does not mean zero. Think of a variable as a container. When it is null, that means the container is empty. Some of these ranges vary by controller. Some manufacturers change the address system to match how they utilize the control. This may limit the range of addresses available or change their behavior. For example: Some controllers change the value of #1-33 values to null after the program has executed. The values for #100-199 are local to the program or channel in use but are persistent until power off . In practice #100 in Channel 1 and #100 in Channel 2 can have different values. In practice, #100 in Channel 1 and #100 in Channel 2 can have different values. (Check your controller’s manual to see exactly how your machine works.) I call this “executional persistency.”
They persist in memory through multiple loops of a program but are volatile because they are reset to null at power off. The values of #500-999 are the same value across the control. Putting a #500=1 allows that value to be called by multiple channels and subprograms and receive the value of “1”. This is powerful because values can be shared between subprograms and changed, then pass the new value back to the original program.

The WHILE loop in the example acts as a subprogram and runs through this code until the condition is met, simplifying the code process. Since the code for each flat is combined in this block, a change affects all flats equally. A programmer does not have to go through the code and find all six places and change it manually. This
program is utilizing a #100 variable local to this channel and program.

Macros are a powerful way to level up a CNC program. Using advanced programming techniques allows programmers to simplify complex tasks. Once a block of code is designed, it can be utilized on multiple programs. Code reusability is key to accurate and precise programming. Humans make mistakes but when we use proven systems (reusable code for example), we increase our ability to perform.

 

 

 

 

Author

David Wynn

David Wynn, MBA, is the PMPA Technical Services Manager with over 20 years of experience in the areas of manufacturing, quality, ownership, IT and economics. Email: gro.apmp@nnywd — Website: pmpa.org.

STATE OF MANUFACTURING – North Carolina Manufacturing

by Joe Jackson

Marketing & Events Assistant, PMPA

Published September 1, 2024

Download Magazine Article

Fabricated Metal Products Manufacturing is a subsector of manufacturing that makes critical goods from metal components.

Precision Turned Products Manufacturing is a subsector of fabricated metal product manufacturing that makes the components that MAKE IT WORK!

 

NORTH CAROLINA ECONOMIC OUTPUT

North Carolina Manufacturing
NAICS 31-33
$102,340,000,000

Fabricated Metal Product Manufacturing
NAICS 332
$10,005,109,000

Precision Turned Product Manufacturing
NAICS 332721
$264,233,000

NORTH CAROLINA MANUFACTURING ACCOUNTS FOR

Manufacturing Is Productivity –17.09% of North Carolina’s total output (GDP)

Manufacturing Builds Businesses –7,639 manufacturing establishments in the state of North Carolina.

Manufacturing Creates Jobs – 10.36% of all North Carolina’s employees are in the manufacturing sector. (474,000 employees)

Manufacturing produces for North Carolina

  • Manufacturing is the 3rd largest GDP Producer in North Carolina.
  • Fabricated metals rank the 6th of the nation for its manufacturing contribution to the National GDP.

North Carolina is a great place for a career in manufacturing

  • Manufacturing jobs pay on average 29% over the average job in North Carolina. (according to NAM.org)
  • Job sites are currently reporting in excess of 4,000 available manufacturing job openings in North Carolina.

 

Sources: NAM.org, US Census, statista.com, IndustrySelect.com
Data selected to show relative values. May not be directly comparable due to differences in sampling, analysis, or date obtained.

 

 

 

 

Author

Joe Jackson

Marketing & Events Assistant, PMPA

Email: gro.apmp@noskcajj — Website: pmpa.org.

‘Can You Hold This Tolerance?’ Is Not An Engineering Question

The implications of tolerances go far beyond mere technical compliance.

by Miles Free III

Director of Industry Affairs, PMPA

Published September 1, 2024

Download Magazine Article

 

 

One of the most frequent questions in contract manufacturing is “Can you hold this tolerance?” Tolerances are a key deliverable on our precision machined products, so it makes sense that this would be a frequent question. But sadly, this question is often considered solely as a technical problem. In fact, the technical aspects are the least important factors that this question implies.

What Is The Purpose Of Our Business?
In two words, the purpose of our business is to “serve customers.” Customers provide demand, which provides the organization with its reason for being, in our case, contracting to produce precision components that the customer needs. Without customers there are no sales, no services and no profits. Loss of customers — or customer demand — is an existential threat of the gravest kind to an organization. Tolerances are an important aspect of the customer’s demand as the components that the customer wants to purchase “need” to meet those tolerances requested so that the components and the systems that they are a key part of function. This can be seen as even more than “important” when considering that often these components are part of human safety critical systems — where failure to function can mean life, death, serious injury or serious destruction of property.

The purpose of our business is to satisfy the customer’s demand by producing parts that meet their engineered requirements. Meeting tolerances is not negotiable: If they did not need them, they would not ask for them. Tolerances must be held. That is the basis of customer demand, which is the basis of our business.

What Is Our Philosophy Of Customer Service?
What is our vision of what we do? What is our aspiration for our business? For our place in the market? It is easy to get confused and lose track of what we are really trying to do in our business. The first distraction is profits. Profits are not the object of our business, they are in fact the reward for leading our business to serve our customers. If profits are the “goal,” then we will be seduced by many false idols that lure us into diverting our attention from serving the customer to taking a detour to maximize profits. Cheaper materials, cheaper tools, a shortcut here, an ignored safeguard or check to “save time” — because we all know “time is money” — all of these false idols subordinate the customer to the demands of our accounting scoreboard.

In his book “The Practice of Management,” Peter Drucker argues, “The role of profits in a business is to cover the risks inevitably involved in its operation … the profit required to enable it to stay in business and to maintain intact the wealth producing capacity of its resources.” Profits are the necessary compensation that enable us to serve, and continue to serve our customers — those who bring us their demand, their needs to be filled. In his book “Management: Tasks, Responsibilities and Practices,” Drucker states, “Profit is not a cause, but a result — the result of the performance of the business in marketing, innovation, and productivity. It is a needed result, serving essential economic functions.”

For us to focus on profits, rather than meeting customers’ needs, is truly to put the cart before the horse. If we fulfill the customers’ needs, the result will be profits. How much profit do we make when we no-quote the job because
“we can’t hold the tolerance?” Rhetorical question, really.

One Approach to Handling Difficult Tolerances
The question of restricted tolerances comes up frequently in manufacturing and is often avoided because of the difficulty of analysis of capability (if one has data). And sometimes because no capability statistics exist. So the question is avoided, no-quoted or put in that ever-growing stack of “if only the customer would …” that is seldom analyzed for insights into what our customers truly need.

This question has crossed my desk many times over my manufacturing career, as the quality assurance professional assigned to gather the needed facts and as the plant manager or division director with ultimate responsibility for operations, quality and profitability. My most frequent and preferred response was, “It is our intention to lead in the markets we serve. If we do not currently have the capability, it is our job to develop it to meet the market needs.”

The market — our customers, collectively — is continuously improving its products. We need to continuously improve our processes if we are to hold and gain market share. Failure to keep up with market (customer) demands is a great way to turn a small fortune into an even smaller one. Our imperative as leaders is to continue to improve our processes and personnel in order to preserve our competitive and preferred position with our customers and markets.

The Real Question
There are several possible objections to this way of thinking, of course. Not every quote will be economically viable over the medium or long term. It would be foolish for a business to invest in new capabilities when the demand is fleeting or insufficient to cover the needed return on investment. This is why “Can you hold this tolerance?” is not an engineering question.

It is, in today’s world, an economic and business decision. Technologies exist and are readily available to help our shops create any combination of dimensional and geometric requirements imaginable — and if not by subtracting material, then by building it up using additive processes.
The question  of “Can we hold this tolerance?” is really a leadership question. A question with its basis in economics, markets, and organizational trust and creditworthiness. Of course we can hold the tolerance. We just need to (fill in the blank). Will the demand justify our investment? The real question, in fact: “Is this an opportunity that will help our company lead in the markets we serve? Is there a chance to improve our capabilities and in so doing increase the reward that our customers give us for meeting
their needs?” Can we hold this tolerance is not an engineering question. It is a question that tests our commitment to leadership. “Is it our intention to lead in the markets we serve? Is it our intention to be the preferred supplier of precision machined services to our customers?” These are the real questions that are implied by “Can we hold this tolerance?” Of course, we can if the economics are right. Now, who has that process capability data?

 

 

 

Author

Miles Free III is the PMPA Director of Industry Affairs with over 50 years of experience in the areas of manufacturing, quality and steelmaking. Miles’ podcast is at pmpa.org/podcast. Email Miles

 

Safety First! That Applies to
Psychological Safety, Too

Psychological safety is important for continuous improvement.

by Carli Kistler-Miller

Director of Programs & Marketing, PMPA

Published September 1, 2024

Download Magazine Article

 

 

Do you know that WD-40 stands for Water Displacement, 40th formula? It took them 40 attempts to get it right.
Thomas Edison is quoted as saying, “I have not failed. I’ve just found 10,000 ways that won’t work.” We work
in a no-fail industry, so you may be wondering why I’m telling you this. It’s because we work in a no-fail industry. Our parts go into airplanes, cars and human beings. These parts cannot fail, but the people designing and making them may have
to fail on the way to finding the best design and process to produce a no-fail part.

What Is Psychological Safety?
According to a Harvard Business Review interview with Amy Edmondson, the Harvard Business School professor who coined the phrase “psychological safety,” it’s a culture where employees are encouraged to share ideas and concerns, ask questions, take risks and admit mistakes. Notice I said admit mistakes. Everyone makes mistakes, but some work environments punish mistakes, which forces employees to cover them up.
Mistakes are a powerful form of learning. Edmonson’s study of Google showed that the most productive teams were the teams who made the most mistakes. It turns out those teams were willing to admit they made mistakes and, since they worked in an environment where it was OK to admit mistakes, they were able to learn and become productive teams.

Continuous Improvement
According to a study done by Workplace Options, “… psychological safety centers on trust, innovation and collaboration … driving higher employee engagement, retention, and ultimately, organizational success.” Employees must feel if they have an idea they can share it. They must feel that if something doesn’t work or can work better, they can share it without fear of ridicule or retaliation.
Think about a shop floor. Who is going to know what process is and isn’t working? Unless it’s a small shop, it probably isn’t the owner or supervisor. It’s the employee running or monitoring the process. And how would the owner or supervisor know to fix a process unless someone told them there is an issue? If that employee is afraid to mention it for fear of losing their job, the owner may not find out until it’s too late. Or what if the employee has an idea as to how to improve the process, but has been ignored or made to feel bad for suggesting ideas in the past?
How about tools? What if the estimator/engineer thought a tool would work for a certain part and the machinist has an idea that would help run the part more efficiently? If the work culture encourages the sharing of ideas, the result could be a no-fail part that runs with fewer tools or changes. Listening to an idea doesn’t mean you have to implement the idea. Taking the idea into consideration and being grateful that the employee shared the idea is how psychological safety works. That employee may give you 10 ideas and if even one of them helps the shop, it was worth listening. And that employee feels valued.

Innovation
Our industry is built on innovation. Innovation doesn’t happen without failure. Improvements don’t happen without ideas. For our shops to keep supplying the world with no-fail parts, our shops should encourage psychological safety to keep improving. Hopefully, it won’t take 40 attempts to get there.

 

 

Author

Carli Kistler-Miller, MBA has over 25 years of experience with operations, event/meeting planning, marketing, writing and communications.
Email: gro.apmp@rellimc — Website: pmpa.org.

 

PMPA / ITR Economics Forecast Report May 2024

 

 

Dickens’ opening line from Tale of Two Cities, (“It was the best of times, it was the worst of times…”) certainly applies  to the economic impacts of consumer prices being up roughly 22%  over the last four years. Lower income consumers  feel these far more acutely than middle and higher income consumers- whose spending , it seems, was driving the economy in May. Higher interest rates (“it was the worsrt of times,” redux)  are an obstacle to b8usiness capital investment, as manufacturing orders seem to be leveling as capacity utilization slows as well. This report goes beyond these trends to show how a rising trend in the business cycle is beginning to take shape- and we still have not had any of the market’s anticipated FOMC rate cuts. To get the facts on the markets that our industry serves- read the report attached.

View/Download

 

The Institute for Trend Research (ITR) quarterly reports focus on major areas of economic growth and decline in key market segments for the Precision Machined Products Industry. They are provided to PMPA members as part of the association’s overall business intelligence program and are used as a management tool to help PMPA members plan for what lies ahead and which markets they should focus on in a complex manufacturing environment. 

What is Pitch Diameter?

Published August 13, 2024

 

 

Among many measurement parameters for threaded parts, pitch diameter is considered to be crucial. 

Some typical thread dimensions which define taps, dies, bolts, and other helically threaded parts include pitch, depth, angle, and major and minor diameters. 

The pitch diameter (also known as the effective diameter) is used to determine whether two threaded parts could be successfully mated together. Properly mated parts will demonstrate equal distance between thread flanks when in contact. Pitch diameter refers to the width of the cylinder as it intersects the midpoint of the major and minor diameters, known as the pitch line.

Pitch diameters are an essential component in determining the compatibility between internally and externally threaded parts – nuts and bolts, for example – and are also used as an important frame of reference for other thread measurements.