EMC Using MOTINC 100 Light

More
09 Aug 2011 20:58 #12355 by emad_ahmed2
i am using emc ver.2.4.3 and i have this error and i need help to solve this problem
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/emad/emc2/configs/motenc'
Machine configuration file is 'motenc.ini'
INIFILE=/home/emad/emc2/configs/motenc/motenc.ini
PARAMETER_FILE=motenc.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=tkemc
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=4323
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
HAL: ERROR: function 'motenc.0.encoder-read' not found
motenc_motion.hal:9: addf failed
4323
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[343603.504376] I-pipe: Domain RTAI registered.
[343603.504386] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[343603.504390] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[343603.504397] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[343603.504400] PIPELINE layers:
[343603.504404] f0fcfe20 9ac15d93 RTAI 200
[343603.504407] c085cb20 0 Linux 100
[343603.532357] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[343603.532535] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[343603.532542] RTAI[sched]: hard timer type/freq = APIC/12469440(Hz); default timing: periodic; linear timed lists.
[343603.532546] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2992901000 hz.
[343603.532549] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[343603.532704] RTAI[usi]: enabled.
[343603.648187] RTAI[math]: loaded.
[343604.576919] RTAI[math]: unloaded.
[343604.658887] SCHED releases registered named ALIEN RTGLBH
[343604.673692] RTAI[malloc]: unloaded.
[343604.772029] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[343604.777409] I-pipe: Domain RTAI unregistered.
[343604.777421] RTAI[hal]: unmounted.




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

More
09 Aug 2011 21:44 #12356 by BigJohnT
Is the Montec a PCI card? If so it has to be installed or the config will fail to find the card.

John

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

More
09 Aug 2011 21:55 #12357 by emad_ahmed2
thank you for respond
yes it is motenc pci card and it is installed at add 0
so pleas tell me how to test it step by step

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

More
09 Aug 2011 21:59 #12358 by BigJohnT
I don't know anything about the Montec cards except where the manual is...

www.linuxcnc.org/docview/html/drivers_motenc.html

You might try loading the card from the terminal using HAL to see what errors it gives.

Open a terminal and type

halrun
loadrt hal_motenc

and see what that does...

John

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

More
09 Aug 2011 22:00 #12359 by BigJohnT
Also, you should get the latest version of EMC currently 2.4.6

John

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

More
09 Aug 2011 22:20 #12361 by emad_ahmed2
Now i have ver 2.4.6
and i test the
emad@emad-desktop:~$ halrun
halcmd: loadrt hal_motenc
halcmd: addf motenc.0.encoder-read servo-thread 1
HAL: ERROR: function 'motenc.0.encoder-read' not found
<stdin>:2: addf failed
halcmd:
but as you see still have the same problem

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

More
09 Aug 2011 23:20 #12364 by BigJohnT
I assume you didn't create a servo thread before you tried to addf to it...

It does appear to load so that is a good thing


John

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

More
09 Aug 2011 23:21 #12365 by BigJohnT
You can use show pin to see what pins are present after you load the motinc driver.

John

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

More
10 Aug 2011 11:43 #12375 by andypugh
emad_ahmed2 wrote:

halcmd: loadrt hal_motenc
halcmd: addf motenc.0.encoder-read servo-thread 1
HAL: ERROR: function 'motenc.0.encoder-read' not found

Interesting.
what do you get with:
halrun
loadrt hal_motenc
show funct

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

Time to create page: 0.089 seconds
Powered by Kunena Forum