Olá pessoal, meu nome é Leonardo, venho acompanhando fórum há alguns meses, sou novato em CNC, estou montando uma de madeira, gostaria de uma ajuda para configurar o EMC2 versão: 2.4.6 >> Ubuntu 10.04.
Configuração do PC:
PC Chips A15G - V1.0, memória 1gb, HD 500gb
Placas CNC: N-Labs Phase-drive-5-i + R-1.0
EMC2 usando Phase Drive
Instalei o Ubuntu CNC e não consegui fazer o motor girar, o máximo que consigo é um passo somente, depois de alguns dias pesquisando consegui 1 passo para direita e outro para esquerda.
Lendo as dicas aqui do fórum, percebi que precisava de configurar o EMC2 para Phase-drive. Segui os passos descritos para configurar a Phase-drive, muito bem explanado pelo Cientista13 no tópico:
http://www.guiacnc.com.br/index.php/topic,6140.msg111916.html#msg111916No meu caso apresentou o erro:
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.6
Machine configuration directory is '/home/leo/emc2/configs/Phase_drive'
Machine configuration file is 'phase_drive.ini'
INIFILE=/home/leo/emc2/configs/Phase_drive/phase_drive.ini
PARAMETER_FILE=stepper.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=axis
NML_FILE=emc.nml
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
**********************************************************
* Current Directory = /home/leo/emc2/configs/Phase_drive
*
**********************************************************
* BufferName = emcStatus
* BufferType = 0
* ProcessName = emc
* Configuration File = emc.nml
* CMS Status = -3 (CMS_INTERNAL_ACCESS
_ERROR: An error occured during an internal access function. )
* Recent errors repeated:
PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_
* BufferLine: B emcStatus SHMEM localhost 10240 0 0 2 16 1002 TCP=5005 xdr
* ProcessLine: P emc emcStatus LOCAL localhost W 0 1.0 0 0
* error_type = 5 (NML_INTERNAL_CMS_ER
ROR)
************************************************************
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10748 bytes to global memory at offset 855DCB8
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208.
Maximum number of errors to print exceeded!
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=2522
Killing task milltask, PID=2570
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
A configuration error is preventing emc2 from starting.
More information may be available when running from a terminal.
2522
PID TTY STAT TIME COMMAND
2570
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 3879.386374] I-pipe: Domain RTAI registered.
[ 3879.386385] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 3879.386387] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 3879.386393] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 3879.386395] PIPELINE layers:
[ 3879.386398] fafcce20 9ac15d93 RTAI 200
[ 3879.386400] c085cb20 0 Linux 100
[ 3879.411695] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 3879.411864] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 3879.411869] RTAI[sched]: hard timer type/freq = APIC/12557835(Hz); default timing: periodic; linear timed lists.
[ 3879.411872] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2109725000 hz.
[ 3879.411875] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 3879.412052] RTAI[usi]: enabled.
[ 3879.519850] RTAI[math]: loaded.
[ 3879.614638] config string '0x0378'
[ 3886.197812] RTAI[math]: unloaded.
[ 3886.273660] SCHED releases registered named ALIEN RTGLBH
[ 3886.289656] RTAI[malloc]: unloaded.
[ 3886.388025] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 3886.393694] I-pipe: Domain RTAI unregistered.
[ 3886.393703] RTAI[hal]: unmounted.
Estou na dúvida se o problema encontra-se na versão do EMC2 ou na configuração dos pinos da porta paralela.
Toda e qualquer ajuda será bem vinda!