FANUC Custom MACRO B

Started by CNCAppsJames, February 12, 2024, 02:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CNCAppsJames

I figured I'd start this topic here because it seems to get a fair amount of of traffic in manufacturing circles.

Knowledge of FANUC's Custom MACRO language was nearly a requirement back in the late 80's to mid 90's to get anything meaningful done. BITD server memory was eye watering expensive. CNC memory was just downright abusive. In the late 90's/-mid 2010's it's made a resurgence. More and more people want to collect data, serialize, and track conditions conditions so I figured I'd throw start this topic and keep the craft alive and growing.

Attached is a guide we hand out to customers and interested people. It is by no means an exhausive guide, but it covers the VAST majority of the questions most frequently asked.

Something MACRO B related you are looking for but can't find? Ask away.

I'm going to start a FANUC Parameter Topic after this.

Enjoy.
You cannot view this attachment.
Like Like x 4 Thank  You Thank You x 2 View List
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

CNCAppsJames

Like Like x 2 View List
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

SuperHoneyBadger

Looking for the guide mentioned in your first post, I can't see a link or anything.

I didn't know you could name variables, that's pretty boss for man-readability.

YoDoug

Just learned today that the new Okuma control has extended named local variables to 8 characters. Used to be 4 characters.
Like Like x 1 View List
"In all my years here and on the old forum I have heard, and likely said, some pretty unhinged stuff. But congrats, you're the new leader in clubhouse."  - ghuns, 6/06/2025

CNCAppsJames

Quote from: YoDoug on March 13, 2024, 03:08 PMJust learned today that the new Okuma control has extended named local variables to 8 characters. Used to be 4 characters.
8 is nice that's what we have. FANUC has an an option for up to 32 alpha-numeric. It's pretty cheap as far as options go.

How many variables do you get with Okuma not including System, Tool Offsets, and Work Offsets?
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

CNCAppsJames

Quote from: SuperHoneyBadger on March 13, 2024, 06:47 AMLooking for the guide mentioned in your first post, I can't see a link or anything.

I didn't know you could name variables, that's pretty boss for man-readability.
It's attached. It's only been downloaded 2x. The link is above the quote button right below the "Enjoy".
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

YoDoug

#6
Quote from: CNCAppsJames on March 13, 2024, 08:15 PM8 is nice that's what we have. FANUC has an an option for up to 32 alpha-numeric. It's pretty cheap as far as options go.

How many variables do you get with Okuma not including System, Tool Offsets, and Work Offsets?

Standard common variables is 200, 1000 is optional. Local is 128 per main/sub program executing. Tool/Work offsets depends on machine.

Mills have the ability to register 99999999 tools. Each tool has three offsets available. I do think there is a limit around 10000 but I have never encountered someone that hit it.

Mill turns like a Multus can register 9999 tools and each can have 20 sets of offsets/B axis positions. If you have the multi edge tool option that adds 12 offsets to each of those positions, however again there is a limit but I have never seen anyone hit it.

Standard lathes is a couple hundred, but I don't know exactly how many.

Mill turn have 10 work offsets.

Mills have 100 and there is an option for more, 200 IIRC.
Like Like x 1 View List
"In all my years here and on the old forum I have heard, and likely said, some pretty unhinged stuff. But congrats, you're the new leader in clubhouse."  - ghuns, 6/06/2025

riverhunter

I hovered the entire post and cant seem to find the link either.

CNCAppsJames

FANUC standard is 0-33 Local Variables, 100-149, and 500-549 Common Varaibles. Matsuura's and most other machines I've seen ship with 100-199, and 500-599.

There's a option for an additional 1000 Common Variables or 4000 COmmon Variable. Nobody has ever ordered it.

For tools.. not sure there's a standard. Matsuuras ship with 9999 tool numbers available but can option to 99999999

For tool offsets (on a 5-Axis) it's 6 column, Length Geometry, Length Wear, Radius/Diameter Geometry, Radius/Diameter Wear,  , Corner Radius Geometry, and Corner Radius Wear. 

CUBLEX machines have the above plus 8 Edges for each tool, and Y-Axis .

Work Offsets; standard is G54-G59, Extended G54.1P1-P48, and Additional from G54.1P49-G54.1P300. Matsuuras ship with G54-G59 and G54.1P1-G54.1P300.

Matsuura only makes mills, but the CUBLEX series can turn .
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

CNCAppsJames

You cannot view this attachment.
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

CNCAppsJames

#10
And I attached a link within the body of the post just in case.

And we're up to Rev. F now.

A friend pointed me to a manual I didn't have that had some additional variables in it so I added those to this new Rev. Nothing earth shattering. But still helpful nontheless.
Like Like x 1 View List
"We have run out of money. I guess we'll have to think." Ernest Rutherford

Inventor Pro 2026 - CAD
CAMplete TruePath 2026 - CAV and Post Processing
Fusion360 and Mastercam 2026 - CAM

JakeL

Quote from: CNCAppsJames on March 14, 2024, 08:01 PMAnd I attached a link within the body of the post just in case.

And we're up to Rev. F now.

A friend pointed me to a manual I didn't have that had some additional variables in it so I added those to this new Rev. Nothing earth shattering. But still helpful nontheless.

Not sure what others are seeing but I see a red banner that says "You cannot view this attachment" right where you said the link should be in the original post. Same banner in the post with just the link. Could be something on my end?

neurosis

Quote from: JakeL on March 15, 2024, 07:22 AMCould be something on my end?


It's more likely a forum setting.  Some of the forum functionality is regulated by post count. It was set up that way so some of the long time forum members had some abilities that new users didn't. 

I'll have to look in to it and see how it limits attachment use. I'm not sure if viewing and downloading attachments are separate permissions. It's been a while since I've had to mess with the forum rules.
Donald Trump: "second amendment people' could stop Democrat choosing undesirable supreme court justices if she is elected"

neurosis

Quote from: JakeL on March 15, 2024, 07:22 AMCould be something on my end?

Let me know if you can see it now.
Like Like x 1 Thank  You Thank You x 1 View List
Donald Trump: "second amendment people' could stop Democrat choosing undesirable supreme court justices if she is elected"

JakeL

Quote from: neurosis on March 15, 2024, 11:42 AMLet me know if you can see it now.


Yes I can. Thank you!  :unworthy:
Like Like x 1 View List