where do I find the list of functions that are available in hal such as power on/off in axis?
cradek_ is now known as cradek
I am trying to setup the power on of the main contactor for the machine and servos and the spindle control. I would like to use the power button in axis. I am most likly blind but I am unable to find where to add this pin.
you can put whatever you want in the chain of events leading to 'machine on'
Where do I find machine on?
I have looked in the hal files etc and I do not see it.
check out the demo_sim_cl config, which has some ladder in the estop chain
I will check ... thanks
the way I have my lathe set up is when I hit f1 to come out of estop, [if the hard estop buttons are out] there is a sequence of three contactors powering on various things, and if the last one succeeds, it has an auxiliary switch that is read back into ladder. only if they all succeed does the estop button in AXIS pop out. then I can turn 'machine on' which enables the servo amps.
this way if there is any fault [such as an estop button is pressed in] you see on the screen that it didn't make it of estop.
also my estop button has a red light in it which comes on when it comes out of estop.
Heh, I've debated when the light comes on
Like, should it come on when estop (hard or soft) is tripped as an indicator, or on so the button is easier to locate
but... I also have a green lit button, so could use that to indicate estop is ready to reset (no triggers)
Jymmm: I think of it as "danger - the machine is active" and also as a way to help locate the button
cradek: Yeah, I can understand that.
cradek: I also have a yellow lamp, so could use it to indicate that system is "live", really haven't drawn out all the controls and logic I want.
it's hard to decide how to do estop.
I like it lit when estop is triggered so when I go WTF?!??! I can look over and see "Oh, estop has been triggered"
but like I said I have a bunch of controls/lamps and just not sure what/why/how yet =)
I want one outlet for vac, for both auto and manual, and when in manual to bypass hard estop chain - still need to think that one out.
but, I also don't want to accidental plugin the spindle into the vac outlet without thinking
I found the demo_sim_cl files in the root file structure. I have looked at all of the files and I still see no referance to the power button. only the Estop.
I do find a referance to this button under halui called halui.machine.is-on. am I able to link this button to a pin in HAL
i see 'net machine-on pyvcp.machine.on halui.machine.on' in your-emc-root/configs/halui_pyvcp/pyvcp.hal
not sure what the effort is tho
cradek: I think we were talking about this a ways back (could have been jepler too)... http://www.linuxfordevices.com/c/a/News/Marvell-SheevaPlug-NAS/
[02:46:21] <tomp> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Halui
as i read it, one signal is an action ( turn machine on ) other is a status ( is on or NOT is on )
jimbo655: on same page "Since the machine on function is really dependent upon the state of estop, we should be able to implement the estop reset from this panel using the on/off pin. The mushroom head twist-to-release will be external motor power"
jimbo655: so it sounds as if there's no separate 'power button',
Pretty much that is it. I am not sure that I need one, except for the one in AXIS.
I am staring from scratch with the control I am trying to AXIS to control the machine and then be able to add hard buttons as I think they are needed. except for E-stop
jimbo655: 'machine on' turns on axis.N.amp-enable-out
what oil would you guys guess would go in my bus's differential?
something stinky I would guess.
that's what came out...
* skunkworks hates the smell of gear oil
Not sure about a Bus but older cars use 90 weight. Not sure a bus dif would need anything different....
I see talk about SAE80W90 GL-5 (GL-5 means for hypoid [sliding] gears)
My wife said my mill has dirty nappies so I had to clean it. now it smells fresh and clean.
the stuff in there doesn't look much thicker than 10W40 - but it might be 18 years old
For a while they were trying lighter weight oils to reduce friction. it might be a lighter weight oil with additives that make it cling to the gears.
this is a '92
unfortunately I don't have much documentation for it.
If I say "setp hm2_5i22.0.pwmgen.03.scale -20000", it works fine, but if I say "setp hm2_5i22.0.pwmgen.03.scale constant.0.out", I get "value 'constant.0.out' invalid for float". constant.0.out is reporting the correct value, according to hal configuration. Does this suggest anything as to where I should look for the trouble?
I forgot to say constant.0.out is reporting the correct *floating point* value.
setp only accepts constants for the value to set, not variable or signal names
and it doesn't do math either
OK, sorry, I also tried the other feature, constant.o.value, which is a parameter read write.
oh, I should be more clear there, you can use an environment variable or ini variable using the various substitution symbols (, ())
this has to be changable. An environment variable?
well, if the scale is a parameter and not a pin, then you can only set it to constant values, you can't connect parameters to anything
yes, you can set it to an env var, but it will not change when the variable changes, it will get the constant value of whatever the variable was at the time of the "setp" execution
so fred=1 / setp foo.bar.param $fred / fred=2 will make foo.bar.param 1, even though fred changed later
Yes, that's what I want, an "occasionally changeable" constant. I thought "constant.n" was to make a pin out of a param? I'm not sure I follow the "$fred / fred=2" part of your example, what is that doing?
Oh, wait, I see
constant is no longer useful, since you can now use setp to directly change pin states
it used to be that the "p" in setp meant "param", but now it's either "pin" or "param" :)
slashes represent carriage returns or separate statements :)
Isn't the advantage of using constant.n that I only have to enter a param once, and then can send it two places?
constant has a param as "input", and a pin as "output"
that output can only be connected to pins, not to params
you can't connect params to signals
so you would only have the advantage of being able to change several pins with a single setp
how about constant.n'ds r/w param value, constant.n.value ?
which sets does quite nicely, with no need to load the constant component, or to add its function(s) to a thread(s)
what about it?
that's the input parameter
isn't it r/w? man constant implies it's r/w?
the one thing about constant is that the changes are guaranteed to happen at a certain time in the thread execution, since the parameter is "forwarded" to the pin only when the function executes
I didn't know we still had constant blocks - that is a holdover from when you couldn't setp a pin
or a signal
yeah in the very early days I think you couldn't sets a signal either
KimK, that means that you can read it back
all parameters can be read (makes no sense to prevent it), but only some can be written
so you can do this:
setp come.parameter 22
halcmd setp some.parameter 22
halcmd show param some.parameter
and you can see that the number printed is what you set it to
for params that might get limited by some internal calculation (like a stepgen max_vel, dependent on its internally calculated max frequency), you can read back the actual value after the component applies any limiting to it
where would the output go if it was just show param some.parameter in the hal file?
it would likely get printed to the terminal
there is no HAL connection between parameters. none.
they are only visible using halcmd (or another utility like it, if someone writes one)
OK, well, maybe I'll have to setp or sets twice then. I'll look at it some more. Thanks for the help, sorry to be dense.
don't worry, we're all dense at times - it just depends on what we're talking about :)
SWPadnos: what do you mean 'at times'
xminlim and xmaxlim if they are the same limit do I just comment the xminlim out?
Do you have to use 2 pins for each limit 1 for Xminlim and 1 for Xmaxlim?
You can wire them all up to one if you wish
xyz min max etc
My problem is if i assign pin 00 to Xmaxlim and Xminlim I get a lik error on startup. do you know how to get around this/
*I* don't, maybe someone else might
jimbo655: can you pastebin.ca line you're trying to run?
Are you looking for the error on startup?
the error is a HAL error pin 5i20.0.in-00 is linked to Xminlim and cannot be linked to Xmaxlim. How do I get arround this my Xminlim and Xmaxlim are the same switch.
what are Xminlim and Xmaxlim? signals names?
it will be faster if you show me part of that hal file you working
they are both linksp <= 5i20.0.in-00-not
I am on two diferent machines with no communication between them.
And one is windows
ok. first. what you are trying to do?
I have a single limit switch for the limits on all axis. I am trying to rename the pins to match my wiring.
I have home switches also but do not think this will be a problem
That is a single for each axis
I would write this: net limit-xy 5i20.0.in-00 => axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in
one signal name is connected to all hard switches
do I include axis 2 for the Z
yes you can
Thank you I will try it......
micges: life is good thanks much.......
from now on, I'm sticking with stainless steel
eric_unterhausen: ouch, that's difficult to machine and hard on the tools!
noel is now known as Guest29584
Guest29584 is now known as Roguish
awallin: but it looks so nice :)
good day all. is git down?
Jeees, that's 4 this week... http://www.nydailynews.com/news/2009/06/28/2009-06-28_tv_pitchman_billy_mays_found_dead_in_florida_home.html
Jymmm: I'm sure there have been more deaths than 4
two 50 year old guys, I'm watching my back
MJ was born 7 days after I was
And ironically their initials spell.... BEMF! You better watch out eric_unterhausen!
whoosh, sound of that one going over my head
BEMF = Billy, Ed, Michael, Farrah == Back EMF, as in what happens when one stepper motor produces when it slows/stops.
you're right, I'm gonna die
eric_unterhausen: Are you a carnivor?
Like a good steak?
I don't eat many, I knew someone who died of mad cow
eric_unterhausen: Well, you'll love this.... add your initial and it's: M Beef!
Which I take as: Mmmmmmmm Beef!
eric_unterhausen: So, no beef for you for at least a week! LOL
or the month of june
ever hear of the story of death in Tehran?
basically says you can't avoid death by skipping meat for a week :)
eric_unterhausen: RIP.... We'll Miss you!
does anything working with mach3 work with emc?
kakeman: ask a more specific question to get a good answer
kakeman: your question is nearly impossible to answer.
yes, very hard to
that's why nobody has answered :-)
maybe i have to read littlebit more and ask less
Roguish: git is up and down. like SWPadnos said on the list, the ISP is having trouble with a router bug but is working on it.
[22:43:59] <skunkworks> http://rc.cis.si/projects/cnc_motion/
did this weekend fly by again>?
what kind of maximum step freqency is reasonable from the parallell port of a reasonably recent computer?
my steppers seems to misbehave beyond 20kHz (1200mm/min) on both X, Y and Z which is odd considering Z requires alot more torque when traversing upwards..
has anyone here tried CNC converting a Seig c0 lathe to use with emc2?
DaViruz: have you run the latency test?
That will tell you how fast you maximum step rate will be