We've ruled out some variables that may be causing the failure. We're assuming the issue has to do with probing/reading xyz coordinates.
The program does work without applying a probing/rotation cycle.
If you see and potential issues in the code, if you could please point it out.
The error 304 is happening on this line:
N235 G18 G2 X-3.7632 Z-0.0197 I0.05 K0.
(This is the initial lead in radius, in the facing operation)
(Probe WCS2)
N25 T30 M6
(Stock Haas Probe)
N30 G54
N35 G0 X0. Y0.
N40 G43 Z6.1024 H30
N45 T6
N50 G65 P9832
N55 G65 P9810 Z0.1969 F39.37
N60 G65 P9810 Z-0.3208
N65 G65 P9814 D1.063 Q0.3937 S1.
N70 G54
N75 G65 P9814 D1.063
N80 #100=#185
N85 #101=#186
N90 G65 P9810 Z0.1969
N95 G0 Z6.1024
N100 G65 P9833
(Probe WCS2 2)
N105 G1 X14.3622 Y0. F500.
N110 G65 P9832
N115 G0 Z6.1024
N120 G65 P9810 Z0.1969 F39.37
N125 G65 P9810 Z-0.3208
N130 G65 P9814 D1.063 Q0.3937
N135 #102=#185
N140 #103=#186
N145 G53
N150 #189=ATAN[#103-#101]/[#102-#100]
N155 G65 P9810 Z0.1969
N160 G0 Z6.1024
N165 G65 P9833
N170 M5
N175 G53 G0 Z0.
N180 G68 X#100 Y#101 R#189
The program does work without applying a probing/rotation cycle.
If you see and potential issues in the code, if you could please point it out.
The error 304 is happening on this line:
N235 G18 G2 X-3.7632 Z-0.0197 I0.05 K0.
(This is the initial lead in radius, in the facing operation)
(Probe WCS2)
N25 T30 M6
(Stock Haas Probe)
N30 G54
N35 G0 X0. Y0.
N40 G43 Z6.1024 H30
N45 T6
N50 G65 P9832
N55 G65 P9810 Z0.1969 F39.37
N60 G65 P9810 Z-0.3208
N65 G65 P9814 D1.063 Q0.3937 S1.
N70 G54
N75 G65 P9814 D1.063
N80 #100=#185
N85 #101=#186
N90 G65 P9810 Z0.1969
N95 G0 Z6.1024
N100 G65 P9833
(Probe WCS2 2)
N105 G1 X14.3622 Y0. F500.
N110 G65 P9832
N115 G0 Z6.1024
N120 G65 P9810 Z0.1969 F39.37
N125 G65 P9810 Z-0.3208
N130 G65 P9814 D1.063 Q0.3937
N135 #102=#185
N140 #103=#186
N145 G53
N150 #189=ATAN[#103-#101]/[#102-#100]
N155 G65 P9810 Z0.1969
N160 G0 Z6.1024
N165 G65 P9833
N170 M5
N175 G53 G0 Z0.
N180 G68 X#100 Y#101 R#189