Inconsistent values from Versaprobe

More
1 year 11 months ago #315003 by gardenweazel
I noticed that the following code appears well into the SUB:

o300 if [#<_hal[qtversaprobe.enable]> EQ 0]
   (MSG, Auto Tool probe disabled )
    G43 ;turn back on tool offset mode before returning
o300 return [3] ; indicate no tool measurement
o300 endif


Actually, after the first M6 in the code. If I'm reading this correctly, the IF statement gets evaluated when TRUE.
If this is the case then why would it not be at the very top of the SUB? The reason I ask is because the line above this block is a 
call to G49 which cancels tool length compensation. Meaning why bother to even begin the sub if it's not enabled?

That said, this return code of 3 shows up as the abort parameter in both of the failures.

Any feedback or thoughts what-so-ever are encouraged.   image missing /media/kunena/emoticons/smile.png
 

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

More
1 year 11 months ago #315017 by Aciera
Might be interesting to output the tool length offset of the current tool and check if it is the same as #<calculated_offset>. (Note the queue buster 'M66 E L0' that makes sure the DEBUG line is not executed prematurely by the read ahead)
Code:
G10 L1 P#<tool> Z[#<calculated_offset>] G43 M66 E0 L0 (DEBUG, Current Tool Z Offset: #5403)
The following user(s) said Thank You: gardenweazel

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

More
1 year 11 months ago #315046 by gardenweazel
I believe that I see what is going on.

There is a variable named MAXPROBE that is called from the INI as follows:  #<_ini[VERSA_TOOLSETTER]MAXPROBE>
There is also a variable that is read from the versaprobe screen saved in the qtdragon_hd.pref file as follows:  ps_probe_max_z_travel
The variable is also know as max_z_travel is some of the functions.
It appears as if both VARS are used for the same purpose. If I'm not mistaken the documentation indicates that the values are to be set and used in the INI file under VERSA_TOOLSETTER (brackets omitted).

I somewhat ignored the values in the qtdragon_hd.pref file which when I compared were NOT the same values. I know for a fact that my Z will travel more that 115mm which is what it was set at in the pref file. However, in my INI file I have set the value of 150mm which covers the length of all my tools.

Additionally I found a typo which I submitted a pull request a few hours ago.

I'll test this shortly and respond appropriately.

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

More
1 year 11 months ago #315067 by gardenweazel
These changes didn't help but, what does work is clicking on the "Measure/Probe Current Tool" button.

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

More
1 year 11 months ago #315069 by gardenweazel
I am attaching two DEBUG files. The first is a FAILURE and the second SUCCEEDED. Looks as if the G43 is the difference. The failure is G43 Offset zero and then it succeeds with the G43 Offset of one(1) after I click start for the second time; 

FAILURE
 

File Attachment:

File Name: machine_lo...LURE.txt
File Size:3.23 KB


SUCCEEDS
 

File Attachment:

File Name: machine_lo...EEDS.txt
File Size:1.77 KB

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

More
1 year 11 months ago - 1 year 11 months ago #315082 by Aciera
Interesting. There is also a discrepancy between 'Selected' tool and 'Loaded' tool.

Fail:

Code:
17:06:22 Started program from line 1 17:06:27 Current Comp Mode: 400.000000 17:06:27 Current Coord System: 540.000000 17:06:27 G43 Tool Offset: 0.000000 17:06:27 Current Selected Tool: 42.000000 17:06:27 Current Selected Pocket: 42.000000 17:06:28 Current Tool Loaded: 99.000000 17:06:28 Current Tool Index: 99.000000

Success:

Code:
17:12:17 Started program from line 1 17:12:23 Current Comp Mode: 400.000000 17:12:23 Current Coord System: 540.000000 17:12:23 G43 Tool Offset: 1.000000 17:12:23 Current Selected Tool: 42.000000 17:12:23 Current Selected Pocket: 42.000000 17:12:23 Current Tool Loaded: 42.000000 17:12:24 Current Tool Index: 42.000000
Last edit: 1 year 11 months ago by Aciera.
The following user(s) said Thank You: gardenweazel

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

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