Work with probe

More
11 years 5 months ago #58694 by mariusl
Replied by mariusl on topic Work with probe
I have those settings in the .ini file.
I see that your version of Gmoccapy is a bit old and not standard any more. Did you make a lot of changes to gmoccapy?

Regards
Marius


www.bluearccnc.com

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

More
11 years 5 months ago #58698 by verser
Replied by verser on topic Work with probe

mariusl wrote: I have those settings in the .ini file.
I see that your version of Gmoccapy is a bit old and not standard any more. Did you make a lot of changes to gmoccapy?

Just a bit old screenshot. No any changes to gmoccapy, only custom additional panels.

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

More
11 years 5 months ago #58699 by mariusl
Replied by mariusl on topic Work with probe
I cannot get the code to work but something else might be the problem. I have Ngcgui loaded as well and for some reason when ngcgui is loaded the Gmoccapy cannot find any files that are in the macro directory. I have this on my lathe and on my mill.
I cannot get Andy's Lathemacro to work when I have ngcgui either.


Would you mind sharing how you got Nick's Features to load and work with Gmoccapy?

Regards
Marius


www.bluearccnc.com

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

More
11 years 5 months ago - 11 years 5 months ago #58701 by verser
Replied by verser on topic Work with probe

mariusl wrote: I
Would you mind sharing how you got Nick's Features to load and work with Gmoccapy?

My translation :) from this (for sim gmoccapy)

Installation:
features.zip unzip to ~/linuxcnc-dev/lib/python/gladevcp/
features_gmoccapy.zip unzip to ~/linuxcnc-dev/configs/sim/gmoccapy/
In file ~/linuxcnc-dev/configs/sim/gmoccapy/gmoccapy_4_axis.ini (or your-config.ini) in section [DISPLAY] add:
Code:
EMBED_TAB_NAME = features EMBED_TAB_LOCATION = box_right EMBED_TAB_COMMAND = gladevcp -x {XID} features_gmoccapy.glade
Do:
Code:
sudo apt-get install python-lxml cd /usr/lib/pymodules/python2.6/gladevcp ln ~/linuxcnc-dev/lib/python/gladevcp/features.py -s ln ~/linuxcnc-dev/lib/python/gladevcp/features.glade -s ln ~/linuxcnc-dev/lib/python/gladevcp/subroutines -s
Insert in ~/linuxcnc-dev/lib/python/gladevcp/hal_pythonplugin.py, after "calculator" :
Code:
from features import Features
Insert in ~/linuxcnc-dev/lib/python/gladevcp/hal_python.xml
after first "calculator"
Code:
<glade-widget-class name="Features" generic-name="features" title="features"> <properties> <property id="size" query="False" default="1" visible="False"/> <property id="spacing" query="False" default="0" visible="False"/> <property id="homogeneous" query="False" default="0" visible="False"/> </properties> </glade-widget-class>
after second "calculator":
Code:
<glade-widget-class-ref name="Features"/>

Then, update only folder ~/linuxcnc-dev/lib/python/gladevcp/subroutines from github

File Attachment:

File Name: features_gmoccapy.zip
File Size:1 KB


File Attachment:

File Name: features.zip
File Size:1,319 KB
Attachments:
Last edit: 11 years 5 months ago by verser.
The following user(s) said Thank You: nilsht

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

More
11 years 5 months ago #58768 by elf
Replied by elf on topic Work with probe
Inside circle routine isn't working for me. The first -X move is executing twice, once in the python code(line 975) and once in the macro xminus_in.ngc (line 10).

LinuxCNC version is 2.6.4.
The following user(s) said Thank You: verser

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

More
11 years 5 months ago #58773 by verser
Replied by verser on topic Work with probe

elf wrote: Inside circle routine isn't working for me. The first -X move is executing twice, once in the python code(line 975) and once in the macro xminus_in.ngc (line 10).

This is bug. It's corrected. Thank you for accurate description.

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

Time to create page: 1.177 seconds
Powered by Kunena Forum