NativeCAM is Features renamed

More
22 Nov 2016 22:25 - 22 Nov 2016 23:07 #83147 by gmouer
Hi Fern,

I am having some problems getting NativeCAM embedded. I was successful cloning it and getting it to run standalone from the command line. I then ran sudo python setup.py per the instructions and copy/pasted the command line for mill.ini. I get a error, terminal screen info is as follows:

bridgeport@Bridgeport:~$ ls
catalogs Downloads linuxcnc_print.txt Pictures Templates
Desktop linuxcnc Music Public Videos
Documents linuxcnc_debug.txt NativeCAM support
bridgeport@Bridgeport:~$ cd NativeCAM
bridgeport@Bridgeport:~/NativeCAM$ linuxcnc configs/sim/axis/ncam_demo/mill.iniLINUXCNC - 2.8.0-pre1-2761-g2b678aa
Machine configuration directory is '/home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo'
Machine configuration file is 'mill.ini'
Starting LinuxCNC...
Found file(REL): ./core_sim.hal
./core_sim.hal:28: Pin 'axis.0.motor-pos-cmd' does not exist
Shutting down and cleaning up LinuxCNC...
LinuxCNC terminated with an error. You can find more information in the log:
/home/bridgeport/linuxcnc_debug.txt
and
/home/bridgeport/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
bridgeport@Bridgeport:~/NativeCAM$


Any suggestions on where I am going wrong? (I am running master under Debian Wheezy) I have seen others with a axis.0.motor-pos-cmd error like this.
Last edit: 22 Nov 2016 23:07 by gmouer.

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

More
23 Nov 2016 00:01 #83150 by FernV
Replied by FernV on topic NativeCAM is Features renamed
Hi,

./core_sim.hal:28: Pin 'axis.0.motor-pos-cmd' does not exist


This line tells you that in the file 'core_sim.hal' (this is a config file for lcnc) it is looking for a pin 'axis.0.motor-pos-cmd'
that does not exists.

Just comment the line with a '#' and any other lines that may tell you this kind of message.
After all you are learning with the simulator, isn't it ?

Regards
Fern

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

More
23 Nov 2016 00:09 - 23 Nov 2016 00:16 #83151 by gmouer
I am confused why I am getting that when so many others are running the same sim file you provide and apparently not getting that error. In the file, the comments say it loops the motor command back to the motion module for simulation purposes. I would suspect the simulator would not function without it.

I fully plan on implementing it on the Bridgeport mill configs next anyways. I am very excited about using Ncam on a very regular basis on that machine. (just finished the retrofit today)

One other question: I plan on using a Pyvcp side panel with axis with some checkboxes and led's for such things as selecting hi and low range in the hal files config. Many use Pyvcp side panels for such purposes. How will that work with NativeCam implemented? Will the Pyvcp panel be adjacent to the axis/NativeCam window? I am a bit worried about how this will work out.
Last edit: 23 Nov 2016 00:16 by gmouer.

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

More
23 Nov 2016 00:45 #83152 by PCW
Replied by PCW on topic NativeCAM is Features renamed
I really know nothing about this but is that just a symptom of running NativeCAM on master
(which is JA-XX based so doesn't have axis.0.motor-pos-cmd anymore but just the joint
equivalent)

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

More
23 Nov 2016 00:46 #83153 by gmouer
Playing further I may see part of the problem. I cloned the repo into my linuxcnc directory, it created a folder in the linuxcnc folder named NativeCAM. When launching either the embedded sim or my own machine config I get errors referencing files that are not found, always referenced in a folder "ncam", there is no such folder.

Looking over the sim mill ini file, it also references a ncam directory, which does not exist.

Apparently the directory names and locations are not matching up.

Did the software change perhaps and this was not updated?

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

More
23 Nov 2016 00:48 #83154 by gmouer

I really know nothing about this but is that just a symptom of running NativeCAM on master
(which is JA-XX based so doesn't have axis.0.motor-pos-cmd anymore but just the joint
equivalent)


Makes perfect sense. I am surprised however, Fern is using Master I believe, I wonder why he does not have this issue?

Apparently the sim file is not compatible with the latest releases of master.

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

More
23 Nov 2016 17:24 #83183 by FernV
Replied by FernV on topic NativeCAM is Features renamed
Hi,

I cloned the repo into my linuxcnc directory, it created a folder in the linuxcnc folder named NativeCAM. When launching either the embedded sim or my own machine config I get errors referencing files that are not found, always referenced in a folder "ncam", there is no such folder.

Looking over the sim mill ini file, it also references a ncam directory, which does not exist.

Apparently the directory names and locations are not matching up.


I do not know if you cloned after your previous post but here is what I see in it :
  • You seem to be running 'LINUXCNC - 2.8.0-pre1-2761-g2b678aa' which may be part of the problem
  • Machine configuration directory is '/home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo' not under linuxcnc directory as you state
Also './core_sim.hal' is part of LinuxCNC and NativeCAM does not need it. A couple months ago when I started lcnc, it gave a message that some files needed to be updated and proceeded. I can not tell what has changed since I deleted the backup files after I was sure it was working fine.
For your info, other users had that problem before
forum.linuxcnc.org/40-subroutines-and-ng...named?start=20#81411

Including the printed message will help me pointing the problem and the solution

Regards
Fern

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

More
23 Nov 2016 17:56 - 23 Nov 2016 17:56 #83184 by gmouer
I just checked your files directly on the github, core_sim.hal is included in your files.

I found this info on joints/axes and the changes in Master related to it.
linuxcnc.org/2016/06/27/Joints-Axes-merged/

The core_sim hal file in github for Nativecam has references to axis.0. Core_sim.hal in the sims that come with master refer to joint 1 per the new standard. What is interesting is that according to the doc I linked to, Master should automatically update the hal file to the new standard using joints, apparently that does not happen for some reason and the error message results. I had a near identical error in the homing hal file for similar reasons.

The other errors, referring to a "ncam" directory are still a mystery. There is no ncam directory doing a standard setup.

Hope this helps a bit.
Last edit: 23 Nov 2016 17:56 by gmouer.

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

More
23 Nov 2016 18:37 - 23 Nov 2016 18:43 #83185 by FernV
Replied by FernV on topic NativeCAM is Features renamed
I want you to do this :
  1. Open a terminal in NativeCAM directory
  2. type : ./ncam.py
You should have a result similar to this :
fernand@debian:~/NativeCAM$ ./ncam.py

NativeCAM info:
inifile = NA
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM
program = ./ncam.py
real path = /home/fernand/NativeCAM/ncam.py

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

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved

Now type or copy : ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini
You should have a result similar to this :
fernand@debian:~/NativeCAM$ ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini

NativeCAM info:
inifile = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/mill.ini
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam
program = ./ncam.py
real path = /home/fernand/NativeCAM/ncam.py

Created 3 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
Created 69 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
Created 69 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
Created 151 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
Created 5 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
SUBROUTINE_PATH[0] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
SUBROUTINE_PATH[1] (realpath) = /home/fernand/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
Previous work not saved as current work
No default template saved

Now type or copy : sudo python setup.py c
Add a c (clear) at the end
You should have a result similar to this if you already executed it :
fernand@debian:~/NativeCAM$ sudo python setup.py c
[sudo] password for fernand:
wait, processing...
removed link to ncam.py from /usr/lib/pymodules/python2.7/gladevcp

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

removed link to ncam.py from /usr/share/pyshared/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

/usr/share/glade3/catalogs/hal_python.xml saved

Now type or copy : sudo python setup.py
WITHOUT a c at the end
You should have a result similar to this :
fernand@debian:~/NativeCAM$ sudo python setup.py
[sudo] password for fernand:
wait, processing...
created link to ncam.py in /usr/lib/pymodules/python2.7/gladevcp

"from ncam import NCam" added to /usr/share/pyshared/gladevcp/hal_pythonplugin.py

created link to ncam.py in /usr/share/pyshared/gladevcp

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

/usr/share/glade3/catalogs/hal_python.xml saved

Now type or copy : linuxcnc configs/sim/axis/ncam_demo/mill.ini
You should have a result similar to this :
fernand@debian:~/NativeCAM$ linuxcnc configs/sim/axis/ncam_demo/mill.ini
LINUXCNC - 2.7.8
Machine configuration directory is '/home/fernand/NativeCAM/configs/sim/axis/ncam_demo'
Machine configuration file is 'mill.ini'
Starting LinuxCNC...
Found file(REL): ./core_sim.hal
Found file(REL): ./sim_spindle_encoder.hal
Found file(REL): ./axis_manualtoolchange.hal
Found file(REL): ./simulated_home.hal
task: main loop took 0.014381 seconds
task: main loop took 0.014113 seconds

NativeCAM info:
inifile = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/mill.ini
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam
program = /usr/lib/pymodules/python2.7/gladevcp/ncam.py
real path = /home/fernand/NativeCAM/ncam.py

Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
SUBROUTINE_PATH[0] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
SUBROUTINE_PATH[1] (realpath) = /home/fernand/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
Previous work not saved as current work
No default template saved
task: main loop took 0.016372 seconds
task: main loop took 0.013368 seconds
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension
task: main loop took 0.013335 seconds

===================================
All this has been done on Debian Wheezy with a fresh cloning of NativeCAM

Replace all *.hal files with the one from your working config directory

If you do not have this kind of result, show me the result you have. I can NOT help you without it

Regards
Fern
Last edit: 23 Nov 2016 18:43 by FernV.

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

More
24 Nov 2016 01:22 #83205 by gmouer

I want you to do this :
  1. Open a terminal in NativeCAM directory
  2. type : ./ncam.py
You should have a result similar to this :
fernand@debian:~/NativeCAM$ ./ncam.py

NativeCAM info:
inifile = NA
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM
program = ./ncam.py
real path = /home/fernand/NativeCAM/ncam.py

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

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved

==================================
All this has been done on Debian Wheezy with a fresh cloning of NativeCAM

Replace all *.hal files with the one from your working config directory

If you do not have this kind of result, show me the result you have. I can NOT help you without it

Regards
Fern


Hi Fern,
I will do a individual post for each section of your instructions along with my results to avoid confusion. I started by clearing out my old NativeCAM install and starting with a fresh clone from github.

Results of first instruction:

bridgeport@Bridgeport:~$ cd NativeCAM
bridgeport@Bridgeport:~/NativeCAM$ ./ncam.py

NativeCAM info:
inifile = NA
SYS_DIR = /home/bridgeport/NativeCAM
NCAM_DIR = /home/bridgeport/NativeCAM
program = ./ncam.py
real path = /home/bridgeport/NativeCAM/ncam.py

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

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved



This appears to be the same as what you posted. I should also note that the NativeCAM standalone program launched and came up in a window.

Next instruction/results to follow.

George

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

Time to create page: 0.115 seconds
Powered by Kunena Forum