
B–61803E–1/10
APPENDIX
P. MACRO EXECUTORS
FOR THE Series 20i
575
1) O**** (program number specified for L in a G270 command block)
: Main processing in a window
This program is called after M99 is executed for the first time after
the window display command (G270) is executed. It is then executed
repeatedly until the window is closed (G271). When the window
close command (G271) is executed in this program, control returns
to the previous program for displaying the base screen after M99 is
executed for the first time after that.
This program is used for the following operations related to window
display. The window close command (G271) must always be inserted
somewhere.
a) Initialization of the custom macro variables used in the window
b) Display of messages in the window
c) Monitoring for the pressing of soft keys and the input of data
d) Input of data to custom macro variables due to key operation
e) Display of changes in data due to key operation and of changing
data such as the machine position
While a window is being displayed, character display commands and
graphic display commands are effective to that displayed window,
except soft keys, described in the next paragraph, and the characters
and graphics are displayed in the character coordinate system and the
graphic coordinate system of that window.
2) O****+1 (program number specified for L in a G270 command block
+ 1)
: Soft key display
This program is used to display soft keys while a window is being
displayed.
Because soft keys must be displayed in the base screen even while a
window is being displayed, all character display commands in this
program are executed in the character coordinate system in the base
screen.
3) O****+2 (program number specified for L in a G270 command block
+ 2)
: Execution of postprocessing when a window is closed
This program is used for the postprocessing for the internal state, such
as the saving of custom macro variables, when the system is switched
to another CNC screen due to, for example, the pressing of a function
key, closing the window for a cause other than the custom macro
program for machining guidance. It can be called only once. When
a window is closed with the window close command (G271), this
program is not called, requiring postprocessing to be executed
separately.
P.3.1.1
Macro programs for
window display