QtDragonHD tool sensor help for a maker space

More
2 years 10 months ago #289210 by warwickben
hello,
Ive been helping my maker space setup their cnc router on linux cnc , ive setup my own lathe in the past and but never had a use for probes for that. i also maintain and teach people at the maker space how to use the tormach we have.

ill try to give as much info as i can.  im a machinist by trade ,manual, and cnc programming and operating.

In the ini file i know we have versa probe commented out  so we are on basic probe. when we had versa probe not commented out and probe basic commented out when we click on the probe tabs it gave error codes etc.  from my understanding if all the probes are the same type ie normally open they will work fine being on the same pin.

simple test of the probe only doing z surface, comes down and changes our current z wcs zero. (worried about a probe in a maker space lol)

touch plate , that works correctly also comes down changes the current z vaule with the added thickness.

when i try todo the tool sensor is what im having issues with. when i click the button to go to sensor is dose that, when i click the tool sensor button it will then go and probe the tool.   the issue is it changes the current wcs z vaule to a vaule of -46.XXX i forget the decimal numbers. and dose not store the tool off set vaule.

from running haas and other vmc you leave the probe as a set tool number (we allways have it as the last tool pocket) all z vaules in the offset pages should be negative z vaules.  since they are machine cord.

thanks in advance.    any questions or files needed to review let me know.




 

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

More
2 years 10 months ago #289230 by cmorley
What version of linuxcnc are you using and how did you get it please?
Sounds like you may have an older version - shouldn't get errors.

Probing could be improved for sure. I have a hard time testing at the moment with my setup.

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

More
2 years 10 months ago #289243 by warwickben
Fresh install of Debian 12, then linuxcnc from the package handler .

The only error message we got was when we had versa probe un commented and basic probe commented out . I believe that was because we did not do some of the changes for versa probe that are in the docs. Switched , The other one just worked other then the tool sensor issue .
Even done sudo update/upgrade a couple of times.

The only real issue is the tool setter dose not change the z length vaule in the tool table and the currently wcs z become -46.xxx inches . I even tried probing say tool 1 then tool 2 . Had the same out come. No values in the tool table added and z wcs -46.xxx inches .

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

More
2 years 10 months ago #289299 by cmorley
Unfortunately the official Debian version is quite behind our 2.9 release.

Neither probe basic nor touchplate are for setting tool length in the tooltable.

here is the rough touchplate code (just look at the MDI commands):
Code:
    def touchoff(self):         name = 'Touchoff'         ACTION.CALL_MDI("G10 L20 P0 Z0")         rtn = self.probe_down()         if rtn != 1:             ACTION.CALL_MDI("G90")             return '{} failed: {}'.format(name, rtn)         cmdList = []         cmdList.append("G10 L20 P0 Z{}".format(self.z_offset))         cmdList.append("G1 Z{} F{}".format(self.retract_distance, self.search_vel))         cmdList.append("G90")         rtn = self.CALL_MDI_WAIT(cmdList, self.timeout)         if rtn != 1:             return '{} failed: {}'.format(name, rtn)         return 1

So they set the user system origin of Z for the current tool (by using G10 L20)
I personally don't know enough about what calculations to make to instead record length in the tool table (using G10 L10)
basic probe is the same - sets origin with G10 L20 or L2

Versa probe has two buttons and routines set up but i disabled them as I can not test the behaviour at this time.
If you are interested and capable of testing/suggesting changes of these routines, I would be happy to help.

But first you should get the latest 2.9.2 version of linuxcnc from us. it has a lot of bug fixes in it.

Chris

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

More
2 years 10 months ago - 2 years 10 months ago #289310 by warwickben
thank you for the reply.
ill get linuxcnc updated to 2.9.2

one thing im confused about.
is versa probe vs probe basic just what the probing GUI window looks like and what sub routines they uses in that tab and the touch plate / tool sensor are separate from them?

to make things clear.
currently we have probe basic un commented and versa probe commented out.
click the probe tab, can run the probe routines and they set the wcs correctly.
we click the touch plate button and the tool will touch off the plate and set the wcs Z based off the value of the plate we entered. so those are workign fine.

the issue
go to sensor button will send the machine to sensor location we entered in the settings tab for it. so that works fine.
when we click the tool sensor button the spindle will move and touch off . but all it dose is make the wcs z -46 inche vs storing g53 z vaule in the tool table.

ill get linuxcnc updated to 2.9.2 today, and see if we have the same result.

im up for doing testing and making suggestions for how the tool setter should work/with the probe. ill admit as a machinist/programmer/operator i never use the advance gcodes/mdi for tool length setting/wcs setting so im confused exactly what code is doing what. but i can explain what the machine should be doing and values its storing etc.
i can also explain from the point of view of someone who runs factory machines with a probe and tool setter, the order of operation for using a probe and a tool setter for a machine that has a ATC, and a machine when you have to do manual tool changes with a spindle that tools are not indexed to (er collet spindles or router spindles, vs manual change on a bt/cat/iso spindle etc)
i can also explain how a tool that has a face larger then the the tool setter is probed compared to a tool that is the same size or smaller then the setting surface. 
Last edit: 2 years 10 months ago by warwickben.

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

More
2 years 10 months ago - 2 years 10 months ago #289346 by cmorley
Here is a little more detail of touchplate and sensor probing:
Code:
    def touchoff(self, selector):         if selector == 'touchplate':             z_offset = float(self.w.lineEdit_touch_height.text())         elif selector == 'sensor':             z_offset = float(self.w.lineEdit_sensor_height.text()) - float(self.w.lineEdit_work_height.text())         else:             self.add_alarm("Unknown touchoff routine specified")             return
so the sensor will calculate the Zoffset as (entered in qtdragon) sensor height - workheight
It replicates a manual way to do this:
linuxcnc.org/docs/stable/html/gui/qtdrag...uto_tool_measurement
 
Last edit: 2 years 10 months ago by cmorley.

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

Moderators: cmorley
Time to create page: 0.254 seconds
Powered by Kunena Forum