NativeCAM is Features renamed

More
09 Oct 2016 11:12 #81456 by rodw
Replied by rodw on topic NativeCAM is Features renamed
File "/usr/lib/python2.7/dist-packages/gladevcp/hal_pythonplugin.py", line 1, in <module>
    from ncam import NCam
ImportError: No module named ncam

Your problem is here. Python does not have the ncam module installed.
There is probably a setup procedure that has not been followed.

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

More
09 Oct 2016 11:21 - 09 Oct 2016 11:24 #81457 by newbynobi

newbynobi wrote:
I use very often end mills for drilling opperations, as it allows saving tool changes.

How are you using it then ? Are you using drilling modes G73, 81, 82 or 83 ?
One option is using a Drill Change and not activate, this will not ask for a tool change but set the feed, speed and mode but you have to use the drilling subroutines


Hallo Fern,

mostly just as a normal move in Z, but sometimes also as G73 or G81.
I see you pont of view, but IMHO it is very unusual to use two types of "tool change". Isn't it possible to have only one tool change, select in "use for" between
  • Roughing and Finishing
  • Roughing
  • Finishing
  • Drilling

If the user selects Drilling, the additional menu parts gets sensitive, so he then can enter the drilling cycle and the diameter etc.
Feed and speed are the same, independently from the tool.

Norbert

P.S. I updated the gmoccapy.ini file to allow also homing all axis at once, like in the normal sim config.
Also the sim_spindle.hal.
To try, just place the file gmoccapy_NativeCAM.ini and the spindle_sim.hal in the ncam_demo folder and start the ini.
You will have the working area limits shown and homing all button will work, also the simulated spindle does react.
Attachments:
Last edit: 09 Oct 2016 11:24 by newbynobi.
The following user(s) said Thank You: FernV

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

More
09 Oct 2016 11:36 - 09 Oct 2016 11:43 #81459 by newbynobi

newbynobi wrote:
if you are in metric and you enter a user defined drill diameter, lets say 4.2 mm, it will be interpretet as inch value.

Corrected and on github


Hallo Fern,

I can not confirm that, it is still broken here.

I just pulled the newest github, merged it with my local copy and did
sudo python setup.py c
sudo python setup
  • I started the my gmoccapy_NativeCAM config
  • homed all axes
  • added raw material
  • added drill change
  • selected tool 22
  • entered "select drill size" user defined 4,2

The hole is then 4,2 inch, not mm.
I checked in MDI with
(DEBUG, metric = #<_metric>)
and got
metric = 1.00000

I think the error is here (NativeCAM/configs/sim/gmoccapy/ncam_demo/ncam/scripts/ncam.ngc):
o<drillchng_001_metric> if [#<_metric> EQ 1]
	#<drill_diameter> = [#<drill_diameter> * 25.4]
o<drillchng_001_metric> endif
Are you able to reproduce that?

Norbert
Last edit: 09 Oct 2016 11:43 by newbynobi. Reason: added file name of the error

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

More
09 Oct 2016 13:58 #81463 by FernV
Replied by FernV on topic NativeCAM is Features renamed
Looks like you saved your current work 'before' the change to drill-change.cfg

To correct :
select Utilisites->Auto-refresh to uncheck
Select Drill Change in the treeview
Add a new Drill Change
Set your parameters to the same as the first one
Delete the old Drill Change
Press on the Build button again
It will set Auto-refresh checkbox automatically

Do not forget to save your current work or you will have to redo it again next time

Fern

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

More
09 Oct 2016 14:02 #81464 by FernV
Replied by FernV on topic NativeCAM is Features renamed
After you executed

sudo python setup.py c

have you also executed it without 'c' ?

If you redo both commands, I would like to see the output

Fern

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

More
09 Oct 2016 14:20 - 09 Oct 2016 14:31 #81465 by newbynobi
Hallo Fern,

here are the outputs:
emcmesa@gmoccapy:~/NativeCAM$ sudo python setup.py c
[sudo] password for emcmesa: 
removed link from  /usr/lib/pymodules/python2.7/gladevcp
"from ncam import NCam" removed from /usr/share/pyshared/gladevcp/hal_pythonplugin.py

removed link from  /usr/share/pyshared/gladevcp
"from ncam import NCam" removed from /usr/share/glade3/catalogs/hal_pythonplugin.py

removed link from  /usr/share/glade3/catalogs
glade-widget-class named NCam removed from /usr/lib/pymodules/python2.7/gladevcp/hal_python.xml
glade-widget-class-ref name NCam removed from /usr/lib/pymodules/python2.7/gladevcp/hal_python.xml
glade-widget-class named NCam removed from /usr/share/pyshared/gladevcp/hal_python.xml
glade-widget-class-ref name NCam removed from /usr/share/pyshared/gladevcp/hal_python.xml
glade-widget-class named NCam removed from /usr/share/glade3/catalogs/hal_python.xml
glade-widget-class-ref name NCam removed from /usr/share/glade3/catalogs/hal_python.xml
emcmesa@gmoccapy:~/NativeCAM$ 
emcmesa@gmoccapy:~/NativeCAM$ sudo python setup.py
created link in  /usr/lib/pymodules/python2.7/gladevcp
"from ncam import NCam" added to /usr/share/pyshared/gladevcp/hal_pythonplugin.py

created link in  /usr/share/pyshared/gladevcp
"from ncam import NCam" added to /usr/share/glade3/catalogs/hal_pythonplugin.py

created link in  /usr/share/glade3/catalogs
glade-widget-class named NCam added to /usr/lib/pymodules/python2.7/gladevcp/hal_python.xml
glade-widget-class-ref named NCam added to /usr/lib/pymodules/python2.7/gladevcp/hal_python.xml
glade-widget-class named NCam added to /usr/share/pyshared/gladevcp/hal_python.xml
glade-widget-class-ref named NCam added to /usr/share/pyshared/gladevcp/hal_python.xml
glade-widget-class named NCam added to /usr/share/glade3/catalogs/hal_python.xml
glade-widget-class-ref named NCam added to /usr/share/glade3/catalogs/hal_python.xml
emcmesa@gmoccapy:~/NativeCAM$ 

I followed your instructions point by point, but the behavior does not change.
It is also the same if I open a new project and add there the raw material, drill change and single drill.
If I enter user defined, it is a inch value, so I am not able to make a base bore for M5 with must be 4,2 mm.

very strange, as my ncam.ngc has changed!
and if i try now to make new project, and want to add raw material nothing happen.
I am not able to add any feature any more. If I close linuxcnc and restart it, I get my old work and are able to edit every part.

Norbert
Attachments:
Last edit: 09 Oct 2016 14:31 by newbynobi.

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

More
09 Oct 2016 14:27 - 09 Oct 2016 14:35 #81466 by eFalegname
Hi Fern,
to be sure I redid the whole procedure, now my LinuxCNC starts, but I can not maximize the window, it does not fit on the screen properly
ef@pl ~ $ cd /home/ef/linuxcnc/configs/NativeCAM/
ef@pl ~/linuxcnc/configs/NativeCAM $ sudo python setup.py c[sudo] password for ef: 
"from ncam import NCam" removed from /usr/lib/python2.7/dist-packages/gladevcp/hal_pythonplugin.py

removed link from  /usr/lib/python2.7/dist-packages/gladevcp
glade-widget-class named NCam removed from /usr/share/glade3/catalogs/hal_python.xml
glade-widget-class-ref name NCam removed from /usr/share/glade3/catalogs/hal_python.xml
ef@pl ~/linuxcnc/configs/NativeCAM $ sudo python setup.py 
"from ncam import NCam" added to /usr/lib/python2.7/dist-packages/gladevcp/hal_pythonplugin.py

created link in  /usr/lib/python2.7/dist-packages/gladevcp
glade-widget-class named NCam removed from /usr/share/glade3/catalogs/hal_python.xml
ef@pl ~/linuxcnc/configs/NativeCAM $ cd
ef@pl ~ $ linuxcnc /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/mill-mm.ini
LINUXCNC - 2.8.0-pre1-2638-g7be62e6
Machine configuration directory is '/home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo'
Machine configuration file is 'mill-mm.ini'
Starting LinuxCNC...
Found file(REL): ./core_sim.hal
Note: Using POSIX non-realtime
Found file(REL): ./sim_spindle_encoder.hal
Found file(REL): ./axis_manualtoolchange.hal
Found file(REL): ./simulated_home.hal
note: MAXV     max: 53.340 units/sec 3200.400 units/min
note: LJOG     max: 53.340 units/sec 3200.400 units/min
note: LJOG default: 30.480 units/sec 1828.800 units/min
note: jog_order='XYZ'
note: jog_invert=set([])
task: main loop took 0.011481 seconds

NativeCAM info:
    inifile = /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/mill-mm.ini
    SYS_DIR = /home/ef/linuxcnc/configs/NativeCAM
   NCAM_DIR = /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam
    program = /usr/lib/python2.7/dist-packages/gladevcp/ncam.py
  real path = /home/ef/linuxcnc/configs/NativeCAM/ncam.py

Created   2 files in /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
Created  49 files in /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
Created  45 files in /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
Created 151 files in /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
Created   3 files in /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
   SUBROUTINE_PATH[0] (realpath) = /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
   SUBROUTINE_PATH[1] (realpath) = /home/ef/linuxcnc/configs/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/utilities

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Can not find file current_work.xml
Can not find file def_template.xml
<class 'Xlib.protocol.request.QueryExtension'>
<class 'Xlib.protocol.request.QueryExtension'>
task: main loop took 0.014469 seconds
task: main loop took 0.109366 seconds
task: main loop took 0.013258 seconds
task: main loop took 0.011499 seconds
task: main loop took 0.010251 seconds
task: main loop took 0.015063 seconds

Last edit: 09 Oct 2016 14:35 by eFalegname.

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

More
09 Oct 2016 14:43 - 09 Oct 2016 14:43 #81467 by newbynobi

to be sure I redid the whole procedure, now my LinuxCNC starts, but I can not maximize the window, it does not fit on the screen properly


Have you tried to reduce the window with in preferences of NativeCAM ?
It is well explained in the basic you tube videos.

Norbert
Last edit: 09 Oct 2016 14:43 by newbynobi.

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

More
09 Oct 2016 14:54 #81468 by eFalegname
Hi newbynobi. Yes, I tried to reduce the Ncam windows in the preferences display slider unsuccessfully; furthermore the "+" key to maximize the screen does not work :(

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

More
09 Oct 2016 16:03 #81469 by FernV
Replied by FernV on topic NativeCAM is Features renamed
Norbert
You still have the old drill-change.cfg in your ncam_demo/ncam/cfg/mill dir
Delete it and make sure the one in NativeCAM/cfg/mill matches the one on github then restart lcnc

Fern

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

Time to create page: 0.663 seconds
Powered by Kunena Forum