EMC: 03cmorley 07TRUNK * 10emc2/docs/man/man9/opto_ac5.9: Info about HAL pin vrs connector header pin
Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emcdevel/2008-08-07.txt
EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/edit.c: remove debugging printf
I swear I looked at this logic about 100 time..I thought for sure the enable was setup active high.
uh oh did you find a bug in your board?
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.
(i have not made a board yet) maybe I will try to 'fix' it. I do have some unused inverters.
I don't have to add anything.. just put a inverter inline with the enable logic.
is it a current signal or a voltage signal?
that's actually good - you pull the disable input high (disabled), and you need to drive low to enable
(unless it's normally enabled and you need current flow to disable - that's bad)
the opto has to be turned on to disable the drive at the moment
'enable' with a line above it ;)
almost painless. http://www.electronicsam.com/images/KandT/servostart/schemfinal.PNG
[13:57:16] <skunkworks> http://www.electronicsam.com/images/KandT/servostart/boardfinal.PNG
skunkworks: would these have what it takes to run stuart's cinci? He keeps saying he wants to find a dumb amp.
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?
that and space.
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
you'll have to extend the board a tiny bit to the left to do that
cradek: my hope is 150v at 20a - but I would want to test it for a while :)
jepler: the output of the and gate can only sink/source a few ma.
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
I could just put a 10k in series with it and just assume it will light
that would be 1ma
(I guess I could test it ;))
The board is as big as the free version of eagle will do.
skunkworks: if you don't need the output to be a good logic level it can drive an led at 10+mA
question for you jepler (sorry, you're the tcl guru AFAIK :) )
argh no it's a lie
I finally realized that I could exec find ... to get a list of ini files in each specified config dir
makes it easier than building a tree just so I can destroy most of it again
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
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)
then run through and create a new branch in the tree for each unique "first element" name
I bet you'll get it wrong if you parse the output of find
I dunno - it seems straightforward - so straightforward that there should be a function to do most of it for me :)
I'm not so sure - I looked at some sample output and it "seemed OK"
but spaces may be an issue
every character except null and / is allowed in a filename
then again, if you split a string at '/', you should have e\lements that include any spaces
well, that is a problem, but I don't know that it's a different problem with find
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"
like strncmp will nearly do
[15:50:36] <jepler> http://pastebin.ca/1094839
<-- doesn't invoke a shell command
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 :)
I thought that you were writing this recursive thing as a partial answer to that question
I am, but I think there will be two answers - one for 2.2.x and one for 2.3.x
thanks for the recursive find there
why do we want deeper directories anyway?
mesa/5i20 mesa/5i22 mesa/7i43
wach might have a lathe and a mill config
or even 3axis/mesa/hm2 3axis/stepper/...
then hexapod/pico-systems/ppmc ..
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
lowercase like all the rest please
I don't think we'd move configs in 2.2.x, even if I committed the change today
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
and since pastebin will delete the tcl code in 30 days: http://emergent.unpy.net/files/sandbox/findini.tcl
hey cool, thanks. maybe I'll prettify it on the plane this evening (or during my 3 hours or so in Chicago)
skunkworks: maybe you should make your circuit look a bit more like this one: http://www.instructables.com/id/SEB6BPFFJKGZTB2/
THE ITEMS ABOVE ARE NESSACERY
* fenn wonders where the resistor goes
EMC: 03swpadnos 07TRUNK * 10emc2/configs/tormach/ (8 files): Add sample configuration for Tormach PCNC-1100
fenn: the internal resistance of the batteries is probably enough,
EMC: 03swpadnos 07v2_2_branch * 10emc2/configs/tormach/ (8 files): Add sample config for Tormach PCNC-1100
could someone with a parallel port and RT kernel just try loading that Tormach config?
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
sure, I can
should put a 'readme' file
oh - right, I copied a pattern with '.' in it - one sec
you shouldn't be able to come out of estop, so if that happens it's normal
hm if I click "change gears" for too little time, nothing happens
yep, that's true :)
I think that's a cycle time thing in pyvcp
hm why can't I come out of estop?
because it requires their m"machine OK input"
you can disconnect the pin (12?) and set the signal high to try it
pins 10, 11, 12, 13 are home/limit and pin 15 isn't connected
EMC: 03swpadnos 07TRUNK * 10emc2/configs/tormach/README: oops - forgot the README
hmmm - pin 10 then
(I could look and be sure I guess)
oh -- pin-15-in-not
ah - ok then
EMC: 03swpadnos 07v2_2_branch * 10emc2/configs/tormach/README: oops - forgot the README
I think there may still be something funky with the estop, but I'm not sure
maybe you can't estop the machine with F1 once it's started (assuming the machine OK input stays "OK")
I'll need to look at it with some hardware attached at some point
yes, hitting F1 goes to "machine off" rather than estop
when machine-ok is TRUE
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
now - I really should have an 'enabled' and/or an 'on' led..
probably 'enabled' would be the best.
if I can make it fit'
how fast do you need current limit to turn the enables off?
cycle by cycle
do you see something?
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)
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.
yes - I am sure.
but what fun would that be.. ;)
[18:31:14] <skunkworks> http://www.electronicsam.com/images/KandT/servostart/boardfinal3.PNG
enabled led also
now I am done. No really - I am done.
I figured - if the enable isn't lit.. you're missing power or the logic isn't getting there.
(instead of also adding a power led)
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
EMC: 03swpadnos 07v2_2_branch * 10emc2/configs/tormach/pcnc-1100.ini: fix path for PROGRAM_PREFIX
EMC: 03swpadnos 07TRUNK * 10emc2/configs/tormach/pcnc-1100.ini: fix path for PROGRAM_PREFIX
jeeze - is it wrong to get all excited about a circuit board?
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)
use 0x80-(wherever), just set the high bit
though an add is also 1 cycle, so it doesn't really matter what you have to do
1ppr encoder is in thrunk only?
boy. 1 ppr encoder is in trunk I assume?
skunkworks: yes I think that's accurate
hmm - someone that is looking at using a 1ppr encoder.. should I point them to the list?
or does someone want to explain it to him?
* skunkworks doesn't think he could do it accuratly
in trunk, man encoder
that's all I know
[19:28:44] <skunkworks> http://www.cnczone.com/forums/showthread.php?p=486254#post486254
jmk put configs and sample code here: http://jmkasunich.com/pics/tormach/
I'm not sure it would be good to publish that location on CNCZone though :)
I would ask him first :)
see you later, I'm off to the airport
have a good trip.
how's the weather in Wisconsin, anyway?
I have 3 hours in Chicago, so I should make it to Green Bay this evening - but you never know
heh - right now it is sunny and 78
say hi to bret for me.. oh never mind.
... and then complain to your vendor that they don't provide a fully working lathe using up-to-date software
SWPadnos: did you add a nml file too?
otherwise you'll have to add a makefile rule to copy that from configs/sample
(to the tormach dir..)
hmm.. I see you added an emc.nml, it would be better if that gets copied