44 Little Cahill Road

Cary, IL  60013

Ph: 847-639-8847

  • Facebook Social Icon
May 23

Welcome to our discussion about parametric programming!


Share your ideas and stories about how you have applied Custom Macro - or any version of CNC-related parametric programming. Ask questions, which I and others will try to answer. In general, improve your understanding of this helpful CNC programming tool!

Oct 5

Hello, when using local variables are they stored somewhere? or does the macro just use them rite from the main call arguments? thanks

With FANUC CNC's, local variable registers can be displayed from the OFS/SET page then "MACRO" (with older controls it is from the SET page). Since they are only active when set in a program (cleared at M99 or M30), they will only show you values during the execution of a program that uses them.


For example, the command G65 P1000 A1.5 B3.0 C0.4 will set local variables #1, #2, and #3. Then program O1000 will be activated. #1, #2, and #3 will be active while O1000 runs, reset to vacant (blanked out) when the program ends with M99. While O1000 is running, you can monitor them from the MACRO page shown below.









Oct 6

Thank you, I thought they had to be somewhere, I'm not sure if this machine shows the local variables or not, seems like they start with the common 100's, I'll take a look on Monday. what do you know about the soft control screen, you know to turn things on/off, this one is Blank, it shows about 5 rows of the on/off but nothing in front of them? I would like to shut the chuck foot pedal off some times as I run big parts with a face driver and don't want to accidentally

drop a part when it's sitting with part still in machine. keep relays or maybe the ladder? thank's again, I have learned a lot from you over the years.

As for the local variables, you're right, the CNC starts by showing the common variable (#100 series). If you press the page up or cursor up key, you'll scroll into the local variables.


Not sure about the "soft control screen". Sound like a feature you need to ask your machine builder about - same for the ability to turn off the foot pedal for chuck open/close. There may be an easier way than going into the ladder logic, but I'd recommend that you ask someone from the machine tool builder.

Oct 7

Thank's Mike

New Posts
cnc reverse logo.jpg