feed convertion
this just gives me x movement. can't see what pin
i'm using besides the one i made in hal and pyvcp.
wha do i use halui.,axis.0
net xpos-cmd ddt.0.in
net X-IPS mult2.0.in0 <= ddt.0.out
net X-ABS abs.0.in <= mult2.0.out
net X-IPM abs.0.out pyvcp.feed-rate
when i change it to this. error 'xpos-cmd can not add... already out pin axis.0.motor.pos.cmd. don't know
where i used that pin
![:) :)](/media/kunena/emoticons/smile.png)
i used axis.0.motor.pos.cmd
net xpos-cmd ddt.0.in motion.current-vel
net X-IPS mult2.0.in0 <= ddt.0.out
net X-ABS abs.0.in <= mult2.0.out
net X-IPM abs.0.out pyvcp.feed-rate
Please Log in or Create an account to join the conversation.
setp mult2.0.in0 60
net ips-in mult2.0.in1 <= motion.current-vel
net ipm-out pyvcp.feed-rate <= mult2.0.out
John
Please Log in or Create an account to join the conversation.
the function. so adding 60 to the end of "any" setp will
multiply that function by that number?
and do they have a pin/signal that will show how
much time remains for a program to run ?
p.s. know about when emc2.5 will be out ?
been playing with glade. i'm thinking pyvcp
will be easier for me
![:) :)](/media/kunena/emoticons/smile.png)
Please Log in or Create an account to join the conversation.
Thanks. i found that on the net and thought it was all part of
the function. so adding 60 to the end of "any" setp will
multiply that function by that number?
Nope, setp does not multiply anything it only Sets the Pin to some valid value.
and do they have a pin/signal that will show how
much time remains for a program to run ?
Nope.
p.s. know about when emc2.5 will be out ?
been playing with glade. i'm thinking pyvcp
will be easier for me
Not a clue.
John
Please Log in or Create an account to join the conversation.
got it to work by adding mult2.0.in0 point 0
but i can only do one axis?
i mean i have to do this for the three axis ?
was looking for a combined feed rate.
You might want to consider using scale rather than mult2 (that gives you a factor and an offset)
www.linuxcnc.org/docview/html/man/man9/scale.9.html
For combining the three speeds into a "master" speed, look at
www.linuxcnc.org/docview/html/man/man9/hypot.9.html
Please Log in or Create an account to join the conversation.
even but all three ins' together(changed output to .577). how do i get it to be by
multiplied by 60. i use setp but no effect. this shows .333, what i have in my ini.
net feed-zero hypot.0.in0
net feed-one hypot.0.in1
net feed-two hypot.0.in0 motion.current-vel
net feed-output hypot.0.out pyvcp.feed-rate
want to work on hypot and scale. but one at time.
Please Log in or Create an account to join the conversation.
would this do the same? not much info.
Please Log in or Create an account to join the conversation.
I have almost no idea what you are trying to do, but you are "net"-ing hypot.0.in0 twice there. I doubt that makes any sense.net feed-zero hypot.0.in0
net feed-one hypot.0.in1
net feed-two hypot.0.in0 motion.current-vel
Please Log in or Create an account to join the conversation.
Are you still trying to display the combined velocity for all the axis?
Again, this is all you need... put it all in your postgui hal file.
loadrt mult2
addf mult2.0 servo-thread
setp mult2.0.in0 60
net ips-in mult2.0.in1 <= motion.current-vel
net ipm-out pyvcp.feed-rate <= mult2.0.out
All that other stuff was used/needed before the magic pin motion.current-vel was created by the developers...
John
Please Log in or Create an account to join the conversation.
net feed-zero hypot.0.in0 <==
net feed-one hypot.0.in1 <==
net feed-two hypot.0.in2 <== motion.current-vel
net feed-output hypot.0.out ==> pyvcp.feed-rate
Please Log in or Create an account to join the conversation.