error message "P value out of range with G10 L1"

More
30 Sep 2015 03:12 #63225 by b2unit
when I use auto tool measurement @ gmoccapy.
I got error message "P value out of range with G10 L1"

I can't get rid of this error message
I inserted command line right after N0070 G43 Z12 H00
N0075 G10 L1 P1(I edited TOOL 1's z offset value with various numbers @ tool table but in vain...)
and I checked linuxcnc gcode reference but I couldn't find solution..I think that's not simple tool number problem..
here's my gcode file please look inside and let me know how can I solve this situation.
I'm using linuxcnc 2.6.9 and 2.7(both have same error message) gmoccapy 1.5.5

thanks,
Byoungil Choi
Attachments:

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

More
30 Sep 2015 20:27 #63262 by andypugh
There isn't a G10 in that G-code, so it is hard to say where the problem lies.

Do you have a tool loaded? I don't mean physically, I mean does LinuxCNC think that there is a tool in the spindle.
The following user(s) said Thank You: b2unit

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

More
30 Sep 2015 20:45 #63265 by b2unit
yes. in tool change button in gmocappy.
when i click the tool change button it load the tool in tool.tbl and auto tool measurement sequence start
and the dro displays tool number and information in tool.tbl

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

More
01 Oct 2015 09:30 - 01 Oct 2015 09:32 #63310 by b2unit
a1.after I load the file which I had attached @linuxcnc2.7/gmoccapy1.5.5
and then press start button

a2.the spindle move to tool measurement position
and then display window "please remove the mounted tool and press ok when done.(doesn't matter with the Tool information)"
press ok button.

a3. auto tool measurement sequence start/stop
and then display error window " p value out of range with G10 L1"
and then stop.

but

when I load tool @ tool editor page

b1. select a tool for test and then press change tool to the selected one button.

b2. the spindle move to tool measurement position
and then display window " please change to tool #1 3.0mm ...(the tool I selected for test) then click ok"
press ok button.

b3. auto tool measurement sequence start/stop
and then Tool information is updated.

i think b1, b2, b3 process is expected at a2, a3 process..
I think there's problem in gcode which I had attached but I don't know..
why linuxcnc is mentioning G10 L1 which is not in the gcode..
Last edit: 01 Oct 2015 09:32 by b2unit.

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

More
01 Oct 2015 15:49 - 01 Oct 2015 15:50 #63321 by andypugh

a1.after I load the file which I had attached @linuxcnc2.7/gmoccapy1.5.5
and then press start button

a2.the spindle move to tool measurement position
and then display window "please remove the mounted tool and press ok when done.(doesn't matter with the Tool information)"
press ok button.

a3. auto tool measurement sequence start/stop
and then display error window " p value out of range with G10 L1"
and then stop.


OK, I understand now.

What is happening is that this line in your G-code is unloading the tool
N0050 T00 M6
and then the tool length measurement routine is attempting to update the tool table entry for tool zero, and there is no tool zero (nor can there be)

Basically the tool measurement routine needs to not attempt to measure a tool if there is no tool to measure.

I think that the tool change macro routine here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...85dba7a3681e;hb=HEAD

Needs a small change so that line 29 says
O200 if [#<_hal[gmoccapy.toolmeasurement]> EQ 0  OR #<tool> EQ 0]

That file is probably in a "macros" folder in your config directory or your nc-files directory.
Last edit: 01 Oct 2015 15:50 by andypugh.
The following user(s) said Thank You: b2unit

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

More
01 Oct 2015 16:07 #63323 by b2unit
thanks a lot !!
i'll try right after back to my machine. thanks again!

Byoungil Choi
The following user(s) said Thank You: Jasper 3

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

More
01 Oct 2015 20:10 #63330 by b2unit
I applied change
from
O200 if [#<_hal[gmoccapy.toolmeasurement]> EQ 0 ]
to
O200 if [#<_hal[gmoccapy.toolmeasurement]> EQ 0 OR #<tool> EQ 0]

but

the same error situation..

Is there any change to gcode header parts to solve the problem?
for example, omit N0050 T00 M6 line and add some gcode line for calling auto measurement sequence at beginning of gcode.
I can change little and basic post processor file via post builder.

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

More
01 Oct 2015 20:27 #63331 by andypugh
[quote="b2unit" post=63330
O200 if [#<_hal[gmoccapy.toolmeasurement]> EQ 0 OR #<tool> EQ 0]

but

the same error situation.[/quote]

Before giving up it is probably worth trying to find out why that didn't work.

Insert
(debug, tool number at this point is #<tool>)
above the O200 IF... line.
The following user(s) said Thank You: b2unit

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

More
01 Oct 2015 21:14 #63334 by b2unit
yeah!! it works! like magic.

thanks a lot!

Byoungil Choi

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

More
01 Oct 2015 21:35 #63335 by andypugh

yeah!! it works! like magic.


That's odd, it was only meant to help work out why it wasn't working not fix it...

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

Time to create page: 0.350 seconds
Powered by Kunena Forum