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