
B-63423EN/02 USER PROGRAM
10. USER PROGRAMS FOR CHECKING INPUTTED DATA
-69-
10 USER PROGRAMS FOR CHECKING
INPUTTED DATA
The following user program is the one, which checks the input data.
When an INSERT key is pushed, this user program is called. If there
is a mistake in the input data, the cursor will move to the data item. If
there is no mistake, the input data will be stored into the memory.
The logic of data checking can be modified by using these user
program.
In this user program, the cursor and the screen are controlled by using
the following two system variables.
l #6004 := 0 Store into the memory when INSERT key is pushed.
:= 1 Not store into the memory when INSE RT key is pushed.
l #6009 : The cursor moves to the data item when the item number
of wrong data is inputted.
The sequence of user program for checking input data is as follows.
1). User program set # 6004 and # 6009 to 0 at first, and checks each
input data.
2). If there is a mistake in input data, user program will set # 6004 to
1 and #6009 to the number of the data item.
3). If there is no mistake, user program will finish with nothing.
NOTE
The user program number of checking inputted data
is the number, which is specified to “Macro program
number for checking inputted data” in Start-up
macro program. The program number of the
following each menu is increased by 1.
1 Macro program number for checking inputted data
of G-code menu = 8802
(1). Initial Setting = O8802
(2). Tool Definition = O8803
(3). MSF code = O8804
(4). Comp. = O8805
(5). Positioning = O8806