[#emc] "This is the #emc channel - talk related to the Enhanced Machine Controller and general machining. Website: http://www.linuxcnc.org/,
wiki at http://wiki.linuxcnc.org/"
preload by ball size only
so - was it not getting lube?
it was watery and rusty in there
it is not part of the one-shot. there is a resorvoir for it.
you are back in lincoln?
I'm pretty sure you're supposed to keep the water and rust out of the ballnuts
yes, got back very late last night
but I could be wrong
SWPadnos: maybe use oil instead?
that could work
or even way lube (like the BP does)
oil is good
yes when I get it fixed up, I might try oil instead of rust
let us know how that works out :)
I bet it works great :)
Ideas anyone for what I should use to pull down my vacuum chuck for pcb's? I'm considering a bosch alternator from an older mercedes or vw diesel with the vac pump built on .
: try googling the "cheap little sucker"
some guy figured out how to build one on the cheap if you are into that type of thing
actually here's a link
[03:46:26] <dareposte> http://www.berkut13.com/sucker.htm
if i remember he used an old fridge compressor or something, seemed to work out well
Hey thats not a bad idea either, I've got a friend that does hvac service come to think of it
all the better then :)
Just looking for something with enough flow it won't loose effectiveness on drillthrough
i've heard double sided carpet tape works well...
if you have a big drill file it might be a bit tough to get enough vacuum out of something sort of small like that
I'm sure an automotive a/c pump would pull enough
i've never played with one before but i'd think they are probably pretty powerful
I just got the x-axis on my cnc conversion installed
man what a pain in the back side that was
i'd rather program the thing than spin hand wheels any day...
err.. my cnc lathe that was
[04:26:54] <dareposte> http://www.youtube.com/watch?v=XA40DA_cxrg
can emc control my electric drill?
drills are interesting because the trigger is analog
ie depends how far you pull it
probably would need an encoder
possibly also hardwire the speed and just use a relay to turn it on or off
not a bad idea
two relays i guess for reversing
hi,is there anyone familar with coolcnc,emc2 based on puppy?
* alex_joni wonders why people can't wait a couple minutes/hourse before running away
regarding threaded rods, what does 1/4-20 mean
I suspect 1/4" is the diameter, and 20 TPI
but don't bet on it
thats what i was thinking
[10:23:42] <alex_joni> http://en.wikipedia.org/wiki/Unified_Thread_Standard
Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/2008-09-11.txt
fenn_ is now known as fenn
dareposte: nice videos! :)
Good morning, everyone.
SWP, that window comparator suggestion from yesterday worked.
There's one minor snag - there's no direction.
SO I've put in an offset and another window comparator to look for direction.
The problem I'm having now is that offset doesn't seem to take a float as an input.
net Xupconv2 offset.0.in => conv-s32-float.1.out will throw a "type mismatch" error.
do you have a CVS checkout?
ok, then I won't post my changes to wcomp for you :)
you can use a comparator and a window comparator though, plus a few AND/OR gates
I'm assuming you get positive numbers for one direction and negative for the other
set up a comparator with a constant 0 as one input, the joypad output as the other
Actually, I think I've found the problem. I was using the wrong link name and linked to the input instead of the output.
SWPadnos: MASEngr could still install your modified window comparator with 'sudo comp --install wcomp.comp' (though it would be overwritten when doing an upgrade)
(you could rename it and change the name in the component declaration to avoid that problem)
I didn't check it in because I get an error compiling it, which I think is related to my having python2.5 on Hardy, but I haven't debugged it yet
Well, now my problem is that I don't know how to add the offset update function into the thread.
man halcmd ;)
(addf <funcname> <threadname>)
Oh, that easy?
yeah, in a HAL file. the hard part is making sure it ends up in the order you want
The order I want?
yes - you want to be sure that the functions execute in the correct order
Ah, because otherwise I'd get whacky data. If, for example, I update the position then do the offset, I'm updating the position based on the non-offset data.
you can tell halcmd where to put the function - N slots from the start or end of the thread
but that can be dangerous - later changes can screw up the resulting function order
It seems to be all right now, and I'll keep an eye on where the functions sit in the .hal file.
So now I've got a joypad that gives free-wheeling manual control, then gives a short one-shot jog when you hold in a button.
so you hold a separate button to turn on "one-shot mode", then when you push the control far enough it does the equivalent of a key jog?
in whatever direction you've pushed the stick
Yeah, it's neat.
remember to post the config on the wiki ;)
Sure, where's the link for that?
NM, I see where I can put it. I'll get the rest of the code done and cleaned up first.
[16:26:03] <BigJohnT> http://i47.photobucket.com/albums/f163/johnplctech/Plasma%20Cutter/H2OTable2.jpg
Hi. I need to include backlash compensation on one axis.. do I simply add BACKLASH=0.??? to the axis in question in the ini file? There is nothing there at the moment
xyzee: except if you generated the config with stepconf
in that case it's probably best to rerun stepconf and set backlash
I've got another question - how can I get spindle control with the joypad if another signal is already connected to motion.spindle-forward?
Depending on the lines I'm using, I get "cannot add OUT pin" or "already has output or I/O pins" as the error.
MASEngr: you don't want to control the spindle directly with the joypad
you would want to use halui for that
you want to control emc2 with the joypad and let emc2 control the spindle
as chris said, you connect the joypad to halui (spindle control) and let halui talk to emc2 which controls the spindle
I needed a slide with 5mm screw and a 5:1 pulley ratio.
The vendor could only supply 0.200" pitch screw.
I solved it thru the 'electronic gearing' of the amplifier.
The encoder was 2500ppr, which yields 10000 counts after quadrature.
The 'electronic gearing' uses 2 integers, ( numerator,denominator ).
I used 1016 and 10000 resp.
So, the amplifier outputs 10000*(1016/10000) = 1016 increments per motor rev.
The timing pulleys reduce 5 motor revs to 1 axis rev (12:60),
so there's 5*1016 = 5080 incs per axis rev. which is 0.001mm per increment
even tho the screw is inch :) sweet.
the numbers 254 / 2500 might be more obvious ;)
if they were more obvious, then why didnt i see them before ?? :)
yep, the above /4 , you're right
Awesome. I've got spindle control. Thank you for the tip.
I've now got a ridiculously full-featured joypad setup.
boom de ah da
[19:17:01] <alex_joni> http://www.youtube.com/watch?v=at_f98qOGY0
It's got all the normal functionality, plus a one-shot jog when you hold in one of the buttons.
Thanks for the help. As always, I appreciate it.
and remember to put the new config files on the wiki ;)
I've emailed it to my computer just for that purpose, SWP. ;)
where was the link to the cern black hole?
Hi, installed unbuntu followed by EMC 2.2.6 but when i start EMC i get a error like , insmod: error inserting '/usr/realtime-2.6.24-16-rtai/modules/rtai_hal.ko': -1 File exists
if i try dif configs it comes up with other modules for realtime, sometimes it will load up ok, any ideas?
robh: make sure on bootup you select the realtime kernel
The order probably go screwed up.
yea i did that, and reordered it so will always boot into rt kernel
system monitor shows, kernel, 2.6.24-16-rtai
above error is loading sim axis config
Can anyone tell me how to set BACKLASH in stepconf. I can't see it anywhere
robh, dmesg will show you better information
SWPadnos: Got it?
xyzee, I think the released version of stepconf doesn't have support for backlash settings
Jymm, yes, thanks
SWPadnos: ok cool. Sorry it took so long... best of intensions and all that
no problemo. I'm a procrastinator from way back :)
SWPadnos: I'm usually not, just reality was whining (again)
reality is such a whiner
SWPadnos: so are my users *sigh*
SWPadnos: and they're good at it too.
yeah, I hear they have special training for that
SWPadnos, So all I do is add BACKLASh into the AXIS 0 part of the ini. file. Does it matter where?
xyzee, well, it depends ... :)
the normal way of dealing with backlash is to put the compensation amount into the ini file, then set it in HAL with some lines in a hal file
stepconf manages the ini file though, so if you add the backlash numbers to the ini, you won't be able to use stepconf for that config any more (or you'll lose your backlash settings, I'm not sure)
stepconf also doesn't generate the necessary statements for the hal file, though you can add those to the custom.hal file it creates for you
do you want to continue to be able to make changes with stepconf?
SWPadnos, I think maybe stepconf has outlived its usefulness.
ok, in that case add the backlash numbers to the ini in the AXIS_N sections
excellent, thanks I'll try that tomorrow.
hey, I'm wrong - wohoo!
I thought backlash was not a hal thing..
it looks like backlash isn't used in HAL
so all you should need to do is add the backlash settings in the ini file
Okay, thats cool, thanks again
SWPadnos, cant see anything in dmesg
hmmm. there's got to be something there
unless you rebooted
aaah, last boot shows alot of Unknown symbol related to hostmot2,hal_lib etc
its odd, as if find a config that will load up EMC interface, then go back to say sim, axis one it will then also work and run with no errors mighty odd
Starting EMC2 server program: emcsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Realtime system did not load Shutting down and cleaning up EMC2...
robh: can you look in your files for probe_parport ?
that won't be part of sim..
so sim configs will probably run without issues
that might be something that will fix this
i dont seem to be getting any parport errors loged or showing, ill show u full log of what emc displays
put it in pastebin.ca
skunkworks: quick and good call :D
neat site, http://pastebin.ca/1200393
now all sim configs and others will load fine, but if i reboot, or close reaload them, they will go back to the above error as tho something is stoping it loading the Realtime or something
robh: why does realtime load at boot time?
did you add /etc/realtime to one of the rc.d levels?
can you make sure?
just ran install script to install rt and emc
look around second 24 or so
robh: you have an 5i20 board?
for some reason it looks like a 5i20 config is tried to be run on startup
and there's some odd IRQ sharing issues
maybe you can try swapping some PCI slots
only realtime i find is in init.d
no symlinks to it?
I'd check the default runlevel (it's in /etc/inittab)
then look in that /etc/rcx.d
debult runlevel is 2, no realtime or likes defind in rc2 as i can see
something is causing emc to start
can you pastebin a ls from rc2.d ?
ls -al maybe
[20:51:54] <robh> http://pastebin.ca/1200426
heres my init.d folder for ref, http://pastebin.ca/1200428
yea, i told unbuntu to not install nvidia drivers, but its alittle insistant that it will try it :s
robh: I wonder what that iTCO_wdt is
+ * intel TCO Watchdog Driver (Used in i82801 and i6300ESB chipsets)
jepler: could it trigger IPIPE?
beats me, all I know I learned from googling it just now
haha good old google
robh: can you reboot and do a lsmod after the fresh boot?
bk in sec thn
a whole lot of IRQ 14 messages in that dmesg
14 is 4th pci it says, which i am not using
might be something onboard connected to it
a lspci -vv should tell
will reboor 1sec
one lsmod, http://pastebin.ca/1200441
emc2 is there
can you try ps aux | grep emc ?
[21:06:00] <robh> http://pastebin.ca/1200444
having the user called emc isn't exactly helping with the grep :P
you sure you didn't start emc2 by yourself?
emc 4937 0.0 0.0 4360 1632 ? S 22:04 0:00 /bin/bash /usr/bin/emc
check on another workspace
update of emc error, http://pastebin.ca/1200445
irq9 refers to first 5i20 pci3, irq11 other card, pci5
jepler: yeah, and it's just before firefox
at time of that i had emc open on its error screen, but lsmod was on a clean boot no other things open etc
I asked for a lsmod just after boot
without emc2 running
i did the lsmod without it running or anythik
and after that you ran it?
try this: clean reboot
do a lsmod
lsmod | grep rtai
if anything comes up, do : sudo /etc/init.d/realtime stop
then try to run emc2
ill put irc onto dif pc too, be 20x easyer
here we go , http://pastebin.ca/1200455
ok, rtai is running
don't try to run emc2 now
try sudo /etc/init.d/realtime stop
gives error saying in use, http://pastebin.ca/1200457
try halcmd stop
halcmd unloadrt all
then sudo /etc/init.d/realtime stop
just leavs, error: module rtai_math does not exsist in /proc/modules
are the modules still loaded?
they have all been unmounted now, no rtai compoents left
now try to run emc2
loads ok, no errors
robh: a temp fix is to remove a symlink : 'sudo rm /lib/modules/2.6.24-16-rtai/rtai'
it seems that that causes the 5i20 to participate in the hotplug phase
ok iv removed the symlink now
reboot, and emc2 should run
so that would of casued the rtai parts to load also on boot?
yeah, they get pulled in as dependencies of the 5i20 driver
ri, i see
is hackaday down for anyone else?
but not all of them :)
lerneaen_hydra: might be hacked
it's been down for me for a couple days now
Oops! This link appears broken.
DNS error - cannot find server.
or rather, my dns servers can't resolve the domain
yep, loads fine
oh, not you either?
robh; which IP do you get?
*which IP does it resolve to
lerneaen_hydra: dig is your mate
IP resolve to what name?
lerneaen_hydra: I bet he talked about emc2 loading fine
after rebooting the machine :)
oh, right :p
robh: we'll fix this very soon :)
thx for taking the time alex to resolve the problem and all
robh: anything else wrong with it?
wasn't me fixing it.. I was just asking the questions :)
no yet, just gota edit up a ini and hal file now , or fireup the hotmot testpanel so can play with the mesa cards :)
see the hostmot testpanel is outdated on wiki as still has linkpp in hal file should be net or linksp right?
here is what im talking of, http://wiki.linuxcnc.org/uploads/pyiotest.hal
am i right in thinking output section is missing in it?
robh: yeah it looks like it's missing -- I would expect it to be by the comment "# link digital outputs to buttons" but it ain't there
ill take time to get it working and upto date then ill update wiki for others to
cool, and thanks
cradek: I think I got an explanation why it can't work
but I guess you're more thrilled about hearing a solution.. and I'm still thinking about that
issy: have you resolved license issues for your gui?