NativeCam as embedded tab ???

More
18 Jan 2019 16:58 - 18 Jan 2019 17:43 #124406 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
What is the version of NativeCAM ?

Fern

p.s. you could also try with a simple '-t'
Last edit: 18 Jan 2019 17:43 by FernV. Reason: added p.s.

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

More
18 Jan 2019 18:55 #124410 by frogeyes
I have tried both --tab and -t NativeCAM version is 0.1.14b Debian/Stretch
This is the box I am using at the moment, the other box is Linuxcnc/Wheezy.

I have just had another problem with this box. Debian/Stretch one
When I run th command and clicked on the desktop launcher axis will not open up, it was working fine before I ran the ncam command
This is the output from the command line.

root@linuxcnc:~# linuxcnc /root/linuxcnc/configs/cnc_router/cnc_router.ini
LINUXCNC - 2.7.14-71-g77309ebf9
Machine configuration directory is '/root/linuxcnc/configs/cnc_router'
Machine configuration file is 'cnc_router.ini'
Starting LinuxCNC...
Found file(REL): ./cnc_router.hal
Refusing to run as root without fallback UID specified
To run under a debugger with I/O, use e.g.,
sudo env RTAPI_UID=`id -u` RTAPI_FIFO_PATH=$HOME/.rtapi_fifo gdb rtapi_app
./cnc_router.hal:4: waitpid failed /usr/bin/rtapi_app trivkins
./cnc_router.hal:4: /usr/bin/rtapi_app exited without becoming ready
./cnc_router.hal:4: insmod for trivkins failed, returned -1
Shutting down and cleaning up LinuxCNC...
Refusing to run as root without fallback UID specified
To run under a debugger with I/O, use e.g.,
sudo env RTAPI_UID=`id -u` RTAPI_FIFO_PATH=$HOME/.rtapi_fifo gdb rtapi_app
LinuxCNC terminated with an error. You can find more information in the log:
/root/linuxcnc_debug.txt
and
/root/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
root@linuxcnc:~#

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

More
18 Jan 2019 20:20 #124416 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
NEVER run as root

Fern

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

More
19 Jan 2019 06:59 #124434 by frogeyes
Sorry I will not send anything while i'm in root account.
The other box that is running NativeCAM version 0.1.14b on Linuxcnc/Wheezy
Output from user account.

ron@linuxcnc:~$ cd linuxcnc/configs/cnc_router
ron@linuxcnc:~/linuxcnc/configs/cnc_router$ ncam --ini=my-mill.ini --catalog=mill --tab
option --tab not recognized

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

More
19 Jan 2019 16:33 #124437 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
Hi Ron

I do not have access to my linux box now, so the information here may not be exact.

When you start LinuxCNC from the menu, usually the configuration selector appears and there is an option for axis with ncam in a tab, try that.

Verify the last 45 lines of your ncam.py match the last ones at github.com/FernV/NativeCAM/blob/master/ncam.py

Finally, post your my-mill.ini here

Fern

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

More
23 Jan 2019 22:32 #124690 by frogeyes
My apologies for the delay in posting a reply.

I am not Ron, my name is David, Ron is a mate who built a cnc routing table, he is not into computers, so I try to help resolve issues if I can.
I have a box now setup running Linuxcnc so I can do some testing without having Rons box here and he can then still get some thing done.

Answers to your question.

There is no option in linuxcnc/My Configurations screen for axis with ncam in a tab.

There is an option down the bottom for ncam in My Configuration screen and the choice of axis. that embeds ncam to the right of axis.

Running ncam through diff yields no results, even so I did a side by side visual check.

I will sometime today run the ncam.py through debug line at a time and see whats happening.

Is there any one else that is having this problem ?

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

More
23 Jan 2019 23:55 #124695 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
Hi David,

No one has ever reported a problem similar to that.
I would like to see the inifile.
I think it has to do with some system configuration or maybe lxml is not installed ?
If you wnat to debug it will have to be on Ron's pc.

Fern

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

More
24 Jan 2019 18:52 #124748 by frogeyes
Hi Fern,
Here is the infile with no attempt at ncam,
# Generated by stepconf 1.1 at Fri Jan 25 05:08:29 2019
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = cnc_router
DEBUG = 0
VERSION = 1.1

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 5.50
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 55.00
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/david/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm

[KINS]
JOINTS = 3
KINEMATICS = trivkins coordinates=XYZ

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .nc,.tap G-Code File
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = cnc_router.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal

[TRAJ]
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 5.50
MAX_LINEAR_VELOCITY = 55.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_X]
MAX_VELOCITY = 55.0
MAX_ACCELERATION = 313.0
MIN_LIMIT = 0.0
MAX_LIMIT = 800.0

[JOINT_0]
TYPE = LINEAR
HOME = 25.0
MIN_LIMIT = 0.0
MAX_LIMIT = 800.0
MAX_VELOCITY = 55.0
MAX_ACCELERATION = 313.0
STEPGEN_MAXACCEL = 391.25
SCALE = 160.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -50.000000
HOME_LATCH_VEL = 3.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1

[AXIS_Y]
MAX_VELOCITY = 52.0
MAX_ACCELERATION = 323.0
MIN_LIMIT = 0.0
MAX_LIMIT = 1100.0

[JOINT_1]
TYPE = LINEAR
HOME = 65.0
MIN_LIMIT = 0.0
MAX_LIMIT = 1100.0
MAX_VELOCITY = 52.0
MAX_ACCELERATION = 323.0
STEPGEN_MAXACCEL = 403.75
SCALE = 160.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -50.000000
HOME_LATCH_VEL = 3.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

[AXIS_Z]
MAX_VELOCITY = 45.0
MAX_ACCELERATION = 442.0
MIN_LIMIT = 0.0
MAX_LIMIT = 120.0

[JOINT_2]
TYPE = LINEAR
HOME = 110.0
MIN_LIMIT = 0.0
MAX_LIMIT = 120.0
MAX_VELOCITY = 45.0
MAX_ACCELERATION = 442.0
STEPGEN_MAXACCEL = 552.5
SCALE = 160.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 120.000000
HOME_SEARCH_VEL = 40.000000
HOME_LATCH_VEL = 3.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0

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

More
24 Jan 2019 18:56 #124749 by frogeyes
Here is an infile that has NativeCAM embedbed on the right side of axis,
# Generated by stepconf 1.1 at Fri Jan 25 05:10:00 2019
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = cnc_router_ncam
DEBUG = 0
VERSION = 1.1

[DISPLAY]
# required NativeCAM item :
NCAM_DIR = ncam

# required NativeCAM item :
GLADEVCP = -U --catalog=mill /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.ui

DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 5.50
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 55.00
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
# required NativeCAM item :
PROGRAM_PREFIX = ncam/scripts/

INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm

[KINS]
JOINTS = 3
KINEMATICS = trivkins coordinates=XYZ

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .nc,.tap G-Code File
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
# required NativeCAM item :
SUBROUTINE_PATH = ncam/my-stuff:ncam/lib/mill:ncam/lib/utilities

PARAMETER_FILE = linuxcnc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = cnc_router_ncam.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal

[TRAJ]
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 5.50
MAX_LINEAR_VELOCITY = 55.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_X]
MAX_VELOCITY = 55.0
MAX_ACCELERATION = 313.0
MIN_LIMIT = 0.0
MAX_LIMIT = 800.0

[JOINT_0]
TYPE = LINEAR
HOME = 25.0
MIN_LIMIT = 0.0
MAX_LIMIT = 800.0
MAX_VELOCITY = 55.0
MAX_ACCELERATION = 313.0
STEPGEN_MAXACCEL = 391.25
SCALE = 160.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -50.000000
HOME_LATCH_VEL = 3.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1

[AXIS_Y]
MAX_VELOCITY = 52.0
MAX_ACCELERATION = 323.0
MIN_LIMIT = 0.0
MAX_LIMIT = 1100.0

[JOINT_1]
TYPE = LINEAR
HOME = 65.0
MIN_LIMIT = 0.0
MAX_LIMIT = 1100.0
MAX_VELOCITY = 52.0
MAX_ACCELERATION = 323.0
STEPGEN_MAXACCEL = 403.75
SCALE = 160.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -50.000000
HOME_LATCH_VEL = 3.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

[AXIS_Z]
MAX_VELOCITY = 45.0
MAX_ACCELERATION = 442.0
MIN_LIMIT = 0.0
MAX_LIMIT = 120.0

[JOINT_2]
TYPE = LINEAR
HOME = 110.0
MIN_LIMIT = 0.0
MAX_LIMIT = 120.0
MAX_VELOCITY = 45.0
MAX_ACCELERATION = 442.0
STEPGEN_MAXACCEL = 552.5
SCALE = 160.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 120.000000
HOME_SEARCH_VEL = 40.000000
HOME_LATCH_VEL = 3.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0

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

More
24 Jan 2019 19:23 #124753 by frogeyes
Hi Fern,
Nothing from debug.
python2.6/lxml installed.

I have installed Lnuxcnc on three different Computers and I get the same output on all three, I've tried the ncam code on the sim axis with same results.
I've run out of ideas

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

Time to create page: 0.587 seconds
Powered by Kunena Forum