#emc | Logs for 2008-12-25

Back
[00:47:40] <alex_joni> good night all
[00:47:47] <alex_joni> (and Merry Christmas..)
[00:47:58] <DanielFalck> Merry Christmas!
[01:06:30] <toastydeath> new toy, machining unrelated (other than what some company used to produce it)
[01:06:32] <toastydeath> http://i2.photobucket.com/albums/y5/toastydeath/DSC_4212.jpg
[01:06:36] <toastydeath> http://i2.photobucket.com/albums/y5/toastydeath/DSC_4214.jpg
[01:08:04] <KimK_afk> KimK_afk is now known as KimK
[01:19:32] <KimK> Is there a checklist for how to use the "EMC2 Errors" output? There's a lot of information there.
[01:22:42] <eric_u1> I think the idea is to post the output on pastebin and ask questions here
[01:36:22] <eric_u1> I should go work on one of my machines, but I'm not
[01:58:44] <KimK> I'm trying to learn how to get started with a Mesa 5i22 / 7i33 / 7i38 .
[01:58:57] <eric_u1> can you do that?
[01:59:13] <KimK> I get "EMC2 Errors" on startup, but not sure if I'm forgetting to do something pretty basic.
[01:59:22] <eric_u1> what kinda errors
[01:59:53] <eric_u1> I was serious about posting your errors on pastebin btw, that is a good way to get help
[02:01:37] <eric_u1> KimK, what drives are you using?
[02:01:43] <KimK> I was wondering if I'm even starting with the closest example? (EMC-MESA-5i20)? I saw the wiki on picking hm2_pci , but I don't see that anywhere
[02:03:09] <eric_u1> can't help with that, I use a 5i20, and was not paying attention
[02:03:17] <eric_u1> when they added the newer boards
[02:03:26] <KimK> I don't actually have any drives, I'm willing to leave drives alone for now, should be OK if I don't command any moves. I might jog a thousandth or two to see if the command signal works, though.
[02:03:53] <KimK> I want to play with the DC I/O and the ladder a little bit
[02:05:12] <eric_u1> understood
[02:05:23] <KimK> I can post on pastebin, but I wanted to find out if I'm even on the right planet first.
[02:05:35] <eric_u1> not until you post
[02:05:43] <eric_u1> until then you are on the wrong planet
[02:06:11] <KimK> Well, OK, but I'm sure I've forgotten to do something "obvious" (not to me, though).
[02:06:49] <eric_u1> hopefully you did something obvious
[02:07:46] <eric_u1> that would be win-win
[02:08:47] <KimK> First a quick status report from $ sudo /etc/init.d/realtime status * hal_lib is loaded * rtapi is loaded * rtai_math is loaded * rtai_sem is loaded * rtai_fifos is loaded * rtai_sched is loaded * rtai_hal is loaded
[02:09:03] <eric_u1> that looks good
[02:11:09] <eric_u1> if you have a large output, post it on pastebin
[02:11:45] <KimK> OK, results from "EMC2 Errors" window posted at http://www.pastebin.ca/1293282
[02:13:51] <eric_u1> it was trying to load firmware for the 7i43
[02:14:18] <KimK> Originally, I started EMC from the menu, picked "m5i20" from the examples, said OK, make a desktop icon, and saved backups of all the "ini"(?) files. The only change I've made is to shorten the splash screen from 5 secs to 2 secs.
[02:14:55] <KimK> It is? Isn't that the parallel port model? How did that get in here?
[02:15:23] <eric_u1> first it mentions hostmot2, and then starts whining about the 7i43
[02:15:31] <KimK> I have that as an icon, but thought it was idle otherwise?
[02:15:37] <eric_u1> so apparently not all hostmot2's are the same
[02:16:02] <KimK> What can you tell me about this hm2_pci mentioned in the wiki?
[02:16:13] <KimK> Where's that?
[02:16:25] <eric_u1> you didn't find it?
[02:16:27] <KimK> Or how do I load it, etc?
[02:16:42] <KimK> I don't even know where to look for it
[02:16:44] <eric_u1> thought there was something in the ini about firmware
[02:18:12] <KimK> Whaddya know: ~$ whereis hm2_pci *returns* hm2_pci: /usr/share/man/man9/hm2_pci.9.gz
[02:19:45] <KimK> Wait, this is just text?
[02:19:56] <eric_u1> that makes sense from the location
[02:20:13] <eric_u1> sorry, I'm looking
[02:22:54] <KimK> Did I make an error by picking for desktop first, the 7i43? Did that foul everything up afterward? One I learned my mistake, I thought I could just pick something else and avoid the 7i43, is that not so?
[02:23:08] <KimK> One = Once
[02:23:09] <eric_u1> you should be able to do that
[02:23:34] <eric_u1> you are starting from the menu, correct?
[02:24:02] <KimK> Yes, menu and from CD install, updated to 2.2.8 or whatever it is now.
[02:24:12] <jmkasunich> run emc from the command line, then when the config picker comes up, select the config you want
[02:24:15] <KimK> Yes, 2.2.8
[02:24:20] <jmkasunich> don't use icons until everything is working
[02:24:46] <KimK> OK, I never tried that. say "emc"?
[02:24:51] <jmkasunich> yes
[02:26:18] <KimK> It went to the GUI anyway, as if I started from menu. Same choices under sample configs as before. What should I do?
[02:26:29] <jmkasunich> pick the config you want
[02:26:45] <eric_u1> he made a custom config, corect KimK?
[02:26:47] <jmkasunich> the difference is now error messages will be visible in the shell (command line window)
[02:27:30] <KimK> The closest I could find before was "m5i20", so I picked that before. Should I pick it again?
[02:27:39] <eric_u1> you didn't edit it?
[02:28:10] <KimK> I only made backups and changed splashscreen from 5 secs to 2.
[02:28:24] <eric_u1> you said that, sorry
[02:28:32] <jmkasunich> you have to pick a config that makes sense for the hardware you have
[02:28:37] <KimK> No problem
[02:28:43] <eric_u1> you should get it to copy the config to your home directory
[02:28:50] <eric_u1> then edit
[02:29:02] <jmkasunich> it would help if we knew what you are trying to do
[02:29:02] <KimK> I picked, it copied, I edited.
[02:29:15] <eric_u1> ok, just checking
[02:29:18] <jmkasunich> did the unedited version work?
[02:29:32] <eric_u1> it wouldn't he has a m5i22
[02:29:36] <jmkasunich> oh
[02:29:51] <KimK> At this point, I'd like it to start without ending in the error box. or know why I can't avoid the error box.
[02:29:53] <eric_u1> although I don't understand why it worked as well as it did
[02:30:33] <eric_u1> I guess I have to upgrade to a more recent emc
[02:30:42] <KimK> The wiki talks of hm2_pci, but I don't see that anywhere, do I have to command line it?
[02:31:36] <KimK> I picked m5i20 from the example-configs list, figured I might have to edit it some, that would be OK
[02:33:54] <KimK> I don't have any servos connected, but I can jumper high and low the differential encoder inputs if you think that's needed. I hoped they would float to some semi-stable condition if left open.
[02:34:05] <eric_u1> you should be able to load no problem
[02:34:12] <eric_u1> I just did :)
[02:34:17] <eric_u1> my amps are not on
[02:34:29] <KimK> Excellent, you are using a Mesa setup?
[02:34:36] <eric_u1> I am using a 5i20
[02:34:59] <eric_u1> actually, I'm ssh'd into a machine in the basement from the second floor, so I hope nothing is on :)
[02:35:34] <KimK> Good deal, thanks for helping. Thanks in advance to all for helping.
[02:37:57] <KimK> BTW, I still haven't made a selection on the GUI, so emc command line has only printed "EMC2 - 2.2.8" and is waiting
[02:38:25] <KimK> shall I cancel the GUI?
[02:40:12] <eric_u1> might as well
[02:41:22] <KimK> OK. Canceling GUI and awaiting further advice. Command line emc closed without printing anything more.
[02:43:19] <KimK> That hm2_pci on the wiki still bothers me: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?HostMot2
[02:43:40] <KimK> Isn't that what I want? How do I pick it?
[02:45:29] <eric_u1> I'll help when I get off the phone
[02:46:15] <KimK> Using lsmod and lspci -v report a bunch of motherboard stuff, but nothing that I can see that's hostmot2 related.
[02:46:27] <KimK> eric_u1: Thanks, take your time
[02:47:55] <jmkasunich> KimK: if emc isn't running, the lsmod isn't gonna show any emc related stuff
[02:48:16] <jmkasunich> you need to do things one step at a time
[02:48:32] <jmkasunich> you copied the 5i20 config to a new name, right?
[02:49:15] <jmkasunich> hello? simple yes/no question.....
[02:49:53] <KimK> Sorry, Christmas phone call. Back now.
[02:49:59] <jmkasunich> you copied the 5i20 config to a new name, right?
[02:50:42] <KimK> I just let it copy as it wanted, to my home dir, where it wanted.
[02:50:46] <jmkasunich> ok
[02:51:04] <KimK> Should I have changed the filename?
[02:51:05] <jmkasunich> so now start emc (from the command line - always) and choose your newly copied config
[02:51:20] <jmkasunich> did it ask you for a new name when it did the copy?
[02:51:48] <KimK> Oh, OK, I thought that's what the desktop icons were for. OK, command line it shall be...
[02:52:00] <KimK> No, not that I recall
[02:52:01] <jmkasunich> NO FSCKING ICONS!!!!
[02:52:09] <KimK> Haha, OK
[02:52:22] <jmkasunich> I swear I'm gonna refuse to help people who won't use the command line
[02:52:56] <KimK> I am happy to use the command line, just reporting what has happened already
[02:52:59] <jmkasunich> ok, you have a copy of that config in your home directory, I hope, with the same name
[02:53:07] <jmkasunich> run "emc" from the command line
[02:53:37] <jmkasunich> when the config picker comes up, choose the newly copied one - probably the only one in your home directory, unless you've been copying lots or otherwise messing around
[02:53:57] <jmkasunich> we know it won't work, because that sample config expects a 5i20, and you have a 5i22
[02:54:12] <jmkasunich> but we are going step by step, and that includes learning how to read error messages
[02:54:42] <KimK> Hey! That might be the "obvious" step I've been missing! Pick the copied config files! OK, doing it...
[02:56:58] <KimK> OK, done error messages posted to http://www.pastebin.ca/1293294
[02:57:00] <jepler> (the hal names are pretty different from hal_5i20 to hm2_pci; I wonder if it's even a good starting point)
[02:57:08] <jmkasunich> oh
[02:57:23] <pcw> I think the closest config file is the 7I43 one from Ted Hyde
[02:57:24] <pcw> You should probably start with that one
[02:57:26] <pcw> (if you want a HostMot2 servo config)
[02:57:27] <pcw> unless eric has something closer
[02:57:34] <jepler> jmkasunich: if I read correctly, KimK actually has a 5i22 board
[02:57:44] <KimK> 5i22, correct
[02:58:09] <jmkasunich> jepler yes, my first step was gonna let him understand the "found a 5i22, not a 5i20" error
[02:58:18] <jepler> jmkasunich: ok sorry I ruined it
[02:58:21] <jmkasunich> then change to load the proper firmware for that board
[02:58:26] <jmkasunich> then deal with pin names
[02:58:44] <jmkasunich> but if there are a crapload of pin name changes, then that is a bad plan
[03:00:02] <KimK> I can be both a patient student and and a tireless editor. I await your advice about the best way to proceed.
[03:00:27] <jmkasunich> you ran emc, right?
[03:00:33] <KimK> yes
[03:00:41] <jmkasunich> it failed, right?
[03:00:52] <KimK> yes, error messages posted to http://www.pastebin.ca/1293294
[03:01:00] <jmkasunich> did you READ the error messages?
[03:01:36] <jmkasunich> specifically, did you look in dmesg?
[03:01:50] <KimK> looking at them now...
[03:02:02] <jmkasunich> "you can find more information in the log files as well as in the output of the shell command 'dmesg'
[03:03:18] <jmkasunich> I bet there is a message in there like "M5I20: **** No M5I20 card detected ****"
[03:03:37] <jmkasunich> note- when reading dmesg, sometimes it is better to start from the end - it can be very very long
[03:03:42] <jmkasunich> it is in chronological order
[03:03:56] <jmkasunich> and may include messages all the way back to when you booted your computer
[03:05:31] <jmkasunich> it's been 12 minutes since I asked you to run emc - it should take less than 1 minute for emc to attempt to run, and error out
[03:05:39] <jmkasunich> another 30 seconds to read the shell output
[03:05:51] <jmkasunich> and a minute or two to scan dmesg output looking for errors
[03:05:55] <jmkasunich> what is happening?
[03:08:16] <KimK> I didn't see anything that I recognized. http://www.pastebin.ca/1293294 updated to include error posts
[03:08:42] <eric_u1> yeah the 7i43 script looked a lot better
[03:08:48] <jmkasunich> that is exactly the same as what you posted 8 minutes ago
[03:08:56] <KimK> hit refresh
[03:09:07] <jmkasunich> I did
[03:09:26] <jmkasunich> did you post the right number? 1293294?
[03:09:28] <KimK> it didn't go from 20 lines to 400 lines?
[03:09:30] <jmkasunich> no
[03:09:32] <eric_u1> no
[03:09:49] <KimK> OK, try this http://www.pastebin.ca/1293299
[03:09:53] <KimK> sorry
[03:10:39] <jmkasunich> hmm
[03:11:11] <eric_u1> line 162
[03:11:38] <jmkasunich> that is ancient
[03:12:09] <jmkasunich> the most recent timestamp is 83815, that is 23 hours after boot
[03:12:25] <jmkasunich> line 162 is 5 minutes after boot
[03:12:27] <eric_u1> I forgot it just adds on the end
[03:12:29] <KimK> What did I do wrong?
[03:13:01] <jmkasunich> KimK: at a command prompt, type "sudo dmesg -c"
[03:13:07] <jmkasunich> it will prompt for your password - enter it
[03:13:22] <jmkasunich> "dmesg -c" clears old stuff out of the log
[03:13:40] <KimK> OK, done. Post again?
[03:13:40] <jmkasunich> that way the next time you run, dmesg will only have info from that attempt
[03:13:43] <jmkasunich> no
[03:13:56] <jmkasunich> there is no usefull info in dmesg from your last run
[03:14:12] <KimK> run again?
[03:14:17] <jmkasunich> no
[03:14:23] <eric_u1> it just gets to math and then unloads math, why is that?
[03:14:35] <jmkasunich> if running it didn't give any usefull info, then running it again isn't going to do anything different
[03:15:26] <jepler> eric_u1: because it unloads all realtime modules each time emc exits
[03:15:48] <KimK> I thought the storage was full and we cleared it out now, and you'd want to try again, sorry
[03:15:48] <eric_u1> but isn't that where it tries to start hal and load the wrong driver?
[03:16:18] <jmkasunich> yes, if it was printing helpfull messages they would appear after math is loaded, and before it is unloaded
[03:16:43] <jmkasunich> it looks like the 5i20 driver prints the messages at a low priority, so they don't appear in the log
[03:17:00] <jmkasunich> since the 5i20 driver is the wrong driver anyway, lets not take this path any farther
[03:17:06] <KimK> OK.
[03:17:23] <jmkasunich> are you running 2.2.8, or something from CVS?
[03:17:29] <KimK> 2.2.8
[03:17:41] <KimK> installed from CD, updated from net
[03:17:52] <jmkasunich> ok, gimme a sec to get on that version
[03:18:48] <jmkasunich> KimK: while my local copy is updating - what are you trying to achieve? steppers, servo?
[03:18:52] <KimK> I should be specific: Installed from EMC2 CD
[03:19:02] <jmkasunich> gotcha
[03:20:22] <jmkasunich> hello?
[03:20:29] <jmkasunich> KimK: what are you trying to achieve? steppers, servo?
[03:20:38] <eric_u1> servo
[03:20:38] <KimK> 5i22 / 7i33 / 7i38 with no servos connected (willing to leave servos be for now) want to learn basics and play with PLC I/O and ladder a little bit. Maybe jog 0.001" to see if command output is working.
[03:20:49] <KimK> I'm a slow typer, sorry
[03:20:55] <jmkasunich> ok
[03:21:13] <jmkasunich> we're gonna follow pcw's advice and have you start with ted's config
[03:21:50] <KimK> whatever you guys advise will be fine
[03:22:11] <SWPadnos> isn't Teds config for a 7i43?
[03:23:23] <jmkasunich> yes
[03:23:38] <jmkasunich> hmm
[03:23:53] <jmkasunich> isn't the config picker supposed to have a check box or something for "copy the config"?
[03:24:14] <SWPadnos> only if you don't have write permission for the source, I think
[03:24:23] <SWPadnos> the checkbox is for ctreating a desktop icon
[03:24:26] <jmkasunich> oh, so it won't appear when I RIP
[03:24:34] <KimK> It copied to home dir too
[03:24:35] <SWPadnos> I think that's the caser
[03:24:36] <SWPadnos> -r
[03:24:57] <jmkasunich> KimK: good
[03:25:12] <jmkasunich> it doesn't do that here, because I'm not running an installed copy
[03:25:27] <KimK> OK, sorry to interrupt
[03:25:45] <jmkasunich> I was trying to test my instructions before I told you what to do, but mine is gonna work a bit different
[03:25:49] <jmkasunich> anyway, here we go
[03:25:52] <KimK> OK
[03:25:59] <jmkasunich> start emc from the command line - just "emc"
[03:26:08] <jmkasunich> in the picker, find "hm2-servo"
[03:26:22] <jmkasunich> probably in the sample configs directory
[03:26:31] <jmkasunich> tell the picker to make a copy of that
[03:26:48] <KimK> that was one of my previous "copy to desktop"'s so I have it there already. Use that?
[03:26:55] <jmkasunich> sure
[03:27:07] <jmkasunich> cd ..
[03:28:02] <KimK> change (up) to /home ?
[03:28:23] <jmkasunich> sorry, the cd .. was me tyoing in the wrong window
[03:28:27] <KimK> OK
[03:28:33] <jmkasunich> so, what happened so far?
[03:28:41] <KimK> emc closed with errors
[03:28:42] <jmkasunich> it failed to run, right?
[03:28:54] <KimK> correct
[03:29:00] <jmkasunich> did you look in dmesg? (should be much shorter now, since you did the dmesg -c
[03:29:50] <KimK> yes, loading 7i43, encountering problems?
[03:29:56] <KimK> post it?
[03:30:08] <jmkasunich> thats ok, we know we need to change stuff
[03:30:11] <KimK> OK
[03:30:21] <jmkasunich> I'm just hoping you are learning to read and interpret error messages
[03:30:35] <jmkasunich> I only have so many fish to hand out, then you gotta catch your own
[03:30:54] <jmkasunich> I assume you prefer a gui file manager for renaming files?
[03:30:57] <KimK> Trying, please point out "places of interest", lots of info there
[03:31:17] <KimK> Whatever you are most comfortable with
[03:31:29] <jmkasunich> there should be something in there that says (not in these exact words) "Hey dude, I can't find a 7i43 board!"
[03:31:58] <jmkasunich> KimK: If I was accessing your computer, I'd do what I'm most comfortable with
[03:32:13] <jmkasunich> but I'm not
[03:32:17] <jmkasunich> we have a few files to rename
[03:32:19] <KimK> yes, there are several dmesg lines that imply that
[03:32:38] <jmkasunich> I'm not gonna walk you thru renaming files, I want you to use whatever tool works best for you
[03:32:42] <KimK> OK, I'll GUI then
[03:32:57] <jmkasunich> find the copy of hm2-servo in your home directory
[03:33:12] <jmkasunich> hm2-servo is a directory
[03:33:27] <jmkasunich> inside are several files that start with m7i43, and have various endings
[03:33:35] <KimK> OK got it
[03:33:41] <jmkasunich> rename them to start with m5i22
[03:34:03] <jmkasunich> the ones that have _th on them, you can delete that part (stands for Ted Hyde)
[03:35:27] <KimK> OK, 2 files deleted, 2 files renamed, emc.nml left alone
[03:37:31] <KimK> If you didn't want me to delete _th's .ini and .hal , I have backups if needed
[03:38:30] <jmkasunich> I didn't
[03:38:42] <KimK> Shall I restore from backup?
[03:38:45] <jmkasunich> I wanted you to rename them, removing the _th from the name
[03:38:50] <KimK> OK.
[03:39:02] <jmkasunich> m7i43_th.hal rename to m5i22.hal
[03:39:36] <jmkasunich> so yes, restore from backup, then rename
[03:40:03] <KimK> OK, done
[03:40:34] <jmkasunich> open the ini file in your favorite editor
[03:41:02] <jmkasunich> I believe if you double click the file it will open in gedit
[03:41:03] <KimK> OK (gedit)
[03:41:22] <jmkasunich> ok, in the ini file make these changes
[03:41:29] <jmkasunich> line 14
[03:41:46] <jmkasunich> change the name, since you aren't using a 7i43 and you rinitials aren't TH
[03:42:20] <jmkasunich> if you want to change the splash screen time, go ahead - line 51
[03:43:03] <jmkasunich> line 66: change that filename from m7i43.var to m5i22.var (that is one of the files you just renamed)
[03:43:42] <KimK> 3 changes made so far
[03:43:48] <jmkasunich> line 83 - add a 0 to base period, from 50000 to 500000
[03:43:55] <jmkasunich> servos don't need a fast base thread
[03:44:22] <jmkasunich> line 100: change m7i34_th.hal to m5i22.hal
[03:44:29] <jmkasunich> I hope you are starting to see a pattern here
[03:44:57] <jmkasunich> last line of the file - another filename to change
[03:45:11] <KimK> last line, got it
[03:45:17] <jmkasunich> save that file
[03:45:23] <jmkasunich> open m5i22.hal
[03:45:57] <jmkasunich> you'll eventually want to revise the introductory comments, but that can wait
[03:46:12] <KimK> OK
[03:46:41] <jmkasunich> the symlink he mentions on line 15 is important
[03:46:48] <jmkasunich> I'm not sure if you already have that
[03:47:04] <jmkasunich> leave the editor open, and go to your command line (shell)
[03:47:31] <KimK> OK
[03:47:41] <jmkasunich> at the prompt, type "ls -l /lib/firmware" (no quotes)
[03:48:19] <maddash> /join #kernel
[03:48:46] <jmkasunich> KimK: is there an entry for "hm2"?
[03:48:49] <KimK> total 8 * drwxr-xr-x 3 root root 4096 2008-04-24 14:50 2.6.24-16-rtai * drwxr-xr-x 8 root root 4096 2008-11-12 07:15 hm2
[03:48:57] <KimK> yes
[03:49:12] <jmkasunich> good - we'll assume the install did that part correctly
[03:49:15] <jmkasunich> back to the editor
[03:49:19] <KimK> OK
[03:49:34] <jmkasunich> line 44 in the HAL file
[03:49:49] <jmkasunich> change the comment to say 5i22
[03:50:10] <jmkasunich> line 45, change "hm2_7i43" to "hm2_pci"
[03:50:48] <jmkasunich> same line, change "6firmware=hm2/7i43/SVST4_4B.BIT" to "firmware=hm2/5i22/SVST4_4B.BIT"
[03:51:27] <jmkasunich> ah, that won't work, there isn't a SCST4_4 for the 5i22
[03:51:49] <jmkasunich> change it to "5i22/SVST8_8B.BIT"
[03:52:12] <pcw> (B is for 1.5M 5I22s)
[03:52:21] <jmkasunich> I have no idea which one he has
[03:52:27] <jmkasunich> is 1.5M the standard?
[03:52:30] <KimK> I have the -1.5
[03:52:33] <jmkasunich> cool
[03:52:56] <jmkasunich> lines 47 thru 51
[03:53:04] <jmkasunich> change 4 instances of 7i43 to 5i22
[03:53:05] <pcw> * I think the driver will complain if size mis-match
[03:53:38] <jmkasunich> crap, "7i43" appears in every single pin name
[03:53:53] <KimK> and change to hm2_pci
[03:54:07] <jmkasunich> huh?
[03:54:18] <KimK> sorry, please continue
[03:54:18] <jmkasunich> that was line 45
[03:54:37] <SWPadnos> I don't know what the prefix for the pins on the 5i22 wil be
[03:54:44] <SWPadnos> versus 7i43
[03:54:52] <jmkasunich> I don't either - lets just run this, and use halcmd
[03:54:59] <SWPadnos> yep
[03:55:03] <KimK> not hm2_pci ?
[03:55:13] <SWPadnos> they may be 5i22_*
[03:55:16] <KimK> OK
[03:55:16] <jmkasunich> KimK: just make the edits
[03:55:22] <SWPadnos> hm2_pci supports all the PCI cards
[03:55:25] <jmkasunich> the loadrt line definitely wants hm2_pci
[03:55:57] <KimK> I was looking at lines 48 & 51
[03:56:04] <jmkasunich> line 45 is what loads the driver - it MUST be hm2_pci, and it MUST call out the proper firmware
[03:56:35] <KimK> OK
[03:56:35] <jmkasunich> the names of the pins and parameters (lines 48 and on, all they way down the file) will depend on the board and driver
[03:56:40] <jmkasunich> and I'm not sure what they are
[03:56:43] <jmkasunich> but we can find out
[03:57:00] <jmkasunich> so we'll do this one step at a time - if the driver loads, that is a small victory
[03:57:24] <KimK> OK
[03:57:44] <jmkasunich> at line 46 (right after the loadrt), replace that blank line with "halcmd show"
[03:58:12] <jmkasunich> don't add a new line - that will mess up line numbering when we do more editing later
[03:58:17] <KimK> OK
[03:58:18] <SWPadnos> err -just show, no halc,d
[03:58:21] <SWPadnos> gah
[03:58:24] <SWPadnos> no halcmd, just show
[03:58:25] <jmkasunich> oops, right
[03:58:33] <jmkasunich> my mistake
[03:58:40] <jmkasunich> line 46: show
[03:58:44] <SWPadnos> easy one to make :)
[03:58:59] <KimK> OK, just show
[03:58:59] <jmkasunich> save the file
[03:59:12] <jmkasunich> (you can leave the editor open, we'll be back in there later)
[03:59:16] <jmkasunich> go to your shell
[03:59:19] <jmkasunich> "emc"
[03:59:35] <jmkasunich> select this config from your home directory
[03:59:50] <jmkasunich> it will fail
[04:00:02] <jmkasunich> it will probably also spew a huge list of hal pins and such
[04:00:11] <jmkasunich> * jmkasunich waits
[04:00:33] <jmkasunich> don't need to pastebin that or anything, just tell us what happens
[04:00:33] <KimK> it doesn't appear in my previous config list
[04:00:53] <KimK> start emc with a directory?
[04:00:58] <jmkasunich> no
[04:01:03] <jmkasunich> start emc
[04:01:15] <jmkasunich> when the config picker comes up, pick the config you were just editing
[04:01:33] <jmkasunich> it is still called hm2-servo - configs are named based on the directory they are in
[04:02:21] <KimK> It started, printed a list of inputs and outputs (?) and closed
[04:02:36] <jmkasunich> good, that is exactly what we wanted
[04:03:13] <jmkasunich> some of the lines it just printed start with hm2
[04:03:37] <KimK> one of the last lines mentions 'hm2_pci.0.pwmgen.pwm_frequency' not found
[04:03:40] <jmkasunich> what is the rest of the stuff before the first "." in each name? hm2_5i20? just plain hm2?
[04:04:04] <jmkasunich> that is expected
[04:04:23] <jmkasunich> line 48 of your hal file tries to do something with that parameter, but there isn't any such thing
[04:04:29] <jmkasunich> so we need to find the proper name to use
[04:04:35] <KimK> a group of lines has hm2_5i22
[04:04:52] <SWPadnos> ding ding ding!
[04:04:54] <jmkasunich> hm2_5i22.stuff.more-stuff.even-more-stuff ?
[04:05:14] <KimK> yes, perhaps 50 lines, I didn't count
[04:05:29] <jmkasunich> ok - those are the hal pins and parameters that the 5i22 board is giving you
[04:05:36] <jmkasunich> so we know the driver is loading properly
[04:05:43] <jmkasunich> back into the editor
[04:05:45] <jmkasunich> the hal file
[04:05:52] <KimK> OK
[04:05:57] <SWPadnos> and that all those hm2_pci pin names should be hm2_5i22 instead
[04:06:03] <jmkasunich> replace the "show" on line 46 with a blank line again, we don't need all that spew
[04:06:35] <jmkasunich> hit ctrl-H for a search/replace box
[04:07:04] <KimK> replace, except for the magic line 45 load-the-driver, correct?
[04:07:16] <jmkasunich> in the search for put "hm2_7i43" (no quotes) and in the replace put "hm2_5i22"
[04:07:41] <jmkasunich> SWPadnos: I believe there is only one or two _pci names in there - the ones he put in under our direction just a bit ago
[04:07:47] <SWPadnos> ok
[04:07:51] <jmkasunich> so "all those" is just confusing
[04:08:54] <jmkasunich> KimK: go ahead and replace all instances in the file using that dialog box
[04:08:59] <KimK> replace-all done
[04:09:05] <jmkasunich> ok
[04:09:20] <jmkasunich> make sure lines 48 and 51 also have hm2_5i22
[04:09:50] <jmkasunich> save, and try to start emc again
[04:10:08] <jmkasunich> the config picker should remember which config you used last time, you probably can just hit OK
[04:11:18] <SWPadnos> (or emc -l)
[04:11:40] <KimK> Did I forget something? "HAL: ERROR: function 'hm2_pci.0.read' not found"
[04:12:23] <SWPadnos> should be hm2_5i22.0
[04:12:39] <KimK> I'll look again
[04:13:53] <KimK> It also appears under "threads": # hook functions to servo thread * addf hm2_pci.0.read servo-thread
[04:14:21] <KimK> should that also be hm2_5i22 ?
[04:14:25] <jmkasunich> yes
[04:14:31] <KimK> OK, BRB
[04:14:33] <jmkasunich> I wonder why the global replace didn't pick it up
[04:14:45] <KimK> I was looking for 7i43
[04:15:04] <SWPadnos> the only place you should have hm2_pci is where the driver gets loaded. after that, it names all the exported pins and functions starting with hm2_5i22
[04:15:10] <jmkasunich> it was 7i43 in the original file
[04:15:22] <jmkasunich> we're talking about line 59, right?
[04:15:52] <SWPadnos> if you had a 5i20 also, you'd have some things named hm2_5i22.* and other things named hm2_5i20.* - all from the same hm2_pci driver
[04:16:08] <KimK> EMC2 now runs and starts Axis
[04:16:31] <jmkasunich> yay!
[04:16:31] <SWPadnos> yay
[04:16:34] <SWPadnos> !
[04:16:40] <jmkasunich> now, open another shell
[04:16:50] <KimK> OK
[04:16:52] <jmkasunich> in that shell, type "halcmd -kf"
[04:17:02] <jmkasunich> you should get a halcmd prompt
[04:17:11] <KimK> Yes
[04:17:24] <jmkasunich> type "show pin hm2*" and hit enter
[04:17:33] <jmkasunich> you should get a long list of pins belonging to the driver
[04:17:53] <jmkasunich> halcmd is your friend - read the manual and learn how to find pins, params, etc
[04:18:04] <jmkasunich> as you do things in EMC, the values of those pins will change
[04:18:10] <KimK> it did
[04:18:30] <jmkasunich> you can use halmeter to look at them, halscope to get scope traces of stuff that is changing quickly, etc
[04:18:40] <jmkasunich> you'll need halscope when it is time to tune your servos
[04:18:57] <jmkasunich> at the halcmd prompt, type "loadusr halmeter"
[04:18:58] <KimK> OK, will do. Thanks for the Christmas present!
[04:19:22] <jmkasunich> that gives you your "DMM" for poking around
[04:19:40] <jmkasunich> you can have as many meters as you want, just do "loadusr halmeter" over and over again
[04:19:50] <jmkasunich> (its a shame you can't replicate Fluke DMMs like that)
[04:20:11] <KimK> true!
[04:20:20] <SWPadnos> it's a shame physical multimeters don't have probes that stay attached like that :)
[04:20:50] <jmkasunich> when you shut down axis, HAL will be shut down two, all your meters (and your scope, if running) will go away by themselves
[04:20:52] <KimK> They open in pairs? A selector (list) and a display?
[04:21:07] <jmkasunich> the display is the meter
[04:21:16] <jmkasunich> the list is a dialog, if you hit OK, it will go away
[04:21:18] <SWPadnos> yes, or if you want a smaller version and you know what you want it to display, you can specify that at load time
[04:21:41] <jmkasunich> the display has a button that will bring the list back
[04:21:51] <KimK> OK
[04:21:52] <SWPadnos> like halcmd -s pin hm2_5i22.0.encoder.0.position
[04:22:18] <SWPadnos> -s means small (no button for selecting a new pobe type and no exit button)
[04:22:18] <jmkasunich> specifying pin (or param, or sig) and giving a name skips the dialog
[04:22:31] <jmkasunich> you can stack a bunch of -s meters up
[04:22:41] <jmkasunich> but usually you are better off using the regular ones
[04:23:13] <jmkasunich> note that if you do find yourself metering the same things over and over, you can put the complete line at the end of your hal file, and it will start the meter when EMC starts
[04:23:34] <jmkasunich> loadusr halmeter -s pin whatever <-- can put as many of those in the hal file as you want
[04:23:59] <SWPadnos> poor mans pyvcp :)
[04:24:07] <jmkasunich> the hal file is basically a script
[04:24:21] <jmkasunich> you can test out lines at the halcmd prompt, then if they work stick them in the hal file
[04:24:40] <KimK> SWPadnos, I tried pasting your command, no joy, what's my problem?
[04:24:46] <jmkasunich> the only hitch - if a line in the hal file causes an error, it will prevent EMC from starting
[04:24:54] <SWPadnos> I probably didn't name a pin that exists
[04:25:10] <jmkasunich> there are several things wrong with that command
[04:25:21] <SWPadnos> at the heh, that's true
[04:25:24] <jmkasunich> it says halcmd, not halmeter
[04:25:37] <jmkasunich> if you are giving it at the halcmd prompt, it needs a loadusr in front
[04:25:38] <SWPadnos> loadusr halmeter -s pin hm2_5i22.0.encoder.0.position
[04:25:45] <jmkasunich> what he said
[04:25:55] <SWPadnos> if that pin exists, which you can check with show
[04:26:13] <SWPadnos> incidentally, tab completion works pretty well within halcmd
[04:26:20] <KimK> Ah, that (loadusr) worked fine. Thanks!
[04:26:30] <SWPadnos> sure
[04:26:37] <SWPadnos> I guessed a real pin then, huh? :)
[04:26:43] <jmkasunich> dunno if you are familiar with tab completion - saves a boatload of typing
[04:27:48] <jmkasunich> "show pin hm<tab>" will be expanded to "show pin hm2_5i22." since everything that begins with hm is the same out to that dot
[04:28:07] <KimK> Only in IRC, and a little in the command line. I'll look forward to trying tab completion in hal. Now, is hal in or out of the integrator's manual?
[04:28:14] <jmkasunich> actually it will probably complete all the way out to hm2-5i22.0.
[04:28:25] <KimK> or both?
[04:28:45] <SWPadnos> I'm not sure if the hal stuff is in the integrators manual
[04:28:52] <jmkasunich> I dunno, its been moved recently, and may not be the same in cvs trunk (which I have handy) vs 2.2.8
[04:28:54] <SWPadnos> there is a hal manual though
[04:29:10] <jmkasunich> just look in the contents section of the integ manual and see
[04:30:13] <jmkasunich> http://linuxcnc.org/docview/html/
[04:30:34] <jmkasunich> you have local copies, but if you can't find them, it is on the web too
[04:30:54] <SWPadnos> in the CNC menu
[04:31:13] <KimK> OK. Well, I think you have gotten me to where I needed to be, thanks very much and Merry Christmas. I know it's later there and you must have Christmas duties, so thanks for helping out. I'll stay on as long as you have advice, though.
[04:31:48] <SWPadnos> don't lkook twice at a cross-eyed newt
[04:31:51] <SWPadnos> look
[04:32:29] <jmkasunich> I think its time for me to walk the dog and go to be
[04:32:30] <jmkasunich> d
[04:32:38] <SWPadnos> see ya
[04:32:39] <KimK> Wait, I'll engrave that with CNC! Oh, rats, no servos. Come back later, though.
[04:32:52] <KimK> Thanks again guys
[04:33:17] <jmkasunich> http://www.linuxcnc.org/docview/html//hal_tutorial.html
[04:33:22] <jmkasunich> you're welcome
[04:33:55] <SWPadnos> KimK, you should find HAL familiar - it's a bit like using electronic components and wiring them together to get the behavior you want
[04:35:04] <KimK> I hope so. I enjoyed Ray Henry's presentation. Now I have the time to sit and work with it until it really sinks in.
[04:35:38] <SWPadnos> definitely get (or make) a 7i31 board - the one with the set of LEDs on it, one for each I/O pin
[04:38:00] <KimK> Thanks, I couldn't find that number on their website. I will. Maybe another 7i33 too, I want to put a 4th axis on these two machines, but it already has a VFD (unipolar), and a spindle encoder might be nice too, and an MPG, and, and, and... Hey Santa, any room left in that sleigh?
[04:38:23] <SWPadnos> http://mesanet.com/prices.html
[04:38:26] <SWPadnos> search for 7i31
[04:38:56] <KimK> It doesn't have a set of teeny-tiny switches on it, does it?
[04:39:00] <SWPadnos> no
[04:39:13] <SWPadnos> just connectors and LEDs (and resistors of course)
[04:39:29] <KimK> too bad. Oh, well, external then.
[04:39:31] <SWPadnos> and buffer chips ...
[04:39:51] <SWPadnos> heh
[04:42:23] <jmkasunich> wow, my little oven is still hot from the heat-treat job I did about 6 hours ago
[04:42:35] <jmkasunich> s/hot/warm
[04:42:47] <KimK> what did you heat treat?
[04:44:13] <jmkasunich> a punch die - my Dad has a punch set he made about 20 years ago, he uses it to put holes in gaskets, shim stock, etc
[04:44:32] <jmkasunich> the 5/8" diameter die went missing a while ago, I made him a new one for xmas
[04:44:58] <KimK> Nice!
[04:45:28] <SWPadnos> thus guaranteeing that the old one will be found before new years :)
[04:45:35] <jmkasunich> heh
[04:46:16] <jmkasunich> goodnight and Merry Christmas
[04:46:18] <KimK> Oh, well, you can make a matching punch, and put the pair on eBay, LOL
[04:46:28] <SWPadnos> night. same to you
[04:46:38] <KimK> Yes, thanks again and Merry Christmas
[04:47:04] <KimK> * KimK says "Merry Christmas to all, and to all a good night!"
[04:48:32] <KimK> KimK is now known as KimK_brb
[04:59:29] <KimK_brb> KimK_brb is now known as KimK
[05:39:33] <eric_u1> logger_emc: bookmark
[05:39:33] <eric_u1> Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/2008-12-25.txt
[05:40:33] <KimK> eric_u1: Thanks for your help earlier too, I didn't mean to overlook you
[07:52:58] <maddash> I'm so coooozy in my new kernel
[07:54:58] <SkinnYPuPp> you E17 any maddash ?
[07:56:15] <maddash> e17? as in enlightenment?
[07:57:01] <maddash> i was talking about my kernel, but on the subject of WMs -- heck no, i use icewm. slim, sleek, sexy, and not bloated (like e17)
[07:58:09] <SkinnYPuPp> das cool , been using e17 on my tablet ...
[08:03:31] <maddash> aha.
[08:03:42] <maddash> sorry to hurt your feelings, then.
[08:03:51] <maddash> here: have a happy holiday.
[08:04:02] <SkinnYPuPp> Ain't hurtin my feelings ;o)
[08:04:25] <SkinnYPuPp> HappYHollidayS
[09:47:58] <anonimasu> archivist: http://books.google.se/books?id=7R1bDucTHeAC&pg=PA2034&lpg=PA2034&dq=gear+%2B+diametral+pitch&source=bl&ots=0wEJgfWN3h&sig=xNxYZN345QhmJ8Z2RFw3SP4zAFk&hl=sv&sa=X&oi=book_result&resnum=7&ct=result#PPA2054,M1
[15:54:30] <skunkworks> happy christmas!
[16:23:20] <seb_kuzminsky> * seb_kuzminsky finishes reading the backlog
[16:23:43] <seb_kuzminsky> cool, looks like the 5i22-1.5 works with hostmot2!
[16:23:59] <seb_kuzminsky> thanks for testing it, KimK
[16:27:53] <eric_u1> seb_kuzminsky: you're taking that from the IRC log?
[16:59:16] <K`zan> Snowing like mad :-), first white Christmas in quite a while :-). Merry Christmas all!
[17:06:47] <DanielFalck> K`zan: are you in Seattle?
[17:14:09] <JymmmEMC> http://www.ksl.com/?nid=148&sid=5161818
[17:24:05] <seb_kuzminsky> eric_u1: yes, the irc log
[18:23:41] <K`zan> DanielFalck: Yes.
[18:36:29] <K`zan> Getting stuff ready for Christmas dinner :).
[18:36:38] <K`zan> Be around off and on today.
[20:10:48] <tomaw> [Global Notice] Hi all, one of our hubs just disappeared taking services with it. We're looking in to the cause now.
[20:20:20] <tomaw> [Global Notice] Hi all. The connectivity problems seem to be resolved and services are back online. Sorry for the disturbance and thank you for using freenode.
[21:20:30] <Guest346> is there anybody?
[21:28:55] <eric_u1> there was
[21:29:25] <eric_u1> my 'rents are lost in central Pennsylvania
[21:31:20] <alex_joni> rents?
[21:31:24] <alex_joni> pa.. ?
[21:31:31] <eric_u1> yeah
[21:31:47] <eric_u1> they woulda been here by now if they had just stayed on the interstate
[21:32:25] <alex_joni> didn't you install a gps tracker on their vehicle?
[21:32:28] <eric_u1> there is some Steven King novel where the vampires are running a rural town, rural pennsylvania always reminds me of that movie
[21:32:48] <eric_u1> GPS is a good idea
[21:33:08] <eric_u1> although in the Toyota, it never tells you that you made a mistake
[21:33:21] <alex_joni> I didn't mean a gps navigation thingie
[21:33:24] <alex_joni> a gps tracker
[21:33:33] <alex_joni> that one sends you their current location
[21:33:36] <alex_joni> ;)
[21:33:41] <eric_u1> well, rural Pennsylvania is bad for communications
[21:33:48] <eric_u1> I might not be able to track them
[21:34:25] <eric_u1> the best plan is to provide autonomous navigation capability
[21:35:03] <alex_joni> no cell phone coverage?
[21:35:10] <anonimasu> eric_u1: sms will work even if cell coverage is crap
[21:35:23] <eric_u1> I've been surprised at how good cellphone coverage has been
[21:35:39] <eric_u1> sms is the cellphone tracking
[21:35:41] <eric_u1> ?
[21:36:28] <alex_joni> sms or data transfer
[21:36:39] <alex_joni> usually gprs transfer
[21:36:40] <eric_u1> texting?
[21:37:05] <alex_joni> well.. you can send a SMS to the tracking device, and it will respond with the current location
[21:37:21] <alex_joni> (you can type the numbers in google maps or earth to see where it is right now)
[21:37:39] <alex_joni> but there are also streaming types, where it constantly streams the current location
[21:37:42] <eric_u1> I assume they have to enable this somehow
[21:37:45] <alex_joni> once every 20-80 seconds
[21:37:55] <alex_joni> right.. configuration is done using sms'es
[21:38:09] <alex_joni> you tell it the ip/port number, update interval etc
[21:38:12] <eric_u1> that would be cool
[21:38:16] <alex_joni> and it just sends the current location
[21:38:21] <alex_joni> I got a couple for work
[21:38:35] <alex_joni> about 2-300$ here, so I'd expect them to be way cheaper over there
[21:41:46] <alex_joni> eric_u1: http://www.mobilegpsonline.com/mgpsstore/index.php?main_page=product_info&cPath=22_5&products_id=431
[21:41:50] <alex_joni> that's the one I got
[21:42:22] <eric_u1> that's pretty awesome
[21:47:12] <eric_u1> it would be nice if I could enable my cellphone to give my location to my wife, she gets irrationally worried about me riding my bike sometimes
[21:54:19] <JymmmEMC> alex_joni: using it just as a toy?
[22:03:11] <alex_joni> JymmmEMC: and as a discount for car insurance ;)
[22:05:18] <dmess> get a blackberry it can send email locations
[22:06:42] <dmess> if you call a GPS enabled BB and enter a code.. it will send back its location
[22:09:33] <alex_joni> dmess: yeah, but I guess that's a bit more expensive
[22:09:48] <alex_joni> and you can't really mount one inside the vehicle, where it can't be seen
[22:14:35] <alex_joni> * alex_joni is off to bed ;)
[22:14:38] <alex_joni> good night all
[22:14:50] <cradek> goodnight alex
[22:14:56] <Memocjro> good night alex
[22:28:45] <dmess> happy hoho to all