
14. USER WINDOW PROGRAMS USER PROGRAM B-63423EN/02
-90-
14.2 MACRO PROGRAMS AND VARIABLES
1) O****+5: Initialization of the window
(Program number set for parameter No. 9111 + 5)
This program is used to determine the size and position of the
window. The program is called only once as the window opens.
Once the necessary data is input to the following custom macro
variables below, the window can open.
#9111 : X position at the upper-left corner of the window
(character coordinate)
#9112 : Y position at the upper-left corner of the window
(character coordinate)
#9113 : Window width (number of characters in the X
direction)
#9114 : Window height (number of characters in the Y
direction)
2) O****+0: Initialization of the display items in the window
(Program number set for parameter No. 9111 + 0)
This program is used for the purposes below. The program is
called only once after the window opens.
a) Initializing the custom macro variables used in the window
b) Displaying the static messages in the window
3) O****+1: Main processing in the window
(Program number set for parameter No. 9111 + 1)
This program is used for the purposes below. The program is
called periodically while the window is being displayed.
a) Monitoring pushed soft-keys and input data
b) Inputting data to custom macro variables based on
keystrokes
c) Displaying changed data, such as the machine position,
based on keystrokes
4) O****+2: Post-processing as the window closes
(Program number set for parameter No. 9111 + 2)
This program is used for post-processing for the internal status
as the window closes, including saving the custom macro
variables. The window closes, for example, when [RETURN] or
<INSERT> is pushed or another CNC screen appears. The
program is called only once.
5) O****+3: Display of the static soft-keys (only once)
(Program number set for parameter No. 9111 + 3)
This program is used to display the static soft-keys that remain
on the screen. The program is called only once after the window
opens.