LinuxCNC Features - a kind of NGCGUI

More
26 Jul 2013 19:53 #37062 by pacoblasco
Just I'm going to check it. I fit works in the simulator, I will check on my machine.

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

More
26 Jul 2013 19:54 #37063 by pacoblasco
Also tell me which help you need. This kind of work really is very nice for me.

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

More
26 Jul 2013 20:06 #37064 by Nick
First of all, help in testing current subroutines and creating new subroutines... it can be either some algorithms or code itself.

Also there are some unsolved problems with GUI - axis always steels the focus from any forms. So we have to use mouse regularly to get focus back to Features.

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

More
26 Jul 2013 20:10 #37065 by pacoblasco
:(
Still not working. I got that (I0'm using LinuxCNC 2.5.3...which version are you suing...selfcompiled?):


LINUXCNC - 2.5.3
Machine configuration directory is '/home/operador/linuxcnc/configs/sim/ngcgui'
Machine configuration file is 'ngcgui.ini'
Starting LinuxCNC...
Unexpected realtime delay: check dmesg for details.

(gladevcp:7671): libglade-WARNING **: Expected <glade-interface>. Got <interface>.

(gladevcp:7671): libglade-WARNING **: did not finish in PARSER_FINISH state
**** GLADE VCP INFO: Not a libglade project, trying to load as a GTK builder project
**** GLADE VCP ERROR: With xml file: features.ui
<commandline>:0: gladevcp exited without becoming ready
Embeded tab command "halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x 73400476 features.ui" exited with error: 1
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/operador/linuxcnc_debug.txt
and
/home/operador/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
26 Jul 2013 20:12 #37066 by pacoblasco
ngcgui.ini I'm using for that:


# file modified from emc/configs/sim/axis.ini

[EMC]
VERSION = ngcgui
MACHINE = Ngcgui-demo
DEBUG = 0

[RS274NGC]
PARAMETER_FILE = sim.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles

[DISPLAY]
PROGRAM_PREFIX = /home/operador/linuxcnc/nc_files
TKPKG = Ngcgui 1.0
TKPKG = Ngcguittt 1.0
GLADEVCP= -U --catalog=catalogs/lathe.xml features.ui

# Ngcgui must precede Ngcguittt

NGCGUI_FONT = Helvetica -12 normal

# for startup NGCGUI_PREAMBLE, NGCGUI_SUBFILE, NGCGUI_POSTAMBLE, TTT_PREAMBLE
# items, specifly:
# a) absolute filename (start with /)
# b) relative filename: search directories specified by
# [DISPLAY]PROGRAM_PREFIX and [RS274NGC]SUBROUTINE_PATH

NGCGUI_PREAMBLE = in_std.ngc
NGCGUI_SUBFILE = xyz.ngc
NGCGUI_SUBFILE = iquad.ngc
NGCGUI_SUBFILE = db25.ngc
NGCGUI_SUBFILE = qpocket.ngc
NGCGUI_SUBFILE = qpex.ngc
NGCGUI_SUBFILE = ihex.ngc
NGCGUI_SUBFILE = gosper.ngc
# specify "" for a custom tab page
NGCGUI_SUBFILE = ""

NGCGUI_OPTIONS =
#NGCGUI_OPTIONS = opt1 opt2 ...
# opt items:
# nonew -- disallow making new tab page
# noremove -- disallow removing any tab page
# noauto -- no autosend (makeFile, then manually send)
# noiframe -- no internal image, image on separate toplevel

TTT = truetype-tracer
TTT_PREAMBLE = in_std.ngc

DISPLAY = axis
CYCLE_TIME = 0.100
HELP_FILE = doc/help.txt
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.0
MAX_SPINDLE_OVERRIDE = 1.0
MAX_LINEAR_VELOCITY = 1.2
DEFAULT_LINEAR_VELOCITY = .25
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 1
EDITOR = gedit
TOOL_EDITOR = tooledit
INCREMENTS = 1 in, 0.1 in, 10 mil, 1 mil, 1mm, .1mm, 1/8000 in

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.001

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 0
SERVO_PERIOD = 1000000

[HAL]
HALFILE = core_sim.hal
HALFILE = axis_manualtoolchange.hal
HALFILE = simulated_home.hal
HALUI = halui

[TRAJ]
AXES = 3
COORDINATES = X Y Z
#NO_FORCE_HOMING = 1
HOME = 0 0 0
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 1.2
MAX_LINEAR_VELOCITY = 1.2

[AXIS_0]
TYPE = LINEAR
MAX_VELOCITY = 4
MAX_ACCELERATION = 100.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -400.0
MAX_LIMIT = 400.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1
HOME_IS_SHARED = 1

# Second axis
[AXIS_1]
TYPE = LINEAR
MAX_VELOCITY = 4
MAX_ACCELERATION = 100.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -400.0
MAX_LIMIT = 400.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1


[AXIS_2]
TYPE = LINEAR
MAX_VELOCITY = 4
MAX_ACCELERATION = 100.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -799.0
MAX_LIMIT = 100.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME = 0.0
HOME_OFFSET = 1.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 0
HOME_IS_SHARED = 1

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = sim.tbl
TOOL_CHANGE_POSITION = 0 0 2

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

More
26 Jul 2013 20:15 #37067 by Nick
I'm not sure, but probably latest sim version from buildbot.
Axis says 2.6.0-pre .....

Have you made all the changes to files mentioned in readme?

By the way can you give whole output or try to run linuxcnc from console there could be some more debug information....

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

More
26 Jul 2013 20:44 #37068 by pacoblasco
Yes, I did all steps you told on the README.md. It can run standalone, but it still fails when I try to load inside. Had you try to install a new virtual machine from zero (like me) and to try to reinstall it?
For example: package python-lxml is required, but it is not installed by default on linuxcnc machine.
I'm going to reinstall from zero de virtual machine (one of the good points of a virtual machine), and to install all required stuff to compile linuxcnc.

In the other hand, when I launch it in a standalone window, how is working?
I select hole-probe, then I put my paramters, and then it generates a XML file. What must I do with the file?

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

More
26 Jul 2013 21:04 #37070 by Nick
Nope... in fact python-lxml usually goes with inkscape so I have had it already :)

Just try to press refresh it should update Gcode in axis. Or if you want to get gcode - press "save as"

Save - saves an XML - that is used to save treestore from features - this xmls can be imported back later into Features.
Save as - generates Gcode.

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

More
26 Jul 2013 21:20 #37071 by pacoblasco
For example, to search a hole center, is it possible to launch directly pressing one button, or you must save the g-code and then, launche the g-code?

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

More
31 Jul 2013 20:30 #37290 by pacoblasco
Working perfectly!!!!

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

Time to create page: 0.099 seconds
Powered by Kunena Forum