Bill,
I believe i did see you
post that! Thanks for the replying.
I am fairly new to my VMC and I am complete rookie to running and programming macros
Because i was having the problems viewing the 8,000 and 9,000 programs I loaded it as a 3000 program just to try it out.
It was a while since i tried it so i don't quite remember what was working and not working but part of the way i was getting confused was the actual process...
for example if i were to load it to program 05000
i would go to the memory option,
and enter G65 P5000 S2 (that tells the controller i want to run a macro with program number 05000 and configure it to work offset 2..
Then i would go jog and move to the correct location,
Then select auto mode, cycle start.
Then select jog go to the next location
Then select auto mode, cycle start.
for the 3 points....
once thats done it should overright what ever data is in g55 right?
For the program.... this is what i will use... does it look ok?
%
O5000(CIRCLE THROUGH 3 POINTS MACRO)
M00 (MANUAL TOUCH 1 - THEN CYCLE START)
#1=#5021 (1ST X)
#2=#5022 (1ST Y)
M00 (MANUAL TOUCH 2 - THEN CYCLE START)
#3=#5021 (2ND X)
#4=#5022 (2ND Y)
M00 (MANUAL TOUCH 3 - THEN CYCLE START)
#5=#5021 (3RD X)
#6=#5022 (3RD Y)
(GET PERPENDICULAR BISECTOR OF #1, #2 and #3, #4)
#7 = [#3 + #1] / 2
#8 = [#4 + #2] / 2
#9 = #3 - #1
#10 = -[#4 - #2]
(GET PERPENDICULAR BISECTOR OF #3, #4 and #5, #6)
#11 = [#5 + #3] / 2
#12 = [#6 + #4]/ 2
#13 = #5 - #3
#14 = -[#6 - #4]
(SEE WHERE THE LINE INTERSECT)
(X-CENTRE)
#15 = [#8 * #10 * #14 + #11 * #10 * #13 - #7 * #9 * #14 - #12 * #10 * #14] / [#10 * #13 - #9 * #14]
(Y-CENTRE)
#16 = [#15 - #7] * #9 / #10 + #8
(RADIUS)
#17= SQRT[ [ [#1-#15]* [#1-#15] ]+[ [#2-#16]*[#2-#16] ]]
#[5201+[20*[#19]]]=#15 (X WORK SHIFT)
#[5202+[20*[#19]]]=#16 (Y WORK SHIFT)
M99
%