I've been reading the programming manual but I'm lost on this one. Say I have 2 vises on my machine 10" on center and I've got stock in each that I want to run a program like the following on. I want to loop the program with a 10" step in the X over to the second vise so I can cut that part. Assume I've got X0Y0 centered over the first part. I figure I need a G91 line with an incremental X for the 10" move but I don't want it to move before it does the first piece. Here's my base code:
%N5G0G90X0Y0T1M6
N6G00X0 . 0Y3 . 0
N10G00Z-0 . 980
=N30/10
N11G01G91Z-0 . 020F200
N15G03G90X-3 . 0Y0 . 0I0 . 0J3 . 0F320
N20G03X0 . 0Y-3 . 0I3 . 0J0 . 0
N25G03X3 . 0Y0 . 0I0 . 0J3 . 0
N30G03X0 . 0Y3 . 0I3 . 0J0 . 0
N50G0G90X0Y0M2
E
And what I think I need to do:
%N5G0G90X0Y0T1M6
=N40/1
N6G00X0 . 0Y3 . 0
N10G00Z-0 . 980
=N30/10
N11G01G91Z-0 . 020F200
N15G03G90X-3 . 0Y0 . 0I0 . 0J3 . 0F320
N20G03X0 . 0Y-3 . 0I3 . 0J0 . 0
N25G03X3 . 0Y0 . 0I0 . 0J3 . 0
N30G03X0 . 0Y3 . 0I3 . 0J0 . 0
N40G0G91X10 . 0
N50G0G90X0Y0M2
E
This would be a nested loop of course with the circle loop in there. Do I have this correct or am I off somehow. I believe it will follow the loop for N30 to completion then set over incremental 10" for N40 and repeat the N30 loop finally skipping N40 and going to N50 to stop the program and return to X0Y0.
If this works it will make a bunch of parts easier to make since I'll have less stock changes. In one case I cut 2" disks out of 0.0250" steel plate and I'd like to loop 8-10 times rather than move the stock manually after each disk. I unsure in this case whether the line =N40/1 should actually be =N40/0 so it skips N40 on the second part.
The machine in a Bridgeport Boss 5 CNC and has to do circles in quadrants. Also isn't there a way to turn off the decel between quadrants? Max feedrate is 38 IPM (380) and I'd love for it not to slow down at the end of each quadrant.
%N5G0G90X0Y0T1M6
N6G00X0 . 0Y3 . 0
N10G00Z-0 . 980
=N30/10
N11G01G91Z-0 . 020F200
N15G03G90X-3 . 0Y0 . 0I0 . 0J3 . 0F320
N20G03X0 . 0Y-3 . 0I3 . 0J0 . 0
N25G03X3 . 0Y0 . 0I0 . 0J3 . 0
N30G03X0 . 0Y3 . 0I3 . 0J0 . 0
N50G0G90X0Y0M2
E
And what I think I need to do:
%N5G0G90X0Y0T1M6
=N40/1
N6G00X0 . 0Y3 . 0
N10G00Z-0 . 980
=N30/10
N11G01G91Z-0 . 020F200
N15G03G90X-3 . 0Y0 . 0I0 . 0J3 . 0F320
N20G03X0 . 0Y-3 . 0I3 . 0J0 . 0
N25G03X3 . 0Y0 . 0I0 . 0J3 . 0
N30G03X0 . 0Y3 . 0I3 . 0J0 . 0
N40G0G91X10 . 0
N50G0G90X0Y0M2
E
This would be a nested loop of course with the circle loop in there. Do I have this correct or am I off somehow. I believe it will follow the loop for N30 to completion then set over incremental 10" for N40 and repeat the N30 loop finally skipping N40 and going to N50 to stop the program and return to X0Y0.
If this works it will make a bunch of parts easier to make since I'll have less stock changes. In one case I cut 2" disks out of 0.0250" steel plate and I'd like to loop 8-10 times rather than move the stock manually after each disk. I unsure in this case whether the line =N40/1 should actually be =N40/0 so it skips N40 on the second part.
The machine in a Bridgeport Boss 5 CNC and has to do circles in quadrants. Also isn't there a way to turn off the decel between quadrants? Max feedrate is 38 IPM (380) and I'd love for it not to slow down at the end of each quadrant.