qtdragon - probing issues

More
12 May 2023 15:51 #271235 by cmorley
Replied by cmorley on topic qtdragon - probing issues
Sorry I wasn't clear.

If the entered probe data is meant to always be in machine units. then the probe routines should check that linuxcnc is in the proper units before starting probing. ie metric machine should probe in g21.
I don't think qtvcp's routines checks that.

What really should be done is (I think):
record the current machine units before probing
switch if (required) to machine units for probing
switch back (if required) to recorded units.
Error catching makes this more difficult as linuxcnc is not good at allowing a routine to 'reset' things at error. It's one of the reasons we use complicated python routines in qtvcp.
There is m70/m72 that can do the recording/restoring, not sure how it works with errors.
It would be super useful if modes could be set directly from python code...

Does this seem right/reasonable to you?

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

More
12 May 2023 16:40 #271241 by cmorley
Replied by cmorley on topic qtdragon - probing issues

rodw post=271209 userid=20660Sorry,
When I look at what I said above, the diagram related to inside corners.
OK, I see your point with the start move.
But it does not excuse the probe going the wrong way after the second touch off and causing a  probe error  while not probing.
It does this when its found the first edge.

 

Lets try adding detail.
Lets discus inside probing using the top right button in basic probe (back_right_inside).
The most important settings to change:
XY Clearance  -distance away from edge before rough probing
Z Clearance   -distance from probe to top of material
Extra Depth   -distance to lower probe from top of material
Edge Width    -distance along edge (away from corner) to start probing.

sequence:
manual set probe at the intersection of the edges (ie corner) of material as described by the green bullseye on the button. Set it Z CLEARANCE above the top of material. These can be done by eye.

set EXTRA CLEARANCE to a value that you want the probe to go below the _top_ of material.
(So the probe will move from it's start position down  Z Clearance + Extra Clearance distance)

set XY CLEARANCE to a value that definitely gives clearance from the wall so when the probe goes down it doesn't hit anything.

set EDGE WIDTH to a value that describes the distance measured from the corner, along the wall to where you wish to probe. this edge distance will be used along the X wall and then the Y wall.

sequence after pressing the button:
-rapid edge width distance away from corner at the same time moving XY clearance away from edge. So this is a slightly diagonal move.
- move probe down by Z Clearance + extra Depth
- probe wall twice (rough and fine)
- move diagonally to the other wall as set by edge width and XY clearance
- probe wall twice
- raise probe up by Z Clearance + extra Depth
- rapid back to starting corner, now calculated using the probed walls.
- if auto zero button is set set X and Y of the current user system to zero.

Can you confirm this sequence?
The following user(s) said Thank You: rodw

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

More
12 May 2023 23:30 #271265 by Roguish
Replied by Roguish on topic qtdragon - probing issues
Sorry, been out of the conversation for a while.

Have the changes all been pushed? to 2.9, to master (2.10 pre)?
if you push 'em they'll get into Seb's debs, and I'll be happy to test......

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

More
13 May 2023 00:30 #271266 by cmorley
Replied by cmorley on topic qtdragon - probing issues
I just pushed to 2.9/master and deleted the feature branch.
The following user(s) said Thank You: Roguish, rodw

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

More
13 May 2023 01:25 #271268 by rodw
Replied by rodw on topic qtdragon - probing issues
Chris, thanks a lot for this! very nice work... Surely we have the bugs pretty well squashed now!
Did you update the type on the external offsets too (from another thread)?

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

More
13 May 2023 01:58 - 13 May 2023 01:59 #271269 by cmorley
Replied by cmorley on topic qtdragon - probing issues
Yes fixed up the external offsets stuff too.
Surely there will be some more little things along the way.
Thanks for testing and the feedback.
Last edit: 13 May 2023 01:59 by cmorley.
The following user(s) said Thank You: tommylight, rodw

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

More
13 May 2023 14:08 #271287 by cmorley
Replied by cmorley on topic qtdragon - probing issues

If you are asking does it automatically set g20/g21 based on machine units before probing.
I don't think it does - which does seem a bad idea.
Which behaviour do you think is a bad idea? It isn't entirely clear from the way you wrote this. 
 

I just pushed code that uses m70/72 to record/reset the motion modes before/after probing.
Seems to work fine - though I haven't tested it much.
The following user(s) said Thank You: Roguish

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

More
13 May 2023 14:19 #271289 by Roguish
Replied by Roguish on topic qtdragon - probing issues
and it's Saturday morning, the 13th, and the changes are already in Seb's debs.
I will update my little mill and check 'en out.
thanks

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

More
13 May 2023 17:10 - 13 May 2023 17:11 #271294 by Roguish
Replied by Roguish on topic qtdragon - probing issues
Chris,
well, updated.  testing
a couple of small things.
for the 'Outside Boss'  (center pick on the Outside page)  the X Neg and X Pos results are backwards, as are the Y Neg and Ypos.
I think the assignments in probe_routine.py (line 658, etc) are backwards.  see the image attached.

also the move from the -x probe completion over to the +x probe is too big.

        # move X+ 2 * (edge_length + xy_clearance)      
        aa = 2 * (self.data_side_edge_length + self.data_xy_clearance)
        s = """G91
        G1 F%s X%f

aa = 2*(1.5 +.3) ==3.6
it should be the -x radius just determined (xpres) + edge_length + xy_clearance
aa= 1.2174 + 1.5 +.3 == 3.0174

remember going out it moved (edge_length + xy clearance) = 1.5 +.3 = 1.8
so essentially ya just go back to the center and then out the same as the first out.

and the same goes for the Y probing.
Just my opinion.
The inside-pocket works fine.....
 
Attachments:
Last edit: 13 May 2023 17:11 by Roguish. Reason: clarification

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

More
13 May 2023 17:33 #271302 by cmorley
Replied by cmorley on topic qtdragon - probing issues
Thanks for testing.
Sounds like the similar problem with hole probing.
maybe this (have to account for latch return distance that is already moved:
(2 *self.data_side_edge_length) + latch_return + self.data_xy_clearance)

I'll look at those result calculations.
The following user(s) said Thank You: Roguish, rodw

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

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