Terry,
For Fanuc and similar controls you can use macro variables to control
program flow with multiple options. The machinist simply sets the
chosen macro variable as needed. One nice aspect is the macro setting
can be retained through powering down the machine (block skip resets to
the default (off) state after power up on some machines).
For example:
(SET MACRO #500=1 FOR PART A)
(SET MACRO #500=2 FOR PART B)
(SET MACRO #500=3 FOR PART C)
(TEST FOR VALID SETTING:)
IF[#500EQ1]GOTO9000
IF[#500EQ2]GOTO9000
IF[#500EQ3]GOTO9000
#3000=1(IMPROPER VALUE FOR #500)
N9000(CONTINUE)
IF[#500EQ1]GOTO9001
---SKIP OVER THIS IF PART IS A---
N9001(CONTINUE)
IF[#500NE1]GOTO9002
---RUN THIS FOR PART A ONLY---
N9002(CONTINUE)
Regards,
Dave Ford
NC Programming Mgr.
G.W. Lisk Co.
Clifton Springs, NY 14432
(315) 462-4381
P Please consider the environment before printing this email - be green,
keep it on the screen!