LinuxCNC Features - a kind of NGCGUI

More
11 years 11 months ago #53086 by cparsons
Replied by cparsons on topic LinuxCNC Features - a kind of NGCGUI
I have attached my corrected mill.xml file from subroutines/catalogs if it helps anyone?

Incidentally, the English word is 'Rapid' - only one 'p' :)

Best wishes

Chris
Attachments:

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

More
11 years 11 months ago #53196 by kjacobs
Replied by kjacobs on topic LinuxCNC Features - a kind of NGCGUI
Hello,
I installed LinuxCNC features in 2.7.0~pre0 and it works nicely in principle, but it seems to ignore any G54 offset (touching off from the workpiece). Features (e.g. OD) always seem to start at the machine zero instead of the G54 offset. When I use the NGCGUI OD feature instead, that does indeed respect the G54 offset as I expected. Am I doing something wrong in LinuxCNC features?
Cheers,
Karl

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

More
11 years 11 months ago #53200 by Nick
Replied by Nick on topic LinuxCNC Features - a kind of NGCGUI
Try to add Gcode feature with a line "G54"...
I'm not sure but possibly it'll help...

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

More
11 years 11 months ago - 11 years 11 months ago #53210 by cparsons
Replied by cparsons on topic LinuxCNC Features - a kind of NGCGUI
I still cannot see anything in LinuxCNC when I run the 'Features' plugin - do I have to change the LinuxCNC configuration to show a different interface to 'Axis'?

The software does appear to run standalone now I have corrected the paths but I cannot see anything shown in LinuxCNC when I create an object - all the screenshots I have seen show an additional window docked to the right hand side of the Axis interface, and when and object is created it appears in the 'preview' window and this should happen with the standalone too?

The other thing I have noticed is that in the standalone the 'Open' button does not appear to be working?

I get an error message

File "./features.py" line 1282, in load
filter.set_name("XML")
AttributeError: 'builtin function of method' object has no attribute 'set_name'

Chris

UPDATE: This was caused by some missing code - in features.py, in the routine load(...) the line 1280 should be preceded by a line 'filter = gtk.FileFilter()'

The following line(s) try to call methods on a 'filter' object that had not been created...

Regards

Chris
Last edit: 11 years 11 months ago by cparsons. Reason: Found solution

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

More
11 years 11 months ago #53212 by kjacobs
Replied by kjacobs on topic LinuxCNC Features - a kind of NGCGUI
Hi Nick,
it is not quite as simple, but after trying to understand your code better (and found that everything needed is there already!), I found a solution that makes it work exactly like NGCGUI for me:
in subroutine lathe-multipass, after these two lines
G92.1 (disable G92 offsets)
O<coordinate-sys-to-num> CALL [#<coord>]

you replace this line:
G10 L2 P[#<_coordinate-to-num>] X[#<x>+ #<xstep>*#<l>] Z[#<z> + #<zstep>*#<l>]
with this line:
G10 L2 P[#<_coordinate-to-num>] X[#<x> + #<_get_offsets_x> + #<xstep>*#<l>] Z[#<z> + #<_get_offsets_z> + #<zstep>*#<l>]
Now the feature follows the G54 touchoff coordinates. I tested it for the OD feature and have not yet looked into the others.

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

More
11 years 11 months ago #53214 by cparsons
Replied by cparsons on topic LinuxCNC Features - a kind of NGCGUI
I have also worked out why my LinuxCNC interface had not changed - there is an additional entry required in the ini file for your machine, in the [DISPLAY] section (I put my entry at the bottom)

[DISPLAY]
.
.
.
GLADEVCP = myname.ui

and a 'myname.ui' file needs creating in the config directory in LinuxCNC for your machine, or some other suitable place -

I called my file 'features.ui' and have attached it

Chris
Attachments:

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

Time to create page: 0.190 seconds
Powered by Kunena Forum