I was yesterday days old when I learned there was a Fanuc Macro A format.

Started by riverhunter, June 13, 2025, 09:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

riverhunter

Makes sense that A came before B.......


O1000 (MACRO A EXAMPLE)
#101=0 (Initialize variable #101)
G65 H02 P#101 Q40000 R30000 (Add 4 + 3, store in #101)
M30 (End of program)

O2000 (MACRO B EXAMPLE)
#101 = 0 (Initialize variable #101)
#101 = 4 + 3 (Add 4 + 3, store in #101)
M30 (End of program)
Like Like x 1 View List

CNCAppsJames

Or;
...
#101=[4+3]

My personal preference. 

I like to use brackets. They help me keep stuff straight even when they are not absolutely necessary... like your example.

:cheers:
Like Like x 3 View List
"That bill for your 80's experience...yeah, it's coming due. Soon." Author Unknown

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