MPG Pendant Code question

More
01 Aug 2010 14:15 #3544 by RothMetalWorks
Hello,

I'm in the process of converting my old Gorton MasterMill to CNC! I just started setting up the computer for EMC & have 2.4 installed on it. I got it to load until I modified the custom.hal file as stated in wiki.linuxcnc.org/emcinfo.pl?Hooking_Up_A_MPG_Pendant . Every time I try to load it after I put the code from that article in it I get the following error:

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.24-16-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.4
EMC2 - 2.4.3
Machine configuration directory is '/home/michael/emc2/configs/Gorton'
Machine configuration file is 'Gorton.ini'
INIFILE=/home/michael/emc2/configs/Gorton/Gorton.ini
PARAMETER_FILE=emc.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
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
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=9838
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
custom.hal:13: Unknown command 'axis.N.jog-vel-mode'
9838
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Traceback (most recent call last):
File "/usr/bin/hal_manualtoolchange", line 33, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "debian/tmp/usr/lib/python2.5/site-packages/nf.py", line 115, in start
KeyboardInterrupt

Kernel message information:
[56013.352926] I-pipe: Domain RTAI registered.
[56013.352936] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[56013.352938] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[56013.352945] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[56013.352948] PIPELINE layers:
[56013.352951] e0be8000 9ac15d93 RTAI 200
[56013.352953] c0383180 0 Linux 100
[56013.457147] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[56013.457549] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[56013.457555] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[56013.457559] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 2525042000 hz.
[56013.457562] RTAI[sched]: timer setup = 2010 ns, resched latency = 2689 ns.
[56013.637778] RTAI[math]: loaded.
[56013.856259] config string '0x378 out df98 in '
[56015.246250] RTAI[math]: unloaded.
[56015.309646] SCHED releases registered named ALIEN RTGLBH
[56015.324601] RTAI[malloc]: unloaded.
[56015.424025] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[56015.427232] I-pipe: Domain RTAI unregistered.
[56015.427241] RTAI[hal]: unmounted.


From what I see it doesn't understand the 'axis.N.jog-vel-mode' line. Can someone help me get this correct?

Thanks!

I'm sure I'll have more questions later on, so bear with me!

Mike

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

More
01 Aug 2010 19:29 #3552 by BigJohnT
In the manual and on wiki the N is a placeholder to indicate you should put a logical number there.
So for the X axis it would be axis.0.jog-vel-mode and that is a zero not the letter O.

I would read the HAL beginners guide part of the Integrators manual to better understand a .hal file.

John

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

More
16 Aug 2010 22:13 #3778 by RothMetalWorks
Sorry for taking so long to get back! BigJohnT, Thanks for the info! I see I definitely have a bunch of reading and learning to do!

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

Time to create page: 0.189 seconds
Powered by Kunena Forum