Good Morning All,
This weekend I upgraded my software from EMC 2.4.6 to Linuxcnc 2.5.0 . Once the upgrade was finished, I put my config files into their directory, and edited for txt changes (EMC-> Linuxcnc).
When I ran my setup, everything would pop up on the screen, then immediately close, and show the error report screen. If I comment out all the NGCGUI info, my setup runs. I have pasted error, and INI file below...Any help would be appreciated. I tried changing the NGCGUI to be the same as in the examples in the sim directory , as the format in the INI was different then it was in the EMC2.4.6...but that made no difference...
The error is as follows:
ngcgui_app_init: Supstituting ngcgui.tcl for /usr/lib/tcltk/linuxcnc/ngcgui.tcl Traceback (most recent call last):
File "/usr/bin/axis", line 3217, in <module>
root_window.tk.call ("package", "require", *pkg)
_tkinter.TclError: expected integer but got "normal"
My INI file is:
# Generated by stepconf at Sun May 29 08:18:16 2011
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = lathetest
DEBUG = 0
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
[DISPLAY]
PROGRAM_PREFIX = ../../../nc_files
# Note: TKPKG (one or more) specifies tcl/tk apps to embed in axis tab pages
TKPKG = Ngcgui 1.0
# 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 = ngcgui.tcl
NGCGUI_FONT = Courier-10 normal
NGCGUI_PREAMBLE = /home/will/linuxcnc/nc_files/lathe_std.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/face.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/finish.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/odprofile.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/th-od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/taper-od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/id.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/backlash.ngc
NGCGUI_SUBFILE= ""
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/will/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
LATHE = 1
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale 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.010
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 36258
SERVO_PERIOD = 1000000
[HAL]
HALFILE = lathetest.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[TRAJ]
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.10
MAX_LINEAR_VELOCITY = 1.00
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 2.8
MAX_VELOCITY = 0.25
MAX_ACCELERATION = 1.0
STEPGEN_MAXACCEL = 3
SCALE = 10156.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = 0.0
MAX_LIMIT = 2.85
HOME_OFFSET = 2.8500000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = -0.049232
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
BACKLASH = .0028
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 0.25
MAX_ACCELERATION = 3.0
STEPGEN_MAXACCEL = 3.75
SCALE = 6400.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -10.0
MAX_LIMIT = 1.0
HOME_OFFSET = 1.000000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = -0.050000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
BACKLASH=.0386
Regards,
Will Riddle, Seattle, WA.