
B-63423EN/02 SAMPLE PROGRAM
9. USER PROGRAMS FOR POCKETING MENU
-449-
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
/* ############################################### Circle
O8882 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 5]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
/* Removal Depth */
error_item = 4
if[#[value 4] eq #0]goto 97
if[#[value 4] le 0]goto 98
/* Removal Pitch */
if[#[attribute 5] ne att_not_use]then
error_item = 5
if[#[value 5] lt 0]goto 98
endif
/* Bottom Finish */
if[#[attribute 6] ne att_not_use]then
error_item = 6
if[#[value 6] lt 0]goto 98
endif
/* Side Finish */
if[#[attribute 7] ne att_not_use]then
error_item = 7
if[#[value 7] lt 0]goto 98
endif
/* Chamfer Removal */
if[#[attribute 8] ne att_not_use]then
error_item = 8
if[#[value 8] eq #0]goto 97
if[#[value 8] le 0]goto 98
endif
/* Feed Rate */
error_item = 10
if[#[value 10] eq #0]goto 97
if[#[value 10] le 0]goto 98
/* Cutting Width% */
if[#[attribute 11] ne att_not_use]then
error_item = 11
if[#[value 11] eq #0]goto 97
if[#[value 11] le 0]goto 98
endif
/* Z-Cut Feed Rate */
if[#[attribute 12] ne att_not_use]then
error_item = 12
if[#[value 12] eq #0]goto 97
if[#[value 12] le 0]goto 98
endif
/* Tool Small Dia.*/