#emc-devel | Logs for 2008-08-07

Back
[05:15:20] <CIA-35> EMC: 03cmorley 07TRUNK * 10emc2/docs/man/man9/opto_ac5.9: Info about HAL pin vrs connector header pin
[06:18:45] <micges> logger_dev: bookmark
[06:18:45] <micges> Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emcdevel/2008-08-07.txt
[07:50:09] <CIA-35> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/edit.c: remove debugging printf
[13:00:34] <skunkworks> I swear I looked at this logic about 100 time..I thought for sure the enable was setup active high.
[13:04:02] <jepler> uh oh did you find a bug in your board?
[13:06:16] <skunkworks> well - if you want to call it a bug. right now - you need to send a high to disable the board. I don't like it.
[13:06:42] <skunkworks> (i have not made a board yet) maybe I will try to 'fix' it. I do have some unused inverters.
[13:07:06] <skunkworks> I don't have to add anything.. just put a inverter inline with the enable logic.
[13:13:47] <SWPadnos> is it a current signal or a voltage signal?
[13:14:19] <SWPadnos> that's actually good - you pull the disable input high (disabled), and you need to drive low to enable
[13:14:58] <SWPadnos> (unless it's normally enabled and you need current flow to disable - that's bad)
[13:15:43] <SWPadnos> bbl breakfast
[13:15:51] <skunkworks> the opto has to be turned on to disable the drive at the moment
[13:16:07] <SWPadnos> bad
[13:16:09] <SWPadnos> :)
[13:17:51] <skunkworks> yes :)
[13:19:18] <skunkworks> 'enable' with a line above it ;)
[13:50:06] <skunkworks> almost painless. http://www.electronicsam.com/images/KandT/servostart/schemfinal.PNG
[13:57:16] <skunkworks> http://www.electronicsam.com/images/KandT/servostart/boardfinal.PNG
[14:03:01] <cradek> skunkworks: would these have what it takes to run stuart's cinci? He keeps saying he wants to find a dumb amp.
[14:17:13] <jepler> skunkworks: why not hook IC5B's output to IC5C's or IC5D's inputs and use C or D's output to drive the overcurrent/disable LED? Or is it not a matter of gates but of trace routing?
[14:36:13] <skunkworks> that and space.
[14:44:20] <jepler> bah
[14:48:33] <jepler> R1 D1 C18 can clearly be moved around a bit to make room for the LED and resistor. Use a jumper wire from IC5 pin 6 to 8/9 if you can't find any other way, but it looks like you could move the +12V trace from under IC5 to the left of it and then connect 6 to 8 with a blue trace
[14:49:06] <jepler> you'll have to extend the board a tiny bit to the left to do that
[15:00:24] <skunkworks> cradek: my hope is 150v at 20a - but I would want to test it for a while :)
[15:00:48] <skunkworks> jepler: the output of the and gate can only sink/source a few ma.
[15:01:52] <skunkworks> That is the only issue with that - I had a actually got a led/resistor to fit near the adjustable resister.. but it was running off of the output of ic5b
[15:04:50] <skunkworks> I could just put a 10k in series with it and just assume it will light
[15:04:58] <skunkworks> that would be 1ma
[15:05:11] <skunkworks> (I guess I could test it ;))
[15:06:54] <skunkworks> The board is as big as the free version of eagle will do.
[15:37:32] <jepler> skunkworks: if you don't need the output to be a good logic level it can drive an led at 10+mA
[15:42:48] <SWPadnos> question for you jepler (sorry, you're the tcl guru AFAIK :) )
[15:42:54] <jepler> argh no it's a lie
[15:43:00] <SWPadnos> heh
[15:43:21] <SWPadnos> I finally realized that I could exec find ... to get a list of ini files in each specified config dir
[15:43:34] <SWPadnos> makes it easier than building a tree just so I can destroy most of it again
[15:44:08] <SWPadnos> but now I have silly tcl problems, like I'm not sure of the details of how to look for common substrings in the returned list
[15:44:57] <SWPadnos> I'm thinking I may split the (normalized) file names and delete the first N items in the resulting array (N being the number of items from a similar split of the "root" dir)
[15:45:44] <SWPadnos> then run through and create a new branch in the tree for each unique "first element" name
[15:46:03] <cradek> I bet you'll get it wrong if you parse the output of find
[15:46:08] <SWPadnos> I dunno - it seems straightforward - so straightforward that there should be a function to do most of it for me :)
[15:46:24] <SWPadnos> I'm not so sure - I looked at some sample output and it "seemed OK"
[15:46:28] <SWPadnos> but spaces may be an issue
[15:46:38] <cradek> heh
[15:46:59] <cradek> every character except null and / is allowed in a filename
[15:47:04] <SWPadnos> then again, if you split a string at '/', you should have e\lements that include any spaces
[15:47:17] <SWPadnos> well, that is a problem, but I don't know that it's a different problem with find
[15:47:22] <SWPadnos> (vs glob)
[15:48:49] <SWPadnos> what surprised me is that it seems you have to use regex/regsub to do any substitution or find the "longest matching portion" - there didn't seem to be anything that could compare and tell you "the first 37 chars of these two strings are the same"
[15:49:06] <SWPadnos> like strncmp will nearly do
[15:50:36] <jepler> http://pastebin.ca/1094839 <-- doesn't invoke a shell command
[15:50:52] <SWPadnos> on a separate but (in my mind) related question - I don't recall the answer to the last 6 times I've asked the question of where I should put the PCNC-1100 config :)
[15:51:15] <jepler> I thought that you were writing this recursive thing as a partial answer to that question
[15:51:40] <SWPadnos> I am, but I think there will be two answers - one for 2.2.x and one for 2.3.x
[15:52:03] <SWPadnos> thanks for the recursive find there
[15:52:29] <cradek> why do we want deeper directories anyway?
[15:52:45] <SWPadnos> mesa/5i20 mesa/5i22 mesa/7i43
[15:52:55] <SWPadnos> wach might have a lathe and a mill config
[15:53:25] <SWPadnos> or even 3axis/mesa/hm2 3axis/stepper/...
[15:53:40] <SWPadnos> then hexapod/pico-systems/ppmc ..
[15:55:34] <SWPadnos> For now, I think the thing for me to do is to check the PCNC config into configs/Tormach/, and we'll move things around as necessary for TRUNK
[15:55:49] <jepler> lowercase like all the rest please
[15:55:49] <SWPadnos> I don't think we'd move configs in 2.2.x, even if I committed the change today
[15:55:52] <SWPadnos> ok
[15:56:11] <SWPadnos> but but but - it's a name! :)
[16:13:26] <jepler> http://pastebin.ca/1094852
[16:14:19] <jepler> http://emergent.unpy.net/files/sandbox/findini.png
[16:16:15] <jepler> and since pastebin will delete the tcl code in 30 days: http://emergent.unpy.net/files/sandbox/findini.tcl
[16:21:54] <SWPadnos> hey cool, thanks. maybe I'll prettify it on the plane this evening (or during my 3 hours or so in Chicago)
[16:22:11] <jepler> have fun
[16:22:15] <SWPadnos> thanks
[16:26:29] <jepler> skunkworks: maybe you should make your circuit look a bit more like this one: http://www.instructables.com/id/SEB6BPFFJKGZTB2/
[16:28:55] <cradek> THE ITEMS ABOVE ARE NESSACERY
[16:36:50] <fenn> * fenn wonders where the resistor goes
[16:52:44] <CIA-35> EMC: 03swpadnos 07TRUNK * 10emc2/configs/tormach/ (8 files): Add sample configuration for Tormach PCNC-1100
[16:52:48] <jepler> fenn: the internal resistance of the batteries is probably enough,
[16:54:31] <CIA-35> EMC: 03swpadnos 07v2_2_branch * 10emc2/configs/tormach/ (8 files): Add sample config for Tormach PCNC-1100
[17:00:08] <SWPadnos> could someone with a parallel port and RT kernel just try loading that Tormach config?
[17:01:03] <SWPadnos> the PC I have from them doesn't have a CVS checkout, and mine doesn't have RT - I just want to be sure it loads on "clean" systems
[17:01:25] <jepler> sure, I can
[17:01:29] <SWPadnos> thanks
[17:02:24] <jepler> should put a 'readme' file
[17:02:41] <SWPadnos> oh - right, I copied a pattern with '.' in it - one sec
[17:02:55] <SWPadnos> you shouldn't be able to come out of estop, so if that happens it's normal
[17:02:55] <jepler> hm if I click "change gears" for too little time, nothing happens
[17:03:03] <SWPadnos> yep, that's true :)
[17:03:36] <SWPadnos> I think that's a cycle time thing in pyvcp
[17:04:24] <jepler> hm why can't I come out of estop?
[17:04:38] <SWPadnos> because it requires their m"machine OK input"
[17:04:51] <SWPadnos> you can disconnect the pin (12?) and set the signal high to try it
[17:05:15] <jepler> pins 10, 11, 12, 13 are home/limit and pin 15 isn't connected
[17:05:25] <CIA-35> EMC: 03swpadnos 07TRUNK * 10emc2/configs/tormach/README: oops - forgot the README
[17:05:41] <SWPadnos> hmmm - pin 10 then
[17:05:48] <SWPadnos> (I could look and be sure I guess)
[17:05:51] <jepler> oh -- pin-15-in-not
[17:06:03] <SWPadnos> ah - ok then
[17:06:09] <CIA-35> EMC: 03swpadnos 07v2_2_branch * 10emc2/configs/tormach/README: oops - forgot the README
[17:06:27] <SWPadnos> I think there may still be something funky with the estop, but I'm not sure
[17:06:51] <SWPadnos> maybe you can't estop the machine with F1 once it's started (assuming the machine OK input stays "OK")
[17:07:05] <SWPadnos> I'll need to look at it with some hardware attached at some point
[17:07:15] <jepler> yes, hitting F1 goes to "machine off" rather than estop
[17:07:20] <jepler> when machine-ok is TRUE
[17:07:23] <jepler> lunchtime
[17:07:45] <SWPadnos> ok. thanks for checking it. I'll stick that on the list of things to do :)
[17:26:06] <skunkworks> http://www.electronicsam.com/images/KandT/servostart/boardfinal2.PNG
[17:26:32] <skunkworks> now - I really should have an 'enabled' and/or an 'on' led..
[17:29:11] <skunkworks> probably 'enabled' would be the best.
[17:29:37] <skunkworks> if I can make it fit'
[18:16:37] <jepler> skunkworks: woo
[18:19:08] <jepler> how fast do you need current limit to turn the enables off?
[18:24:19] <skunkworks> cycle by cycle
[18:24:32] <skunkworks> do you see something?
[18:25:38] <jepler> no
[18:26:46] <skunkworks> each pwm cycle could get turned off before the actual end of the cycle by the current sense circuit. If I made it right - it then only gets reset after the next rising edge of the pwm. (and the current has gone below the threashold)
[18:27:48] <jepler> I'm thinking that an avr could poll UP, DOWN and ENABLE signals together with the output from its internal analog comparator at about 500kHz (2uS) to produce an "enable and not current limit" output, potentially replacing a bunch of the ICs.
[18:29:31] <skunkworks> yes - I am sure.
[18:29:38] <skunkworks> but what fun would that be.. ;)
[18:31:14] <skunkworks> http://www.electronicsam.com/images/KandT/servostart/boardfinal3.PNG
[18:31:17] <skunkworks> enabled led also
[18:31:32] <skunkworks> now I am done. No really - I am done.
[18:33:01] <jepler> very good
[18:33:59] <skunkworks> I figured - if the enable isn't lit.. you're missing power or the logic isn't getting there.
[18:34:10] <skunkworks> (instead of also adding a power led)
[18:35:48] <skunkworks> actually no - you don't even have to worry about that.. If the power is on and the enable is off.. the currentlimit/un-enable led will lite
[18:35:50] <skunkworks> light
[18:36:01] <CIA-35> EMC: 03swpadnos 07v2_2_branch * 10emc2/configs/tormach/pcnc-1100.ini: fix path for PROGRAM_PREFIX
[18:36:02] <skunkworks> :)
[18:37:09] <CIA-35> EMC: 03swpadnos 07TRUNK * 10emc2/configs/tormach/pcnc-1100.ini: fix path for PROGRAM_PREFIX
[18:39:54] <skunkworks> jeeze - is it wrong to get all excited about a circuit board?
[18:40:02] <jepler> it's too bad the attiny2313 sram isn't also aliased at some other memory address that is aligned to 256 bytes (it's 128 bytes running from 0x60 to 0xdf which is inconvenient if you want to use it for a look-up table)
[18:40:08] <jepler> skunkworks: nah
[18:41:50] <SWPadnos> use 0x80-(wherever), just set the high bit
[18:42:04] <SWPadnos> though an add is also 1 cycle, so it doesn't really matter what you have to do
[19:12:49] <skunkworks> 1ppr encoder is in thrunk only?
[19:12:52] <skunkworks> I assumne
[19:13:32] <skunkworks> boy. 1 ppr encoder is in trunk I assume?
[19:14:59] <jepler> skunkworks: yes I think that's accurate
[19:17:11] <skunkworks> hmm - someone that is looking at using a 1ppr encoder.. should I point them to the list?
[19:17:22] <skunkworks> or does someone want to explain it to him?
[19:17:34] <skunkworks> * skunkworks doesn't think he could do it accuratly
[19:17:37] <jepler> not me
[19:18:07] <skunkworks> heh
[19:21:16] <cradek> in trunk, man encoder
[19:21:28] <cradek> that's all I know
[19:28:44] <skunkworks> http://www.cnczone.com/forums/showthread.php?p=486254#post486254
[19:29:29] <SWPadnos> jmk put configs and sample code here: http://jmkasunich.com/pics/tormach/
[19:29:43] <SWPadnos> I'm not sure it would be good to publish that location on CNCZone though :)
[19:30:22] <skunkworks> I would ask him first :)
[19:30:24] <SWPadnos> see you later, I'm off to the airport
[19:30:30] <skunkworks> have a good trip.
[19:30:36] <SWPadnos> how's the weather in Wisconsin, anyway?
[19:30:38] <SWPadnos> thanks
[19:31:02] <SWPadnos> I have 3 hours in Chicago, so I should make it to Green Bay this evening - but you never know
[19:34:25] <skunkworks> heh - right now it is sunny and 78
[19:34:30] <skunkworks> beautiful
[19:35:15] <skunkworks> say hi to bret for me.. oh never mind.
[19:35:38] <skunkworks> ;)
[19:36:46] <cradek> ... and then complain to your vendor that they don't provide a fully working lathe using up-to-date software
[19:53:41] <alex_joni> SWPadnos: did you add a nml file too?
[19:53:56] <alex_joni> otherwise you'll have to add a makefile rule to copy that from configs/sample
[19:54:05] <alex_joni> (to the tormach dir..)
[19:55:03] <alex_joni> hmm.. I see you added an emc.nml, it would be better if that gets copied
[23:47:09] <skunkworks> jmkasunich: http://www.cnczone.com/forums/showthread.php?t=62514