Gmocappy- no z tool offset displayed

More
04 Aug 2017 10:11 #96997 by chrisfairbrother
chrisfairbrother created the topic: Gmocappy- no z tool offset displayed
I have changed from axis to gmocappy, and I am very impressed. The only problem is the z tool offset is always displayed as zero. If I apply a z tool length in the tool table, my cnc machine works correctly using the tool length, but the display is always zero (see pics). Linuxcnc 2.7.11 Gmocappy 1.5.8
many thanks
Attachments:
More
04 Aug 2017 21:21 #97011 by newbynobi
newbynobi replied the topic: Gmocappy- no z tool offset displayed
Have you connected the corresponding hal pn in your postgui.hal file?
Have you issued a G43 after the tool change?

Norbert
More
05 Aug 2017 08:59 #97021 by chrisfairbrother
chrisfairbrother replied the topic: Gmocappy- no z tool offset displayed
Hi Norbert, Yes I have issued a G43 after the tool change. It must be the hal pin I am missing. I will check later today.
It's strange that the tool length is working, but not being displayed.
many thanks
Chris
More
05 Aug 2017 15:36 #97040 by chrisfairbrother
chrisfairbrother replied the topic: Gmocappy- no z tool offset displayed
All working now. I was missing
"net tooloffset-z gmoccapy.tooloffset-z <= motion.tooloffset.z"
it was obvious once i looked at my hal file. I had removed some lines when I changed from axis to gmoccapy.
For your interest; I have gmoccapy running with:
Hyuanyang vfd using rs285
Xhc-Hb04 wireless hand control
Nativecam in an embedded tab
Andonstar usb microscope in an embedded tab
Thanks for your help Norbert.
More
08 Aug 2017 15:26 #97181 by andypugh
andypugh replied the topic: Gmocappy- no z tool offset displayed

newbynobi wrote: Have you connected the corresponding hal pn in your postgui.hal file?
Have you issued a G43 after the tool change?t


Out of curiosity, why are you using a HAL pin rather than polling linuxcnc.stat.tool_offset ?
More
09 Aug 2017 16:29 #97243 by chrisfairbrother
chrisfairbrother replied the topic: Gmocappy- no z tool offset displayed
Hi Andy, I had an old config for gmoccappy that I modified to suit my current setup when i changed from axis. I had 'remmed' out the HAL pin seen above. Should I change it to linuxcnc.stat.tool_offset ? I will follow your expert knowledge.
I have been involved with CAD/CAM for many years, but I have only been using Linuxcnc for 18 months.
Many thanks
More
09 Aug 2017 16:55 #97246 by andypugh
andypugh replied the topic: Gmocappy- no z tool offset displayed

chrisfairbrother wrote: Should I change it to linuxcnc.stat.tool_offset ?


Absolutely not, that was a question for Norbert.

The stat object is only visible inside the software, not in the HAL layer.
More
09 Aug 2017 20:07 #97259 by newbynobi
newbynobi replied the topic: Gmocappy- no z tool offset displayed
Andy, that is a good question, i do not know out of my confused brain, why i did that the way i did it. I will check on your proposal, as the internal use would it make easier for most users.

But i am very short on time at the moment, i should not have taken my new job:-)

Norbert
More
09 Aug 2017 20:35 #97261 by andypugh
andypugh replied the topic: Gmocappy- no z tool offset displayed
I did wonder if stat() returns lookahead values. That would explain the decision.
Moderators: newbynobi
Time to create page: 0.194 seconds
Powered by Kunena Forum