
B-63423EN/02 SAMPLE PROGRAM
6. USER PROGRAMS FOR HOLE PATTERN MENU
-305-
color red C white L0
G243X1Y24 P[#1+900]
goto 99
/* Input error in menu param. */
n98 input_error_flag = error_on
call fig_language
color red C white L0
G243X1Y24 P[#1+901]
n99 m99
/* ############################################### Arc
O8846 input_error_flag = error_non
/* Pattern form */
error_item = 1
if[#[value 1] eq #0]goto 97
if[#[value 1] lt 1 || #[value 1] gt 2]goto 98
/* Center Point X */
error_item = 2
if[#[value 2] eq #0]goto 97
/* Center Point Y */
error_item = 3
if[#[value 3] eq #0]goto 97
/* Radius */
error_item = 4
if[#[value 4] eq #0]goto 97
if[#[value 4] le 0]goto 98
/* Pitch Angle */
if[#[attribute 6] ne att_not_use]then
error_item = 6
if[#[value 6] eq #0]goto 97
if[#[value 6] le 0]goto 98
endif
/* Hole Number */
if[#[attribute 7] ne att_not_use]then
error_item = 7
if[#[value 7] eq #0]goto 97
if[#[value 7] le 0]goto 98
endif
/* Pattern Cont. */
error_item = 22
if[#[value 22] eq #0]goto 97
if[#[value 22] lt 1 || #[value 22] gt 2]goto 98
goto 99
/* Data is lacking. */
n97 input_error_flag = error_on
call fig_language
color red C white L0
G243X1Y24 P[#1+900]
goto 99
/* Input error in menu param. */
n98 input_error_flag = error_on
call fig_language
color red C white L0
G243X1Y24 P[#1+901]
n99 m99