#emc | Logs for 2006-12-05

Back
[00:50:46] <robin_sz> MEEP!
[00:55:31] <Rugludallur> hmm is that MEEP bad or MEEP good ?
[00:58:47] <robin_sz> difficult to tell
[00:58:57] <robin_sz> some good things ... some bad
[00:59:30] <robin_sz> on the good side, we opened our second factory today :)
[00:59:57] <robin_sz> on the bad side, well, I cant tell you about that .. not until after the court case anyway :)
[01:10:43] <Rugludallur> robin_sz: hmm might turn out nr 2 is good, just look at SCO vs IBM :D
[01:19:29] <robin_sz> heh
[01:19:37] <robin_sz> but can I wait 2 years ?
[01:20:12] <Rugludallur> robin_sz: :( that's the bad thing with the US legal system, if they don't have a case they can always outspend/outwait you
[01:20:30] <robin_sz> well yeah
[01:20:32] <robin_sz> but
[01:20:48] <robin_sz> anyone who tries to outspend IBM better have DEEEEEEEP pockets
[01:21:39] <Rugludallur> robin_sz: Well SCO was backed by patent trolls, they don't have as much cash but they do have the manpower ,, but IBM was probably to bif of a bite from the start
[01:21:56] <robin_sz> and their stock is where today?
[01:21:57] <Rugludallur> s/bif/big/g
[01:22:11] <Rugludallur> robin_sz: lol, not worth it's weight as toilet paper
[01:22:19] <robin_sz> heading for $1
[01:23:00] <robin_sz> its even possibkle Darl will be sued personally
[01:23:51] <robin_sz> I try to follow the story as best I can ... thought its difficult to find a balanced, neutral reporting
[01:24:40] <Rugludallur> robin_sz: I clearly don't follow it as well as you, mostly get what seeps into slashdot
[01:24:50] <robin_sz> yeah, not very balanced
[01:24:58] <robin_sz> grokalw is just as bad
[01:25:07] <robin_sz> groklaw .. if not worse
[01:25:08] <SWPadnos> http://www.groklaw.net/
[01:25:23] <SWPadnos> they're anti-SCO, but accurate as far as I can tell
[01:25:34] <robin_sz> yeah right... not.
[01:25:49] <robin_sz> take todays "Novell sells out" piece
[01:26:07] <SWPadnos> ah - I was referring to the SCO coverage, not the site in general
[01:26:09] <SWPadnos> I haven't read it much
[01:26:31] <robin_sz> its not bad, but the bias is getting a bit too strong recently
[01:26:51] <robin_sz> it used to be a lot better
[01:27:18] <SWPadnos> well, again they;ve got a particular slant, but is the information inaccurate?
[01:28:02] <skunkworks> SWPadnos: I might actually get the parts tomorrow.
[01:28:05] <robin_sz> mmm ... difficult to say, the actual logging of facts is very accurate, the news and comment is dubious
[01:28:27] <SWPadnos> skunkworks, cool, as long as the bad weather around Chicago is headed for us instead of you
[01:28:48] <robin_sz> the problem is the "PJ is right, anyone who disagrees is a troll" menatlity. it stifles proper discussion
[01:28:51] <SWPadnos> sure - comments are from individuals, and I'm not sure how tightly moderated they are
[01:29:01] <SWPadnos> well, that's not so great
[01:29:19] <robin_sz> well, if you agree with PJ its not moderated .,. disagree and it usually gets wiped within an hour or less
[01:29:27] <robin_sz> and then you get "sandboxed" :)
[01:29:33] <SWPadnos> I haven't seen that, but again, I don't monitor that site
[01:29:35] <SWPadnos> :)
[01:29:43] <robin_sz> well, you wouldnt would you :)
[01:29:50] <robin_sz> see it I mean
[01:30:04] <SWPadnos> no, I wouldn't
[01:30:13] <SWPadnos> it is her site though, so I guess it's OK :)
[01:30:19] <robin_sz> once a user is tagged for sandboxing, anyting they post from that IP is invisible, unitl approved
[01:30:39] <robin_sz> they can see it so they THINK they have posted, but no one else can
[01:30:59] <SWPadnos> man - Dolphin CAM is expensive
[01:31:14] <robin_sz> how expensive?
[01:31:27] <SWPadnos> $6495 for Dolphin 3D CAM level 2
[01:31:37] <SWPadnos> PartMaster is much less
[01:31:38] <robin_sz> mmm ... typical I guess
[01:31:55] <robin_sz> remember its aimed at a commercial enviroment
[01:32:00] <SWPadnos> well, on CCED, a guy just posted that it's now available in the US for "a low price ..."
[01:32:02] <robin_sz> 6K is ballpark
[01:32:22] <SWPadnos> I think even CAMWorks is less than that
[01:32:32] <SWPadnos> (or SolidCAM - whatever the SolidWorks plugin is)
[01:52:21] <bpmw> Good evening folks, been awhile.
[01:54:03] <bpmw> I'm getting a joint following error, how much more should your minferror be over your backlash?
[01:55:05] <SWPadnos> steppers or servos?
[01:55:29] <bpmw> steppers , Hi there Steven.
[01:56:12] <SWPadnos> hi
[01:56:38] <SWPadnos> I'm not sure min ferror is related to backlash
[01:57:05] <SWPadnos> the physical error will be, of course, but ferror is calculated from the output of stepgen, not the actual machine position
[01:58:55] <bpmw> The problem just started after I changed the lash figure on Y axis to 15 minferror is 0.010
[01:59:13] <SWPadnos> hmmm - well, try increasing it ;)
[01:59:38] <bpmw> should .005 over do it?
[02:01:08] <SWPadnos> if backlash is 0.015 (?), and ferror is related (which still surprises me), then I'd make it > 0.015
[02:01:37] <SWPadnos> but I sure hope I'm wrong about that
[02:01:39] <bpmw> Ok, I'll give that a try.
[02:06:07] <bpmw> That did the trick, works fine now. Thanks a bunch. Vern...
[02:06:33] <SWPadnos> bummer - you're welcome
[02:06:36] <SWPadnos> :)
[02:06:55] <bpmw> See Ya later.
[02:07:05] <SWPadnos> see you - have fun with it
[02:21:40] <jmkasunich> you guys sure talk a lot ;-)
[02:21:47] <Rugludallur> :D we do
[02:21:48] <jmkasunich> (just got done reading back)
[02:22:03] <Rugludallur> Anyone want to try out a prototype dxf to gcode converter ?
[02:22:51] <Rugludallur> Been making one in python for the last week, still far from complete but already better than some of the things out there
[02:29:02] <skunkworks> jmkasunich: what are you views on a differntial opamp and a current sense resister in series with the motor?
[02:29:16] <jmkasunich> not good
[02:29:34] <skunkworks> :)
[02:29:43] <jmkasunich> the differential amp needs to handle the full motor supply voltage
[02:29:53] <jmkasunich> whats that for you? 80V, 100V, more?
[02:30:06] <skunkworks> over 100
[02:30:06] <SWPadnos> +-200, right?
[02:30:25] <jmkasunich> that ain't your average opamp
[02:31:02] <Rugludallur> im off to bed, gn
[02:31:08] <skunkworks> no - I was actually looking at specific dif amps that could handle it.
[02:31:25] <jmkasunich> what amps are those?
[02:31:34] <skunkworks> hold on - let me find the link
[02:32:04] <jmkasunich> the switching edges have frequency components of hundreds of KHz, maybe even 10s of megahertz
[02:32:54] <jmkasunich> look at the common mode rejection of the diffamp at those frequencies - I bet it ain't much (considering that you need to reject 100V or more of common mode and you only have a 1V or less signal from your resistor)
[02:34:41] <skunkworks> http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1154,C1009,C1126,P7521,D5087
[02:35:49] <jmkasunich> look at the first graph on page 11 of the datasheet
[02:36:00] <jmkasunich> at 100KHz you have 30 dB CMRR
[02:36:38] <jmkasunich> that means a 100V 100KHz signal will appear as 3V on the output
[02:37:58] <skunkworks> god - people should not be so smart :)
[02:38:00] <jmkasunich> if you are just trying to prevent motor overcurrent, you can probably filter the snot out of it, since the motor inductance limits the dI/dT - anything really fast on the diff amp output must be noise
[02:38:31] <jmkasunich> but if you are trying to protect against a short at the motor or output terminals, you need fast response, so you can't filter
[02:38:38] <jmkasunich> and the common mode noise would cause false trips
[02:40:06] <skunkworks> I was looking using the pluto board which is pwm at 20khz
[02:40:28] <skunkworks> * skunkworks is just trying to keep up.
[02:40:33] <jmkasunich> its not the PWM frequency, its the rise and fall time
[02:40:58] <skunkworks> Ok - I thought I was missing it again.
[02:41:36] <skunkworks> I am sorta back to - see if it will work the way it is ;)
[02:41:48] <jmkasunich> thats a good choice
[02:42:13] <jmkasunich> put a fuse in series with the main power supply (_not_ between the big cap and the FETs)
[02:42:28] <skunkworks> that is the plan.
[02:42:38] <jmkasunich> what is your target current again?
[02:42:44] <skunkworks> 20amp
[02:43:11] <jmkasunich> this is the caddilac approach: http://www.lem.com/docs/products/LA%2025-NP%20E.pdf
[02:43:16] <jmkasunich> put that in series with the motor
[02:43:29] <jmkasunich> the current sense signal is completely isolated from the motor circuit
[02:43:34] <jmkasunich> no common mode problems
[02:43:43] <jmkasunich> only problem is it costs $22
[02:44:23] <jmkasunich> it will measure up to 36A
[02:44:43] <jmkasunich> and is fast enough to use for both normal feedback (current limit) and short circuit protection
[02:45:29] <jmkasunich> if you can tolerate a +/- 18A range, you can even get ground fault protection with it
[02:47:51] <skunkworks> that is nice.. I have been doing lots of readin on h-bridge current sensing.. And I still know squat.
[02:48:23] <skunkworks> reading
[02:52:46] <jmkasunich> if the $22 isn't out of line, I can explain how you would use it
[02:54:21] <skunkworks> It isn't for a solution.. Could I ask you about it in the future? I have about 8 projects before I get to this problem.. if it is a problem.
[02:54:28] <jmkasunich> sure
[02:54:47] <skunkworks> Thanks - very much.
[02:55:23] <skunkworks> jmkasunich: did you find ball screws?
[02:56:06] <jmkasunich> turns out mcmaster has 5/8 diameter 13/64 (0.203) lead screws for less than $2 per inch, and nuts are less than $30
[02:56:34] <skunkworks> those are (i assume) rolled?
[02:56:38] <jmkasunich> pretty sure
[02:56:45] <jmkasunich> 0.004" per foot accuracy
[02:57:00] <jmkasunich> but at that price, I can buy two nuts and preload them with 100 lbs or so
[02:57:05] <skunkworks> you are going to try to preload them with 2 nuts?
[02:57:12] <skunkworks> ah
[02:57:15] <jmkasunich> and we have screw error comp in emc now ;-)
[02:57:18] <skunkworks> nice
[02:57:33] <jmkasunich> I think the ballscrew addition is down the road a bit
[02:57:42] <jmkasunich> I'm gonna stick with acme for the moment
[02:57:49] <jmkasunich> don't want to bite off more than I can chew
[02:57:59] <skunkworks> oh - I never have that problem.
[02:58:19] <jmkasunich> when I do the CNC conversion with acme, I'll still have the handwheels
[02:58:38] <jmkasunich> so if I need to do some lathe work to get the lathe working, I can, even if the CNC isn't running yet
[02:58:48] <skunkworks> I just found out our z axis spins the nut instead of the lead screw. going to require a bit more "engineering"
[02:58:50] <jmkasunich> once I go to ballscrews, I won't have the handle anymore
[02:58:54] <skunkworks> that is a good Idea
[02:58:57] <jmkasunich> so the CNC needs to be working first
[03:01:04] <skunkworks> do you have a scale you can use to calibrate the screw error?
[03:01:21] <jmkasunich> I actually have a set of gage blocks
[03:01:55] <jmkasunich> lot of work to calibrate every 1/2 inch or so, but I can do it if I'm motivated enough
[03:02:07] <skunkworks> right.
[03:11:10] <jmkasunich> to add myself to a group, I just add my name to the end of the relevant line in /etc/group ?
[03:12:35] <jmkasunich> never mind
[03:12:39] <jmkasunich> * jmkasunich reads man group
[03:35:12] <skunkworks> jepler: nice write-up on your blog
[03:43:42] <ve7it> ve7it is now known as LawrenceG
[03:57:29] <skunkworks> night
[06:38:16] <flyboy> need more help
[06:38:58] <flyboy> anyone
[13:18:11] <jepler> skunkworks: cradek or I did something to kill the pluto-p last night :(
[13:18:25] <skunkworks> oh no.
[13:18:28] <jepler> skunkworks: luckily he'd ordered two more, one for him and one for the inevitable screwup
[13:18:43] <skunkworks> do you know what happened?
[13:18:44] <jepler> so later this week I'll get back to working on it
[13:19:35] <jepler> it's possible that it was my fault -- I was trying to probe at one of the FPGA's tiny pins, and the probe went ZIP! across the whole row .. cradek tried to fix up any bridges I'd created, but it never worked right again
[13:19:48] <jepler> or it might have been something else
[13:20:31] <jepler> before we realized it was ruined, but maybe after it was already ruined, we saw that VCC went up to 4V (it should be 3.3V) when the parallel port is plugged in---whether that is another symptom of whatever happened, or whether it's the cause, I don't know
[13:21:43] <skunkworks> yeck. Those pins are so small.
[13:22:15] <skunkworks> I read your blog last night. Nice write up. You had already posted that cradek had bought 2 just in case.
[13:22:17] <skunkworks> :)
[13:22:21] <jepler> oh had I?
[13:22:26] <jepler> well as usual he was right
[13:23:01] <skunkworks> So you think the avr's that you play with are a little more robust?
[13:23:22] <jepler> oh i've destroyed some of those too
[13:23:50] <jepler> nothing is immune to my ability to f**k stuff up
[13:23:59] <skunkworks> :) the other thing is - you guys really have no isolation between the the
[13:24:02] <jepler> "why is this pdip package melting"
[13:24:07] <skunkworks> high power circuit
[13:25:13] <jepler> skunkworks: I'm not sure why cradek doesn't feel more uneasy without some kind of isolation
[13:25:38] <skunkworks> because he has never had problems. :)
[13:26:37] <skunkworks> but you guys are starting to push currents that will probably start to be an issue.
[13:27:22] <skunkworks> I only have optos on the h-bridge. I probably won't isolate the encoder.
[13:27:28] <skunkworks> encoders
[13:28:48] <skunkworks> how did your new code work on the encoder pulse?
[13:28:55] <skunkworks> index
[13:29:19] <jepler> we didn't get a chance to test it before I broke it
[13:29:53] <jepler> it's time for me to drive to work .. chew on this for a bit and tell me what you think: http://emergent.unpy.net/files/sandbox/pluto-servo-pinout.pdf
[13:30:19] <skunkworks> jepler: Our apologizes for this error and we have arranged to send the correct CD to you. The files are quite numerous and difficult to send as an email attachment
[13:31:41] <jepler> there may be one or two PDFs on there I want
[13:31:50] <skunkworks> ok
[13:31:54] <jepler> oh I should try that tracking number again
[13:32:03] <skunkworks> yes - make sure I didn
[13:32:06] <skunkworks> didn
[13:32:10] <skunkworks> damn it
[13:32:16] <skunkworks> didn't transpose some numbers
[13:32:24] <jepler> Scheduled Delivery: 12/06/2006
[13:32:39] <jepler> anyway -- talk to you later
[13:32:40] <skunkworks> cool - your not that far away.
[13:32:50] <skunkworks> drive save
[13:32:53] <skunkworks> safe
[14:02:41] <jepler> skunkworks: any thoughts on the pinout? My basic goal was to put a good selection of pins on the extended main header (the 26+4 pins that can be connected with a single 34-pin IDC connector), and then to put the rest of the inputs together and the rest of the outputs together
[14:13:10] <skunkworks> It looks good to me. But I am easy :) makes sense
[14:14:23] <skunkworks> I wonder how many pluto boards get sent back because the 'stop' working.
[14:14:29] <skunkworks> they
[14:17:01] <skunkworks> jepler: floppy drive cable has 1 more pair than the bottom row.
[14:17:20] <skunkworks> I would just cut off the flipped end (drive a:)
[14:17:30] <skunkworks> drive a:
[14:24:17] <skunkworks> It would be cool if you guys could isolate the h-bridge from the rest of the circuit.. Then see if you still have noise issues.
[14:24:32] <skunkworks> and I suppose spindle drive.
[14:28:54] <skunkworks> my setup right now - powers the breakout board from the computer power supply. This is what also powers the encoders. - the h-bridge is on a totally different power supply - it is controleed with the breakout board through opto-isolators on the h-bridge board.
[14:35:29] <anonimasu> a.out in free(): warning: junk pointer, too high to make sense
[14:35:37] <anonimasu> does anyone have a clue why this happens?
[14:38:21] <jepler> skunkworks: actually the spindle drive is isolated -- it has an entire separate controller from the board that has the X and Z servo h-bridges
[14:38:52] <jepler> anonimasu: it's some kind of bug in the software you're using. A pointer passed to the "free()" function was invalid.
[14:39:38] <anonimasu> jepler: it's my software and it shouldnt be wrong..
[14:39:50] <anonimasu> char *token = malloc(10*sizeof(char));
[14:40:08] <anonimasu> and then I'm doing free(&token);
[14:40:32] <jepler> anonimasu: it's unlikely that you've discovered a bug in your platform's free() and malloc(). It's much more likely that the bug is somewhere in your code.
[14:41:18] <anonimasu> yeah, strtok ate my pointer.
[14:41:30] <jepler> I think that doing 'free(&token);' is incorrect, it should be: free(token)
[14:41:41] <anonimasu> it gives the same result
[14:41:52] <anonimasu> but I found what causes it..
[14:42:57] <anonimasu> but I dont know why
[14:46:48] <jepler> skunkworks: yeah -- isn't 34 pins the size of the floppy connector?
[14:46:50] <jepler> that's what I had in mind too
[14:57:11] <skunkworks> jepler: yes - 34 pins.
[14:59:56] <skunkworks> then all I have to come up with is an 8 pin cable :)
[15:01:04] <skunkworks> * skunkworks goes and looks in his cable box
[15:02:55] <jepler> if you want to use the main and right connectors, I think you'll want to use a 26-pin and a 6-pin -- if you span part of the right connector with a 34-pin there won't be room for the other connector
[15:03:07] <jepler> er, 26- and 12-
[15:04:04] <skunkworks> you are right
[15:04:13] <skunkworks> again
[15:04:17] <cradek> http://sourceforge.net/mailarchive/forum.php?thread_id=6091841&forum_id=33140
[15:04:20] <cradek> http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/2004/2004-12-05.txt
[15:04:28] <cradek> AXIS is two years old, happy birthday
[15:04:48] <jepler> I was thinking about that just recently but had no idea which day it was
[15:06:25] <jepler> 02:09:40 <alex_joni> jepler: will AXIS go on the emc cvs?
[15:06:44] <jepler> I didn't remember that people started suggesting this so early after the announcement
[15:07:43] <skunkworks> wow - paul seemed to be nice
[15:08:00] <jepler> yes, he was
[15:08:09] <skunkworks> btw - great work. I think axis is one of the main reasons I am using emc2
[15:08:52] <jepler> me too
[15:10:25] <skunkworks> I wonder how easy it is to reuse these connectors - I have a few 26 pin plug but it breaks out to a joystick port and audio. (old motherboard)
[15:11:52] <skunkworks> hmm - I think pretty easy. Maybe only a vise to smuck it back togather.
[15:14:43] <skunkworks> other than I need to get a plug out
[15:21:18] <skunkworks> well that sucks - this plug they glued in. I just jammed a whole row of sharp spikes into my finger ;)
[15:21:31] <jepler> ouch ouch
[15:22:48] <skunkworks> cool - that might work.
[15:23:15] <skunkworks> goodness knows I have enough ribbon cable.
[15:24:07] <skunkworks> one option is just to solder the other end into a generic circuit board. (protoboard)
[15:28:07] <jepler> looks like 12 pins is not very common
[15:30:35] <jepler> almost everything about that board was done to make it as small as possible
[15:34:29] <alex_joni> hi jeff
[15:34:51] <alex_joni> been that long already?
[15:46:18] <skunkworks> jepler: I have found a 16 pin connector I have
[15:46:53] <skunkworks> but - you are right - I don't have any 12 pin ones
[15:50:46] <skunkworks> lots of 10 and lots of 16
[15:54:22] <skunkworks> might just have to cobble something- looks kinda like a normal plug will not fit on the right side. well maybe it will the header will raise the plug. got get over the capasitor near the power jack
[15:55:38] <skunkworks> what the hell did I just write
[15:59:43] <skunkworks> jepler: the pci8255 is also (3) 34 pin headers - Cool
[16:00:27] <skunkworks> I know there was a reason I kept all of my floppy drive cables.
[16:09:43] <Guest101> hi
[16:09:54] <Guest101> please help-me
[16:10:24] <skunkworks> ask away. Someone should be able to help
[16:11:04] <Guest101> please i need a 2 parallel port in my sistem
[16:11:48] <Guest101> i donĀ“'t run if both 2
[16:14:48] <skunkworks> what version of emc are you using - and what exactly happens when they are both installes?
[16:22:12] <jepler> Guest101: for emc2, determine the address of each port, and use it in the 'loadrt hal_parport' line. For example, if the ports are at the standard LPT1 and LPT2 addresses, you might write: loadrt hal_parport cfg="0x378 0x278"
[16:22:25] <jepler> then HAL will create parport.0 and parport.1
[16:22:50] <jepler> for PCI parallel ports you can often find the proper address in the output of "lspci -v -v"
[16:29:15] <alex_joni> jepler: AXIS surely has come a long way. congrats
[16:29:23] <jepler> alex_joni: thank you
[16:30:05] <alex_joni> that goes for cradek too :)
[16:30:20] <alex_joni> * alex_joni remembers quite a while ago trying it out on emc2
[16:30:20] <jepler> of course
[16:30:35] <alex_joni> and having to hack parts of it to make it compile :)
[16:30:38] <jepler> before we switched to emc2, you were the one who "ported" it
[16:30:40] <jepler> yeah
[16:30:39] <jepler> exactly
[16:31:14] <alex_joni> I know chris switched afterwards to emc2, and continued the "porting"
[16:31:17] <jepler> 2 years ago it sure didn't seem like emc2 was ready .. but that has sure changed
[16:31:31] <alex_joni> I'm glad you feel that way
[16:31:57] <jepler> I was stuck on emc1 because I didn't have realtime on any of my machines
[16:32:01] <alex_joni> heh.. I just remembered rs274py
[16:32:26] <jepler> that was before we came up with the snappy name
[16:32:37] <alex_joni> yeah
[16:32:59] <alex_joni> I think I looked at it even when it interpreted the g-code by itself
[16:33:13] <alex_joni> or were those some screenshots? I can't remember
[16:34:59] <jepler> there might have been a tarball or two from that era
[16:35:13] <jepler> in fact I think there was even an axis 0.9.x before the switch to the emc interpreter
[16:37:24] <alex_joni> cool
[16:37:55] <alex_joni> remembering those fun times is nice
[16:38:10] <alex_joni> * alex_joni remembers the first time beeing helped out by cradek :D
[16:42:34] <Guest101> ok
[16:42:44] <Guest101> sory -me
[16:42:51] <Guest101> if dont talk
[16:43:01] <alex_joni> Guest101: hi
[16:43:01] <Guest101> in many minutes
[16:43:09] <Guest101> in from brazil
[16:43:15] <Guest101> my inglish
[16:43:20] <Guest101> no more good
[16:43:27] <alex_joni> Guest101: hello from romania ..(opposite corner of the world)
[16:43:40] <alex_joni> so, you said you have problems with the second paralel port
[16:43:43] <Guest101> but very tanhs for you
[16:44:54] <alex_joni> Guest101: emc or emc2 ?
[16:47:56] <Guest101> please
[16:48:27] <Guest101> emc2
[16:49:16] <Guest101> some time
[16:49:37] <alex_joni> ok
[16:49:46] <alex_joni> you have 1 parport now, and need another one?
[16:50:01] <Guest101> i need 2
[16:50:18] <Guest101> how configuration?
[16:50:41] <Guest101> how are configure?
[16:51:04] <Guest101> a need outputs
[16:51:26] <Guest101> my ports is:
[16:51:49] <Guest101> port1 address c800
[16:51:51] <Guest101> and
[16:52:02] <Guest101> port2 address b000
[16:52:35] <alex_joni> you are running stepper configuration?
[16:53:22] <Guest101> how write in standard_pinout.hal?
[16:53:22] <alex_joni> there is a line in the standard_pinout.hal which says: 'loadrt hal_parport cfg="0x378"'
[16:53:40] <Guest101> and 2?
[16:53:42] <alex_joni> Guest101: you need to make a copy of the configuration to your home directory
[16:53:50] <alex_joni> hang on a bit
[16:53:55] <alex_joni> there is a line in the standard_pinout.hal which says: 'loadrt hal_parport cfg="0x378"'
[16:54:21] <alex_joni> you need to change that to 'loadrt hal_parport cfg="0xc800 0xb000"'
[16:54:38] <Guest101> ok
[16:54:58] <Guest101> addess of pins
[16:55:18] <alex_joni> to be able to edit the configuration you need to copy the config from /etc/emc2/sample-configs/stepper/... to /home/user/emc2/configs/stepper
[16:55:25] <alex_joni> it is described in detail here: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?CustomizingConfigsOnUbuntu
[16:55:33] <Guest101> no
[16:55:44] <Guest101> not this
[16:56:06] <alex_joni> ok, the pins are named like this:
[16:56:15] <alex_joni> port1 (0xc800):
[16:56:26] <alex_joni> parport.0.pin-02-in
[16:56:26] <alex_joni> ...
[16:56:33] <alex_joni> port2 (0xb000):
[16:56:39] <alex_joni> parport.1.pin-02-in
[16:56:40] <alex_joni> ...
[16:57:01] <Guest101> one time for test...
[17:00:39] <Rugludallur> If anyone wants to try out my dxf to g-code converter you can download it from http://dallur.com/fileadmin/user_upload/dxf2nc_beta1.zip It's far from complete but comments, pointers and feature request are welcome
[17:01:52] <jepler> Rugludallur: I'll look at it
[17:02:03] <Rugludallur> jepler: Great :D it requires vpython though
[17:02:36] <jepler> unfortunately, I don't have that
[17:02:38] <alex_joni> it's surprisingly small :)
[17:02:46] <jepler> maybe when i'm at home and can install additional software
[17:03:06] <Rugludallur> jepler: you on win or linux ?
[17:03:14] <jepler> Rugludallur: linux
[17:03:24] <Rugludallur> jepler: hmm let me check if I can package it somehow
[17:03:35] <jepler> that's OK, I'll just wait and look tonight
[17:04:20] <Rugludallur> jepler: ok
[17:04:49] <Guest338> hello everybody
[17:04:51] <jepler> Rugludallur: I see that you're using python2.5
[17:04:52] <alex_joni> hi Didier
[17:05:01] <Guest338> hi Alex
[17:05:12] <Guest338> nick
[17:05:17] <SWPadnos> nock
[17:05:25] <Rugludallur> jepler: yup
[17:05:36] <jepler> Rugludallur: I think it's just python2.4 on my home linux machine (ubuntu 6)
[17:05:58] <Rugludallur> jepler: hmm I upgraded because of vpython, let me check if it is required
[17:06:15] <jepler> Rugludallur: the 'partition' method of string objects doesn't exist before 2.5.
[17:06:18] <Guest338> i come back with my question
[17:06:36] <alex_joni> Guest101: I'll come back with my answer
[17:06:37] <Guest338> how to mount rtai_serial.ko properly
[17:06:37] <Rugludallur> jepler: I can probably get around that though
[17:07:04] <Guest101> which its email? therefore the test must delay some minutes, thus with its email can enterar in contact. - alex_joni
[17:07:25] <Rugludallur> jepler: vpython depends on 2.5 , just checked so no matter :P
[17:07:30] <alex_joni> Guest101: you can use alex_joni AT users.sourceforge.net
[17:07:34] <alex_joni> use @ instead of AT
[17:08:13] <jepler> Rugludallur: I tried some dxf file I have and I get this error:
[17:08:13] <jepler> Unsupported Key Type for Geometric Object:
[17:08:15] <jepler> 70
[17:08:15] <jepler> See http://www.autodesk.com/techpubs/autocad/acad2000/dxf/group_codes_in_numerical_order_dxf_01.htm for Types
[17:08:44] <Rugludallur> jepler: ok, ill get right on finding out what object type 70 is :D
[17:08:51] <Rugludallur> jepler: and fixing it :D
[17:09:01] <alex_joni> Rugludallur: that's the spirit
[17:09:13] <alex_joni> look for 71-80 while you're at it
[17:09:27] <jepler> Rugludallur: I have no idea if this is a good DXF file -- I got it from someone else, no idea about the version of autocad or anything
[17:09:29] <jepler> File "dxf2nc.py", line 319, in parse_dxf_with_pythoncad
[17:09:33] <jepler> fsock = open(filename + '.tmp', 'w')
[17:09:34] <jepler> IOError: [Errno 13] Permission denied: '/usr/share/qcad/patterns/honeycomb.dxf.tmp'
[17:09:39] <jepler> hm, this is not good -- it should not be required to write a file in the same directory as the input file
[17:09:49] <alex_joni> jepler: it sounds like it's after acad2000.. pretty common these days
[17:10:13] <Rugludallur> jepler: check, will change that to system tmp directory
[17:10:17] <Guest338> somebody knows what is the equicvalent for hyperterminal of windows
[17:10:25] <jepler> Rugludallur: you should use the 'tempfile' module to create temporary file names
[17:10:46] <jepler> probably tempfile.TemporaryFile() or tempfile.NamedTemporaryFile()
[17:10:48] <alex_joni> Guest338: the easiest way is cat /dev/ttyS0 > file and echo "foo" > /dev/ttyS0
[17:10:55] <Guest338> thanks
[17:10:59] <alex_joni> Guest338: but there are others.. minicom is sometimes appreciated
[17:11:26] <Rugludallur> jepler: ok, in this case I wanted to be able to view the file ater running the conversion but for release tempfile is better yes
[17:11:35] <cradek> Rugludallur: I think the dxf spec requires that a program reading a dxf ignores what it doesn't understand
[17:11:44] <Guest101> for alex_joni: ok! the test must delay some minutes, thus that we can we will enter in contact. Debtor for the time being.
[17:12:00] <cradek> as in "we'll crap whatever we want into the file and it's your job to politely skip over it"
[17:12:27] <alex_joni> Guest101: no problem
[17:12:38] <Rugludallur> cradek: probably best to warn & ignore then
[17:12:38] <SWPadnos> that's the best way to make a file format, IMO
[17:12:47] <SWPadnos> (like HTML)
[17:12:55] <cradek> right
[17:13:16] <jepler> "NOTE Accommodating DXF files from future releases of AutoCAD will be easier if you write your DXF processing program in a table-driven way, ignore undefined group codes, and make no assumptions about the order of group codes in an entity. With each new AutoCAD release, new group codes will be added to entities to accommodate additional features."
[17:13:22] <Guest338> you are busy, i will come back later, bye, and thanks :)
[17:13:25] <jepler> NOTE Accommodating DXF files from future releases of AutoCAD will be easier if you write your DXF processing program in a table-driven way, ignore undefined group codes, and make no assumptions about the order of group codes in an entity. With each new AutoCAD release, new group codes will be added to entities to accommodate additional features.
[17:13:30] <cradek> SWPadnos: the only problem is when they replace the old entities that used to work - like replacing POLYLINE with LWPOLYLINE
[17:13:30] <jepler> oops
[17:13:41] <SWPadnos> well, that can be a pain in the ass
[17:13:45] <cradek> jepler: thanks for finding that
[17:14:01] <alex_joni> later guys
[17:14:04] <SWPadnos> I like the "principle of least change" - use as old a storage format as possible for the given data
[17:14:07] <alex_joni> * alex_joni heads home finally
[17:14:14] <cradek> bye alex_joni
[17:14:26] <SWPadnos> see you Alex
[17:14:32] <Rugludallur> alter alex
[17:14:41] <Rugludallur> or later alex :D
[17:15:07] <jepler> at least you didn't: DROP TABLE alex_joni;
[17:15:08] <SWPadnos> you can alter alex later
[17:15:34] <alex_joni> wth is alter anyway?
[17:15:35] <alex_joni> :D
[17:15:57] <jepler> ALTER TABLE is an SQL command
[17:16:02] <Rugludallur> alter alex_joni add column 'SQL92';
[17:16:06] <jepler> it can add or remove rows from the named table, among other things
[17:16:12] <alex_joni> jepler: it's also an emc leftover related to comp
[17:16:22] <EldonB46> Question: What does the error "joint 2 following error" mean - after increasing the "INPUT_SCALE" to a larger number, Or what else should be changed if the larger value is needed for my stepper motor system?
[17:16:25] <alex_joni> and that was a quote from a source file ;)
[17:16:27] <jepler> alex_joni: it is?
[17:16:42] <jepler> EldonB46: you probably requested a higher step rate than you can get at your BASE_PERIOD
[17:17:06] <alex_joni> jepler: apparently they imagined alter as an offset which you can set, to compensate for various things like thermal expansion of the screws
[17:17:32] <EldonB46> Going from 4000 to 16000 - should I increase the BASE_PERIOD by 4?
[17:17:35] <jepler> EldonB46: For instance, if your BASE_PERIOD is 50000 (the default) and you do not have additional setup or hold times defined, then you can get at most 1 step each 2*50000ns, or 10000 steps per second
[17:17:35] <alex_joni> but it's 1-dimensioned
[17:18:16] <jepler> EldonB46: you would make your BASE_PERIOD a lower number, such as 20000, to increase the maximum number of steps per second.
[17:18:35] <alex_joni> ideally you would make it 4 times lower, but that probably won't work
[17:18:35] <EldonB46> Thanks, I love the fast answer that are available here!! I'll do some more testing, THANKS!
[17:18:51] <jepler> come back if you have more questions
[17:18:54] <alex_joni> EldonB46: if you lower it too much, it will lock your computer
[17:18:58] <SWPadnos> be careful though - if you set BASE_PERIOD too low, the computer will lock up
[17:19:12] <SWPadnos> like alex said ;)
[17:19:28] <alex_joni> 50000/4 = 12500.. kinda extreme
[17:19:36] <alex_joni> I've ran that for a while though
[17:19:43] <alex_joni> 7500 was my max I think
[17:19:57] <cradek> you should calculate the period you need based on your desired rapid speed
[17:20:07] <cradek> no need to set it lower than necessary
[17:20:10] <SWPadnos> you had it down to ~6 uS - I remember jmk mentioning that it was only 7 ticks of the timer
[17:20:17] <alex_joni> right.. it gets jitter
[17:20:17] <EldonB46> It's currently on a very old PC, 360MHz, would upgrading to a +2GHz help?
[17:20:32] <alex_joni> EldonB46: nope
[17:20:35] <jepler> EldonB46: what is the speed in inches per second?
[17:20:35] <SWPadnos> the best answer is " maybe"
[17:20:37] <cradek> EldonB46: I recommend you do the calculations first, then decide if you need an upgrade
[17:20:38] <alex_joni> but upgrading to a 7-900 MHz would
[17:20:58] <alex_joni> from there to +2GHz .. it's pure luck
[17:21:14] <alex_joni> EldonB46: you really need to see what max velocity you need
[17:21:26] <EldonB46> THANKS, love the help!!
[17:21:28] <jepler> say you need to move 1 inch per second at 16000 steps per inch. That's 16000 steps per second, so a BASE_PERIOD of 25000 would be small enough
[17:21:37] <alex_joni> say 100 IPM, at 16000 pulses/inch -> 26.6kHz
[17:22:13] <alex_joni> jepler: you forget that you need two base_periods for a pulse
[17:22:37] <jepler> alex_joni: did I? 25000*2 ns is 20kHz
[17:22:43] <alex_joni> ohl.. sorry ;)
[17:28:43] <Guest101> hi
[17:29:09] <jepler> bbl
[17:29:21] <Guest101> but my parel port not in
[17:29:26] <Guest101> is out
[17:30:28] <Guest101> not problem?
[17:31:24] <SWPadnos> you can't load the driver if the hardware is not in the computer
[17:31:48] <SWPadnos> oops
[17:32:14] <Guest101> hum?
[17:32:33] <Guest101> what?
[17:32:34] <SWPadnos> you want inputs?
[17:32:50] <Guest101> yes
[17:33:07] <Guest101> because 2 ports!
[17:33:17] <SWPadnos> ok: loadrt hal_paport cfg="0xb800 in 0xc000"
[17:33:41] <Guest101> adders pins?
[17:33:43] <SWPadnos> oops - c800, b000 :)
[17:33:50] <Guest101> ok
[17:33:59] <Guest101> and pins
[17:34:19] <Guest101> a need 1 exemple
[17:34:24] <SWPadnos> `halcmd show pin parport` will show all parport pins
[17:34:33] <Guest101> no
[17:34:42] <Guest101> mot this
[17:34:55] <SWPadnos> parport.0.pin-02.in
[17:34:55] <Guest101> a want address of pins
[17:34:56] <SWPadnos> ...
[17:35:29] <Guest101> sorry
[17:35:38] <Guest101> not need imputs
[17:35:46] <Guest101> i need outputs
[17:35:51] <SWPadnos> http://www.linuxcnc.org/docs/HAL_Documentation.pdf
[17:35:55] <SWPadnos> page 52
[17:36:06] <SWPadnos> diagram on page 54
[17:36:12] <Guest101> yes
[17:36:15] <Guest101> a see
[17:37:12] <Guest101> need a 2 ports paralel works in one time
[17:38:34] <Guest101> its possible?
[17:38:54] <SWPadnos> I don't understand
[17:39:22] <SWPadnos> you want both parallel ports as input?
[17:39:34] <Guest101> i have 2 paralel ports in my pc
[17:39:55] <Guest101> i need more outputs
[17:40:22] <SWPadnos> more than 2 parallel ports?
[17:40:34] <Guest101> no i have 2
[17:40:48] <SWPadnos> how many input pins do you need?
[17:40:56] <SWPadnos> and how many output pons do you need?
[17:40:57] <SWPadnos> pins
[17:41:12] <Guest101> yes pin
[17:41:32] <EldonB46> Thanks, guys, BASE_PERIOD of 25000 works great for my system! (12500 was NOT).
[17:41:51] <Guest101> how configure standart_pinout for this?
[17:42:18] <SWPadnos> how many pins do you need for input, and how many for output?
[17:42:28] <Guest101> output
[17:42:36] <Guest101> please
[17:43:09] <Guest101> i not speak more inglish
[17:43:36] <SWPadnos> sorry - I speak no portuguese :)
[17:44:17] <Guest101> ok
[17:44:44] <Guest101> not problem
[17:44:48] <Guest101> lets go
[17:46:28] <Guest101> how configure standart_pinout.hal?
[17:46:53] <Guest101> for works 2 port
[17:47:42] <Guest101> and addres of pins
[17:48:25] <SWPadnos> change the parport load line to: loadrt hal_parport cfg="0xc800 0xb000"
[17:48:37] <SWPadnos> for input, put "in" after the address:
[17:48:55] <SWPadnos> loadrt hal_parport cfg="0xc000 in 0xb000"
[17:49:29] <SWPadnos> the names of all the pins are on page 54 of http://www.linuxcnc.org/docs/HAL_Documentation.pdf
[17:50:26] <SWPadnos> the first port address is parport.0 (0xc000), the second port address id parport.1 (0xb800)
[17:50:55] <SWPadnos> sorry - I meant this:
[17:51:03] <SWPadnos> the first port address is parport.0 (0xc800), the second port address is parport.1 (0xb000)
[18:02:08] <Guest101> pin
[18:02:13] <Guest101> in or out?
[18:29:40] <eholmgren> two parallel ports ...
[18:29:59] <eholmgren> parallel ports are bir-directional, they have input and output pins
[18:30:09] <eholmgren> bi-directional
[18:34:53] <jepler> Guest101: the example on page 53 shows how to request the "in" mode, where pins 2 through 9 are inputs to the PC rather than outputs
[18:36:03] <jepler> the loadrt version of that command would be: loadrt hal_parport cfg="278 378 in 2a20 out"
[18:37:09] <eholmgren> ah
[18:38:33] <Lerneaen_Hydra> 'lo
[18:39:26] <jepler> http://blog.modernmechanix.com/2006/12/05/robots-stage-realistic-prize-fight/
[19:00:43] <eholmgren> lo
[19:11:06] <Guest101> help -me
[19:11:14] <Guest101> please!!!!!
[19:11:56] <jepler> Guest101: I would like to but I don't understand the help you need.
[19:12:32] <Guest101> I want to work with 2 ports parallel
[19:13:02] <Guest101> at the same time
[19:13:22] <jepler> have you tried the modified 'loadrt hal_parport' command shown earlier?
[19:13:31] <Guest101> yes
[19:13:39] <Guest101> plesase one time
[19:13:50] <Guest101> the 2 must make the engines to function
[19:14:36] <eholmgren> set us up the bomb
[19:14:46] <Guest101> 0xc800 goes to command engine X
[19:15:28] <Guest101> 0xb000 goes to command the engine y
[19:15:32] <jepler> Guest101: did you 'addf parport.1.write base_thread' and 'addf parport.1.write base_thread' so that the values created in the emc2 software are actually sent to the parallel port?
[19:15:35] <Guest101> its possible?
[19:15:41] <jepler> yes it is possible
[19:15:43] <jepler> I am trying to help you do it
[19:15:52] <jepler> but I don't understand at what step of this process you've encountered a problem
[19:16:28] <Guest101> please one teime
[19:18:05] <Guest101> very thanks
[19:18:11] <Guest101> very thanks
[19:18:28] <Guest101> Muito Obrigado!
[19:19:43] <jepler> does that mean you've had success?
[19:23:50] <Guest101> i believe its yes
[19:26:01] <Lerneaen_Hydra> eholmgren: main screen turn on!
[19:29:36] <Lerneaen_Hydra> you are on the way to destruction!
[19:29:58] <Lerneaen_Hydra> you have no chance to survive make your time
[19:30:00] <Lerneaen_Hydra> ha ha ha
[19:30:16] <Lerneaen_Hydra> ... for great justice!
[19:31:16] <eholmgren> can't someone program CIA-8 to translate between languages?
[19:31:29] <SWPadnos> no
[19:31:51] <SWPadnos> (well, maybe, but I didn't want to tell you that ;) )
[19:31:54] <Lerneaen_Hydra> eholmgren: you surely got where that was from
[19:32:12] <eholmgren> of course
[19:32:35] <eholmgren> base base base base
[19:32:54] <Guest101> People very tanks
[19:32:57] <eholmgren> who was it in here that have _never_ seen that before?
[19:33:00] <Guest101> Good bless Ypu
[19:33:02] <eholmgren> had
[19:33:15] <SWPadnos> good luck Guest101 :)
[19:35:10] <Lerneaen_Hydra> surely someone
[19:35:33] <eholmgren> would it be fairly trivial to control 110V power relays with a C program though the parport?
[19:35:50] <SWPadnos> probably not
[19:36:20] <skunkworks> it would not be fairly trivial?
[19:36:22] <SWPadnos> the control is easy, but electrically, relays tend to need more power than the port can output, and they also have nasty spikes from the coils
[19:36:31] <skunkworks> ah
[19:36:38] <cradek> ssr?
[19:36:41] <eholmgren> trigger smaller transistors with external power from a wart?
[19:36:44] <jepler> there have to be circuits for 110V power control designed to work with logic
[19:37:00] <SWPadnos> that should be fine, but add a catch diode or you'll probably fry port pins
[19:37:26] <eholmgren> I use those X10 modules to control a few things, but the cost of each module adds up
[19:37:45] <SWPadnos> well, you could always use an SSR as cradek mentioned. opto-22 compatible ones are $10 or so at digikey
[19:37:48] <eholmgren> I'd rather just make a bank of computer controlled outlets
[19:38:44] <SWPadnos> I don't think you'll get below $12 or so per outlet
[19:39:34] <SWPadnos> the cost also goes up quite a bit as the current capacity increases
[19:39:50] <jepler> $12 doesn't beat X10 modules in price?
[19:39:57] <eholmgren> no
[19:40:06] <SWPadnos> it does, but you also need to add lots of time, and also the outlets themselves ...
[19:40:08] <eholmgren> or at least not by much
[19:40:37] <eholmgren> I also don't really need them all over the house either though, just in one location
[19:40:46] <jepler> http://www.electronics123.com/s.nl/it.A/id.446/.f?sc=8&category=35
[19:40:50] <jepler> but this isn't standard outlets
[19:42:09] <SWPadnos> sure - relays are cheap. I was thinking of SSRs for the $12 number
[19:42:39] <jepler> yep, you're right
[19:42:50] <SWPadnos> then again, relays that can switch 15A at 120V (the standard outlet spec) aren't all that cheap either ;)
[19:42:58] <jepler> this says 5A?
[19:43:03] <SWPadnos> yes
[19:43:09] <jepler> tsk tsk
[19:45:02] <SWPadnos> oh - and you need DPDT probably
[19:47:55] <SWPadnos> err - DPST
[19:53:38] <jepler> maybe there's a good idea here? http://www.hackaday.com/2006/11/19/screen-saver-power-switching/
[19:54:03] <jepler> looks like maybe the whole bank of outlets is switched on a single signal, I guess that's not what you want
[19:54:47] <SWPadnos> actually, there are 8 outltes, and 8 data bits - coincidence?
[19:55:36] <jepler> yep it's 8 SSRs
[19:55:55] <jepler> he says he got a deal on ebay and had the 8 left over from another project
[19:57:37] <SWPadnos> bummer - I only have 7 AC modules
[20:30:56] <tomp> hello
[20:31:57] <jepler> hello
[20:38:38] <skunkworks> I think I am going to solder the other ends into a protoboard.
[20:39:06] <skunkworks> I could then use screw in terminals for testing.
[20:39:31] <skunkworks> it is a lot of I/O for the size.
[20:40:03] <jepler> yeah it is
[20:40:15] <jepler> there are even more I/O on the FPGA, just not brought out to the headers
[20:40:38] <skunkworks> I asked you yesterday - going to solder directly to the pins for that I/O ;)
[20:41:09] <skunkworks> sounds like, though, there isn't much more you can do with it being at 95%
[20:41:51] <jepler> I won't be surprised if I end up devoting the rest to index pulse filtering
[20:42:55] <skunkworks> still don't understand what makes the index pulse more of an issue. Just too short?
[20:43:11] <skunkworks> (than the quaduture output)
[20:43:15] <cradek> quadrature is tolerant to noise, index isn't
[20:43:32] <skunkworks> as far as the fpga reading it (logic wise)?
[20:43:41] <SWPadnos> a glithc on a quadrature input causes a quick count up then back down
[20:43:52] <skunkworks> ok - that starts to make sense
[20:43:55] <jepler> consider the first image here: http://emergent.unpy.net/projects/01149094674
[20:44:07] <cradek> and a glitch on index gets latched and reported...
[20:44:27] <jepler> consider those edges on "B" as noise
[20:46:04] <skunkworks> ok that makes sense
[20:48:03] <skunkworks> in regards to the index pulse - if we actually get the 'accupins' working in the future.. It will use a resolver to quadature converter - that has an index pulse. also
[20:53:22] <jepler> also ... ?
[21:03:19] <alex_joni> hi again
[21:07:50] <skunkworks> sorry I ment it has an index pulse also
[21:08:00] <skunkworks> Hi alex
[21:08:19] <alex_joni> hi sam
[21:08:29] <alex_joni> how goes it?
[21:09:13] <skunkworks> So far so good. To many projects
[21:09:26] <alex_joni> heh.. I know how that is :(
[21:13:29] <alex_joni> mdynac: any luck?
[21:14:00] <mdynac> well i changed the motenc encoder pulse thingees, and emc booted up, however when i home any axis it does not find an insex pulse, it just moves across the entire axis until it hits the limit....
[21:14:37] <alex_joni> that's what I was afraid of :(
[21:14:43] <cradek> it goes past the home switch?
[21:14:56] <mdynac> yes
[21:14:59] <alex_joni> cradek: it probably finds the switch then hunts for the index
[21:15:09] <cradek> oh ok
[21:15:13] <alex_joni> it doesn't care then if it goes off the switch or not
[21:15:34] <alex_joni> mdynac: does the display change at all?
[21:15:49] <alex_joni> I mean does it look like the axis gets reset at some point?
[21:15:51] <mdynac> no sir....you mean to green? nope
[21:16:01] <alex_joni> not to green.. the numbers
[21:16:11] <alex_joni> do they keep in/decreasing steadily?
[21:16:22] <alex_joni> or is there a jump in position at some point?
[21:16:29] <mdynac> the numbers are moving right along......
[21:16:37] <alex_joni> ok.. so it's not working then
[21:16:50] <alex_joni> * alex_joni heads for bed :/
[21:17:02] <mdynac> it seemsto not even find the index
[21:17:14] <alex_joni> cradek: the motenc worked with index homing while the motion controller didn't do the new canon stuff
[21:17:23] <alex_joni> now that it does it doesn't work anymore
[21:17:30] <alex_joni> the motenc driver probably needs fixing
[21:17:40] <mdynac> homing with index pulse works fine in 2.0.4
[21:17:42] <cradek> who has one?
[21:17:57] <alex_joni> mdynac: you should ask on the user or devel list
[21:18:04] <alex_joni> cradek: I think peteg ?
[21:18:10] <alex_joni> or petev can't recall
[21:18:18] <alex_joni> the guy that wrote the driver
[21:18:35] <alex_joni> I'm sorry I can't stay longer
[21:18:41] <mdynac> the vital system guy?
[21:18:47] <alex_joni> mdynac: for now use only limit switch homing if it's acceptable
[21:18:58] <mdynac> boo hiss.....
[21:19:05] <alex_joni> mdynac: and ask on the mailing list for people with such a board
[21:19:12] <SWPadnos> Pete V. wrote the driver - he's an independent developer
[21:19:16] <alex_joni> * alex_joni is gone
[21:19:19] <alex_joni> later all
[21:19:21] <cradek> goodnight alex
[21:19:40] <cradek> mdynac: do you have a spare you could loan someone?
[21:19:49] <mdynac> no sir
[21:20:19] <cradek> maintaining all these drivers is tough because we don't all have the hardware
[21:20:23] <mdynac> wanna take a trip to Sugar Grove, IL ???
[21:20:32] <mdynac> i c
[21:20:32] <cradek> in june maybe :-)
[21:20:46] <mdynac> there is one in the mazak.....
[21:21:01] <cradek> the mazak doesn't home on index either (not sure if it even has index)
[21:21:09] <cradek> if it does we'll probably fix it in june
[21:21:16] <skunkworks> :P maybe some one could borrow that for a while...
[21:21:36] <mdynac> so i must choose a limit to home on correct?
[21:21:51] <cradek> you have home switches too right?
[21:22:15] <mdynac> yes
[21:22:22] <cradek> then just home on the home switches
[21:22:37] <cradek> just turn USE_INDEX or whatever it's called off
[21:23:51] <mdynac> and thats it?
[21:23:56] <cradek> I think so
[21:24:27] <Lerneaen_Hydra> 'lo cradek, alex
[21:24:31] <cradek> hi
[21:24:40] <cradek> you missed alex though
[21:24:43] <mdynac> i hope it is dead nuts accurate without index.....
[21:24:54] <cradek> mdynac: depends on your switch :-)
[21:25:13] <mdynac> proximity switch.....
[21:25:28] <mdynac> so are the limits...
[21:25:37] <Lerneaen_Hydra> oh
[21:25:59] <cradek> mdynac: it's got to be better than no homing until index is fixed
[21:26:29] <mdynac> okay, i can work around the problem then.....no big deal
[21:26:32] <jepler> won't that have the effect of moving the home position a little bit?
[21:26:37] <cradek> yes
[21:26:44] <Lerneaen_Hydra> you can't home to the index of a servo?
[21:26:56] <cradek> so you may have to adjust the soft limits a tad
[21:27:06] <cradek> Lerneaen_Hydra: with some drivers. others aren't updated to work right
[21:27:13] <Lerneaen_Hydra> oh, I see
[21:27:33] <cradek> Lerneaen_Hydra: each piece of hardware does index differently, and it seems like most of them are ... a pain
[21:27:40] <mdynac> as long as i can get the axis to go green, i should be in good shape....
[21:28:13] <Lerneaen_Hydra> I don't see what the problem can be if EMC gets acces to quadrature and index
[21:28:44] <cradek> Lerneaen_Hydra: when emc reads that directly, it works fine
[21:28:50] <skunkworks> thats the problem - it seems to not have access to the index ;)
[21:28:50] <mdynac> hydra, the pre2.2 cvs head version has index problems....
[21:29:03] <Lerneaen_Hydra> oh, so it's only if the drive bastardises the ouput that you get issues
[21:29:11] <cradek> Lerneaen_Hydra: the problem is hardware that counts for you - imagine between servo cycles you have 100 counts, and the index was during count 38
[21:29:23] <Lerneaen_Hydra> oh noes
[21:29:38] <cradek> Lerneaen_Hydra: the hardware has to get that information all into emc, and they all do it differently
[21:29:50] <Lerneaen_Hydra> I see
[21:30:14] <cradek> Lerneaen_Hydra: so it's just a driver issue - a hard one to work on without access to the hardware
[21:30:25] <SWPadnos> mdynac, did this work in emc1?
[21:30:28] <mdynac> if you guys could whip me up a 2.0.4 version that has M52 in it......
[21:30:34] <Lerneaen_Hydra> cradek: I can certainly imagine
[21:30:40] <mdynac> never tried emc1
[21:30:51] <SWPadnos> ok - just wondering if something got broken in the driver
[21:30:58] <mdynac> works perfect in 2.0.4
[21:31:11] <SWPadnos> ok - home with index works in 2.0.x, but not in head
[21:31:14] <SWPadnos> ?
[21:31:21] <cradek> ... for motenc
[21:31:28] <mdynac> yes!!!
[21:31:32] <mdynac> correct
[21:31:31] <SWPadnos> that was the question: ... for mdynac ;)
[21:31:43] <cradek> he had said that already...
[21:31:50] <SWPadnos> sorry - I missed that part
[21:31:50] <cradek> * cradek pokes SWPadnos
[21:32:02] <mdynac> however 2.0.x has no M52.....
[21:32:09] <SWPadnos> (works for mdynac, not the question was for mdynac :) )
[21:32:11] <Jymmm> Howdy Gents!
[21:32:17] <SWPadnos> hi Jymmm
[21:32:27] <mdynac> a catch 22 situation....
[21:34:42] <cradek> *(pEncoder->pIndex) = (status >> (MOTENC_STATUS_INDEX_SHFT + j)) & 1;
[21:34:42] <cradek> *(pEncoder->pIndexLatch) = (status >> (MOTENC_STATUS_INDEX_LATCH_SHFT + j)) & 1;
[21:34:54] <Jymmm> * Jymmm pokes cradek
[21:35:21] <cradek> wonder if this is one where you have to slow down to one count per servo cycle and watch for the index latch
[21:36:05] <SWPadnos> I thought the motenc was one of the cards that resets the count when an index occurs (if it's in index checking mode)
[21:36:19] <cradek> ah cool
[21:36:31] <SWPadnos> I could be way wrong about that though
[21:36:42] <cradek> I think you're right
[21:37:29] <cradek> pCard->fpga[i].encoderCount[j] = *(pEncoder->pLatchIndex);
[21:37:38] <cradek> surely this is a bug
[21:37:53] <SWPadnos> alex and I noticed that also
[21:38:52] <cradek> ok, this is not rocket science, but one of us needs a card :-)
[21:39:12] <SWPadnos> I don't see any differences in the driver between 2.0.5 and HEAD, except for the pin naming changes (and removal of the automatic thread creation code)
[21:39:15] <Lerneaen_Hydra> or a r00ted machine with a card ;)
[21:39:47] <cradek> SWPadnos: but the homing code changed didn't it? I thought that was the point of the canonical encoder interface
[21:40:06] <SWPadnos> the driver itself hasn't changed, except for the pin type ...
[21:40:12] <cradek> (I didn't know any index homing worked in 2.0...)
[21:40:28] <SWPadnos> maybe it should be changed to clear the index RW bit ...
[21:40:42] <SWPadnos> (which used to be output only ...)
[21:40:55] <SWPadnos> that would explain the "runaway"
[21:41:42] <SWPadnos> index gets set, motion controller tells driver to reset on next index, driver doesn't bother because it has no idea what to do ...
[21:41:42] <cradek> I think you know much more about this than I do...
[21:41:49] <SWPadnos> no - it just looks that way ;)
[21:42:27] <SWPadnos> I'll take a look at the changes to other drivers and see if I can come up with something for mdynac to test
[21:42:29] <cradek> I'd have to first, find the canonical encoder document, then second, read it
[21:42:41] <cradek> great, thanks
[21:42:47] <SWPadnos> yeah - that would be helpful for me as well :)
[21:43:17] <SWPadnos> mdynac, which board do you have?
[21:43:27] <mdynac> motenc lite
[21:43:31] <SWPadnos> ok
[21:44:48] <SWPadnos> anyone know where to get the register definition for the boards?
[21:45:11] <mdynac> check the motec manual on vital system website
[21:45:21] <SWPadnos> ah - found it there - thanks
[21:45:41] <SWPadnos> you had a problem with the DACs being backwards also, right?
[21:46:17] <mdynac> i don't think so...
[21:46:30] <mdynac> i plugged it in and it worked...
[21:46:34] <SWPadnos> ok. someone was saying that they needed to use a negative scale to get positive output
[21:46:48] <mdynac> hmmm
[21:47:13] <mdynac> sounds like someone crossed some wires.....
[21:47:46] <Lerneaen_Hydra> random question, what type of education have most people here done?
[21:48:11] <SWPadnos> no - some board (motenc included) use inverting buffers - the motenc outputs +10V if you write 0 to the DAC, 0V if you write 0x0FFF, and -10V if you write 0x1FFF
[21:48:22] <SWPadnos> electrical engineering
[21:49:06] <Lerneaen_Hydra> coo
[21:49:09] <mdynac> 6 years US Navy f/a 18 apg-65 radar tech, component level repair 6 years, rf tech, 30 years electronics technician....all component level repair,
[21:50:47] <mdynac> SWP is that a problem?
[21:52:12] <jepler> Lerneaen_Hydra: some computer science, but I quit before I got my batchelor's degree
[21:52:16] <SWPadnos> not a problem if the driver is correctly written ;)
[21:52:29] <SWPadnos> yeah - who needs a degree anyway?
[21:52:34] <Lerneaen_Hydra> jepler: why?
[21:52:55] <mdynac> ah yes college, the best 10 years of my life!!!
[21:52:55] <jepler> Lerneaen_Hydra: because I found a good job instead
[21:53:03] <Lerneaen_Hydra> ah!
[21:55:38] <SWPadnos> heh - 4 years of school, but I decided to not bother working on classes because I had 2 part-time jobs, was starting a business, and was in the national guard (adding in the 18 credits of engineering was a little bit too much)
[21:56:19] <cradek> I have a BS in computer engineering (CS + EE)
[21:56:58] <cradek> a "master of none" degree
[21:57:01] <SWPadnos> heh
[21:58:03] <SWPadnos> the reason people don't respect school: First you get a BS, and we all know what that means. Then you go on to a MS - More of the Same. After years of study, you can get a PhD - Piled higher and Deeper :)
[21:58:32] <Lerneaen_Hydra> :/
[21:58:40] <Lerneaen_Hydra> hows that for motivation ;)
[21:58:44] <mdynac> and still no real world experience....
[21:58:59] <Lerneaen_Hydra> I wouldn't say that
[21:59:00] <SWPadnos> my mother is a perfect example of "no real world experience" ;)
[21:59:43] <Lerneaen_Hydra> then again, if you don't do stuff outside of the required stuff you won't have any idea of real world experience, at my EE course you can get an MS without having seen a soldering iron
[21:59:51] <SWPadnos> a PhD and several masters (including CS), but still needs help to find the power switch ...
[21:59:53] <Lerneaen_Hydra> I however like to make lots of real world stuff
[22:00:03] <Lerneaen_Hydra> get messy in the shop and stuff
[22:00:11] <SWPadnos> lots of EE has nothing to do with solder
[22:00:29] <mdynac> text book circuits work in only one place....the book....
[22:00:51] <SWPadnos> we learned plenty about silicon doping, signal analysis, etc.
[22:01:26] <Lerneaen_Hydra> yeah, but all I've done so far is simple analog stuff (don't forget I'm still damp behind the ears)
[22:01:35] <Lerneaen_Hydra> jw and all
[22:03:08] <mdynac> i wanted an AM/FM/SW radio when i was 13, my dad bought me a kit, and i was hooked.....
[22:05:38] <mdynac> my son wanted a pc so i gave him a PII and three slackware disks......that was his start....
[22:06:00] <mdynac> and gee, he figured it out....
[22:06:15] <mdynac> kids are too lazy nowadays....
[22:06:30] <SWPadnos> heh
[22:06:35] <SWPadnos> that's what they all say ... ;)
[22:07:12] <mdynac> our pc "expert" at work knows how to point and click in xp........
[22:07:34] <Lerneaen_Hydra> nice
[22:07:45] <mdynac> he is a moron.....
[22:07:53] <eholmgren> some computer science, and then an art "degree" :p
[22:08:09] <Lerneaen_Hydra> degree? :p
[22:08:17] <eholmgren> 4 year BA
[22:08:18] <Lerneaen_Hydra> sorry :p
[22:08:28] <mdynac> which one makes you more money?
[22:08:32] <Lerneaen_Hydra> ba?
[22:08:44] <eholmgren> bachelor of arts
[22:08:50] <Lerneaen_Hydra> oh, right
[22:08:55] <eholmgren> as opposed to bachelor of science
[22:08:57] <eholmgren> BS
[22:09:23] <eholmgren> still thinking about going back and getting an EE
[22:10:08] <eholmgren> or an ECE
[22:11:58] <eholmgren> my dopleganger must be idle on the mac at home
[22:12:05] <eholmgren> * eholmgren kicks ejholmgren
[22:13:10] <mdynac> i tried a mac.....once.
[22:14:06] <eholmgren> OS 9 made me vomit uncontrollably whenever I used it
[22:14:29] <mdynac> i know, thats why i walked away...
[22:16:29] <mdynac> i hated when the mac would tell me in so many words "it's either my way or the highway"
[22:17:33] <eholmgren> did OS 9 even have a command line?
[22:18:08] <mdynac> i didn't hang around long enough to check....
[22:18:47] <mdynac> a great machine for a non computer user.....a kiosk thing....
[22:18:56] <eholmgren> do when you handed your son the PII
[22:19:18] <mdynac> i said good luck.....
[22:19:19] <eholmgren> did you also give him the full set of slackware 3.5 disks
[22:19:27] <eholmgren> except the X
[22:19:57] <mdynac> i was going to give him Linux from scratch, but i am not that brutal....
[22:20:27] <mdynac> he also got linuz in a nutshell and running linux.....
[22:22:11] <mdynac> he figured it out and he actually likes it.....he's one up on the mass of doze people....
[22:24:49] <mdynac> okay emc guys, i will go ahead and home without index so i can test the M52 function.....
[22:30:02] <mdynac> one more question....what CAD/CAM software posts out to emc?
[22:31:59] <Lerneaen_Hydra> I use edgecam/solidwords
[22:32:02] <Lerneaen_Hydra> *solidworks
[22:32:07] <Lerneaen_Hydra> non-free though
[22:32:52] <mdynac> okay
[22:33:04] <tomp> mdynac: are you trying M52 for EDM?
[22:33:55] <mdynac> tomp well not quite yet, had some homing issues with 2.2 head.....but i will be testing it soon...
[22:34:14] <mdynac> this week....
[22:34:25] <mdynac> gotta go fix a japax tomorrow
[22:34:39] <tomp> can I watch? ( not the japax :-)
[22:35:04] <mdynac> wanna stop by the shop?
[22:35:08] <tomp> yeh
[22:35:11] <mdynac> and see the machine?
[22:35:15] <mdynac> when?
[22:35:23] <tomp> when you try M52
[22:35:33] <tomp> and cutting power
[22:35:44] <mdynac> gee, i wasn't expecting an audience....
[22:36:10] <tomp> here's my stuff down in elburn http://tag-edm.com
[22:36:18] <mdynac> tomp are you well versed in emc2?
[22:36:29] <tomp> no ( is anyone?)
[22:36:39] <tomp> esp w M52
[22:37:15] <tomp> dont worry, no problem
[22:37:28] <mdynac> hey do you live in Elbow?
[22:37:55] <tomp> Elgin, m/c in Elburn ( till delivered)
[22:38:33] <tomp> all jst up & down the river
[22:39:19] <mdynac> kewl
[22:39:55] <mdynac> well thursday i hope to test the andrew....
[22:40:01] <mdynac> with M52
[22:41:15] <mdynac> i fixed a novatech hole popper the other day.....
[22:41:40] <Lerneaen_Hydra> 'night all
[22:42:05] <tomp> nova who? well hopops are pretty simple... just all different, I think EMC (hal) can control 'em
[22:42:54] <tomp> :=) so add a hopop to that Andrews line tracer :-)
[22:43:03] <mdynac> i also fixed an andrew jig grinder control.....now that is old....
[22:44:01] <mdynac> that is all my andrew can do right now is draw lines.....its an EF 330
[22:44:28] <mdynac> till i get M52 going
[22:44:39] <tomp> oh, 'new' stuff, not the one that actuially traced a drawing on a drafting table
[22:44:53] <mdynac> that is arelic......
[22:45:14] <mdynac> we do have a linemaster 123 as a showpiece in the showroom....
[22:45:44] <mdynac> with the ceramic wire tubes and all....
[22:45:57] <tomp> well, i have thoughts on M52 and would like to see what happens sometime.
[22:46:01] <mdynac> granite base....
[22:47:01] <mdynac> they had another incarnation of M52 working at the fest......varying the axis speed with a joystick....
[22:47:24] <tomp> jiggle the stick and it'l jiggle the speed, not the position :-(
[22:48:10] <tomp> and you know it gotta jiggle fast
[22:48:20] <mdynac> true, but it will vary the speed in proportion to gap voltage
[22:48:49] <mdynac> i just gotta set my adc up properly....
[22:49:23] <tomp> you gotta vary the sign of the velocity ( fwds bwds) very very quickly
[22:49:36] <tomp> look at any edm cut with a scope
[22:49:40] <mdynac> i am using all of the original Andrew gap sensing circuit....
[22:50:12] <mdynac> just applying the output to the motenc adc
[22:50:28] <tomp> is it bipolar output? that indicates how well 'dynamic slow down' will work.
[22:50:34] <alindeman> [Global Notice] Hi all. You're currently on a freenode server that's going to be restarted soon to upgrade the ircd code. This will happen at midnight GMT (a little over an hour from now). If you wish to reconnect to another server, feel free to reconnect to chat.freenode.net--none of the servers in that rotation will be affected. If you do not reconnect now, you can expect to be shunted from the server, but most clients will r
[22:50:46] <tomp> bipolar means it wanted to go back and go forth, not just slow down
[22:51:10] <mdynac> ultimately it is a 0 to 5vdc signal from an opamp
[22:51:34] <tomp> i spent a couple years working on that route, so i hope you have better luck.
[22:52:06] <mdynac> i am sure i can get the machine to behave like an old japax......
[22:52:32] <mdynac> to start with,we haven't even considered "backup" yet.....
[22:52:32] <tomp> great stuff, maybe you can demo something for the thing out at cardinal eng.
[22:52:41] <alindeman> [Global Notice] ... most clients will reconnect cleanly and the server should come back online immeadiately. Thanks for your cooperation and use of freenode!
[22:52:50] <tomp> not backup as in clear the gap, but jiggle as in... any edm
[22:52:56] <mdynac> well, er gotta drag the andy down there....
[22:53:17] <mdynac> anyone got a flatbed handy?
[22:53:34] <tomp> take movies :-)
[22:53:41] <tomp> no rigger needed
[22:54:02] <mdynac> when an andrew backs up it goes exactly 50 thou back and forth until the signal goes high.....
[22:54:11] <tomp> thats not what i speak of
[22:54:32] <mdynac> then she moves on forward until backup goes low again...
[22:54:47] <mdynac> kinda like a subroutine of the O/S
[22:54:57] <tomp> while maintaining the correct gap it must go in 1um and soemtimes out 1um then in again, else it's ignoring the process.
[22:55:10] <tomp> the 50 thou is not what i mean
[22:55:21] <tomp> that is very coarse long term edm
[22:55:37] <tomp> not immediate dynamic control of position based on a live process
[22:56:08] <tomp> the pulley on a edm jitters while slowly moving forward
[22:56:21] <tomp> the pulley on a feed system just moves forward
[22:56:51] <tomp> one respects the process, the other crawls up behiond it or ignores it
[22:57:27] <tomp> slowing down to below the cut is not edm, it is feed
[22:57:50] <tomp> sorry for the rant...
[22:58:47] <mdynac> i must figure out the absolute lowest gap voltage without wire break, then set up my adc to stop the movement at that point, and slow down as it approaches that threshold....
[23:01:54] <tomp> surfing on the edge is scary... but as the gap changes... the voltage changes, and you must change, and sometimes thats a teeny step bwds
[23:02:36] <tomp> cant do that with M52, the nice decided velocity will break the wire
[23:03:29] <mdynac> correct, but we are taking the "baby step" approach, get this to burn without wire breakage, no matter how slow, then incorporate the backup stuff...
[23:04:25] <tomp> ok, the backup stuff i speak of is the jiggle, not the 'run away' you mention, it is the boxing of bantamweights
[23:04:57] <tomp> anyways, best of luck, you have some nice boneyard to play in :-)
[23:05:19] <mdynac> it's the best......
[23:05:29] <mdynac> i will keep you informed....
[23:06:31] <mdynac> the Chmers will cut pcd and cbn now, so my customers that need this conversion are getting less and less....
[23:08:27] <tomp> do me a favor, look at the website, watch the pulley's, lemme know whatcha think
[23:08:33] <mdynac> k
[23:13:06] <mdynac> gee, its a sinker....what kind?
[23:13:52] <tomp> mine :-)
[23:14:06] <mdynac> you built it from scratch?
[23:14:27] <tomp> rebuilt Eloc HRP and used generator from KC Tsai
[23:14:32] <tomp> Elox
[23:14:41] <mdynac> i c
[23:15:39] <mdynac> will your generator work on a D10?
[23:15:43] <tomp> notice the hi speed hiccup on the pulley? thats dynamic... not to brag but it is easier to see edm on a good system
[23:16:06] <tomp> yeh i can put it on a D10 ( sorta like the JATO rocket car tho :-)
[23:16:30] <mdynac> ya, hydraulic servo
[23:16:50] <tomp> (a d10 is a benchtop from Charmilles, 70's to 80;s vintage)
[23:17:02] <tomp> i use 3kw ac servo motor
[23:17:11] <tomp> a bit big for the D10
[23:17:27] <mdynac> yep i have 2 with I80 generators(i hate those things....) way too complicated.....
[23:18:03] <mdynac> and a D120 with a p25, much nicer....
[23:18:09] <mdynac> D20
[23:18:33] <tomp> yeh I know them... aguy up in... (brain freeze) north of us ... woodstock precision... bad one
[23:18:51] <mdynac> they are a nightmare
[23:19:12] <tomp> 80 amps is overkill for the spindle size... to much heat & too small a cross section
[23:19:13] <mdynac> the D10 however is a nice tool.....
[23:19:26] <tomp> D10 is sweet, cut my teeth on them at ARC
[23:19:37] <mdynac> the oil gets real hot....
[23:19:54] <mdynac> not enough volume on a D10
[23:20:03] <tomp> hah, an infrared gun said mine hit 240 F !
[23:20:18] <mdynac> wow
[23:20:34] <mdynac> you can heat your luch with it....
[23:20:36] <tomp> i had no di at all just a couple truck filter inside the tank
[23:20:37] <mdynac> lunch
[23:20:49] <tomp> french fries :-)
[23:21:48] <tomp> mac. I'mm off to talk to someone about the same... see you later, best o luck
[23:21:55] <mdynac> bye