
9. USER PROGRAMS FOR DISPLAYING GUIDANCE DRAWING FIGURE
USER PROGRAM B-63423EN/02
-68-
O****
if[guide_frequency eq second_time]then
if[cursor eq 3 ]then
call fig_clear Clear the guidance drawing figure at prompts 1 and 2.
call **** Create the guidance drawing figure at prompt 3.
else
if[previous_cursor eq 3 ]then
call fig_clear
endif
call **** Create the guidance drawing figure at prompts 1 and 2.
endif
previous_cursor = cursor Hold the cursor at the current position.
endif
m99
3) The blinking cursor in a guidance drawing figure is called the
second cursor. There are many different methods to control the
second cursor. With the FANUC standard macros, for example,
the ordinal number on the process data is specified for #1 in
FIG*.SRC. Then, program O6008 is called. Within program
O6008, when the current cursor position matches the ordinal
number on the process data, the address blinks. Otherwise, the
normal display is provided.
:
#1=2
call fig_cursor
G243X50Y3(I)
:
call fig_clear and call fig_cursor shown in the above examples are
contained in FIGCOM.SRC, which is the source having a set of
routines common to guidance drawing figure macros. The following
are main common routines:
Routine name Description
fig_clear Clears the guidance drawing figure area.
fig_line Draws a line with an arrow.
fig_cw Draws a circle with an arrow (CW).
fig_ccw Draws a circle with an arrow (CCW).
fig_mark Draws a cross.
fig_cursor Enables or disables the blinking of the second cursor.
fig_character Draws a box around characters.
fig_language Changes the language in a guidance drawing figure.
4) A macro program for guidance drawing figures is started each
time the cursor moves. To change process attributes depending
on input data, therefore, the corresponding attributes must be
changed within this macro program. For example, to display
items for rough machining, and to hide them for finish
machining, change the attributes within the program accordingly.
Create the
figure only
upon the
second
startup of
the
program.
Clear guidance drawing figure 3 when the cursor was
previously positioned at prompt 3.
:6008 if[cursor eq #1]then
cursor_on
else
cursor_off
endif
m99
1: Ordinal number on the
process data
cursor_on:G240P-7C14L1
(Cursor blinking)
cursor_off:G240P7C14L0