feed convertion

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.

More
25 May 2011 11:53 #10060 by piasdom
been looking around and found feedcomp.N,
would this do the same? not much info.

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

More
25 May 2011 11:54 #10061 by andypugh
piasdom wrote:

net feed-zero hypot.0.in0
net feed-one hypot.0.in1
net feed-two hypot.0.in0 motion.current-vel

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.

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

More
25 May 2011 11:57 #10062 by BigJohnT
Kenneth,

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.

More
25 May 2011 11:58 #10063 by piasdom
sorry, misprint.

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.

More
25 May 2011 12:00 - 25 May 2011 13:40 #10064 by piasdom
BigJohnT wrote:

Kenneth,

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


yes i am. i did get that to work(thanks). but was looking at something andy said to try.
trying to learn this stuff a little at a time:)

this works fine

setp mult2.0.in0 60
net inchPsec-in mult2.0.in1 <== motion.current-vel
net inchPmin-out pyvcp.feed-rate ==> mult2.0.out
Last edit: 25 May 2011 13:40 by piasdom.

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

More
25 May 2011 13:44 #10066 by piasdom
when i use the below and i have offsets, it shows the offset.
axis dro shows 0(zero) and my panel shows .125(x offset).
so this is more complicated then connecting with these
three lines ? would feedcomp.N be better ? not sure how it
works and i'm guessing what it does :)



setp mult2.0.in0 60
net inchPsec-in mult2.0.in1 <== motion.current-vel
net inchPmin-out pyvcp.feed-rate ==> mult2.0.out

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

More
25 May 2011 19:56 #10070 by BigJohnT
I'm not sure what your seeing but motion.current-velocity should not show offsets... maybe some other code you have is adding to it. I watched motion.current-velocity and set all kind of offset and it still showed 0.

John

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

More
25 May 2011 20:27 #10073 by piasdom
i may be wrong about this. when axis plot has zero, i think my panel
is showing command postion. which should be 1/8" off axis plot ?

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

Time to create page: 0.102 seconds
Powered by Kunena Forum