So I'm starting to use my 4th axis and have figured out how to enable the axis and so forth in my Fusion 360 post processor. Got the 4th axis enabled and calibrated in UCCNC.
Everything seems to be fine, location-wise, but I almost crashed the tool during an A-axis rotation.
What I noticed was that the Z-plunge from clearance to feed plane happened while the A-axis was still rotating - i.e. catching up to the commanded position. Program is a simple series of holes drilled in a round part at 90 increments, but the holes are just about in between the chuck jaws.
Here's the section of code in question, ignoring previous stuff and setup:
G61
G54
G0 A0.
M8
G43 H1
G0 X-2.4155 Y0.
Z3.1225 [clearance plane]
Z2.1225 [feed plane]
G81 X-2.4155 Y0. Z1.5725 R1.7225 F39
Z3.1225
G80
G0 A90
Z2.1225 [Yikes!]
G81 X-2.4155 Y0. Z1.5725 R1.7225 F39
Z3.1225
G80
The issue came when the G0 A90 was executed and then the Z2.1225. The A axis started moving, but because my 4th's rapid speed is only about 15RPM the Z2.1225 was executed at 150IPM while the A-axis was still lazily rotating to 90 degrees. The tool got to Z2.1225 well before the A-axis was finished, and the tool tip missed the chuck by about 0.050." After changing my underwear, I decided to call it quits until sorting it out.
Setting the feed plane higher would obviously fix this particular problem. However, I'd like to understand how to do this properly, whether it's a UCCNC setting or simple G-code thing.
How do I force the machine to wait until one move is finished before starting another? I could program a G4 Pxx dwell - but I don't want to have to time the 4th axis and program a specific dwell for each angular distance.
Does G4 P0 force the controller to finish the previous move before a '0' time dwell and then move to the next command?
Or is there a setting - perhaps exact stop mode - in UCCNC I'm overlooking? I thought the G61 at the beginning would have taken care of waiting for each move to complete.
I don't really want to program a 5-10 second delay after each rotational move - that'd be painful to watch with a spot-drill-chamfer-tap process...
Thanks,
Spumco