feed convertion

More
23 May 2011 19:13 #10008 by piasdom
i think i need to change the xpos-cmd signal.
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 :) axis.0. isn't xpos-cmd not the signal name ? can't see where
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.

More
23 May 2011 19:38 #10011 by BigJohnT
All you have to do to get combined velocity in IPM is:

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.

More
24 May 2011 09:41 - 24 May 2011 11:20 #10022 by piasdom
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?

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 :)
Last edit: 24 May 2011 11:20 by piasdom.

Please Log in or Create an account to join the conversation.

More
24 May 2011 14:21 #10027 by BigJohnT
piasdom wrote:

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.

More
24 May 2011 20:30 #10036 by andypugh
piasdom wrote:

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.

More
25 May 2011 11:36 - 25 May 2011 11:44 #10059 by piasdom
what other pin besides motion.current-vel do i use? i moved val on zero,one and two.
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.
Last edit: 25 May 2011 11:44 by piasdom.

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum