333
« on: September 05, 2008, 02:30:17 PM »
I'm new to using offsets so I thought I write a short program to see if my understanding is correct. I won't attach it as someone may be able to explain what's going on just by looking at the code below. I haven't run it on my machine yet but, by following the machine co-ordinates DRO it looks like it is working properly but the toolpath screen seems confused.
It should machine three 1" squares the first with it's bottom left corner at 0,0 the second starting at the upper right corner of the first at 1,1 and the third starting at the upper right corner of the second at 2,2.
Maybe someone can explain why the machine co-ordinates DRO looks corect but the toopath seems to write over the same squares more than once it might help me. (I tried bot normal and table modes of toolpath and neither looked correct)
Thanks
Sage
(Setup as follows)
(manually set the following X,Y fixture offsets in config)
(G54 is co-ordinates 0,0)
(G55 is co-ordinates 1,1)
(G56 is co-ordinates 2,2)
(Z is zeroed at work surface)
(Set M1 optional stop on to observe movement)
(ref all home)
(run program)
(tool path screen shows ok with 3 boxes linked top left to bottom right)
(if program is run production movements are correct on machine co-ordinates DRO)
(on tool path screen production movements are confused)
(program starts here)
M1 (stop to view screen)
Z.1 (tool up to stay clear)
G54 (reset offsets)
G0X0Y0 (go fast to 0,0)
m1 (stop to view screen)
Z-.010F1 (tool slowly into work 10thou)
X1F5 (mill a 1" square)
Y1
X0
Y0
G0Z.1 (tool up quickly)
g55 (Load second set of offsets)
G0X0Y0 (go quickly to new 0,0 location which is actually 1,1)
m1 (stop to view screen)
Z-.010F1
X1F5 (mill a 1" square)
Y1
X0
Y0
G0Z.1
g56
G0X0Y0 (go quickly to new 0,0 location which is actually 2,2)
m1
Z-.010F1
X1F5
Y1
X0
Y0
G0Z.1
G54 (cancel offsets)
M30 (end and rewind)