717
« on: November 20, 2017, 06:13:15 PM »
Okay. That's great.
Here is a very VERY rough idea of what we want to accomplish.
Is this the right track at all?
O1000
#YAxis
#XAxis
#100 = GrindToDimension
#101 = Rough Increment 1
#102 = Rough Increment 2
#103 = Finish Increment
#104 = Spark Outs
#105 = X Start
#106 = X End
#107 = Feed Left
#108 = Feed Right
#109 = Grind Feed
M3 (Spindle On)
M8 (Coolant On)
(Rough Grind until the first switch.)
WHILE [#1000 NE 1]
DO
G91G01 Y [#101] F [#109] (Feed in the Rough 1 Increment amount.)
G90G01 X [#106] F [#107] (Feed XStart to XEnd)
G90G01 X [#105] F [#108] (Feed XEnd to XStart)
END
(Rough Grind until the second switch.)
WHILE [#1001 NE 1]
DO
G91G01 Y [#102] F [#109] (Feed in the Rough 2 Increment amount.)
G90G01 X [#106] F [#107] (Feed XStart to XEnd)
G90G01 X [#105] F [#108] (Feed XEnd to XStart)
END
(Finish Grind until the third switch.)
WHILE [#1002 NE 1]
DO
G91G01 Y [#103] F [#109] (Feed in the Finish Increment amount.)
G90G01 X [#106] F [#107] (Feed XStart to XEnd)
G90G01 X [#105] F [#108] (Feed XEnd to XStart)
END
M5 (Spindle Off)
M9 (Coolant Off)
M30 (End Program)