Mesa 5i25 with plain G540, no 7i77

More
24 Apr 2013 04:30 #33092 by PCW
If you can launch linuxcnc (comment out the offending commands)
type:

halcmd show pin > pinlist.txt

in a terminal

You now should have a list of all available HAL pins (in pinlist.txt) that you
can use as a copy/paste donor file instead of guessing long HAL names

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 04:32 #33093 by andypugh

net estop-out => hm2_[HOSTMOT2](BOARD).0.pin-001.


I am not a great fan of using the INI file to that extent (the [HOSTMOT2]BOARD syntax is just a way to pull a value out of the INI file into the HAL file.

I will find the exact syntax you need once this compile has finished, but in the meantime if you open a terminal, this should get you a list of all the 5i25 pins.
halrun
loadrt hostmot2
loadrt hm2_pci
show pin
exit

Then you can copy and paste that pin list to somewhere handy.

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 04:35 #33094 by PCW
Looks like it may not be a stepgen configuration or stepgens are set to 0 in the config string

What firmware is in the 5I25?
(indicated by label on the back of the 5I25 if you have not reflashed the firmware)

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 04:48 - 24 Apr 2013 04:49 #33096 by pws
I have not reflashed the 6i25 - but I may need to!

There are three labels on the back:
- ROHS
- Lot Number
- Bar Code - looks like a serial number

Nothing that looks like it identifies Firmware

When I perform the steps that Andy suggested, there are no "stepgen" pins - lots of "encoder", then the "gpio"

What Firmware should I flash in there?
Last edit: 24 Apr 2013 04:49 by pws.

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 05:02 - 24 Apr 2013 05:05 #33097 by PCW
OK if you did not order the 6I25 with a daughtercard and did not specify the
desired firmware when the 6I25 was ordered, you will get 7I77X2 firmware
(which we use for testing)

You will need to reflash the 6I25 with the g540x2 configuration to get any further:

sudo ./mesaflash --device 5i25 --write g540x2.bit

assuming you have mesaflash and g540x2.bit in your working directory
notes:

1. Depending on how you get mesaflash you may need to
chmod +x mesaflash before this works

2. Yes --device 5i25 is correct

3. After the flash command finishes you need to cycle the computer power to reload the firmware
Last edit: 24 Apr 2013 05:05 by PCW.

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 05:56 #33100 by pws
Reflashed as advised. Stepgen error is gone - pin config looks much better - but now very strange errors!

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/pws/linuxcnc/configs/grizz-mill'
Machine configuration file is 'grizz-6i25.ini'
INIFILE=/home/pws/linuxcnc/configs/grizz-mill/grizz-6i25.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1966
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
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 File exists
1966
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
ERROR: Module hal_lib does not exist in /proc/modules
ERROR: Module rtapi does not exist in /proc/modules
ERROR: Module rtai_math does not exist in /proc/modules
ERROR: Module rtai_sem does not exist in /proc/modules
ERROR: Module rtai_fifos does not exist in /proc/modules

Kernel message information:
[ 144.379401] I-pipe: Domain RTAI registered.
[ 144.379405] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 144.379407] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 144.379547] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 144.379548] PIPELINE layers:
[ 144.379550] f9815e20 9ac15d93 RTAI 200
[ 144.379552] c085cb20 0 Linux 100
[ 144.389383] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 144.389708] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 144.389712] RTAI[sched]: hard timer type/freq = APIC/6250559(Hz); default timing: periodic; linear timed lists.
[ 144.389715] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3800552000 hz.
[ 144.389718] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 144.389765] RTAI[usi]: enabled.
[ 144.406322] RTAI[math]: loaded.
[ 156.370996] hm2: loading Mesa HostMot2 driver version 0.15
[ 166.897997] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 166.898032] hm2_pci 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 166.898038] hm2_pci: discovered 5i25 at 0000:02:00.0
[ 166.898060] hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
[ 166.899312] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 166.899314] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[ 166.899316] hm2/hm2_5i25.0: IO Pin 001 (P3-14): PWMGen #0, pin Out0 (PWM or Up) (Output)
[ 166.899318] hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #0, pin Step (Output)
[ 166.899320] hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort
[ 166.899322] hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #0, pin Direction (Output)
[ 166.899323] hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #4, pin Step (Output)
[ 166.899325] hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #1, pin Step (Output)
[ 166.899327] hm2/hm2_5i25.0: IO Pin 007 (P3-17): IOPort
[ 166.899328] hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #1, pin Direction (Output)
[ 166.899330] hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #2, pin Step (Output)
[ 166.899332] hm2/hm2_5i25.0: IO Pin 010 (P3-07): StepGen #2, pin Direction (Output)
[ 166.899334] hm2/hm2_5i25.0: IO Pin 011 (P3-08): StepGen #3, pin Step (Output)
[ 166.899335] hm2/hm2_5i25.0: IO Pin 012 (P3-09): StepGen #3, pin Direction (Output)
[ 166.899337] hm2/hm2_5i25.0: IO Pin 013 (P3-10): Encoder #0, pin A (Input)
[ 166.899339] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin B (Input)
[ 166.899341] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin Index (Input)
[ 166.899342] hm2/hm2_5i25.0: IO Pin 016 (P3-13): IOPort
[ 166.899344] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[ 166.899346] hm2/hm2_5i25.0: IO Pin 018 (P2-14): PWMGen #1, pin Out0 (PWM or Up) (Output)
[ 166.899347] hm2/hm2_5i25.0: IO Pin 019 (P2-02): StepGen #5, pin Step (Output)
[ 166.899349] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[ 166.899351] hm2/hm2_5i25.0: IO Pin 021 (P2-03): StepGen #5, pin Direction (Output)
[ 166.899352] hm2/hm2_5i25.0: IO Pin 022 (P2-16): StepGen #9, pin Step (Output)
[ 166.899354] hm2/hm2_5i25.0: IO Pin 023 (P2-04): StepGen #6, pin Step (Output)
[ 166.899356] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[ 166.899357] hm2/hm2_5i25.0: IO Pin 025 (P2-05): StepGen #6, pin Direction (Output)
[ 166.899359] hm2/hm2_5i25.0: IO Pin 026 (P2-06): StepGen #7, pin Step (Output)
[ 166.899361] hm2/hm2_5i25.0: IO Pin 027 (P2-07): StepGen #7, pin Direction (Output)
[ 166.899362] hm2/hm2_5i25.0: IO Pin 028 (P2-08): StepGen #8, pin Step (Output)
[ 166.899364] hm2/hm2_5i25.0: IO Pin 029 (P2-09): StepGen #8, pin Direction (Output)
[ 166.899366] hm2/hm2_5i25.0: IO Pin 030 (P2-10): Encoder #1, pin A (Input)
[ 166.899368] hm2/hm2_5i25.0: IO Pin 031 (P2-11): Encoder #1, pin B (Input)
[ 166.899369] hm2/hm2_5i25.0: IO Pin 032 (P2-12): Encoder #1, pin Index (Input)
[ 166.899371] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[ 166.899400] hm2/hm2_5i25.0: registered
[ 166.899402] hm2_5i25.0: initialized AnyIO board at 0000:02:00.0
[ 743.003243] hm2_5i25.0: dropping AnyIO board at 0000:02:00.0
[ 743.003247] hm2/hm2_5i25.0: unregistered
[ 743.003267] hm2_pci 0000:02:00.0: PCI INT A disabled
[ 743.003285] hm2_pci: driver unloaded
[ 743.004863] hm2: unloading
[ 743.022671] RTAI[math]: unloaded.
[ 743.036808] SCHED releases registered named ALIEN RTGLBH
[ 743.100332] RTAI[malloc]: unloaded.
[ 743.200074] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 743.202033] I-pipe: Domain RTAI unregistered.
[ 743.202206] RTAI[hal]: unmounted.

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 06:22 #33102 by andypugh
That does seem extremely strange.
Note that the initial Mesa setup doesn't require realtime, so the cards might start and configure OK, even on a machine where realtime doesn't work.

The "file" exists error may indicate that you have a "stuck" realtime config, and that a restart might fix it.
Note that you can't run halrun and LinuxCNC at the same time, this might also give that message.

(You can use halcmd -f with LinuxCNC running, but halrun will try to set up a duplicate realtime environment)

Please Log in or Create an account to join the conversation.

More
24 Apr 2013 06:53 #33105 by pws
Andy,

Good call - I did have a session down there with halrun - I thought it had crashed - but certainly did when I tried to run LinuxCNC! I restarted everything and LinuxCNC now starts.

I believe I need to rethink my Limit and eStop switch settings - it looks like they need to be different pin numbers now than I had for the Parallel port. I need to study it more and experiment. I am doing this all without the G540 attached - I know that setup works so I am still using it as a model - just not quite so literally and think through these pin assignments!

Thanks for your help. I will be glad to share when I have a working system.

Paul

Please Log in or Create an account to join the conversation.

More
25 Apr 2013 01:37 #33158 by pws
How can I update PNCconf so it can handle the 5i25/G540? No selection for that.

Is there an XML I can download and put somewhere to enable it?

Thanks,
Paul

Please Log in or Create an account to join the conversation.

More
25 Apr 2013 18:49 #33186 by andypugh

How can I update PNCconf so it can handle the 5i25/G540? No selection for that.

I think that basically becomes a 5i25 with no daughter cards. The G540 is drive hardware, outside HAL.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.091 seconds
Powered by Kunena Forum