FANUC how to make the macro variable screen display name

Mondo Technology Updated on 2024-02-20

In the previous article, How do you display variable names for user macrossetvn directiveThe method of naming macro variables, but this method has a big limitation, that is, it can only name 549 and 50 macro variables, and macro variables beyond this range cannot be named.

Next, we will introduce another method of naming macro variables, which can name a total of 600 macro variables in 999. This method uses the screen definition function of the system to use specific programs and programming methods to realize the definition of the screen and the definition of macro variable names.

Before starting, we need to customize the name for the mode menu of the system, such as the mode menu list under the current screen, although 1-10 options are displayed, but there is no name, then we take the first project name definition as HDCNC as an example to demonstrate, how to add a name to the mode menu;

First, let's write an O9500 program in the following format:

After the writing is completed, put the program O9500 into the system program directory".//cnc_mem/user/library/path1(there is no path1 folder in the library directory of the default program directory of the system, you need to create a path1 folder by yourself, and the program can be directly put into the corresponding folder location, and there is no need to execute the program), as shown in the following figure;

After completing the above steps, we will come to the "Mode Menu" screen again, and then the mode menu screen will display the name we just defined, as shown in the following figure;

Next, let's use 100 as "HD" and 600 as "CNC" as an example to demonstrate how to name macro variables.

Again, let's write a program called O9501 in the following format:

After the writing is completed, then put the program O9501 into the system program directory as well".//cnc_mem/user/library/path1below, as shown below;

After doing the above, we go to the user macro screen and find that the 600 and 100 variables we just defined do not have a display name.

This is because we have not selected the corresponding mode in the mode menu, we directly select the mode 1 "hdcnc" just defined in the mode menu, and then click "Select" below, so that the mode selection is completed;

At this point, we go back to the macro screen, and the variable name that we just defined is displayed normally.

Although the variable names can be displayed normally, what do the programs "g65 h91" and "g65 h93" that were just written in the program mean?

The name of the program and the meaning of each ** of G65 can be found in the following figure:

For the meaning of the G65 H91 format, please refer to the following figure

For the meaning of the G65 H93 format, please refer to the following figure

There is a lot of content about the specific format of the program and how to use the string, so I will not explain it in this article. For more information, please refer to the relevant section of the FANUC Operating Manual "Definition of Screen".

Related Pages