LinuxCNC Features v2.01 - native realtime CAM for LinuxCNC
Welcome to this update version of LinuxCNC-Features.
Changes are described in the CHANGES file.
Some changes to your subroutines will make them take full advantage of all the new features. There is also some settings you can do in the beginning of features.py.
Download and extract LinuxCNC-Features in the folder of your choice
or clone git repo "github.com/FernV/linuxcnc-features.git" into ~/ .
Make sure you have python-lxml installed. If not, open a terminal and copy the following command :
sudo apt-get install python-lxml
To start, open a terminal where features.py is and type :
In your file manager, double-click on features.py
Default catalog is mill. In it's directory are menu.xml, def_template.xml and defaults.ngc
Other supplied catalog is lathe (not much done yet)
The command is : ./features.py --catalog=lathe
Open some examples files and enjoy.
Installing has been simplified with the use of 'setup' script
First install python-lxml if not done yet. Required for setup and Features.
Simply type ./setup in a terminal
If you want to remove LinuxCNC-Features, use './setup c'
IMPORTANT NOTE : when linuxcnc updates, it changes some files to what they were before. Just do ./setup again
Change to ./linuxcnc-configs/axis or ./linuxcnc-configs/gmoccapy
Start linuxcnc with one of the ini files available
Translation files are not included in the release. Will be in future release.
In the beginning of features.py are some values you can set to suit your taste
After features has started, select Utilities->Preferences and set your default values. Click OK to save.
Param subsitutions "#param_name" can be used to substitude parameters from the feature.
"#self_id" - unique id made of feature Name + smallest integer id.
Eval and exec "hello world!"
everything inside tag will be passed
trought python's eval function.
print "hello world"
allmost the same but will take all printed data.
you can use self as feature's self.
G-code files can be included by using one of the following functions:
[SUBROUTINE] type should be lower case, short, without space. Ex : circle, rect, probe-dn
Valid params types are : string, float, int, bool (or boolean), header, sub-header, combo, items, filename
Note : you can change string, float and int types on the fly with the context menu. Usefull with variables.
When using a value like #<var_name> use "string" because if will evaluate to 0 if "int" used or 0.0 if "float".
Study files in ini directory
Polyline is not fully implemented yet, not recommend to use now, but please evaluate. Future development will concentrate more on ini and ngc files.