
9. USER PROGRAMS FOR POCKETING MENU
SAMPLE PROGRAM B-63423EN/02
-452-
endif
/* Center Point X */
error_item =17
if[#[value 17] eq #0]goto 97
/* Center Point Y */
error_item =18
if[#[value 18] eq #0]goto 97
/* Center Distance */
error_item = 19
if[#[value 19] eq #0]goto 97
if[#[value 19] le 0]goto 98
/* Radius */
error_item = 20
if[#[value 20] eq #0]goto 97
if[#[value 20] le 0]goto 98
/* Cut Direction */
if[#[attribute 21] ne att_not_use]then
error_item = 21
if[#[value 21] eq #0]goto 97
if[#[value 21] lt 1 || #[value 21] gt 2]goto 98
endif
/* Cycle Selection */
if[#[attribute 26] ne att_not_use]then
error_item = 26
if[#[value 26] eq #0]goto 97
if[#[value 26] lt 1 || #[value 26] gt 2]goto 98
endif
/* Pitch Depth */
if[#[attribute 28] ne att_not_use]then
error_item = 28
if[#[value 28] eq #0]goto 97
if[#[value 28] le 0]goto 98
endif
/* Approach / Escape */
if[#[attribute 31] ne att_not_use]then
error_item = 31
if[#[value 31] eq 0]goto 98
if[#[value 31] lt 0]goto 98
endif
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
/* ############################################### Groove
O8884 input_error_flag = error_non
/* Mach. Process */
error_item = 1
if[#[value 1] eq #0]goto 97
if[#[value 1] lt 1 || #[value 1] gt 4]goto 98
/* Clearance */
error_item = 2
if[#[value 2] eq #0]goto 97
if[#[value 2] le 0]goto 98
/* End Point Z */
error_item = 3