How to save machine coordinates with tool length compensation?

More
28 Dec 2018 00:05 #122987 by 3D-Master
Hello,

how can i save the machine coordinates (g53, not g54 - g59.3) where the touch probe is atm. ?

For example:

touch probe is at x30 then touches in x+ direction until it hits the part, then backs off and touches off again, then set zero and then go back to x30 in machine coordinates.

thanks

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

More
28 Dec 2018 00:28 #122989 by Grotius
Hi 3d master,

G53 has no data. It has nothing. But you can save data if you want to.

I give you a short example :

axis.x.pos-cmd

If you connect this float value to your input 3D.comp file. It will do your trick. After that you must output is somewhere, but
that is up to you.
The following user(s) said Thank You: MaHa

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

More
28 Dec 2018 02:48 #122997 by MaHa
Or, what i use in my probing routines, to read out actual G53 startposition:
G28.1 returns xyz values to parameter #5161 #5162 #5163
The following user(s) said Thank You: 3D-Master

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

More
28 Dec 2018 12:29 #123010 by newbynobi
There are several offsets you will need to take care off.

- axis position
- G5X.offset
- tool offset
- may be even a XY rotation

Norbert

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

More
28 Dec 2018 13:46 #123016 by 3D-Master

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

More
28 Dec 2018 16:14 #123021 by KCJ
LinuxCNC returns the results of a probe in the current WCS, which unfortunately is not consistent with most other controls. Even though LinuxCNC uses the same gcode (G38) and result parameters (#5061-5069) as Fanuc controls, Fanuc probes in machine coords, while LCNC probes in the current WCS. This has tripped me up more than once!

Several of the main devs and I discussed possible solutions, including adding parameters to LCNC for the probed pos in machine coords (seb has a branch where he started to implement this), or even changing the current behaviour to be fully compatible with Fanuc. The full discussion thread is in the dev mailing list. No additional progress has been made, and I don't expect any.

Workaround

A workaround I came up with was to make use of parameter indirection to get the offset of the currently active WCS and add the probed pos value to that to get the probed pos in ABS coords.

Calculate ABS z pos at which probe tripped:
#<abs_probed_z_pos> = #[5203 + [20 * #5220]] + #5063

If you need the probed post for other axes simply replace the x below with the axis number. (x = 1, y = 2, z = 3 ....)
#<abs_probed_pos> = #[520x + [20 * #5220]] + #506x

Cheers,
Kurt

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

More
28 Dec 2018 17:47 - 28 Dec 2018 17:50 #123023 by 3D-Master
Okay using G28.1 and then G53 G90 G0 X#<x> (#<x> was defined before using #5161) worked perfectly :)
Last edit: 28 Dec 2018 17:50 by 3D-Master.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum