ooh, hi alex
* Lerneaen_Hydra pokes alex_joni
you don't by any chance know anything about spindle encoders and so on?
what do you want to know?
* alex_joni looks like a fairy covered in white dust
what have you done?
well, I was wondering if you knew stuff about the counter module
essentially I'm taking cradek's NIST threading config. However he has a real encoder, but I only have a hole-disc and an index, so some things are different
so I should use the counter module instead of the encoder module, however the formatting used doesn't appear to be the same
just load it, and look at the pins exporter
start emc2, then 'halcmd loadrt counter'
or 'modinfo counter' to see insert parameters
oh, that simple?
oh, that's right
in cradek's script there is one portion that has not.o.in
my EMC dies when it reaches that bit
yes, he needed an invert
and loaded a "blocks not=1" or similar
hmm, that load must have been earlier
so if I load a block as well?
well, axis loads
that's always good
what would the best way to test it be?
just directly test g33 in mdi?
you could try that
but I would first check to see if the spindle works
turn it by hand, check the HAL bits
alex_joni: like the counter nit?
hmm, counter 0 phase A and Z are correct
but counts and index enable is always 0
and position and counts is always 0
ok.. probably you didn't addf
do you guys know about eagle?
for the counter to update position and counting, you need to call that function
Bo^Dick: some do.. I don't much
nope, I haven't added anything to cradek's script, only changed existing values
i've set up everythin i thought but the clearance to the groundplane from the pads seems a little tiny
[10:28:54] <Lerneaen_Hydra2> http://pastebin.ca/138629
i really thought i had set everything up in the "design rule check" dialog
cad software is a pain in the ass for morons like me >:(
i'm so naive i think i'm gonna produce this board some day
Lerneaen_Hydra2: halcmd show functs
can't recall the exact name
Bo^Dick: maybe there's some #eagle channel that would know the answer better?
"halcmd show func"
alex_joni: didn't like that
neither that nor functs
unknown show type func
doesn't show much
Loaded HAL Components:
ID Type Name
14 User halcmd5905
was the only thing worth looking at
* alex_joni bets 5$ that's not true
well, the rest of the stuff there wasn't filled in
halcmd show all ?
you need emc2 to be running of course
except for the user data
and you need to use the same halcmd as the emc2 you're running
so bin/halcmd show.. for Run In Place
right that was a bit more
pastebin I guess
hmm, it was more than terminal could show :D
just look for counts stuff
just a sec
halcmd show all | grep count
[10:38:18] <Lerneaen_Hydra2> http://pastebin.ca/138632
09 E0A152D0 E0C50A0C YES 0 counter.capture-position
09 E0A15240 E0C50A0C NO 0 counter.update-counters
those are the 2 functions you need to addf to servo-thread
would that be in the .ini?
check the lathe example (it should have them for encoder.capture-position and encoder.update-counters)
no, in the hal file
they seemed to be in both base and servo thread
so I take it I keep the same division as the NIST lathe
it didn't like encoder.update-counters
should that be counter.update counters?
you don't use the encoder anymore.. you use the counter.. right?
for the spindle I have a counter
my jogwheels and so on are encoders
well.. then you need both
but I suspect you removed the encoder from the loadrt
I'm not following you
ahh, I know what htat is ...
thats a following error!
counter 0 counts now
Lerneaen_Hydra2: you need a software module called "encoder" to count inputs from encoders
and you need a software module called "counter" to count inputs from a simple slot thingie
I'm using a different module
ok, you need one encoder per encoder input
and one counter per counter input
so in your case I suspect 1 counter, and 2 encoders
follow me so far?
so I replace cradek's "encoder" with "counter"
actually the encoders already work
ok, then leave encoders out of this
you need to add a counter
that's what I though
loadrt counter ...=1
that's what I hve
as it is now counter counts works (counts up) but index enable is always false
loadrt counter num_chan=1
ok, counts working is great
index enable will only be 1 when the index pulse is active
one small slot / revolution
* robin_sz tries to work out why it would need a counter
but when I spin it there it's still false
even though phaze Z is true
robin_sz: LH is trying to make threading work
alex_joni, that I worked out
Lerneaen_Hydra2: pastebin the whole hal ?
robin_sz: and he doesn't have an encoder per se
only a disk with holes in it
alex_joni, this I understand also
kinda like half an encoder ;)
alex_joni: the *whole* hal?
[10:54:31] <Lerneaen_Hydra2> http://pastebin.ca/138639
and counter.0.index-enable is always false
alex_joni, so you see an index pulse, note the real time. see another, note the time again, subtraction then tells you how many ms per rev, or if you prefer, you can use it to trim the freq of software PLL. I dont really see why you would ever need to count revs ...
it works like that..
I can see the little slot and when I move it past it's false
alex_joni, forget that .. its a distraction
Lerneaen_Hydra2: motion sets it high, the counter sets it low when it passes through 0
oh, I se
robin_sz: it works a bit different than that
so it should work?
alex_joni, right, another time
it's generating a ramp signal, going to 0 at each rev
Lerneaen_Hydra2: try it out
robin_sz: so the motion stuff can synch to the increasing signal
so it is a PLL then
so g33 z -10 k1 maybe?
Lerneaen_Hydra2: your guess is as good asmine now
not getting any movement
try rotating the spindle shaft
yeah, I did that, by hand
counter works and all
I don't know more of this stuff.. sorry
thanks for getting the stuff so far to work :)
I'll have to bug cradek later or something
try loading the example ngc
threading.ngc or so
just sits there waiting at the start of the move
Lerneaen_Hydra2: maybe that not is not needed?
try linking the spindle-sync directly to counter.0.index-enable
yeah I can test that
why doesn't cradek just have a reverse input rather than a not block?
there is no reverse input from the motion controller
wtf? it gives me "pin 'spindle-index-en' not found
when I commented out the old stuff and added the direct link
oh, I see
linksp not linkps
spindle-index-en is a signal, not a pin
oh, duh. *headsmack*
I had linksp though
now that I think of it, the idea is not good
I'lll revert then
I guess I'll wait for cradek then
unless you know of some better idea?
no, that sounds like a good idea to me :D
thanks anyway :D
hi.. just looking around whats happening here :)
wallygl: support & talks around EMC (www.linuxcnc.org)
anyone in japan? where do you think i can buy stepper controllers here?
no-one yet from japan afaik
but I suspect you could find some stepper controllers there too
'lo there wallygl
one of the mostly used controllers are the Gecko Drives (int he US available)
maybe they have an .jp dealer
i tried looking at their website... i didnt find any. info.. hmm.. i think i havent tried google yet :)
you can always build a "decent" one yourself
yup.. i was thinking about that too.. specially the one contributed by pmino... but having hard time asking around since i dont speak nihongo :)
a guy in here uses that drive
[11:29:57] <alex_joni> http://timeguy.com/cradek/cnc/stepper-drivers
here's his version of the PMinMO: http://timeguy.com/cradek-files/01144545838/stepdriver2.jpg
thanks for the link
np, he goes by the name of cradek in here.. so you can ask for details when he's around
ok, enough working for today..
Screw Cam ---> http://asianwolf.com/item.jhtml?UCIDs=1068694%7C1226626&PRID=1536290
Jymmm, quit peaking in the mens changeroom.
Anyone out there?
I'm running steppers & getting the infamous joint following error. I've tried most of the stuff in the wiki, but no luck.
what version of emc?
what version of emc2?
because steppers do not have encoder feedback, JFE are caused by software bugs or configuration problems
and in 2.0.1 there aren't any bugs :-)
Its a setup for a 3 axis router, and anything shorter than about 6 inches is fine, but travel over that fails....
let's look at your .ini - can you put it on pastebin.ca
Hold while I get it.
[23:19:08] <Guest720> http://pastebin.ca/139422
which joints give the error?
something tells me your router can't really go 80 inches/sec
Through foam. Its got a really light weight head w/big motors. I had it running at around 45 yesterday.
at 4800 inches/min?
Is that large # causing problems. I can throttle it back.
I thought that was in inch/minute?
no the ini is vel inches/sec and accel inches/sec^2
so you want velocity 1.333
with maybe stepgen maxvel 1.4
Ah, crap. Thanks. I'm a complete idiot...
Got feed rate & vel units merged.
I'm surprised that doesn't happen more often actually.
BTW, I'd like to say thanks! EMC is really usefull!!!
And getting help, everyone has been really friendly.
that's good to hear too
Thank you so much!
heh don't thank me too much until it works!
Works on the smaller cuts. Would make sense if my velocity is off by a factor of 60... the longer ones will fail...
your FERROR is 2.80 inches!! so it won't error until quite a bit of error is built up.
you should put that back to a reasonable small number once the real problem is fixed
Hey, the docs said turn it up. So I turned it up a litte followed by a lot.
sure, just a reminder to put it back since it isn't the actual problem.
Thanks. I'm also going to double check all the velocity accel values.
I'm off to retry.Thanks a lot.
come right back if it doesn't fix it. you should have no problem at all with this setup.
cradek: Is there a list of key scna that axis uses by default?
I noticed that the numbers overlap functions
there's a list of the shortcuts in the help menu