Probe Hole center

More
16 years 7 months ago #2142 by eslavko
Probe Hole center was created by eslavko
Hello...

I write old fashion 6 hit probe hole center routine.
1'st I jog machine into hole (routine doesn't change Z axis)
As routine works I don't like some aspects as is.

1. The curent fixture offset must be X0 Y0 (G38 doesnt work with G53)
2. Machine limits must be typed inside program (how just to copy from INI file?)
3. Machine leave in center on hole. I want to see diameter and excentricy too.
(print, ....) work if I start emc from console and output is to console.
How to output that in AXIS window like (MSG, blahblah)

Code:
F200 ;set feedrate for probe G30.1 ;Save current coordinate G38.3 Y285 ;Scan +Y limit #100 = #5062 ;Save +Y limit G30 ;Back to start cordinate G38.3 Y-4 ;Scan -Y limit G0Y[[#5062+#100]/2] ;goto aprox Y center G30.1 ;Save current coordinate G38.3 X255 ;Scan +X limit #101 = #5061 ;Save +X limit G30 ;Back to start cordinate G38.3 X0 ;Scan -X limit G0X[[#5061+#101]/2] ;goto exact X center #101= [#101-#5061] ;calculate span G30.1 ;Save current coordinate G38.3 Y285 ;Scan +Y limit #100 = #5062 ;Save +Y limit G30 ;Back to start cordinate G38.3 Y-4 ;Scan -Y limit G0Y[[#5062+#100]/2] ;goto exact Y center #100= [#100-#5062] ;calculate span #102=[#100-#101] ;excentricy (print, X span= #101) (print, Y span= #100) (print, excentricy #102) M02

Please Log in to join the conversation.

More
16 years 7 months ago #2147 by eslavko
Replied by eslavko on topic Re:Probe Hole center
I discover the answer for question 3.
Instead print I should use debug...

(debug, X span= #101)
(debug, Y span= #100)
(debug, excentricy #102)

Please Log in to join the conversation.

Time to create page: 0.147 seconds
Powered by Kunena Forum