rx8pilot
Aluminum
- Joined
- Oct 20, 2009
- Location
- Los Angeles
Haas G68 Rotation Errors [SOLVED]
I am using G68 Rotation to accommodate less than square stock on a vacuum chuck with no locating features.
The program begins with probing XYZ and also probes the edges to calculate the rotation in the X axis. This value is used with the G68 command.
The bizarre scenario is that the probe routines run fine and the offsets are perfect along with the rotation. The line G68 X0 Y0 R#189 executes and the coordinates are indeed rotated as expected. As soon as the first G00 is executed the machine goes nuts - sending the tool into outer space.
If I start the program AFTER the probing routines every works perfectly. The probing programs run fine. The main program runs fine. Both of them running together creates a bizarre behavior with G68.
I have been working on this for a day - moving, changing, deleting, adding, etc, etc every imaginable permutation of the code trying to sort out what may be causing this. I have tried on a VF2 and UMC500 - same on each. Posted with numerous post processors to see if anything pops up. Read every bit of 68 documentation I can find. So far.....nothing.
Any ideas?
Below is one iteration of the code in question. If I run the whole thing - it will alarm at N250. If I mid program start at N200 - it works as intended with the coordinates rotated.
I am using G68 Rotation to accommodate less than square stock on a vacuum chuck with no locating features.
The program begins with probing XYZ and also probes the edges to calculate the rotation in the X axis. This value is used with the G68 command.
The bizarre scenario is that the probe routines run fine and the offsets are perfect along with the rotation. The line G68 X0 Y0 R#189 executes and the coordinates are indeed rotated as expected. As soon as the first G00 is executed the machine goes nuts - sending the tool into outer space.
If I start the program AFTER the probing routines every works perfectly. The probing programs run fine. The main program runs fine. Both of them running together creates a bizarre behavior with G68.
I have been working on this for a day - moving, changing, deleting, adding, etc, etc every imaginable permutation of the code trying to sort out what may be causing this. I have tried on a VF2 and UMC500 - same on each. Posted with numerous post processors to see if anything pops up. Read every bit of 68 documentation I can find. So far.....nothing.
Any ideas?
Below is one iteration of the code in question. If I run the whole thing - it will alarm at N250. If I mid program start at N200 - it works as intended with the coordinates rotated.
Code:
%
O51177 (PART1)
G90 G94 G17
G20
(VAC CHUCK ON)
G105 A5. B1.
G53 G0 Z0.
(PROBE_Z)
T50 M6
(Stock Haas Probe)
G154 P25
G187 P3
G0 X0. Y0.
G43 Z1. H50
G65 P9832
G65 P9810 Z0.2 F100.
G65 P9811 Z0. Q0.05 S154.10
G65 P9810 Z1.
G65 P9833
G0 X0. Y0.
(PROBE_XY)
G187 P3
G0 X0. Y0.
G65 P9832
Z1.
G65 P9810 Z0.2 F100.
G65 P9812 Z-0.2431 X16.3 R0.5 Q0.5 S154.10
G65 P9812 Z-0.2431 Y10. R0.5 Q0.5 S154.10
G65 P9810 Z1.
G65 P9833
(PROBE Coordinate Rotation)
G00 G90
G154 P10
(PROTECTED POSITION)
G65 P9832
G65 P9810 X-8.5 Y5.5 F100.
G65 P9810 Z-.35 F50.
(PROBE ANGLE)
G65 P9023 A15. I8. J2. B2.
G65 P9833 (PROBE OFF)
G1 Z2. F100.
N200
(ROTATE COORDINATES)
G154 P10
G0 G90
G68 X0 Y0 R#189
(END COORDINATE ROTATION)
G53 G0 Z0.
(TEST)
T6 M6
M1
(3/8 Chamfer)
S8000 M3
G154 P10
G187 P3
N250 G0 X7.975 Y-5.325
G43 Z0.6 H6
G0 Z0.2
G1 Z0.0394 F200.
Z-0.125
Y-5.225
G3 X7.875 Y-5.125 R0.1
G1 X-7.875
G3 X-7.975 Y-5.225 R0.1
G1 Y-5.325
G0 Z0.2
Y5.325
G1 Z0.0394 F200.
Z-0.125
Y5.225
G3 X-7.875 Y5.125 R0.1
G1 X7.875
G3 X7.975 Y5.225 R0.1
G1 Y5.325
G0 Z0.6
Last edited: