SWPadnos_ is now known as SWPadnos
anyone know of a free package to convert a CAD file to IGES or STEP ?
SWPadnos: I fonally got a 3gang box to fir and mount up. having a hard time finding a grey nylon face plate
which the breaker and IEC connector will mount to
you could get some decora "sectional" face plates
SWPadnos: not nylon
does it have to be nylon?
SWPadnos: the breaker has to mount on the faceplate
su yes, to nylon, or it'll snap
nylon will stretch, and I don't think it's all that thermally stable
could be wrong though
and as it stands now only a single screw will hold it on
into the metal?
into the duplex outlet
facplates mount to what they're covering, not the box itself
and thats the problem
blank faceplates mount to the box...
the breaker doesn't have the screw holes for a faceplate
jtr: good idea... I can just cnc the outlet openings then
not that I have any idea where you would find a blank 3-gang plate.
like a light switch would
SWPadnos: it's close, very close - the finger guard will cover the oval holes
I grabbed one of these for a template http://images.hardwareandtools.com/P/6088702.jpg
hawt damn! http://www.goodmart.com/products/478406.htm
thanks jtr - that'll be perfect
that's quite a discount on a case lot (unless the price is in case lot quantities)
oh - I forgot the *NOT!*
ok, I'm awefully tired today, gonna watch a movie and call it
how are things?
and another one http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_EMC_G-Code_Generators
chip load per inch? what does that mean?
diameter, it keeps the load constant as you change diameters
fenn, I added some interesting reading on chip load to the wiki
eh.. i'm not going to bother with an .odt file
anyone here familiar with classicladder?
I'm a bit
apparently I need to learn CL for wiring these pendant buttons...
[13:17:02] <BigJohnT> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant
ok so I have a momentary on push-button and I want to control the coolant on/off with it. how would you do that in HAL ?
hold on a sec I'll find it
bottom of this page http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Using_A_Joypad_To_Move_Your_CNC_Machine
I now have it wired to a toggle, and then the toggle to halui.flood.on and the negative of the toggle output to halui.flood.off
it works if I repeatedly press the button, but if I change the coolant state in MDI or from G-code I sometimes have to press twice on the penadnt button
hm, that last link might be it... let's try that.
BigJohnT: won't that oscillate? there is no edge trigger in it
dunno, have to ask Manfredi it's his page
looks like the flood-is-on might prevent that
I think flood-is-on comes on "a while" after you assert flood-on
if you have let go of the button by then, it will not oscillate
but if you hold it down, I think it would oscillate
yes, that oscillates when I hold down the button
you need edge detection (button) and latching (keep asserting flood-on until flood-is-on comes on)
I still think ladder is the easiest way to do that, but anything you can do with ladder I bet you can do with hal blocks (but much more painfully)
let me look up a ladder single button toggle example I have here
well I have three more buttons for similar things so maybe it's worth learning CL
awallin_emc: I wrote a cheat sheet for people like me who can program etc, but know NOTHING about ladder: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder#Cradeks_Classicladder_Cheatsheet
that is strange. someone (was it you BigJohnT?) added this to the ClassicLadder page on April 3, but that change doesn't show up in RecentChanges
hmh, I'm getting a real-time delay once EMC has been running for a few minutes
if it didnt add, dunno why
and the # reference seems highly dependant on font size, mine opened way above that stanza
tomp: probably it came up just scrolled all the way down
it's because the images aren't loaded yet
repeats to same place after cache flush, and no way to get images before loading (preload)
there's a lot of stuff in CL that I haven't used. I've only used it for logic, none of the integer/compare/operate/jump/call stuff
got edge filters for that btn?
[13:32:36] <BigJohnT> http://www.plctalk.net/qanda/showthread.php?t=22175&highlight=flip+flop
just got the cl gui running from the wiki instructions
maybe I'll leave learning CL for later. it's not critical for getting the machine going right now...
oh well awallin left just when I had the simple solution for him
4 lines in hal does the trick
BigJohnT: I think that's another of the things he's tried. However if flood changes state some other way, like from gcode or the gui, you have to push the button twice. He needs a way that works with the state of flood reported by halui, not some other state (like the one kept in the "toggle" block).
I suppose one easy way would be to add a flood-toggle input to halui.
is there a way of casting integers to floats in HAL ?
conv_u32_float and conv_s32_float
Now I have an encoder on the spindle motor, I want to get an RPM display going...
hm, does the m5i20 have velocity outputs too?
ew no man page?
awallin_emc is this how you did your flood http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?One_Button_Toggle
BigJohnT: that was what I had. Now try changing the state of coolant through the AXIS checkbox or through g-code. Now try the button again. When the state of the toggle doesn't match the real coolant state you have to press twice.
m5i20 has no velocity output, but you can fake it with ddt
fenn: Now I have a ddt running on the encoder position but the velocity is really granular. first 0, then jumps to 1000, then 2000, etc.
ok, could you use the flood out to also toggle the toggle
just thinking out loud
awallin_emc: you could modify the m5i20 driver to use the code in the encoder module
I'm not sure that helps. would still have the problem with granularity
'encoder uses an algorithm that greatly reduces quantization noise' wrt ddt
wait a sec, how do you get values like 1000?
probably one count per 1 ms. and ddt gives coutns/sec
I had the ddt in the servo-thread
maybe just put it in a slower thread and accept that the rpm display updates a little slow
have to go attach the encoder to the motor, bbl
what signals does EMC want from the spindle for threading? just the encoder count on some pin?
index and revs
how did you resolve the granularity problem with ddt?
1.0 is one spindle rotation, etc
ah, so the the encoder position, and not rpm?
velocity is used for css, position is used for threading
ok. will there be a problem with wrap-around of the encoder counter?
no, because a thread pass starts with an index reset
does the m5i20 have a way of resetting the counters?
I probably want to use that then so the count runs from 0 to 4000 on each revolution
you should set the position scale so the position increases 1.0 per rev
that gets fed to motion.spindle-something
check out my lathe-pluto sample config. pluto is a lot like the mesa.
does index-enable reset the position too, or just the count?
ok, the pluto config comes with 2.2.4?
pluto has a high quality encoder velocity output, I guess mesa doesn't yet (but I hear it's coming)
someone could take the VHDL from pluto and stick it in the mesa
its not vhdl is it?
i mean the velocity smoothing code
encoder_velocity(i) = (count - data.last_count[i]) / encoder_scale(i) / fperiod;
oh maybe it's not anything but a simple ddt
* fenn squints at the parentheses
I thought it had the better velocity (based on sub-period timestamps)
why is it (i) instead of [i]?
because any use of the C preprocessor is an abuse of the C preprocessor?
The definition of macros which are not all caps drives me crazy because it is not clear to the casual reader that they are macros. That said, I commonly use a macro called logDebug. It is a macro so that it can be ifdef'd out. It is in mixed case to keep the code looking nice.
[15:48:13] <skunkworks> http://www.electronicsam.com/images/house/garinfloor.JPG
Nice view. What's the body of water?
it is the mississippi
will your limo fit in there?
How far underwater is that slab on a bad day?
it is just above lock and dam #6
heh - we are probably a good 50 ft above the river
Can't tell that from the photo.
and if that slab sees water the hous below is gone
[15:51:25] <skunkworks> http://www.electronicsam.com/images/house/view2.JPG
you building a garage??
nice size... radiant floor heat will be nice
we where told by tons of people - 'make it as big as you can' :)
wood furnace or electric??
Will it be able to take the loading from the milling machine?
have not decided yet.. solar will work in there somewhere
heh - I have access to big machinery - I will only have a smallish workshop
Interrupted cuts can vibrate the heck out of it and crack the slab :-)
prepare 1st the execute these adventures or they get expensive FAST
i lost out on FREE okk vertical mill last week
they threw it out all becz it had a mits control and almost everything else is fanuc
yeck. Dmess - did you see the almost finished kitchen? http://www.electronicsam.com/images/house/kitchenalmost.JPG
[15:56:26] <skunkworks> http://www.electronicsam.com/images/house/kitchenalmost1.JPG
[15:56:29] <skunkworks> http://www.electronicsam.com/images/house/kitchenalmost2.JPG
[15:56:48] <skunkworks> http://www.electronicsam.com/images/house/kitchenalmost3.JPG
how does that work for cooking?
(looks nice though..)
skunkworks: don't you need some fume extraction above the stove?
yes- when we accumulate more funds..
ah, ok :P
i hate wood.... i could build an entire ss kitchen faster and better looking than i could with wood
heh - the cabinates where re-used.
i have had all new cabinets in the basement now for almost a yr. cant find the sense of humor to rip and replae the kitchen... need to redoo all the wall's seems our little earthquake here a few yrs back shifted the room out of square
i really dont know how i'll fix it right now...its gonna be a rip it out and see kinda job
dmess: Well, JUST DO IT! Then get a street sign that says "dmess Diner" on the front lawn and make the best damn biscuits and country sausage gravy!
dmess: Just remember, everything must be six inches off the ground to pass health inspection.
6 inches.. im sure its NOT that now..
dmess: maybe 8"
come on.. my pets will think i'm putting in a room for them
expect lights and cable too
All foods and utensils must be stored at least 6 inches off the ground
(just looked it up)
6 is more like it... but i bet i've only got 4-5...
So there ya go... now you have a wa to pay for all that SS in your new kitchen
plus you'll need exhaust above the stove with grease trap
im under-motivated to start it..
you'll need a 3 basin sink as well... wash, rinse, and sanitizer.
then just put your kids to work
yeah right... so i have to do it over and pay for new mat'l
no, no, make them work the diner to pay for the SS
we're not in a zonned area for a legal diner
who said anything about legal?
what's the difference btw. motion.spindle-speed-in and motion.spindle-revs ?
and what should I do with spindle-index-enable?
awallin_emc: setting up threading?
alex_joni: yes. I'm 'dry-running' everything on the bench. have an encoder on the spindle
now I have the VFD under control by EMC too, actual RPM is pretty close to commanded rpm
these go on a mill, so I'm interested in rigid tapping.
you want index-enable connected to motion.spindle-index-enable
and spindle position connected to motion.spindle-revs
so EMC commands the encoder counter to go into index-enable state?
awallin_emc: look at the nist-lathe config
the index-enable is a bidirectional pin
I did a lot last night, alex
but nothing helped.
awallin_emc: motion sets it high when it wants the encoder to be reset at index
and the card/driver sets it back to 0 to signal that it did
_Alphonse_: I'm not sure I understand what you mean :)
alex, I reinstalled from 6.06.1 (not live CD), use the script from the website, installed emc 2.2.4 (it seems it does itself to the latest version), and still no luck.
still no luck doesn't mean anythign to me
I keep poking at halcmd to print out the status of the parallel port, but it is not the same as what I see on the mulitmeter. all the address in the hal file match the bios.
_Alphonse_: when I walked you through starting the linux module first, then the HAL module I think it worked.. right?
what G-code would test if I have rigid tapping going correctly?
no. that didn't work either.
Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/2008-04-06.txt
that was to remove emc2 in /etc/modules.d, and manually remove the parallel ports with rmmod.
oh, it seems my parallel port is really PNP.
19:46:46 <_Alphonse_> the scope gives me some that that may be a square wave on the step pin, but less that 5V... the direction pin doesn't go low.
sounds like you got it to do something..
I assumed that you'll manage from there
but shouldn't it be 5V to 0V?
yay, I got a G33.1 move that seems to work. the servo jumps a bit just at the end though
depends on the port
oh? I'll connect it to a stepper driver and see then...
_Alphonse_: some ports have internal pullup resisters, so they don't move much without load
alright. I'll check. Thanks alex!
_Alphonse_: otoh, I think it only worked after you started with the linux driver, then with the HAL driver
so maybe you have some exotic parport port which needs some special magic initialisation
ok. I do all the manual steps then.
I would remove the /etc/modules.d/emc2 file, and let it load the parport_pc driver at boot
it is a DELL. and I tested it on 2 Dells already.
yeah, and then rmmod the parport_pc
then before you want to run emc2, remove it with 'sudo rmmod parport_pc' (along with other modules depending on it)
give me, say, 30 minutes, and I'll connect it to the stepper driver and see.
honestly, it really did look like noise to me. :p
but I'll test it out.
how come everytime I reboot I get the reboot: line 19: 5752 Segmentation fault?
does that have something to do with the werid hardware I have?
the reboot command is segfaulting? that's weird (but doesnt really matter)
well, after I shutdown the machine , it usually will tell me "Operating System Not Found"
and I had to do something like going into the BIOS and then it will be OK.
GRUB takes like a minutes to finally start loading.
I reinstalled GRUB, but it didn't help.
it is just me wondering why 2 machines will have the same problem... although both are Dell.
actually, I tried 3 machines. before, I tried EMC2 on a Thinkpad, but the realtime stuff is horriable... after reading the FAQ I gave up on the Thinkpad.
interesting: according to /proc/ioports, I have 2 parport0. "0378-037a : parport0" and "037b-037f : parport0"
hey people. I'm trying to launch a command in axis. I have it embedded in the menu and it gets called by exec. The problem is that I'd like it to display some text output. Preferably it would dump something to a window and then I could close it. Any suggestions?
and Device Manager does't recongize my parallel port anymore after removing emc2 from /etc/modprobe.d/
owhite: if you're launching axis from a terminal you could do some print statements that would output to that terminal
owhite: how about sending a MDI command to emc?
(MSG, foo) should give you a popup
_Alphonse_: sounds like something is foobared on that hardware..
(but there's only so much one can do over IRC..)
alex_joni: sounds good. (MSG, foo) gets called from where? In axis?
you send it via MDI to emc
it's basicly g-code ;)
...think I got it, its called from the MDI "command line" in axis.
you can send it with halui if you don't want to hack AXIS
_Alphonse_: the two ports are the data port and the control port (i think)
alex_joni: so any idea how the the program I am calling from the axis menu could make a call like (MSG, foo)? Like is there a way to do that in a shell script?
fenn, oh, thanks. still connecting to stepper driver to test it.
how would I do a frequency counter in HAL? I have a digital IO line with a pulse-train coming in (it's supposed to be spindle-load from the VFD)
I have only one pulse-train, not two quadrature signals, could I still put that into an encoder?
there is a component called counter
(or is that a mode for encoder?)
which only counts one signal (not quadrature)
you have to set encoder.N.counter-mode
counter is deprecated in favor of encoder
honestly i think 'encoder' should have been renamed 'counter'
looks like I'll have a spindle load monitor in EMC, pretty cool!
duty call. I'll report back my results later. :) bye
at least I can get something proportional to the spindle current. That should correlate with load...
hey folks. how do you launch halshow.tcl on the command line?
alex_joni: how to launch halshow.tcl on the command line?
owhite: I have no idea
I run it from AXIS when I have to..
it should be something like emcsh -ini /path/to/ini halshow.tcl
but it's been a while :D
emcsh is dumping a lot of textola.
owhite: can you be more specific?
libnml/cms/cms_cfg.cc 624: cms_config: can't open 'emc.nml'. Error = 2 -- No such file or directory
it starts with that gripe and then keeps on going.
yeah, you need to be in the dir where the config is
cd /path/to (where ini is)
then emcsh -ini ./inifile halshow.tcl
yes indeed. that worked.
like I said.. it's been a while :)
so the syntax to run halshow.tcl is...
emcsh halshow.tcl -- -ini .ini_file
delta current could be proportional to load ( change in current beyond over no load current ), might even detect broken tool ;) or if fine enuf, a wearing tool, a clogging dril
maybe automate chip load according to last nite's discussion
winter sucks: http://jmkasunich.com/pics/vn-rust-2000.jpg
no coating before the winter?
it was oiled
and covered with a breathable cover (cloth)
I wish I knew why some surfaces rust and others don't
like top and front to table
some are stainless
(not in this case..)
both are bare cast iron, both were oiled
seems like the top one rusted because moisture sat on it
maybe you had some temp changes, which caused condensation
or something like that
definitely had temp changes - it is 69F today, was <30F a day or two ago
foggy friday night, etc
off to see what I can do about it....
this is how my tuning looks now http://www.anderswallin.net/wp-content/2008_04pid/best.png
maybe a tiny bit more P?
I think it was 20 now, and at 30 I got oscillations. anyway have to postpone final tuning until motors are in the machine
gnight from this computer
gnight from here too
"wall off, insulate, and heat back part of garage" goes on the TO-DO list :-(
don't forget the chassis heater for the VN
I wonder if that would be the right way to go
1/2" diameter, 1.5" long, 60 watts, $14 at mcmaster
it should prevent condensation at least as well as heating the place
especially if you actually open the door from time to time, for instance to park a vehicle or get the shovel out
wonder if there are many places where I can drill a 1/2" dia x 1-1/2" deep hole
the heating option would include walling off the back 8' of garage
heating the garage makes it usable in winter
I think gene said he put a 100W light bulb inside his machine
there isn't really an inside for the parts that rusted
I could probably clamp a strip heater to the table
I don't know how much would radiate, but thermal conduction should keep the whole machine a couple of degrees warmer
I just had a vision of a block of Alu about an inch thick, 2" wide, and 8" long, with a cartridge heater in it
put on table, run ram forward, run knee up, until block is clamped between table and bottom of ram ways
that would heat the head and table
I have the same problem, which I haven't solved
and my garage is insulated too - doesn't help much
put a 80F or so klixon on there, so if I power it up without attaching it to the machine it won't overhead
bimetal temp switch
[21:43:47] <jmkasunich> http://img367.imageshack.us/img367/2590/klixonfl8.jpg
actually this is the traditional klixon form factor: http://www.globalspec.com/NpaPics/63/99672_040120037978_ExhibitPic.jpg
ok -I've seen bimetal switches, just didn't know the name klixon
klixon invented the ones that used a domed bimetal disk that snaps when it reaches a threshold
snap action = no contact arcing
clicks on, clicks off
interesting. that's what they use in our teapot/water-heater thing
JymmmmEMC: Is this you? http://video.google.com/videoplay?docid=8010116144503943765
ooh neat stuff on awallin's blog today
* jmkasunich envies
don't know when the whole place will be insulated..
or built for that matter ;)
but concrete tomorrow
you have good weather up there?
this weekend - yes.
the winter sucked.
it was in the 60s yesterday. cloudy today with a bit of rain.
off and on
still pretty warm
we got the foam and tubing down yesterday
in fact, I should get back outside and finish these parts before it cools off
heh - have fun.. isn't part of the problem - oil floats on water?