EMC2 Error help

More
29 Mar 2011 03:03 #8239 by 7sticks
Replied by 7sticks on topic Re:EMC2 Error help
Here is the latest:
I renamed the router to IMAV Router so that it wouldn't confuse me
I installed a new parallel port card that resides at 0x1018
I inverted all the pins in Stepconfig and was able to see my motors turn and react to changes in velocity and acceleration but am still not sure I have everything correct yet. When asking the Z to move an inch it moves 2 1/2. So there's more to learn.

However, right now I still can't get EMC2 to start and run.
Here is the error message contents followed by INI flle contents. ****Just saw that I could attach a file so I attached the hal file as well****

Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.5
EMC2 - 2.4.3
Machine configuration directory is '/home/keith/emc2/configs/IMAV Router'
Machine configuration file is 'IMAV Router.ini'
INIFILE=/home/keith/emc2/configs/IMAV Router/IMAV Router.ini
PARAMETER_FILE=emc.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=halui
DISPLAY=axis
NML_FILE=
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=1658
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Could not open command file 'IMAV'
1658
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 1107.947206] I-pipe: Domain RTAI registered.
[ 1107.947225] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 1107.947233] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 1107.947355] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 1107.947363] PIPELINE layers:
[ 1107.947371] f8d4de20 9ac15d93 RTAI 200
[ 1107.947378] c085cb20 0 Linux 100
[ 1107.998999] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 1107.999761] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 1107.999773] RTAI[sched]: hard timer type/freq = APIC/10416768(Hz); default timing: periodic; linear timed lists.
[ 1107.999782] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1666728000 hz.
[ 1107.999788] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 1108.000896] RTAI[usi]: enabled.
[ 1108.100074] RTAI[math]: loaded.
[ 1109.291817] RTAI[math]: unloaded.
[ 1109.338518] SCHED releases registered named ALIEN RTGLBH
[ 1109.404510] RTAI[malloc]: unloaded.
[ 1109.504025] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 1109.510732] I-pipe: Domain RTAI unregistered.
[ 1109.510889] RTAI[hal]: unmounted.


INI file contents

# Generated by stepconf at Sat Mar 26 01:48:39 2011
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = IMAV Router
DEBUG = 0

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/keith/emc2/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
PYVCP = custompanel.xml

[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 = emc.var

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

[HAL]
HALUI = halui
HALFILE = IMAV Router.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
# add halui MDI commands here (max 64)

[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.33
MAX_LINEAR_VELOCITY = 3.30

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

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 3000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -0.01
MAX_LIMIT = 55.0
HOME_OFFSET = 0.0

[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.5
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 4500.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -0.01
MAX_LIMIT = 34.0
HOME_OFFSET = 0.0

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 3.3
MAX_ACCELERATION = 22.0
STEPGEN_MAXACCEL = 27.5
SCALE = 800.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -4.0
MAX_LIMIT = 0.01
HOME_OFFSET = 0.0

File Attachment:

File Name: IMAV_Router.hal
File Size:3 KB
Attachments:

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

More
29 Mar 2011 05:37 #8242 by cmorley
Replied by cmorley on topic Re:EMC2 Error help
try renaming to a name without a space.

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

More
29 Mar 2011 06:20 #8243 by 7sticks
Replied by 7sticks on topic Re:EMC2 Error help
That was it! EMC2 starts and router works!
Now I can finish the limit switches, estop, and watch it test run, hopefully without a crash.
Tomorrow evening, right now I have to get some sleep, it's been a good day just now.
Thanks much

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

More
29 Mar 2011 09:52 #8248 by andypugh
Replied by andypugh on topic Re:EMC2 Error help
Your file is called IMAV_Router.hal, but the INI file entry is IMAV Router.hal.

The INI-file parser uses spaces as delimiters, so stops after IMAV and can't find a file of that name. Change your INI file line to read

[HAL]
HALUI = halui
HALFILE = IMAV_Router.hal

And all should be well. (the error message has been saying this all along, the very first message you posted contains "can not find command file IMAV")

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

Time to create page: 0.065 seconds
Powered by Kunena Forum