Atomkinder
Titanium
- Joined
- May 8, 2012
- Location
- Mid-Iowa, USA
This has gone all sorts of weird. I have run this program before.
The circumstance is that I have a rectangular tube that needs to be cut down, but it's welded to a plate that cannot be easily aligned, plus the tube is of course not perfectly square. To avoid hand-aligning each one (we usually do 2-4 at a time - they come in pairs) I wrote a short probing routine to set the center of the tube and the angle so it doesn't need to be perfectly square. The last time I ran this it worked perfectly. This time I made two small changes and it is now outputting the Y offset incorrectly.
Code:
G90 G94 G17
G20
G53 G0 Z0.
T40 M6
T4
G0 G54 X0 Y.5 <-- This used to be Y0, but has been changed to avoid a weld seam that previously was not on a centerline.
G43 Z6. H40
G103 P1
G65 P9832
G65 P9810 Z3.5 F100.
G65 P9812 X8.86 Q.25 S1
G65 P9812 Y4.95 Q1. S1 <-- this used to be Q.25 as a "just in case" overtravel, but changed to allow for the 1/2" offset in the beginning position.
G54
G65 P9810 Y-2.5 F100.
G65 P9843 Y-2.75 D6. Q.25
G65 P9810 Z6. F100.
G65 P9833
G103
G0 G53 Z0.
I first noticed the issue when the P9810 move to Y-2.5 stopped with an obstruction alarm. Changed it to -2.35, got it again, -2.2 and again, and then block skipped it entirely. After it ran successfully I noticed the tool was starting awfully far from the part, so checked X0 Y0 and it was a half inch down in Y from where it should be. I have no idea how this is happening. The probe is good, we calibrate regularly, and when the machine was turned off on Friday it had been working as expected.
Any ideas? The Inspection Plus manual (that I followed in the first place) says this should all be just fine.
The circumstance is that I have a rectangular tube that needs to be cut down, but it's welded to a plate that cannot be easily aligned, plus the tube is of course not perfectly square. To avoid hand-aligning each one (we usually do 2-4 at a time - they come in pairs) I wrote a short probing routine to set the center of the tube and the angle so it doesn't need to be perfectly square. The last time I ran this it worked perfectly. This time I made two small changes and it is now outputting the Y offset incorrectly.
Code:
G90 G94 G17
G20
G53 G0 Z0.
T40 M6
T4
G0 G54 X0 Y.5 <-- This used to be Y0, but has been changed to avoid a weld seam that previously was not on a centerline.
G43 Z6. H40
G103 P1
G65 P9832
G65 P9810 Z3.5 F100.
G65 P9812 X8.86 Q.25 S1
G65 P9812 Y4.95 Q1. S1 <-- this used to be Q.25 as a "just in case" overtravel, but changed to allow for the 1/2" offset in the beginning position.
G54
G65 P9810 Y-2.5 F100.
G65 P9843 Y-2.75 D6. Q.25
G65 P9810 Z6. F100.
G65 P9833
G103
G0 G53 Z0.
I first noticed the issue when the P9810 move to Y-2.5 stopped with an obstruction alarm. Changed it to -2.35, got it again, -2.2 and again, and then block skipped it entirely. After it ran successfully I noticed the tool was starting awfully far from the part, so checked X0 Y0 and it was a half inch down in Y from where it should be. I have no idea how this is happening. The probe is good, we calibrate regularly, and when the machine was turned off on Friday it had been working as expected.
Any ideas? The Inspection Plus manual (that I followed in the first place) says this should all be just fine.
Last edited: