
B-63423EN/02 SAMPLE PROGRAM
8. USER PROGRAMS FOR SIDE CUTTING MENU
-387-
if[#[attribute 25] ne att_not_use]then
error_item = 25
if[#[value 25] eq #0]goto 97
if[#[value 25] le 0]goto 98
endif
/* Approach / Escape */
if[#[attribute 26] ne att_not_use]then
error_item = 26
if[#[value 26] eq 0]goto 98
if[#[value 26] lt 0]goto 98
endif
/* Start Point Sel. */
if[#[attribute 27] ne att_not_use]then
error_item = 27
if[#[value 27] eq #0]goto 97
if[#[value 27] lt 1 || #[value 27] gt 2]goto 98
endif
/* Start Point Sel. */
if[#[attribute 28] ne att_not_use]then
error_item = 28
if[#[value 28] eq #0]goto 97
if[#[value 28] lt 1 || #[value 28] gt 2]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
/* ############################################### Track
O8873 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
if[#[value 3] eq #0]goto 97
/* Side Removal */
if[#[attribute 4] ne att_not_use]then
error_item = 4
if[#[value 4] lt 0]goto 98
endif
/* Side Pitch */
if[#[attribute 5] ne att_not_use]then
error_item = 5
if[#[value 5] lt 0]goto 98
endif
/* Side Finish */
if[#[attribute 6] ne att_not_use]then
error_item = 6
if[#[value 6] lt 0]goto 98
endif