Closed DaveRosario closed 4 years ago
Hello,
I tried calling a sub but didn't catch the bug I'm not sure how to reproduce your issue
it looks like there is a bug on the 3d plotter
Hi,
Thanks for the super fast response.
base on your screen shot, if I remove the "call" so: o
Thanks, David
yes my fault
the sub gets called and path is shown in the correct place
o
You are right, if I do "o
So, I wast trying to reuse the tool_touch_off.ngc subroutine but it looks like when it switches to G59.3 it shows the part in the origin as G59.3 x,y,z offsets are 0,0,0.
if I comment out G59.3 it shows the part in the G54 offsets but it give me some errors I couldn't figure out how to reuse this so I'll have to write a subroutine for this. if you have an Idea how to modify this to make it work right please let me know.
Thanks, David
o
G92.1 (Cancel G92 offset)
G59.3
o<100> if [#
o<100> endif
o<110> if [2 EQ 2] G49 o<110> endif
G90 (set absolute coordinates)
G53 G0 Z0 (move to z0 home position)
G53 G0 X#
G91
F #
G0 Z[#
(Slow Probe Rule, if Slow Probe FR is set to 0, Slow Probe is Bypassed)
o<120> if [#
(debug, Probed Pos: #5063 Z Pos: #<_z>)
G90
G0 Z[#
o<130> if [#5070 EQ 1] (verify probe event was succesful)
o<130> else (MSG,Tool Length Offset Probe Failed) o<130> endif
(Tool Diameter Probe Mode Section, User must define this section as needed)
o<140> if [#
o<150> if [3 EQ 3] G49 o<150> endif
G90 (set absolute coordinates) G53 G0 Z0 (Send Spindle to home zero position)
(define new tool length offset parameters)
G10 L1 P #5400 Z [#
o<160> if [#
T #5400 G43 H #5400 (enable tool length offset)
o
M2
Hi,
So I think I figured it out.
Instead of switching to G59.3 I'm using G28.1 to get the absolute position of the z axis of the slow probe. It works pretty good so far.
Here is the whole modified code:
o
G92.1 (Cancel G92 offset)
(G59.3)
o<100> if [#
o<100> endif
o<110> if [2 EQ 2] G49 o<110> endif
G90 (set absolute coordinates)
G53 G0 Z0 (move to z0 home position)
G53 G0 X#
G91
F #
G0 Z[#
(Slow Probe Rule, if Slow Probe FR is set to 0, Slow Probe is Bypassed)
o<120> if [#
(debug, Probed Pos: #5163 Z Pos: #<_z>)
G90
G0 Z[ABS[#
o<130> if [#5070 EQ 1] (verify probe event was succesful)
o<130> else (MSG,Tool Length Offset Probe Failed) o<130> endif
(Tool Diameter Probe Mode Section, User must define this section as needed)
o<140> if [#
o<150> if [3 EQ 3] G49 o<150> endif
G90 (set absolute coordinates) G53 G0 Z0 (Send Spindle to home zero position)
(define new tool length offset parameters)
G10 L1 P #5400 Z [#
o<180> if [#
T #5400 G43 H #5400 (enable tool length offset)
o
M2
great you found a solution
so I'm closing this, feel free to open any issues you need
Hi,
I noticed if I call a subroutine from a .ngc the main window doesn't display the part in G54 0,0,0 but in G53 0,0,0:
However if I load the same file in Axis it shows it in the right position:
I don't know if the way I'm calling the subroutine is the best way but it works. The subroutine is to touch off on every tool change.
Thanks, David