Tool sensor setup question

More
08 Aug 2019 19:59 - 08 Aug 2019 20:00 #141701 by mark0815
Hi!

I'm trying to setup the tool sensor in gmoccapy and getting an error message when doing a M6 after the machine moved to the tool change position:
"No tool measurement ! Please take care of the entry in the tool table"

Does anyone has an idea what's the problem here? ;-)
I'm using the latest 2.8-pre from buildbot (updated 1 hour ago) with gmoccapy 3.0.7.1.

I used this ini-file as a stating-point:
github.com/LinuxCNC/linuxcnc/blob/master...capy/tool_sensor.ini

tool.tbl:
T1 P1 D3.000000 Z+180.000000 ;3d-taster 
T2 P2 D8.000000 Z-10.000000 ;8mm alu 
T3 P3 D10.000000 Z+79.980000 ;10mm 6fl 

Thanks in advance
Mark
Last edit: 08 Aug 2019 20:00 by mark0815.

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

More
08 Aug 2019 20:48 - 08 Aug 2019 20:49 #141703 by newbynobi
Change ngc is returning a positiv value of 3, that is passed to stdglue.py, there it will give the output you mentioned.

All this is caused, because gmoccapy.toolmeasurement is not high, leading to the question:
Have you enabled toolmeasurement on the settings page?

Norbert
Last edit: 08 Aug 2019 20:49 by newbynobi.

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

More
09 Aug 2019 04:56 - 09 Aug 2019 05:17 #141715 by linux_tux
Hello Norbert,

I have the same problem. If I activate the tool measurement in the setting and then make a tool change everything works. When I restart gmoccapy, in the settings the tool measurement is active but greyed out and the error message
"No tool measurement! Please take care of the entry in the tool table"
will be displayed again. In the gmoccapy preference file is "use_toolmeasurement = True".

Thanks and best regards

Ralf
Last edit: 09 Aug 2019 05:17 by linux_tux.

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

More
09 Aug 2019 15:03 #141784 by newbynobi
OK, I can reproduce that and will fix it.

Norbert

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

More
09 Aug 2019 16:28 #141794 by newbynobi
Hallo Mark,
hallo Ralf,

thanks for reporting the bug. I just pushed gmoccapy3.0.7.2 correcting the gmoccapy.toolmeasurement hal pin initialization.
I missed to update that pin on startup, leading to not setting all widgets to correct values.

If you find more issues, please report.

Norbert

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

More
09 Aug 2019 17:05 #141796 by mark0815
Replied by mark0815 on topic Tool sensor setup question
Hi Norbert

Thanks for the quick response. Though I have to admit that I did not discovered the bug but rather should have read the manual as I did not enabled the tool length sensor in the settings...

Mark

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

More
11 Aug 2019 09:00 #141903 by linux_tux
Hello Norbert,

Thanks for the quick fix. I have tested it and it works as it should.

Ralf

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

Moderators: newbynobiHansU
Time to create page: 0.157 seconds
Powered by Kunena Forum