aiuto configurazione hal e ini pwer linucnc

Sezione dedicata a Linuxcnc
Rispondi
ema_72
Member
Member
Messaggi: 408
Iscritto il: venerdì 11 febbraio 2011, 18:08
Località: perugia

aiuto configurazione hal e ini pwer linucnc

Messaggio da ema_72 » martedì 25 dicembre 2012, 11:07

Scusatemi se apro un nuovo post su cose dette e ridette, ho già  cercato e provato a configurare i finecorsa della mia cnc ma quando avvio emc2 mi da questo errore.
Considerate che ho 2 finecorsa per ogni asse (tranne in z che ne ho 1) e che vorrei azzerare con i stessi fc.
I finecorsa sono collegati NC.
Leggendo qua e in la , ho aggiunto queste righe sul file hal :

# connette i segnali ai pin 10, 12 e 13 della porta parallela
linksp finecorsa-x parport.0.pin-10-in-not
linksp finecorsa-y parport.0.pin-12-in-not
linksp finecorsa-z parport.0.pin-13-in-not

# Home asse X
linksp finecorsa-x axis.0.home-sw-in

# Home asse Y
linksp finecorsa-y axis.1.home-sw-in

# Home asse Z
linksp finecorsa-z axis.2.home-sw-in



e modificato gli assi del file ini cosi :

[AXIS_0]

TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 30.48
# NOTE: the step generator module applies its own limits to
# acceleration and velocity. We have discovered that it needs
# to have a little "headroom" over the accel by the trajectory
# planner, otherwise it can fall slightly behind during accel
# and later overshoot as it catches up. In the long term we
# hope to come up with a clean fix for this problem. In the
# meantime, please set STEPGEN_MAXACCEL below to a few percent
# higher than the regular acceleration limit MAX_ACCELERATION
MAX_ACCELERATION = 500.0
STEPGEN_MAXACCEL = 520.0
BACKLASH = 0.000
SCALE = 80
OUTPUT_SCALE = 1.000
MIN_LIMIT = 0.0
MAX_LIMIT = 400
FERROR = 1.270
MIN_FERROR = 0.254
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 1
HOME_LATCH_VEL = -0.15
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_IS_SHARED = 0
HOME_SEQUENCE = 0




ditemi dove sbaglio, !!!! please !!!!!

Poi vorrei fare un altra domanda, sulla mia tastiera non esiste il tasto Home , come avvio la procedura Homing ?????



Questo è il messaggio di errore :


Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.1
Machine configuration directory is '/home/emanuele/linuxcnc/configs/stepper'
Machine configuration file is 'stepper_mm.ini'
INIFILE=/home/emanuele/linuxcnc/configs/stepper/stepper_mm.ini
PARAMETER_FILE=stepper.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=2953
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
HAL: ERROR: signal 'finecorsa-x' not found
standard_pinout.hal:82: link failed
2953
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 1399.861290] I-pipe: Domain RTAI registered.
[ 1399.861302] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 1399.861306] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 1399.861314] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 1399.861318] PIPELINE layers:
[ 1399.861321] f8685e20 9ac15d93 RTAI 200
[ 1399.861325] c085cb20 0 Linux 100
[ 1399.895537] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 1399.895743] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 1399.895749] RTAI[sched]: hard timer type/freq = APIC/8368796(Hz); default timing: periodic; linear timed lists.
[ 1399.895754] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2811733000 hz.
[ 1399.895757] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 1399.895914] RTAI[usi]: enabled.
[ 1400.025452] RTAI[math]: loaded.
[ 1400.146719] config string '0x0378'
[ 1400.694732] RTAI[math]: unloaded.
[ 1400.790335] SCHED releases registered named ALIEN RTGLBH
[ 1400.804507] RTAI[malloc]: unloaded.
[ 1400.904076] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 1400.910688] I-pipe: Domain RTAI unregistered.
[ 1400.910702] RTAI[hal]: unmounted.

billielliot
Senior
Senior
Messaggi: 1747
Iscritto il: martedì 16 ottobre 2007, 23:23
Località: Trezzo sull'Adda

Re: aiuto configurazione hal e ini pwer linucnc

Messaggio da billielliot » martedì 25 dicembre 2012, 18:18

Ciao ema_72,

il messaggio di errore ti dice che non trova il segnale chiamato "finecorsa-x"

Codice: Seleziona tutto

HAL: ERROR: signal 'finecorsa-x' not found
Cosi' a naso ti suggerirei di provare a ribaltare le dichiarazioni.

Prima assegni un nome ai segnali degli assi:

Codice: Seleziona tutto

# Home asse X
linksp finecorsa-x axis.0.home-sw-in

# Home asse Y
linksp finecorsa-y axis.1.home-sw-in

# Home asse Z
linksp finecorsa-z axis.2.home-sw-in
Successivamente colleghi i segnali ai pin della porta parallela:

Codice: Seleziona tutto

# connette i segnali ai pin 10, 12 e 13 della porta parallela
linksp finecorsa-x parport.0.pin-10-in-not
linksp finecorsa-y parport.0.pin-12-in-not
linksp finecorsa-z parport.0.pin-13-in-not
Visto che ci sei magari sostituisci tutti i comandi "linksp" con il piu' recente "net".

Ciao :-)

Mauro
Amat victoria curam

ema_72
Member
Member
Messaggi: 408
Iscritto il: venerdì 11 febbraio 2011, 18:08
Località: perugia

Re: aiuto configurazione hal e ini pwer linucnc

Messaggio da ema_72 » mercoledì 26 dicembre 2012, 12:45

ok ho risolto con lo stepconf (per ora va bene così poi cercherò di interpretare i singoli file) la voglia di vederla funzionare era troppa !!!! 8)

ora però vorrei chiedervi un'altra cosa, visto che ogni tanto va in blocco qualche finecorsa forse per le vibrazioni forse per qualche interferenza , mi aiutate a installare il debounce ?????

grazie allego i file di configurazione !!!!
Non hai i permessi necessari per visualizzare i file e le foto allegati in questo messaggio. Per visualizzare tali file devi registrarti ed effettuare il Login

ema_72
Member
Member
Messaggi: 408
Iscritto il: venerdì 11 febbraio 2011, 18:08
Località: perugia

Re: aiuto configurazione hal e ini pwer linucnc

Messaggio da ema_72 » lunedì 31 dicembre 2012, 11:45

nessuno che mi da una mano???

Rispondi

Torna a “Linuxcnc”