- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Something funny with my .hal created in pncconf
Something funny with my .hal created in pncconf
15 Oct 2013 14:18 #39853
by macona
Something funny with my .hal created in pncconf was created by macona
Working on getting things going on my laser welder. I have my 5i25 tied to the 7i76 with a 7i69 daughter card attached. All powered, 5v from the pc and 24v from an external power supply.
I used the pncconf wizard to create the hal file. First I did a simple one, just stepgens and the parameters that went with them. LinuxCNC was happy with that and launched happily, though when I tried to jog it ran into a follow error because it was looking for encoder feedback. How do I make it run open loop?
But that's not my main problem. I went back in and added a bunch of the I/O with the wizard and now LinuxCNC faults out shortly after launch. The error dialog info is below. And ideas? I have also attached my .hal and .ini
I used the pncconf wizard to create the hal file. First I did a simple one, just stepgens and the parameters that went with them. LinuxCNC was happy with that and launched happily, though when I tried to jog it ran into a follow error because it was looking for encoder feedback. How do I make it run open loop?
But that's not my main problem. I went back in and added a bunch of the I/O with the wizard and now LinuxCNC faults out shortly after launch. The error dialog info is below. And ideas? I have also attached my .hal and .ini
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.3
Machine configuration directory is '/home/macona/linuxcnc/configs/Laser_Welder_2'
Machine configuration file is 'Laser_Welder_2.ini'
INIFILE=/home/macona/linuxcnc/configs/Laser_Welder_2/Laser_Welder_2.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=2713
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
Laser_Welder_2.hal:26: Pin 'hm2_5i25.0.7i76.0.0.output-00' does not exist
2713
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[90348.837848] I-pipe: Domain RTAI registered.
[90348.837874] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[90348.837881] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[90348.837900] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[90348.837907] PIPELINE layers:
[90348.837915] e1ef6e20 9ac15d93 RTAI 200
[90348.837922] c085cb20 0 Linux 100
[90348.928706] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[90348.932376] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[90348.932393] RTAI[sched]: hard timer type/freq = APIC/8352267(Hz); default timing: periodic; linear timed lists.
[90348.932403] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 935388000 hz.
[90348.932411] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[90348.932607] RTAI[usi]: enabled.
[90349.175482] RTAI[math]: loaded.
[90349.521384] probe_parport 00:0e: activated
[90349.567522] hm2: loading Mesa HostMot2 driver version 0.15
[90349.596526] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[90349.596611] hm2_pci 0000:00:12.0: found PCI INT A -> IRQ 11
[90349.596638] hm2_pci 0000:00:12.0: sharing IRQ 11 with 0000:00:07.2
[90349.596679] hm2_pci: discovered 5i25 at 0000:00:12.0
[90349.597365] hm2/hm2_5i25.0: Smart Serial Firmware Version 38
[90349.649933] hm2/hm2_5i25.0: 34 I/O Pins used:
[90349.649950] hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
[90349.649960] hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
[90349.649970] hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
[90349.649980] hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
[90349.649990] hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
[90349.650001] hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
[90349.650011] hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #3, pin Direction (Output)
[90349.650021] hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #3, pin Step (Output)
[90349.650031] hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #4, pin Direction (Output)
[90349.650041] hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #4, pin Step (Output)
[90349.650050] hm2/hm2_5i25.0: IO Pin 010 (P3-07): IOPort
[90349.650058] hm2/hm2_5i25.0: IO Pin 011 (P3-08): IOPort
[90349.650066] hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort
[90349.650074] hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort
[90349.650084] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
[90349.650094] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin B (Input)
[90349.650104] hm2/hm2_5i25.0: IO Pin 016 (P3-13): Encoder #0, pin A (Input)
[90349.650113] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[90349.650121] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[90349.650129] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[90349.650138] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[90349.650146] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[90349.650154] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[90349.650162] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[90349.650170] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[90349.650178] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[90349.650186] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[90349.650194] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[90349.650202] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[90349.650210] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[90349.650222] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[90349.650230] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[90349.650238] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[90349.650246] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[90349.650443] hm2/hm2_5i25.0: registered
[90349.650451] hm2_5i25.0: initialized AnyIO board at 0000:00:12.0
[90350.960781] hm2_5i25.0: dropping AnyIO board at 0000:00:12.0
[90350.960799] hm2/hm2_5i25.0: unregistered
[90350.963123] hm2_pci: driver unloaded
[90350.971888] hm2: unloading
[90350.980750] probe_parport 00:0e: disabled
[90351.142615] RTAI[math]: unloaded.
[90351.294395] SCHED releases registered named ALIEN RTGLBH
[90351.311400] RTAI[malloc]: unloaded.
[90351.410463] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[90351.420371] I-pipe: Domain RTAI unregistered.
[90351.420395] RTAI[hal]: unmounted.
Please Log in or Create an account to join the conversation.
15 Oct 2013 14:38 - 15 Oct 2013 14:48 #39854
by cncbasher
Replied by cncbasher on topic Something funny with my .hal created in pncconf
Laser_Welder_2.hal:26: Pin 'hm2_5i25.0.7i76.0.0.output-00' does not exist
have you a typo error ? , or this output not connected etc
also make sure the 7i76 has the fieldpower powered up before the pc , or you will find that the gpio pins are not created , as these are created over the smart serial interface
if no power is applied then the internal serial interface is inoperable .
i notice their are many inputs not yet connected , for the time being comment them out . and bring them in once you have them connected .
are you creating a glade panel ? or connecting these through a component
have you a typo error ? , or this output not connected etc
also make sure the 7i76 has the fieldpower powered up before the pc , or you will find that the gpio pins are not created , as these are created over the smart serial interface
if no power is applied then the internal serial interface is inoperable .
i notice their are many inputs not yet connected , for the time being comment them out . and bring them in once you have them connected .
are you creating a glade panel ? or connecting these through a component
Last edit: 15 Oct 2013 14:48 by cncbasher.
Please Log in or Create an account to join the conversation.
15 Oct 2013 14:49 #39856
by macona
Replied by macona on topic Something funny with my .hal created in pncconf
Dont know. This hal is completely created by the pncconf. I have not touched it.
The 7i76 had field power when the machine booted,
The 7i76 had field power when the machine booted,
Please Log in or Create an account to join the conversation.
15 Oct 2013 18:16 #39867
by andypugh
I would be expecting to see some smart-serial pins around there. For some reason the 7i76 is not being detected (nor is the 7i69)
It is either the field-power problem, or possibly a problem with the DB25 cable. Is the DB25 cable fully-wired 1:1?
Replied by andypugh on topic Something funny with my .hal created in pncconf
[90349.650021] hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #3, pin Step (Output) [90349.650031] hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #4, pin Direction (Output) [90349.650041] hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #4, pin Step (Output) [90349.650050] hm2/hm2_5i25.0: IO Pin 010 (P3-07): IOPort [90349.650058] hm2/hm2_5i25.0: IO Pin 011 (P3-08): IOPort [90349.650066] hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort [90349.650074] hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort [90349.650084] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin Index (Input) [90349.650094] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin B (Input) [90349.650104] hm2/hm2_5i25.0: IO Pin 016 (P3-13): Encoder #0, pin A (Input)
I would be expecting to see some smart-serial pins around there. For some reason the 7i76 is not being detected (nor is the 7i69)
It is either the field-power problem, or possibly a problem with the DB25 cable. Is the DB25 cable fully-wired 1:1?
Please Log in or Create an account to join the conversation.
15 Oct 2013 21:31 #39878
by PCW
Replied by PCW on topic Something funny with my .hal created in pncconf
Since neither the 7I76 field I/O nor 7I69 are detected, sounds like the 7I76 does not have 5V power (Are both yellow LEDS on the top edge of the 7I76 illuminated?)
If 5V power is coming from the 5I25 P3, 5I25 jumper W2 must be up and 7I76 jumper W2 must be in the left hand position.
If external 5V power is being applied to the 7I76, 5I25 jumper W2 must be down and 7I76 jumper W2 must be in the right hand position
Other possibilities are: wrong firmware on the 5I25, cable attached to 5I25 P2 instead of P3
If 5V power is coming from the 5I25 P3, 5I25 jumper W2 must be up and 7I76 jumper W2 must be in the left hand position.
If external 5V power is being applied to the 7I76, 5I25 jumper W2 must be down and 7I76 jumper W2 must be in the right hand position
Other possibilities are: wrong firmware on the 5I25, cable attached to 5I25 P2 instead of P3
Please Log in or Create an account to join the conversation.
15 Oct 2013 21:45 #39879
by cncbasher
Replied by cncbasher on topic Something funny with my .hal created in pncconf
as PCW says check your jumpers and make sure the field power is on BEFORE pc is booted or power up , i have noticed if field power is applied at power up
then sometimes it can be missread , due to spikes , i use a seperate 24v supply which is always on , this allows me to pull in contactors etc .from the 7i76 on axis initialisation
also check your 5v pc supply rail if this voltage fluctuates it can also give problems , i found also in one installation a faulty pc power supply ( slightly < 5v )
replaced the pc power supply and bingo no power up problems !
then sometimes it can be missread , due to spikes , i use a seperate 24v supply which is always on , this allows me to pull in contactors etc .from the 7i76 on axis initialisation
also check your 5v pc supply rail if this voltage fluctuates it can also give problems , i found also in one installation a faulty pc power supply ( slightly < 5v )
replaced the pc power supply and bingo no power up problems !
Please Log in or Create an account to join the conversation.
15 Oct 2013 21:58 #39881
by macona
Replied by macona on topic Something funny with my .hal created in pncconf
I got the boards about a month ago in a plug-n-go kit. The cable is from them.
Tried powering everything down this morning and restarting, same problem. Both amber leds are lit on the 7i76 and the red fault lamp is lit on the 7i69.
Anyone got a working hal that I could peek at to see if something is left out?
Tried powering everything down this morning and restarting, same problem. Both amber leds are lit on the 7i76 and the red fault lamp is lit on the 7i69.
Anyone got a working hal that I could peek at to see if something is left out?
Please Log in or Create an account to join the conversation.
15 Oct 2013 22:14 - 15 Oct 2013 22:40 #39882
by cncbasher
Replied by cncbasher on topic Something funny with my .hal created in pncconf
you have something not wired correctly or not powering up correctly
can you confirm your jumper settings both on the 5i25 and the 7i76
and also what 5v and field power and gnd is connected to ..
also try the pci card in another pc slot , see if you get the same result
idealy you want the 5v to the 7i76 and 7i69 from the 5i25 .
also i am expecting sserial_port_0=00xxxxxx to be sserial_port_0=0000xxxx
which gives me the thought that the field power is not powering up before the 5v or pc .. although i may be wrong in my assumption here
at the moment i cant fault your Hal or ini file , apart from the above noted sserial_port address
i dont have a 7i69 so cant comment , but at the moment i cant see that being the problem other than incorrect wiring , as the 7i69 is not being used in your hal file
so if you want for now just disconnect it , to remove any problems for now until the gpio is firing up on the 7i76
can you confirm your jumper settings both on the 5i25 and the 7i76
and also what 5v and field power and gnd is connected to ..
also try the pci card in another pc slot , see if you get the same result
idealy you want the 5v to the 7i76 and 7i69 from the 5i25 .
also i am expecting sserial_port_0=00xxxxxx to be sserial_port_0=0000xxxx
which gives me the thought that the field power is not powering up before the 5v or pc .. although i may be wrong in my assumption here
at the moment i cant fault your Hal or ini file , apart from the above noted sserial_port address
i dont have a 7i69 so cant comment , but at the moment i cant see that being the problem other than incorrect wiring , as the 7i69 is not being used in your hal file
so if you want for now just disconnect it , to remove any problems for now until the gpio is firing up on the 7i76
Last edit: 15 Oct 2013 22:40 by cncbasher.
Please Log in or Create an account to join the conversation.
15 Oct 2013 22:29 - 15 Oct 2013 22:30 #39883
by BigJohnT
Replied by BigJohnT on topic Something funny with my .hal created in pncconf
The 5v could need an external source if you have too much load on the 5v buss like a bunch of encoders.
It's highly possible that the 5v jumpers are not set correctly on both ends.
gnipsel.com/linuxcnc/configs/index.html
JT
It's highly possible that the 5v jumpers are not set correctly on both ends.
gnipsel.com/linuxcnc/configs/index.html
JT
Last edit: 15 Oct 2013 22:30 by BigJohnT.
Please Log in or Create an account to join the conversation.
15 Oct 2013 22:55 #39886
by macona
Replied by macona on topic Something funny with my .hal created in pncconf
Like I mentioned, both amber leds are on so it has 5 logic and 24v field. 5v is making it through to the 7i69 as well to the Advantech relay board.
Other than that there is nothing connected to the boards.
Other than that there is nothing connected to the boards.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Something funny with my .hal created in pncconf
Time to create page: 0.132 seconds