#emc-devel | Logs for 2006-07-27

Back
[01:04:33] <jepler> anybody know if LINUX_KERNEL_2_2 is ever defined? I don't see anything in emc that would define it, and a google search fails to imply that the kernel or C library would define it...
[01:04:44] <jepler> (in emc2, that is)
[01:08:51] <fenn> i dont see anything in 1 or 2
[01:09:28] <fenn> why isnt there a cvs grep?
[01:13:15] <fenn> in any case, kernel 2.2 is awfully old to still be supporting
[01:14:07] <fenn> it hasnt been changed at all since 2004
[01:32:22] <jepler> I've changed emc2 to use a 32-entry ring buffer when sending commands from userspace to the kernel, and also modified 'task' so that it doesn't sleep when it's putting stuff on the queue. Here's a graph of the queue length seen from kernel space: http://emergent.unpy.net/index.cgi-files/sandbox/qlen2.png
[01:33:08] <jepler> before, the kernel queue could grow by at most 1 per trajectory period, now it can grow by up to 32, and often grows by 5 to 20.
[01:34:06] <jepler> the first samples in the graph are: 0, 17, 45, 73, 103, successive differences of 17, 27, 28, 30
[01:36:41] <jepler> on its own this doesn't do anything to improve contouring, but it means that it would be possible to adopt algorithms in the kernel that is able to retire more than one segment per cycle and not have starvation
[01:37:15] <SWPadnos> I assume that task still sleeps at some point - what now causes a sleep?
[01:39:11] <jepler> when it failed for some reason to queue the command, it sleeps
[01:39:43] <jepler> for instance, because it reached the maximum in-kernel queue size, or because it has to wait for a toolchange or a programmed pause
[01:39:49] <SWPadnos> ok
[01:42:52] <jepler> ('top' still shows milltask taking <1% CPU time)
[01:43:29] <jepler> bbl
[03:24:47] <jmkasunich> jepler: still around? or sleeping (if you are sleeping, don't bother answering this ;-)
[03:30:01] <jmkasunich> * jmkasunich goes to bed
[05:31:55] <LawrenceG> hello Ted
[11:08:16] <lilo> [Global Notice] Hi all. Please check out the news on http://freenode.net/news.shtml .... contents: Tor access and cloak formats are changing.
[11:08:32] <lilo> [Global Notice] Thank you for using freenode, and have a great day!
[12:02:56] <jepler> jmkasunich_: I was, in fact, sleeping.
[13:02:57] <steves_logging> steves_logging is now known as steve_stallings
[14:18:51] <steve_stallings> steve_stallings is now known as steves_logging
[21:06:56] <Roguish> SWPadnos: good day. how 'bout a quick opinion of this opto isolator board: http://www.industrologic.com/uob8desc.htm
[21:07:57] <Roguish> or anyone else?
[21:19:08] <fenn> personally i'd look for one that had a parallel port connector on it
[21:26:35] <Roguish> thanks for the reply fenn, i'm going thru the m5i20 and 7i33 from mesa.
[21:27:06] <Roguish> and don't want to risk anything to my less than perfect wiring!
[21:27:31] <Roguish> limits, homes, enables, etc, etc.
[21:33:28] <Lerneaen_Hydra> Roguish: that board looks very overpriced to me
[21:33:51] <Roguish> overpriced? got a less expensive alternative?
[21:34:05] <Lerneaen_Hydra> if you can manage to wire your own (on a protoboard or something) you could get the same functionality for.. uh.. bananas pretty much
[21:34:14] <Lerneaen_Hydra> if all you want is optocouplers
[21:35:14] <Roguish> i'm much better at buying than making. i'm mechanical, not electrical or electronic, which is why i need the 'protection'.
[21:35:26] <Roguish> i like OPTO22, but they are $$$$
[21:35:44] <Lerneaen_Hydra> oh, right
[21:36:28] <Lerneaen_Hydra> if you know of anyone else that can do it the optocouplers cost around 70 cents each
[21:36:37] <Lerneaen_Hydra> http://www.fairchildsemi.com/pf/CN/CNY173.html
[21:37:13] <Roguish> i realize there's not much in parts there, except the board and the time.
[21:37:46] <Lerneaen_Hydra> it all depends on how much your time costs
[21:37:56] <Roguish> that's a fact.
[21:38:46] <Roguish> i have a protoboard with one opto circuit working.
[21:39:16] <Lerneaen_Hydra> would it be hard to duplicate that?
[21:39:18] <Roguish> it's the whole board thing that i don't really want to handle.
[21:39:26] <Lerneaen_Hydra> huh?
[21:39:55] <Roguish> i've never made a board or anything close ..........
[21:41:07] <Lerneaen_Hydra> "made a board" what do you mean by that?
[21:41:22] <Roguish> a circuit board
[21:41:42] <Lerneaen_Hydra> oh, why not leave it on the protoboard forever?
[21:42:20] <Roguish> i'm trying to put together a sellable package.
[21:42:43] <Lerneaen_Hydra> oh! sellable! that's something else. right. now I get what you mean
[21:43:13] <Lerneaen_Hydra> and with as little work between the stuff you get in and the stuff you send to customers?
[21:43:28] <Roguish> right!!!
[21:44:28] <Lerneaen_Hydra> hmm. what is this kit intended to do?
[21:44:36] <Roguish> depending upon the customer, they can have this $49 item or a $500 OPTO22 setup.
[21:45:08] <Roguish> i do custom machines. retro fits, etc.
[21:45:17] <Lerneaen_Hydra> oh, the entire thing?
[21:45:22] <Roguish> yup
[21:45:25] <Lerneaen_Hydra> from manual machine to cnc?
[21:45:35] <Roguish> whatever
[21:45:41] <Lerneaen_Hydra> ok ok...
[21:46:45] <Lerneaen_Hydra> after the optocouplers, how much do you do?
[21:46:46] <fenn> opto22's are expensive because they incorporate a solid state relay
[21:47:00] <Lerneaen_Hydra> fenn: so they output high-current output
[21:47:07] <Lerneaen_Hydra> s//?
[21:47:08] <fenn> yeah and i think it can handle AC too
[21:47:12] <Lerneaen_Hydra> oh, neat
[21:47:29] <Lerneaen_Hydra> uh SSR, is that mosfet or something?
[21:47:36] <Lerneaen_Hydra> so you can do PWM with them?
[21:47:43] <fenn> i dont think so
[21:48:11] <Lerneaen_Hydra> oh, pity. otherwise a servo system would be nearly trivial to wire up
[21:48:36] <fenn> ah wikpedia has failed me
[21:48:57] <Lerneaen_Hydra> they didn't have SSR's...
[21:50:02] <Lerneaen_Hydra> Hmm, if it's all electronical then what wouldn't like PWM?
[21:50:58] <fenn> lol "pwm ssr servo" the first hit is the EMC wiki
[21:51:03] <Lerneaen_Hydra> haha
[21:52:33] <fenn> hmm interesting
[21:52:46] <fenn> a SSR is a mosfet with an opto-isolator built in
[21:52:56] <Roguish> the opto-isolators are to keep my 24v control away from the mesa boards and the computer.
[21:53:02] <fenn> or, two mosfets i thikn
[21:53:05] <Lerneaen_Hydra> oh. so pwm should be a non-issue
[21:53:33] <Lerneaen_Hydra> Roguish: that's a similar setup to what I have
[21:53:47] <Roguish> the optos are not for the pwm, but they could be with the right ic.
[21:53:57] <fenn> says it takes 0.5ms to turn on/off which is nowhere near fast enough
[21:54:06] <Lerneaen_Hydra> fenn: that bad?
[21:54:09] <Lerneaen_Hydra> eugh
[21:54:37] <Lerneaen_Hydra> here I was thinking it was in the 10µS range
[21:54:43] <Roguish> there are some pretty fast optos out there. i've seen mega hz numbers.
[21:54:45] <fenn> good enough for some sorts of speed control but not servos
[21:54:52] <fenn> fast opto's are expensive
[21:55:08] <fenn> i mean the optoisolator part
[21:55:18] <Roguish> $4 instead of $.40
[21:55:21] <fenn> right
[21:56:00] <Lerneaen_Hydra> uh, are you sure of those times?
[21:56:05] <fenn> no
[21:56:24] <Lerneaen_Hydra> according to this datasheet: http://www.ortodoxism.ro/datasheets2/d/0jedoh4ph3rpg669tyx5u9dy7lky.pdf
[21:56:34] <Lerneaen_Hydra> times are in the 5µs range
[21:56:43] <Lerneaen_Hydra> and these are 70 cent optocouplers
[21:57:08] <Lerneaen_Hydra> err, 10µs I mean
[21:57:16] <Lerneaen_Hydra> page 4
[21:57:32] <fenn> SSRs are a faster alternative to electromechanical relays because their switching time is dependent on the time required to power the LED on and off - approximately 1 ms and 0.5 ms respectively.
[21:57:50] <fenn> it shows a diagram of an optoisolator directly driving the gate of a mosfet
[21:58:01] <fenn> so i guess it takes a while to charge up the gate capacitance
[21:58:06] <Lerneaen_Hydra> hmm, probably
[21:58:21] <jmkasunich_> some SSRs (AC output ones) use SCRs or Triacs instead of mosfets, and are even slower
[21:58:28] <Lerneaen_Hydra> nothing that can be fixed with a newer, faster, mosfet though
[21:59:05] <Lerneaen_Hydra> what do most servo drivers look like?
[21:59:18] <jmkasunich_> SSRs are not suitable for PWM unless you are talking about _extremely_ slow PWM like you might use for a heater
[21:59:27] <jmkasunich_> servo drivers are usually H bridges
[21:59:47] <Roguish> anyway, it anyone knows of a less expensive pre-made optoisolaotor board, please let me know. that at $49 is the lowest i've found so far.
[21:59:56] <fenn> servo drives usually use mosfets unless you get into really high voltages
[21:59:59] <Roguish> for 8 i/os
[22:00:21] <fenn> Roguish: have you looked on cnczone?
[22:00:35] <Roguish> yeah, a bit
[22:01:27] <fenn> Roguish: also keep in mind that the opto's are probably too slow for quadrature encoder signals
[22:01:30] <fenn> on that board
[22:02:06] <fenn> you will have to do some math to see if they'll work for your application
[22:02:23] <Roguish> sure, i'm just going for limits, homes, enables and such, buttons and switches.................
[22:03:50] <Roguish> encoder signals are inherently low voltage, so i'm not to concerned about them. they come out of my yaskawa drives.
[22:04:28] <fenn> i thought the reason for all this was in case you get a short or crossed wires somewhere
[22:04:57] <fenn> you can convert 24v to 5v pretty easy with a couple resistors
[22:05:06] <Lerneaen_Hydra> I find it nice to seperate machine ground from controller ground when at all possible, except for the main grounding cable
[22:05:14] <Lerneaen_Hydra> avoids nasty problems later on
[22:05:24] <fenn> yeah that too
[22:05:44] <fenn> why "except for the main ground cable" btw?
[22:06:15] <fenn> do you mean safety ground? (the one with pipes going into the dirt)
[22:06:19] <Lerneaen_Hydra> yes
[22:06:31] <Lerneaen_Hydra> so signal ground is never connected
[22:06:37] <Lerneaen_Hydra> but "power" ground is
[22:06:40] <fenn> ok
[22:06:58] <Roguish> gotta watch the ground loops
[22:07:41] <fenn> this is all probably more suited to #emc though..
[22:07:58] <Roguish> ok, thanks for the assistance.
[22:08:16] <Lerneaen_Hydra> I'll take this opprotunity to say goodnight
[22:08:30] <fenn> ^_^
[22:08:34] <Lerneaen_Hydra> It's late here in borkborkbork land
[22:08:52] <fenn> tanstaafl or whatever you say
[22:09:04] <Lerneaen_Hydra> http://video.google.com/videoplay?docid=3569590578701395201&q=bork+bork+bork
[22:09:06] <Lerneaen_Hydra> huh?
[22:09:16] <Lerneaen_Hydra> goodnight in swedish? that would be godnatt
[22:09:21] <fenn> Tena mafeyen?
[22:09:35] <fenn> nevermind
[22:09:42] <Lerneaen_Hydra> hmm, I can't say that I can figure out what that's supposed to mean
[22:10:19] <Lerneaen_Hydra> what was it supposed to mean?
[22:10:29] <fenn> "good night"
[22:10:59] <Lerneaen_Hydra> hmm. I can't seem to connect that to any of the common terms for that...
[22:11:10] <Lerneaen_Hydra> but i digress, goodnight to you all