5i25 with 7i76 - not responding correctly
- mariusl
- Topic Author
- Offline
- Platinum Member
I am trying to get a 5i25 with a 7i76 to work wit a very simple 3 axis system. It would seem that the hm2 dirver loads but then unloads as HAL does not find any pins. Here is the debug dump and the config file.
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.2
Machine configuration directory is '/home/marius/linuxcnc/configs/5i25_test'
Machine configuration file is '5i25_test.ini'
INIFILE=/home/marius/linuxcnc/configs/5i25_test/5i25_test.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
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=11189
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
5i25_test.hal:25: Pin 'hm2_5i25.0.7i76.0.0.input-00' does not exist
11189
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[114327.657084] I-pipe: Domain RTAI registered.
[114327.657093] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[114327.657096] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[114327.657131] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[114327.657133] PIPELINE layers:
[114327.657136] fc52ce20 9ac15d93 RTAI 200
[114327.657139] c085cb20 0 Linux 100
[114327.677578] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[114327.677758] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[114327.677765] RTAI[sched]: hard timer type/freq = APIC/12470350(Hz); default timing: periodic; linear timed lists.
[114327.677769] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1995263000 hz.
[114327.677772] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[114327.677861] RTAI[usi]: enabled.
[114327.741188] RTAI[math]: loaded.
[114327.822468] hm2: loading Mesa HostMot2 driver version 0.15
[114327.826036] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[114327.826084] hm2_pci 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[114327.826088] hm2_pci: discovered 5i25 at 0000:02:00.0
[114327.827276] hm2/hm2_5i25.0: Smart Serial Firmware Version 35
[114327.883486] hm2/hm2_5i25.0: 34 I/O Pins used:
[114327.883492] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[114327.883495] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort
[114327.883498] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort
[114327.883500] hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort
[114327.883503] hm2/hm2_5i25.0: IO Pin 004 (P3-03): IOPort
[114327.883506] hm2/hm2_5i25.0: IO Pin 005 (P3-16): IOPort
[114327.883508] hm2/hm2_5i25.0: IO Pin 006 (P3-04): IOPort
[114327.883512] hm2/hm2_5i25.0: IO Pin 007 (P3-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
[114327.883515] hm2/hm2_5i25.0: IO Pin 008 (P3-05): Muxed Encoder #0, pin Muxed A (Input)
[114327.883519] hm2/hm2_5i25.0: IO Pin 009 (P3-06): Muxed Encoder #0, pin Muxed B (Input)
[114327.883522] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Muxed Encoder #0, pin Muxed Index (Input)
[114327.883525] hm2/hm2_5i25.0: IO Pin 011 (P3-08): IOPort
[114327.883528] hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort
[114327.883530] hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort
[114327.883533] hm2/hm2_5i25.0: IO Pin 014 (P3-11): IOPort
[114327.883536] hm2/hm2_5i25.0: IO Pin 015 (P3-12): IOPort
[114327.883538] hm2/hm2_5i25.0: IO Pin 016 (P3-13): IOPort
[114327.883541] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[114327.883544] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[114327.883546] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[114327.883549] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[114327.883552] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[114327.883554] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[114327.883557] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[114327.883559] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[114327.883562] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[114327.883565] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[114327.883567] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[114327.883570] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[114327.883573] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[114327.883575] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[114327.883578] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[114327.883581] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[114327.883583] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[114327.883631] hm2/hm2_5i25.0: registered
[114327.883634] hm2_5i25.0: initialized AnyIO board at 0000:02:00.0
[114328.220686] hm2_5i25.0: dropping AnyIO board at 0000:02:00.0
[114328.220694] hm2/hm2_5i25.0: unregistered
[114328.220723] hm2_pci 0000:02:00.0: PCI INT A disabled
[114328.220756] hm2_pci: driver unloaded
[114328.224455] hm2: unloading
[114328.268992] RTAI[math]: unloaded.
[114328.316290] SCHED releases registered named ALIEN RTGLBH
[114328.348389] RTAI[malloc]: unloaded.
[114328.448105] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[114328.451234] I-pipe: Domain RTAI unregistered.
[114328.451275] RTAI[hal]: unmounted.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
- Posts: 1776
- Thank you received: 292
this is saying that this pin does not exist , which suggests you do not have field power connected to the 7i76
the gpio pins on a 7i76 are serial . so if there is no field power to the 7i76 then these pins are not seen in the firmware .
Please Log in or Create an account to join the conversation.
- mariusl
- Topic Author
- Offline
- Platinum Member
Jumpers on the 5i25 are all up.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- mariusl
- Topic Author
- Offline
- Platinum Member
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.2
Machine configuration directory is '/home/marius/linuxcnc/configs/5i25_test'
Machine configuration file is '5i25_test.ini'
INIFILE=/home/marius/linuxcnc/configs/5i25_test/5i25_test.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
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=3381
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
5i25_test.hal:48: parameter or pin 'hm2_5i25.0.stepgen.00.dirsetup' not found
3381
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 7658.854992] I-pipe: Domain RTAI registered.
[ 7658.855000] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 7658.855003] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 7658.855037] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 7658.855040] PIPELINE layers:
[ 7658.855043] fcc34e20 9ac15d93 RTAI 200
[ 7658.855046] c085cb20 0 Linux 100
[ 7658.875566] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 7658.875775] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 7658.875783] RTAI[sched]: hard timer type/freq = APIC/12470280(Hz); default timing: periodic; linear timed lists.
[ 7658.875787] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1995009000 hz.
[ 7658.875789] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 7658.875881] RTAI[usi]: enabled.
[ 7658.932723] RTAI[math]: loaded.
[ 7659.012058] hm2: loading Mesa HostMot2 driver version 0.15
[ 7659.015270] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 7659.015316] hm2_pci 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 7659.015321] hm2_pci: discovered 5i25 at 0000:02:00.0
[ 7659.016122] hm2/hm2_5i25.0: Smart Serial Firmware Version 35
[ 7659.072345] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 7659.072350] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[ 7659.072353] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort
[ 7659.072355] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort
[ 7659.072358] hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort
[ 7659.072361] hm2/hm2_5i25.0: IO Pin 004 (P3-03): IOPort
[ 7659.072363] hm2/hm2_5i25.0: IO Pin 005 (P3-16): IOPort
[ 7659.072366] hm2/hm2_5i25.0: IO Pin 006 (P3-04): IOPort
[ 7659.072369] hm2/hm2_5i25.0: IO Pin 007 (P3-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
[ 7659.072373] hm2/hm2_5i25.0: IO Pin 008 (P3-05): Muxed Encoder #0, pin Muxed A (Input)
[ 7659.072376] hm2/hm2_5i25.0: IO Pin 009 (P3-06): Muxed Encoder #0, pin Muxed B (Input)
[ 7659.072380] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Muxed Encoder #0, pin Muxed Index (Input)
[ 7659.072383] hm2/hm2_5i25.0: IO Pin 011 (P3-08): IOPort
[ 7659.072385] hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort
[ 7659.072388] hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort
[ 7659.072390] hm2/hm2_5i25.0: IO Pin 014 (P3-11): IOPort
[ 7659.072393] hm2/hm2_5i25.0: IO Pin 015 (P3-12): IOPort
[ 7659.072396] hm2/hm2_5i25.0: IO Pin 016 (P3-13): IOPort
[ 7659.072398] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[ 7659.072401] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[ 7659.072403] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[ 7659.072406] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[ 7659.072408] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[ 7659.072411] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[ 7659.072413] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[ 7659.072416] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[ 7659.072419] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[ 7659.072421] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[ 7659.072424] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[ 7659.072426] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[ 7659.072429] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[ 7659.072432] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[ 7659.072434] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[ 7659.072437] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[ 7659.072439] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[ 7659.072486] hm2/hm2_5i25.0: registered
[ 7659.072489] hm2_5i25.0: initialized AnyIO board at 0000:02:00.0
[ 7659.409959] hm2_5i25.0: dropping AnyIO board at 0000:02:00.0
[ 7659.409967] hm2/hm2_5i25.0: unregistered
[ 7659.409994] hm2_pci 0000:02:00.0: PCI INT A disabled
[ 7659.410026] hm2_pci: driver unloaded
[ 7659.413087] hm2: unloading
[ 7659.456071] RTAI[math]: unloaded.
[ 7659.499062] SCHED releases registered named ALIEN RTGLBH
[ 7659.528398] RTAI[malloc]: unloaded.
[ 7659.628039] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 7659.631063] I-pipe: Domain RTAI unregistered.
[ 7659.631105] RTAI[hal]: unmounted.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1176
Please Log in or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
- Posts: 1776
- Thank you received: 292
have you changed any of the jumpers from the default settings ?
either on the 5i25 or the 7i76
have you 5v from the 5i25 to the 7i76 correct ?
all pins on the 5i25 should be up except W1 which is down
on the 7i76 both W2 and W1 to the left
apart from what is noted , I can't see any problem with your hal files , but I'll load them here and check
Please Log in or Create an account to join the conversation.
- mariusl
- Topic Author
- Offline
- Platinum Member
Done thatthe serial port should be sserial_port_0=0000xxxx
No and I checked with the manuals that they are still correcthave you changed any of the jumpers from the default settings ?
either on the 5i25 or the 7i76
I measured 5V on the 7i76 as well as the field voltagehave you 5v from the 5i25 to the 7i76 correct ?
All pins are up on the 5i25 and W1 and W2 are left. W1 on 5i25 will only enable the additional port power. So with it up there is no uncertainty.all pins on the 5i25 should be up except W1 which is down
on the 7i76 both W2 and W1 to the left
apart from what is noted , I can't see any problem with your hal files , but I'll load them here and check
That will be much appreciated.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
- Posts: 1776
- Thank you received: 292
on the 5i25
W2 & W3 up ( w2 defaults down)
W1 down
W4 & W5 up
and on the 7i76 have both W2 & W1 to the left .
do not have a separate 5v supply to the 7I76 allow the 5v to come from the 5i25
this will supply 5v from the 5i25 and your field power of 24v to TB1
you should at this stage have CR1 and CR2 leds on
which firmware are you using 7i76x2 ?
your hal files work fine here
the only comment i will make is that you have machine on linked to spindle , so you could get the situation of the machine being switched on if the spindle has a speed of > 0 rpm
as the analog spindle is enabled if the spindle is greater than 0 rpm .
Please Log in or Create an account to join the conversation.
- mariusl
- Topic Author
- Offline
- Platinum Member
to clarifiy ...
on the 5i25
W2 & W3 up ( w2 defaults down)
W1 down
W4 & W5 up
This is correct
This is correctand on the 7i76 have both W2 & W1 to the left .
do not have a separate 5v supply to the 7I76 allow the 5v to come from the 5i25
Bothe leds are onthis will supply 5v from the 5i25 and your field power of 24v to TB1
you should at this stage have CR1 and CR2 leds on
7i76x1which firmware are you using 7i76x2 ?
your hal files work fine here
the only comment i will make is that you have machine on linked to spindle , so you could get the situation of the machine being switched on if the spindle has a speed of > 0 rpm
as the analog spindle is enabled if the spindle is greater than 0 rpm .
This is just a test file as simple as possible before I do the real thing. I will keep this in mind when I do the config
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
- Posts: 1776
- Thank you received: 292
to clarifiy ...
on the 5i25
W2 & W3 up ( w2 defaults down)
W1 down
W4 & W5 up
This is correct
This is correctand on the 7i76 have both W2 & W1 to the left .
do not have a separate 5v supply to the 7I76 allow the 5v to come from the 5i25Bothe leds are onthis will supply 5v from the 5i25 and your field power of 24v to TB1
you should at this stage have CR1 and CR2 leds on7i76x1which firmware are you using 7i76x2 ?
your hal files work fine here
the only comment i will make is that you have machine on linked to spindle , so you could get the situation of the machine being switched on if the spindle has a speed of > 0 rpm
as the analog spindle is enabled if the spindle is greater than 0 rpm .
This is just a test file as simple as possible before I do the real thing. I will keep this in mind when I do the config
one thing to check is that your 5v rail from the pc is actualy 5v and not marginaly low .
i had this problem and had to replace the power supply and everything worked !
Please Log in or Create an account to join the conversation.