Wireless MPG pendant pro LINUXCNC

Uživatelský avatar
filla
Příspěvky: 3536
Registrován: 1. 12. 2013, 12:55
Bydliště: Brno
Kontaktovat uživatele:

27. 2. 2015, 6:00

mas povolene HALUI a PyVCP?
"do řiti se řítíme, ani o tom nevíme.."
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

27. 2. 2015, 6:01

Nemám tušení co to je ....
Uživatelský avatar
filla
Příspěvky: 3536
Registrován: 1. 12. 2013, 12:55
Bydliště: Brno
Kontaktovat uživatele:

27. 2. 2015, 6:05

polozka v stepconf wizard

zkus pouzit tento .pncconf
nejlepsi by bylo udelat celou konfiguraci odznova
"do řiti se řítíme, ani o tom nevíme.."
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

27. 2. 2015, 6:30

Vyzkoušel jsem to, ale po proběhnutí pncconf se veškeré záznamy z mesa.ini ohledně hb04 ztratily. Nahrál jsem tvojí mesa.ini a napsalo to toto:
/media/9785-F627/mesa/mesa.iniDebug file information:
mesa.hal:57: Ini variable '[AXIS_0]STEPGEN_MAXACCEL' not found.
4479
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Začínám být v zoufalý ....
Uživatelský avatar
filla
Příspěvky: 3536
Registrován: 1. 12. 2013, 12:55
Bydliště: Brno
Kontaktovat uživatele:

27. 2. 2015, 6:38

v soucasne konfiguraci se to hada, udelej si novou kofiguraci, treba "mesa-xhc" nastav potrebne parametry, nakopiruj soubory a uprav je, postup mas spravny, ja to delal uplne stejne, nez stravit lademim hodiny, zacel jsem "na zelene louce"
"do řiti se řítíme, ani o tom nevíme.."
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

28. 2. 2015, 6:29

Tak jsem dneska vytvořil úplně nový config, Halui je zapnutý motory , IO vše funguje, po nakopírování a úpravě souborů úplně stejný výsledek.
Ještě mě napadá upgrade na 2.6.7, cosi je v changelogu úpravh o HB04.... jinak už fakt nevím.
Výpis:
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.6.5
Machine configuration directory is '/home/petr/linuxcnc/configs/mesahal'
Machine configuration file is 'mesahal.ini'
INIFILE=/home/petr/linuxcnc/configs/mesahal/mesahal.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=2811
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
xhc-hb04: connection lost, cleaning up
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Pin 'halui.spindle.stop' was already linked to signal 'spindle-manual-stop'
while executing
"hal net pendant:half xhc-hb04.button-half => halui.spindle.stop"
("eval" body line 1)
invoked from within
"eval hal net $args"
(procedure "net" line 1)
invoked from within
"net pendant:$bname $fullbname => $thepin"
(procedure "connect_pins" line 33)
invoked from within
"connect_pins "
(file "xhc-hb04.tcl" line 404)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/usr/bin/haltcl" line 55)
2811
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 284.205396] I-pipe: Domain RTAI registered.
[ 284.205404] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 284.205407] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 284.205456] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 284.205459] PIPELINE layers:
[ 284.205462] fb952e20 9ac15d93 RTAI 200
[ 284.205465] c085cb20 0 Linux 100
[ 284.227145] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 284.227538] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 284.227546] RTAI[sched]: hard timer type/freq = APIC/12468680(Hz); default timing: periodic; linear timed lists.
[ 284.227550] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2094622000 hz.
[ 284.227553] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 284.227679] RTAI[usi]: enabled.
[ 284.273857] RTAI[math]: loaded.
[ 284.357925] hm2: loading Mesa HostMot2 driver version 0.15
[ 284.360948] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 284.361001] hm2_pci 0000:07:04.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
[ 284.361005] hm2_pci: discovered 5i25 at 0000:07:04.0
[ 284.361724] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[ 284.418765] Board hm2_5i25.0.7i76.0.0 Hardware Mode 0 = standard
[ 284.420855] Board hm2_5i25.0.7i76.0.0 Software Mode 0 = io_spin
[ 284.423525] Board hm2_5i25.0.7i76.0.0 Software Mode 1 = io_ana_spin
[ 284.427133] Board hm2_5i25.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
[ 284.568479] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 284.568483] hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
[ 284.568486] hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
[ 284.568490] hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
[ 284.568493] hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
[ 284.568496] hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
[ 284.568500] hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
[ 284.568503] hm2/hm2_5i25.0: IO Pin 006 (P3-04): IOPort
[ 284.568506] hm2/hm2_5i25.0: IO Pin 007 (P3-17): IOPort
[ 284.568508] hm2/hm2_5i25.0: IO Pin 008 (P3-05): IOPort
[ 284.568511] hm2/hm2_5i25.0: IO Pin 009 (P3-06): IOPort
[ 284.568514] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Smart Serial Interface #0, pin TxData0 (Output)
[ 284.568518] hm2/hm2_5i25.0: IO Pin 011 (P3-08): Smart Serial Interface #0, pin RxData0 (Input)
[ 284.568521] hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort
[ 284.568524] hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort
[ 284.568527] hm2/hm2_5i25.0: IO Pin 014 (P3-11): IOPort
[ 284.568530] hm2/hm2_5i25.0: IO Pin 015 (P3-12): IOPort
[ 284.568532] hm2/hm2_5i25.0: IO Pin 016 (P3-13): IOPort
[ 284.568535] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[ 284.568538] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[ 284.568540] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[ 284.568543] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[ 284.568546] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[ 284.568548] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[ 284.568551] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[ 284.568554] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[ 284.568557] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[ 284.568559] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[ 284.568562] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[ 284.568565] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[ 284.568567] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[ 284.568570] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[ 284.568572] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[ 284.568575] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[ 284.568578] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[ 284.568641] hm2/hm2_5i25.0: registered
[ 284.568643] hm2_5i25.0: initialized AnyIO board at 0000:07:04.0
[ 284.579078] creating ladder-state
[ 285.046122] hm2_5i25.0: dropping AnyIO board at 0000:07:04.0
[ 285.046130] hm2/hm2_5i25.0: unregistered
[ 285.046160] hm2_pci 0000:07:04.0: PCI INT A disabled
[ 285.046196] hm2_pci: driver unloaded
[ 285.049822] hm2: unloading
[ 287.214422] RTAI[math]: unloaded.
[ 287.243627] SCHED releases registered named ALIEN RTGLBH
[ 287.272285] RTAI[malloc]: unloaded.
[ 287.372026] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 287.374784] I-pipe: Domain RTAI unregistered.
[ 287.374842] RTAI[hal]: unmounted.


AI[hal]: unmounted.
Uživatelský avatar
filla
Příspěvky: 3536
Registrován: 1. 12. 2013, 12:55
Bydliště: Brno
Kontaktovat uživatele:

28. 2. 2015, 7:51

Debug file information:
Pin 'halui.spindle.stop' was already linked to signal 'spindle-manual-stop'
while executing
"hal net pendant:half xhc-hb04.button-half => halui.spindle.stop"
("eval" body line 1)
invoked from within
"eval hal net $args"
(procedure "net" line 1)
invoked from within
"net pendant:$bname $fullbname => $thepin"
(procedure "connect_pins" line 33)
invoked from within
"connect_pins "

hadaji se ti HAL piny mezi mesou a xhc
"do řiti se řítíme, ani o tom nevíme.."
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

28. 2. 2015, 9:00

To jako že musí být nadefinovaný vstup na mese , když ho chci využívat na pendantu ? Ve výpisu je v prvním řádku spindle manual stop, což na mese nadefinovaný nemám ....
Uživatelský avatar
Kilovolt
Sponzor fora
Příspěvky: 829
Registrován: 21. 10. 2009, 9:59
Bydliště: Podřipák jak vyšitej!

28. 2. 2015, 11:33

Jedno z pravidel je, že ti nesmějí jít dva výstupní piny (out) do jednoho signálu- projdi si ten signál 'spindle-manual-stop'. A příště sem hoď i hal soubor :D
Elektrika je potvora-nejni vidět a kope jak divoká mula.
"Učíme se po celý život. Až na školní léta" - Gabriel Laub
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

1. 3. 2015, 8:53

Fyzicky na mese v pncconf spindle stop vůbec nemám nadefinovaný. Jsem z toho nějakej zmatenej. Určitě jde o kombinaci mesa / pendant, protože když vytvořím cfg bez mesy tak pendant jede.
Přikládám hal mesy :
# Generated by PNCconf at Sun Apr 6 12:12:15 2014
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

loadrt trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=0 num_pwmgens=0 num_3pwmgens=0 num_stepgens=3 sserial_port_0=00xxxxxx "
setp hm2_5i25.0.watchdog.timeout_ns 10000000

addf hm2_5i25.0.read servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf hm2_5i25.0.write servo-thread
addf hm2_5i25.0.pet_watchdog servo-thread

# external output signals

# --- MACHINE-IS-ENABLED ---
setp hm2_5i25.0.gpio.006.is_output true
net machine-is-enabled hm2_5i25.0.gpio.006.out
setp hm2_5i25.0.gpio.006.invert_output true


# --- SPINDLE-ON ---
net spindle-on hm2_5i25.0.7i76.0.0.output-00

# external input signals


# --- BOTH-X ---
net both-x <= hm2_5i25.0.7i76.0.0.input-00

# --- BOTH-Y ---
net both-y <= hm2_5i25.0.7i76.0.0.input-01

# --- BOTH-Z ---
net both-z <= hm2_5i25.0.7i76.0.0.input-02

# --- ESTOP-EXT ---
net estop-ext <= hm2_5i25.0.7i76.0.0.input-03-not

#*******************
# AXIS X
#*******************

# Step Gen signals/setup

setp hm2_5i25.0.stepgen.00.dirsetup [AXIS_0]DIRSETUP
setp hm2_5i25.0.stepgen.00.dirhold [AXIS_0]DIRHOLD
setp hm2_5i25.0.stepgen.00.steplen [AXIS_0]STEPLEN
setp hm2_5i25.0.stepgen.00.stepspace [AXIS_0]STEPSPACE
setp hm2_5i25.0.stepgen.00.position-scale [AXIS_0]STEP_SCALE
setp hm2_5i25.0.stepgen.00.step_type 0
setp hm2_5i25.0.stepgen.00.control-type 0
setp hm2_5i25.0.stepgen.00.maxaccel 375.0
setp hm2_5i25.0.stepgen.00.maxvel 58.3

net x-pos-fb axis.0.motor-pos-fb <= hm2_5i25.0.stepgen.00.position-fb
net x-pos-cmd axis.0.motor-pos-cmd => hm2_5i25.0.stepgen.00.position-cmd
net x-enable axis.0.amp-enable-out => hm2_5i25.0.stepgen.00.enable

# ---setup home / limit switch signals---

net x-home-sw => axis.0.home-sw-in
net both-x => axis.0.neg-lim-sw-in
net both-x => axis.0.pos-lim-sw-in

#*******************
# AXIS Y
#*******************

# Step Gen signals/setup

setp hm2_5i25.0.stepgen.01.dirsetup [AXIS_1]DIRSETUP
setp hm2_5i25.0.stepgen.01.dirhold [AXIS_1]DIRHOLD
setp hm2_5i25.0.stepgen.01.steplen [AXIS_1]STEPLEN
setp hm2_5i25.0.stepgen.01.stepspace [AXIS_1]STEPSPACE
setp hm2_5i25.0.stepgen.01.position-scale [AXIS_1]STEP_SCALE
setp hm2_5i25.0.stepgen.01.step_type 0
setp hm2_5i25.0.stepgen.01.control-type 0
setp hm2_5i25.0.stepgen.01.maxaccel 375.0
setp hm2_5i25.0.stepgen.01.maxvel 52.1

net y-pos-fb axis.1.motor-pos-fb <= hm2_5i25.0.stepgen.01.position-fb
net y-pos-cmd axis.1.motor-pos-cmd => hm2_5i25.0.stepgen.01.position-cmd
net y-enable axis.1.amp-enable-out => hm2_5i25.0.stepgen.01.enable

# ---setup home / limit switch signals---

net y-home-sw => axis.1.home-sw-in
net both-y => axis.1.neg-lim-sw-in
net both-y => axis.1.pos-lim-sw-in

#*******************
# AXIS Z
#*******************

# Step Gen signals/setup

setp hm2_5i25.0.stepgen.02.dirsetup [AXIS_2]DIRSETUP
setp hm2_5i25.0.stepgen.02.dirhold [AXIS_2]DIRHOLD
setp hm2_5i25.0.stepgen.02.steplen [AXIS_2]STEPLEN
setp hm2_5i25.0.stepgen.02.stepspace [AXIS_2]STEPSPACE
setp hm2_5i25.0.stepgen.02.position-scale [AXIS_2]STEP_SCALE
setp hm2_5i25.0.stepgen.02.step_type 0
setp hm2_5i25.0.stepgen.02.control-type 0
setp hm2_5i25.0.stepgen.02.maxaccel 520.0
setp hm2_5i25.0.stepgen.02.maxvel 50.0

net z-pos-fb axis.2.motor-pos-fb <= hm2_5i25.0.stepgen.02.position-fb
net z-pos-cmd axis.2.motor-pos-cmd => hm2_5i25.0.stepgen.02.position-cmd
net z-enable axis.2.amp-enable-out => hm2_5i25.0.stepgen.02.enable

# ---setup home / limit switch signals---

net z-home-sw => axis.2.home-sw-in
net both-z => axis.2.neg-lim-sw-in
net both-z => axis.2.pos-lim-sw-in

#*******************
# SPINDLE S
#*******************

# ---setup spindle control signals---

net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd <= motion.spindle-speed-out
net spindle-on <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable

# ---Setup spindle at speed signals---

sets spindle-at-speed true


#******************************
# connect miscellaneous signals
#******************************

# ---HALUI signals---

net joint-select-a halui.joint.0.select
net x-is-homed halui.joint.0.is-homed
net jog-x-pos halui.jog.0.plus
net jog-x-neg halui.jog.0.minus
net jog-x-analog halui.jog.0.analog
net joint-select-b halui.joint.1.select
net y-is-homed halui.joint.1.is-homed
net jog-y-pos halui.jog.1.plus
net jog-y-neg halui.jog.1.minus
net jog-y-analog halui.jog.1.analog
net joint-select-c halui.joint.2.select
net z-is-homed halui.joint.2.is-homed
net jog-z-pos halui.jog.2.plus
net jog-z-neg halui.jog.2.minus
net jog-z-analog halui.jog.2.analog
net jog-selected-pos halui.jog.selected.plus
net jog-selected-neg halui.jog.selected.minus
net spindle-manual-cw halui.spindle.forward
net spindle-manual-ccw halui.spindle.reverse
net spindle-manual-stop halui.spindle.stop
net machine-is-on halui.machine.is-on
net jog-speed halui.jog-speed
net MDI-mode halui.mode.is-mdi

# ---coolant signals---

net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood

# ---probe signal---

net probe-in => motion.probe-input

# ---motion control signals---

net in-position <= motion.in-position
net machine-is-enabled <= motion.motion-enabled

# ---digital in / out signals---

# ---estop signals---

net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in

# ---manual tool change signals---

loadusr -W hal_manualtoolchange
net tool-change-request iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-change-confirmed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Uživatelský avatar
Kilovolt
Sponzor fora
Příspěvky: 829
Registrován: 21. 10. 2009, 9:59
Bydliště: Podřipák jak vyšitej!

1. 3. 2015, 7:23

Zkus smáznout tohle "net spindle-manual-stop halui.spindle.stop" ze sekce ---HALUI signals---. Mám pocit, že máš ještě jeden hal soubor extra k tomu ovládání. Samozřejmě než začneš editovat kofiguráky, tak je zazálohuj :lol:
Elektrika je potvora-nejni vidět a kope jak divoká mula.
"Učíme se po celý život. Až na školní léta" - Gabriel Laub
RaS
Příspěvky: 8589
Registrován: 26. 3. 2009, 9:12
Bydliště: Úvaly

1. 3. 2015, 8:07

nemaž.. dej tam # tenhle znak uvidíš hned jestli to najede nebo ne.. je pravda že ho tam má dvakrát přiřazenej což nelze.. smazat můžeš vždycky..
věčný rýpal,který musí mít poslední slovo, odpůrce low-cost zařízení končících v naprosté většině případů v hromadě šrotu
uživatelé hýbátek, kteří mají z mých příspěvků celoživotní trauma nechť si mé příspěvky VYPNOU
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

2. 3. 2015, 4:34

Tak jsem musel zakázat i probe in, start stop tlačítko a ejhle - naběhlo to. Když si budu chtít namapovat i makro tlačítka , jaké příkazy můžu do ini souboru doplnit ?
Všem moc děkuju za pomoc.
Uživatelský avatar
filla
Příspěvky: 3536
Registrován: 1. 12. 2013, 12:55
Bydliště: Brno
Kontaktovat uživatele:

2. 3. 2015, 6:00

no vidis, jsi sikulka, v .ini si prohlidni sekci XHC BUTON a v HALUI si k tlacitku das pozadovane MDI
"do řiti se řítíme, ani o tom nevíme.."
pepiho
Příspěvky: 39
Registrován: 19. 8. 2011, 10:41
Bydliště: Liberecko

3. 3. 2015, 7:17

Tak jsem spokojenej až na jeden nešvar. Pustím emc, houmuju jednotlivé osy, zobrazí se sice značka zhoumování, ale číslo se nevynuluje. Zkoušel jsem měnit zobrazení v roletě view , ale po spuštění emc je to vždycky stejný. Když pak dám najeď do nuly, najede to na souřadnice MC.
Odpovědět

Zpět na „LinuxCNC - drive pod nazvem EMC2“