
B-63423EN/02 SAMPLE PROGRAM
11. USER PROGRAMS FOR MEASURING CYCLE MENU
-555-
if[#[value 4] eq #0]goto 97
if[#[value 4] le 0]goto 98
/* Work co-ord. System */
if[#[attribute 5] ne att_not_use]then
error_item = 5
if[#[value 5] eq #0]goto 99
if[#[value 5] lt 1 || #[value 5] gt 6]goto 98
endif
/* Work co-ord. System */
if[#[attribute 6] ne att_not_use]then
error_item = 6
if[#[value 6] eq #0]goto 99
if[#[value 6] lt 1 || #[value 6] gt 6]then
if[#[value 6] lt 1001 || #[value 6] gt 1048]goto 98
endif
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
O6624 ;############################################### Measurement of Outside Circle (G183)
input_error_flag = error_non
/* Height for Z Axis */
error_item = 1
if[#[value 1] eq #0]goto 97
if[#[value 1] le 0]goto 98
/* Hole Outside Radius */
error_item = 2
if[#[value 2] eq #0]goto 97
if[#[value 2] le 0]goto 98
/* Feedrate for Move */
error_item = 3
if[#[value 3] eq #0]goto 97
if[#[value 3] le 0]goto 98
/* Work co-ord. System */
if[#[attribute 4] ne att_not_use]then
error_item = 4
if[#[value 4] eq #0]goto 99
if[#[value 4] lt 1 || #[value 4] gt 6]goto 98
endif
/* Work co-ord. System */
if[#[attribute 5] ne att_not_use]then
error_item = 5
if[#[value 5] eq #0]goto 99
if[#[value 5] lt 1 || #[value 5] gt 6]then
if[#[value 5] lt 1001 || #[value 5] gt 1048]goto 98
endif
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