
B-63423EN/02 SAMPLE PROGRAM
11. USER PROGRAMS FOR MEASURING CYCLE MENU
-553-
11.4 INPUTTED DATA CHECKING
/****************************************************************************
/*
/* CHECK9.SRC :: Measuring Cycles
/*
/***** 6621: Measurement of X/Y/Z Single Surface (G180)
/***** 6622: Measurement of Web Width (G181)
/***** 6623: Measurement of Groove Width (G182)
/***** 6624: Measurement of Outside Circle (G183)
/***** 6625: Measurement of Inside Circle (G184)
/***** 6626: Measurement of Outside Rectangular (G185)
/***** 6627: Measurement of Inside Rectangular (G186)
/***** 6628: Measurement of Outside Corner (G187)
/***** 6629: Measurement of Inside Corner (G188)
/***** 6630: Measurement of Bolt-Hole-Circle (G189)
/***** 6631: Measurement of 4 Holes Center(G190)
/***** 6632: Measurement of Work Piece Angle (G191)
/***** 6633: Measurement of 2 Holes Angle (G192)
/****************************************************************************
$INCLUDE SYMBOL.DEF
O6621 ;############################################### Measurement of X/Y/Z Single Surface (G180)
input_error_flag = error_non
/* Measure Position */
error_item = 1
if[#[value 1] eq #0]goto 97
if[#[value 1] lt 1 || #[value 1] gt 3]goto 98
/* Work co-ord. Value */
error_item = 2
if[#[value 2] eq #0]goto 97
/* Distance for Move */
error_item = 3
if[#[value 3] eq #0]goto 97
if[#[value 1] eq 3]then
if[#[value 3] gt 0]goto 98
endif
/* Feedrate for Move */
error_item = 4
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