there is something funny about how the dots all ended up square on the Mona Lisa
AMD just released all the open docs for 790/780/740 and sb700/710, look for 1 second boot for AMD mainboards! Instant-on for machine controls and UI
my mill goes from power on to user interface up and active in 5 seconds
but of course it's 1983 technology
turkshead is now known as rubins_ass
rubins_ass is now known as rubins
rubins is now known as rubins-ass
rubins-ass is now known as turkshead
Can anyone advise what changes can be made to shutdown scripts to get PC powerdown to complete?
jimlas53: if you are running a realtime kernel, the answer is probably "you can't do that"
the functionality that lets a PC turn off its own power supply tends to cause problems with realtime, so it is usually disabled in a realtime kernel
I thougt I saw an exchange on the users list and a comment regarding the shutdown scripts.
then try whatever that message suggested
I would be a little surprised if it works, but it wouldn't be the first time I've had outdated info
I don't recall the exact discussion, and anything older than about 47 hours fades fast in my memory, but I though the suggestion was regarding the scripts that are executed during linux shutdown.
search here: http://firstname.lastname@example.org/
I think this is what I saw: 2008/09/15 Hi, As far as the shutdown procedure goes, can one find the shutdown script and add force load APM or ACPI so the PC will shut it's self off. The theory being that if you load that stuff just before you are shutting the machine off you don't really care about latency issues anymore -- Organic Engines
in theory that works
but that is far from a step-by-step solution - it assumes you are pretty linux proficient
I've been using linux for about 6 years now, but it would probably take me quite a while to figure that out
I just stick with turning the machine off manually
could always use an unused i/o pin on a parallel port and tie it to the power switch connector through a transistor and resistor and have something in the shutdown script turn that pin on which would trigger the transistor to short the power switch pins together, thus shutting off the machine.
is auto-power-down of the PC particularly important to you for some reason?
but that's a rather inelegant solution.
on any real machine, you are going to have stepper or servo motor power supplies, etc, that need turned off too - the PC's internal power-down can't do that
Right, I wait until I think the hard drive has parked, then hold down the power button until the PC shuts off. I would prefer that the PC shut itself off so I don't have to stand around waiting on it and wondering if it's done. Probably just me, but what can I say? <smile!>
doesn't the screen tell you when everything is done?
No, no prompts or messages
my PC's print a bunch of stuff in text mode during shutdown, the last message is usually "Power down"
This is LiveCD installed, no changes to the base install
more recent versions of Ubuntu, etc tend to try to hide that stuff (trying to make it newbie friendly I think)
I know that stuff (I think it may be called "bootsplash" can be turned off so you see the messages - I usually figure out how when I do a new install, then forget how I did it
Yeah, I've been using Linux since 2003, and I've probably configured to do away with the usplash, but who can remember all that if you don't do it but once or twice?
if you already have a plan for turning off the stepper/servo power, then I guess it would be nice to turn off the PC too
on my machine, I have a master disconnect switch that kills all power, including the PC
so I tell linux to shut down, then when the screen says it is done, turn the big switch
that one switch kills spindle power, stepper power, and the PC, so it makes the machine completely dead and safe to work on
I use Gecko and HobbyCNC controllers, all of them are stand-alone and controlled separately. I turn off the stepper box before anything else, and it is the last thing to get powered on.
Do you think the suggestion would work? Loading the ACPI then shutting down?
it seems reasonable to me, but I really have no idea
if I was going to try to make it work, I'd probably start by fetching and installing one of the stock ubuntu kernels (and modifying the grub menu so I can boot either one)
make sure the regular kernel can turn things off, then look at the modules that is loads, and write a script to load the same ones under the RT kernel
it will probably take a while to figure it out, but when you do you'll know more about linux power management than 95% of users ;-)
I have one of the computers set up to dual-boot so I can do that. Or, I can just force the system to text mode at shutdown, and I'm done!
I'm pretty sure that you get text mode at startup by putting "#defoptions nosplash" in your grub menu.lst
plus put nosplash on each kernel line
(that's what I have on this box)
Yeah, that sounds right. I'll do it.
to be honest, I have no idea if this one goes in text mode at shutdown - its a server, so I never turn it off
good luck - gotta go...
[16:34:17] <frallzor> http://pastebin.com/m340c866c
Row 13; D31
what is this
and why doesnt emc like it
the is no dxx in http://www.linuxcnc.org/docview/html//gcode_main.html#sub:G43,-G49:-Tool
fix or use the correct post processor
im using a generic fanuc im trying to config
but need to know what D generally is to fix =)
in emc it does not exist, probably diameter
the issue is that the part doesnt have any diameter of 31
or any tool or anything
note diameter is set with a different gcode
g43 is a tool setting gcode
are you good at PP? =P
[19:43:57] <Goslowjimbo> http://pastebin.com/m3c323643
This is my hal configuration, the ini and both hal files.
I am trying to get the spi component to function (ispi). So far, I haven't been successful.
[19:48:26] <Goslowjimbo> http://pastebin.com/m21cc4014
This is the ispi component.
I guess I'm pretty clueless as to what the problem is. I've checked the I/O port for control by reverting back to a previous hal file.
do you have a scope so you can check the SPI output pin?
I could exercise each pin and watch it change state. I've moved the addf function around in the hal file to see if I had a wrong order.
Yes. I haven't had anything other than greater than 3 volts on the scope.
it's transitions I'd be looking for, not necessarily voltage
Right, I'm saying there are no transitions, even on the clock.
incidentally, I'd make the iteration variable into a parameter (or copy it to a parameter) so you can see what state ispi thinks it's in
I'll do that.
also, have you tried doing these outputs by hand?
you should be able to setp the write_address and write_data, then setp strobe to 1 to do a write
and if you have a halmeter on the read_data pin, you should see whatever is read backm
How would I do it by hand? Do you mean exercizing the Input pins?
I mean writing to SPI by hand
you can do all of the things your component will need to do by using setp
No I haven't done that.
setp hm2...write_addr blah ; setp hm2...write_data blooey ; setp hm2...write_strobe 1
mess with the setup that way to make sure you're doing what you need done
But doesn't that setting of the address and data and strobe have to happen in one cycle?
you could make a very simple bash script that takes an address and data value and does those three "setp"s
address and data need to be valid when you do the strobe
OK, I was laboring under a wrong impression.
wrong impressions cause a lot of labor :)
and headaches and grief....
Don't know much about Linux, I'll study the bash scripts thing.
oh. it's a simple script with the 3 lines I mentioned above
[20:02:46] <SWPadnos> http://pastebin.com/m47f84762
hopefully I didn't mis-spell anything
copy that somewhere, chmod +x <whatever_you_called_it>, and then run it like <whatever_you_called_it> address data
you may have to use decimal numbers rather than hex, but I'm not sure (don't recall what halcmd can handle)
Thanks. I'll try it right now. The barn is a few miles away, I'll let you know how it goes.
ok. I'll be out for the evening (starting not too long from now), but feel free to report back anyway :)
note that you may need quotes around the numbers if you want to use hex (if halcmd supports that)
Have a nice night, then. I'll try the quotes.
shouldn't be necessary, come to think of it
this isn't Pascal after all :)
weey seems like ill be getting my last parts for the mill on le monday =)
SWPadnos: Oh, you said this is NOT pascal, my bad
whee -- second servo wired, one to go
jepler: Whatcha wiring?
Jymmm: these little (~30W) servo motors for my circuit board mill
jepler: oh, got pics of the mill?
pictures of the new servo mount on the Y axis: http://emergent.unpy.net/01245634880
all my blog posts about zenbot: http://emergent.unpy.net/_tags/zenbot
bbl, time to do the third set of wires
jepler: Wow, the spindle vs dremel runout is huge
jepler: Would have been nice ref had there been a rule placed next to it.
whee, 3 spinning motors
wooh "cheap" acrylic from ebay :P
the servo motors keep going an uncomfortable number of seconds after turning off the incoming AC power
this power supply must have a substantial cap in it
is there a disable?
in whatever driver you're using
there's a software controlled disable
maybe wire that to the PS somehow
betweena couple of pull up/down resisters
jepler: You using a linear or switching PS?
dont happen to have a 120VAC relay do ya?
that's just the thing -- I am cutting the 120VAC
but the DC bus stays high enough to move the motors for several seconds
jepler: Right, wire the relay to the 120 side, when power is cut, have the relay engage a dump resistpr
on the DC side
oh, i see
or wire up a large resistor to ground on the DC side so it dumps quicker.
maybe play with 100K and go from there. Not too much load while running.
jepler, is this the 24V power supply I sold you?
SWPadnos: no, it's another one
still a 24V switcher though?
ok. this one seems to have about 1000 uF caps on the output
err - 1000 uF total that is
whee, 3axes turning with feedback
tuning can wait
jepler: Now to take over the world!!!
that'll have to wait even longer
Well, I think if I was offered the ability to take over the world, I'd say "No thanks", but I'll take an Island or two.
I should figure my home switch wiring next
I should be re-mounting the rails on the 4U box, but that thing is heavy and not a lot of room to maneuver it around - such a pita.
oh screw it... If I get it done I can mount the rest once I get more rack screws.
speaking of "oh screw it", faced with the prospect of writing the hal and doing the tuning for it, I think I lost the urge to try dual loop PID
* skunkworks is in the middle of catfish days.
SOB... of course what I had it set for before was as close as it's going to get.
just for skunkworks I decided not to give up
btw guys, what ya all using as chassis for the electronics?
duct taped shoe box
haha really? =)
toastyde1th is now known as toastydeath
I guess it all depends on the budget
I dont even have a bloody shoebox atm =)
well, maybe a gutted PC case - those are free
the one I have is too gutted
better no case at all than this =P
is dried blood conductive?
toastydeath: Let's see... it has iron and sodium. maybe
most dumpsters here is at the local dump and they kill you for taking stuff
next time i cut myself at work i'll smudge it on paper and get the voltmeter out after it dries
kind of =)
frallzor: where's 'here'?
small town in S Sweden
frallzor: Well, order a pizza, and shove the guts of the computer you're using in the pizza box, then you have a new case you can gut =)
[22:41:43] <Jymmm> http://media.techeblog.com/images/hotready_1.jpg
well the case IS empty
but is far from suitable =)
Hi guys can one of you electronics whizzes cast your eye on this and tell me if it's OK. Problem is I need more volts on Z axis driver only (different make to X&Y) Z will take 80V X & Y only 50V. http://imagebin.ca/view/YWYe5PMv.html
I see 18VAC to Z there
oh wait, missed the tap
nope, still 18VAC =)
How can I get 30 and 48VAC ?
There is a 20V tap
ok, XY between 0 and 30, and Z between 0 and 48
that gets you 30VAC for XY,and 48VAC for Z
Dohh - dozy me :)
Can you see any problem if -ve DC (term 4 on bridge diode) get commoned?
*I* personally don't know for sure, but since you're using a linear PS, I'd try it myself.
YOu're using two bridges, seems reasonable
I'm not doing it intentionally, but don't know if internally in the drives the -ve gets grounded to case or 5V logic ground
Baged Leadshine I beleive
no clue =)
If you let out the magic smoke, you'll know for sure =)
Not mine unfortunately and they are 90UKP (150$) each
that design is wrong. you need a common ground.
(unless your drives have totally isolated inputs, I guess)
What about http://imagebin.ca/view/2PsPaQ1.html
change your voltage markings to 0 (on top), -18, and -48 to see why
with those bridges you lose your common ground, no matter which way you wire it
you need entirely separate transformer taps (or transformers), and then you can wire the grounds together however you like.
looks like a smoke show waiting to happen when the 2 terminal 4's are connected to each other.... wire it up and try a 12 light bulb between the 2 terminal 4's
light means future smoke!
if you can get by with half wave rectification (one diode each) it will work.
but either way, this is not a very good design.
Actually - it's not a tap - it's two seperate windings, that make any difference?
you bet it does
um, draw what you really have :-)
Hang on a mo
[23:43:28] <pilotltd> http://imagebin.ca/view/KLz97jC.html
if t1/t2 and t3/t4 are totally disconnected from one another, you're fine
I still need 30 and 48V, if I join t2 and t3 - back to before isn't it?
you'll get approximately 25,42 after rectification
what voltages do you need?
Could I rectify the 30VAC and the 18VAC then join the resulting DC?
you need 42, 42+25?
yes you can stack the DCs one atop the other, as long as the transformer windings are independent (verify with ohmmeter)
I need 42 & 67 approx
draw us a new one to check then :-)