mnrite
03-17-2007, 07:43 PM
If I had a program for a part that looked like this
MS,1.7,0.5
JZ,1.000
J2,0.000,0.000
J3,12.000,12.000,0.250
M3,12.000,12.000,-1.000
M3,24.000,12.000,-1.000
M3,24.000,24.000,-1.000
M3,12.000,24.000,-1.000
M3,12.000,12.000,-1.000
J3,12.000,12.000,0.250
J3,0.000,0.000,1.000
JZ,1.000
J2,0.000,0.000
and I wanted to cut a random amount and then quit, would the program look like this?
MS,1.7,0.5
JZ,1.000
J2,0.000,0.000
start;
J3,12.000,12.000,0.250
M3,12.000,12.000,-1.000
M3,24.000,12.000,-1.000
M3,24.000,24.000,-1.000
M3,12.000,24.000,-1.000
M3,12.000,12.000,-1.000
J3,12.000,12.000,0.250
INPUT{"Do you want to cut another part Y/N"}&x
IF &x=y THEN GOTO start
If &x=n THEN GOTO end
end;
J3,0.000,0.000,1.000
JZ,1.000
J2,0.000,0.000
Thanks
Mike
MS,1.7,0.5
JZ,1.000
J2,0.000,0.000
J3,12.000,12.000,0.250
M3,12.000,12.000,-1.000
M3,24.000,12.000,-1.000
M3,24.000,24.000,-1.000
M3,12.000,24.000,-1.000
M3,12.000,12.000,-1.000
J3,12.000,12.000,0.250
J3,0.000,0.000,1.000
JZ,1.000
J2,0.000,0.000
and I wanted to cut a random amount and then quit, would the program look like this?
MS,1.7,0.5
JZ,1.000
J2,0.000,0.000
start;
J3,12.000,12.000,0.250
M3,12.000,12.000,-1.000
M3,24.000,12.000,-1.000
M3,24.000,24.000,-1.000
M3,12.000,24.000,-1.000
M3,12.000,12.000,-1.000
J3,12.000,12.000,0.250
INPUT{"Do you want to cut another part Y/N"}&x
IF &x=y THEN GOTO start
If &x=n THEN GOTO end
end;
J3,0.000,0.000,1.000
JZ,1.000
J2,0.000,0.000
Thanks
Mike