June 27, 2019, 08:58:20 AM
Robotforum | Industrial Robots Community

 Macro Programs

normal_post Author Topic:  Macro Programs  (Read 1956 times)

0 Members and 1 Guest are viewing this topic.

June 14, 2018, 08:04:46 PM
Read 1956 times


This is just for general knowledge not for a specific problem, but I have questions about the purpose, benefits, and reasons to use a Macro program instead of a regular program?

I realize that Macros can be assigned to pendant keys and manual functions (we don't often use those here, because we prefer not to have our customers access the pendant) but what else can they do?

If I assign one to a DI, does that mean whenever I get that DI it calls that program? Like could I assign a GO_TO_MAINT program to a DI and when ever the robot receives that DI it goes to maintenance position? Does a macro input tender always run in the background?

Fanuc just seems really proud of this ability and I have yet to find a use for it in my entire 5 months of robot programming (such a long time I know), and I want to know if I am missing out!

***if there is already a thread here please direct me to it***
« Last Edit: June 14, 2018, 09:29:09 PM by MooseHorns »

Today at 08:58:20 AM
Reply #1



June 14, 2018, 08:13:12 PM
Reply #1


often times i used macros with no group selected to operate stationary cameras running vision processes while the robot it off doing something else.  maybe find the next part to pick up before the robot even gets there.

and yes assigning a gripper open or close to a user key is very handy

June 14, 2018, 09:36:48 PM
Reply #2


Yes you can do this. I am using macros to control my conveyors as well as start a vision system program I have. When the DI = ON it runs the program that it is mapped to. You can set the macro to run on a few different inputs such as TP key, operator panel button, or input signal (DI,UI, ect).

Macros can do everything that a TP program can do they can just also be started by inputs or buttons instead of selecting them with the TP or a CALL/RUN program instruction.

As far as I know the macros do not run like a background program would, they are essentially called by the input you want to start it with (although I could be wrong)

June 15, 2018, 01:04:54 AM
Reply #3


Global Moderator
Moosehorns, I am in the same camp as you, we don't want people other than programmers or maintenance touching the pendant. Also, we provide an HMI for a user interface. So in my situation Macros have no benefit. I can accomplish anything required using a combination of regular programs and BG Logic.

If you are in a situation where there is no HMI and the operator is using the teach pendant as part of their normal operation, then I think Macros would be a great tool.

I find it funny that you say Fanuc is proud of the macro, when I find BG Logic infinitely more useful, but you never hear Fanuc talk about BG Logic. It isn't even taught in their Advanced programming course.

June 15, 2018, 04:14:36 PM
Reply #4


At my facility we use aux axis for dial tables and trunnions. We put the positions in the macro table and call the program via DI. This way the arm can be off doing something else, and the Aux Axis and get into its operator load position.

June 15, 2018, 07:22:52 PM
Reply #5


I use macros for some of my more elaborate EOAT setups.  Multiple actuators with 2 or 3 brief WAIT instructions.  Pack it all into one MACRO so each time I need to pick up or drop off, it is one line to call the appropriate MACRO instead of 5 of 6 lines of code.

Other than that, I agree, BGLogic is way more useful.

Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter


Started by roohparvar on Yaskawa Motoman Robot Forum

2 Replies
Last post January 15, 2019, 07:03:38 PM
by Nevil101
Adding macro to macro

Started by kewal on Yaskawa Motoman Robot Forum

4 Replies
Last post June 12, 2018, 07:40:19 PM
by asgary64
Macro Job calling another macro job

Started by motorobo on Yaskawa Motoman Robot Forum

4 Replies
Last post March 14, 2018, 11:29:27 AM
by Barabashka
Macro Job

Started by asgary64 on Yaskawa Motoman Robot Forum

4 Replies
Last post November 24, 2017, 04:05:34 PM
by asgary64