LinuxCNC Features - a kind of NGCGUI

More
13 years 3 months ago #37071 by pacoblasco
For example, to search a hole center, is it possible to launch directly pressing one button, or you must save the g-code and then, launche the g-code?

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #37290 by pacoblasco
Working perfectly!!!!

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #37291 by pacoblasco
Problem with probe tenmplate on mill machine

Hi:

Now, Im really working with your stuff (nice!), and I've found waht I beleive it is a mistake and now I'm trying to solve (as help). The problem is the sign of the latch direction. On most of the mill machine, the Z axis is working in opposite direction. So, the conditions for latch couldn't be if the latch is bigger or lower than zero. It must be bigger than zero, and in the OPPOSITE direction to the probing direction.

(Probe down)
(Probe SUB)
(G38.2 - probe toward workpiece, stop on contact, signal error if failure)
(G38.3 - probe toward workpiece, stop on contact)
(G38.4 - probe away from workpiece, stop on loss of contact, signal error if failure)
(G38.5 - probe away from workpiece, stop on loss of contact)

O<th_probe> SUB
#<probe_func> = #1
#<feed> = #2
#<latch> = #3
#<latch_feed> = #4
(#5-#13 - axes)

G91 (incremental distance)

G#<probe_func> F#<feed> X#5 Y#6 Z#7
#<l> = [ #<latch> / SQRT[#5*#5 + #6*#6 + #7*#7] ] (probe length)

O<probe-if-00> IF [#<latch> GT 0] AND (latch towards material)
#<l> = [-#<l>]
G0 X[#5*#<l>] Y[#6*#<l>] Z[#7*#<l>]
#<l> = [-#<l>*2]
G#<probe_func> F#<latch_feed> X[#5*#<l>] Y[#6*#<l>] Z[#7*#<l>]
O<probe-if-00> ENDIF

O<probe-if-01> IF [#<latch> LT 0] (latch backwards material)
(print ["%s - %s"%/i,/ for i in [38.2,38.3,38.4,38.5]])
(Flip probe func )
#<probe_func> = [[#<probe_func>*10-380] MOD 4 / 10 + 38.2]
G#<probe_func> F#<latch_feed> X[#5*#<l>] Y[#6*#<l>] Z[#7*#<l>]
O<probe-if-01> ENDIF
G1 X[#8] F[#<_global_probe_feed>]

G90 (Absolute distance mode)

O<th_probe> ENDSUB


(O<th_probe> call [38.2] [#<_global_probe_feed>] [#<_global_latch>] [#<_global_latch_feed>] [0] [0] [-100] [5])
O<th_probe> call [38.2] [50.0 ] [-0.5] [10.0 ] [0] [0] [-100] [5]

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago - 13 years 3 months ago #37292 by pacoblasco
That's is working for me:
Code:
G#<probe_func> F#<feed> X#5 Y#6 Z#7 #<l> = [ #<latch> / SQRT[#5*#5 + #6*#6 + #7*#7] ] (probe length) O<probe-if-00> IF [[#<latch> NE 0] AND [[#5+#6+#7]*#<latch> GT 0]] (latch towards material) #<l> = [-#<l>] G0 X[#5*#<l>] Y[#6*#<l>] Z[#7*#<l>] #<l> = [-#<l>*2] G#<probe_func> F#<latch_feed> X[#5*#<l>] Y[#6*#<l>] Z[#7*#<l>] O<probe-if-00> ENDIF O<probe-if-01> IF [[#<latch> NE 0] AND [[#5+#6+#7]*#<latch> LT 0]] (latch backwards material) (print ["%s - %s"%/i,/ for i in [38.2,38.3,38.4,38.5]]) (Flip probe func ['38.2 - 38.4', '38.3 - 38.5', '38.4 - 38.2', '38.5 - 38.3']) #<probe_func> = [[#<probe_func>*10-380] MOD 4 / 10 + 38.2] #<l> = [-#<l>] G#<probe_func> F#<latch_feed> X[#5*#<l>] Y[#6*#<l>] Z[#7*#<l>] O<probe-if-01> ENDIF G1 Z[#8] F[#<_global_probe_feed>]
Last edit: 13 years 3 months ago by pacoblasco.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #37297 by Nick
That's is working for me:
What have you changed exactly?
As I remember if latch is less than 0 then we are latching in oposite direction. No mater of direction of the axis.
So probe in the direction
(0,0,-10) (downwards) with latch -1 will do
probing to Z-10
then probing to
Z[-10*latch] = Z[-10*-1/10] = Z1 (in relative coords, i.e. upwards)

if latch is GT 0, latch =1
probe to Z-10
go up to Z[-10 * [-latch]] = Z1
then probe to Z[2*[-latch]] = Z-2

That is how it supposed to work...
is it possible to launch directly pressing one button, or you must save the g-code and then, launche the g-code?
You will have to press refresh or select autorefresh and you'll have to open probing subroutine or remove all features and add new Probing feature.

Working perfectly!!!!
Great, can you shoot any videos? :)

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #37309 by pacoblasco

Nick wrote: That's is working for me:
What have you changed exactly?
I've attached the probe_file. Only one line chnage. I believe that the fix it is needed.
As I remember if latch is less than 0 then we are latching in oposite direction. No mater of direction of the axis.
So probe in the direction
(0,0,-10) (downwards) with latch -1 will do
probing to Z-10
then probing to
Z[-10*latch] = Z[-10*-1/10] = Z1 (in relative coords, i.e. upwards)

if latch is GT 0, latch =1
probe to Z-10
go up to Z[-10 * [-latch]] = Z1
then probe to Z[2*[-latch]] = Z-2

That is how it supposed to work...
is it possible to launch directly pressing one button, or you must save the g-code and then, launche the g-code?
You will have to press refresh or select autorefresh and you'll have to open probing subroutine or remove all features and add new Probing feature.

Working perfectly!!!!
Great, can you shoot any videos? :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.250 seconds
Powered by Kunena Forum