feed convertion

More
23 May 2011 10:50 #9992 by piasdom
feed convertion was created by piasdom
in my ini i have MAX_LINEAR_VELOCITY = 0.335.
how can i convert this to IMP? or a better question;
can i convert the ini info to be use by hal pins ?
i want to use the motion.current-vel pin(or another) to display velocity(feed)
and it shows the velocity but by 0.335. not 20 IMP.
i've read around the forum but only saw a couple of places
that is may not be possible because hal doesn't take formulas[ ]

Thanks,
Kenneth

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

More
23 May 2011 17:31 #10001 by BigJohnT
Replied by BigJohnT on topic Re:feed convertion
Kenneth,

All you have to do is use mult2 and multiply the feed rate (inches per second) by 60 to get IPM.

John

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

More
23 May 2011 18:13 - 23 May 2011 18:15 #10004 by piasdom
Replied by piasdom on topic Re:feed convertion
found below in docs but can't get pass arrow.

Load the realtime components.

loadrt ddt count=1
loadrt mult2 count =1
loadrt abs count=1

Add the functions to a thread so it will get updated.

addf ddt.0 servo-thread
addf mult2.0 servo-thread
addf abs.0 servo-thread

Make the connections.

setp mult2.in1 60 <
pin "mult2.in1" not found. changed it to mult2.in0 but same error
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


www.linuxcnc.org/docview/html/hal_hal-examples.html
Last edit: 23 May 2011 18:15 by piasdom.

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

More
23 May 2011 18:18 #10005 by BigJohnT
Replied by BigJohnT on topic Re:feed convertion
That's because the manual had a typo...

mult2.0.in1

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

More
23 May 2011 18:21 - 23 May 2011 18:24 #10006 by piasdom
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.
Last edit: 23 May 2011 18:24 by piasdom.

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

More
23 May 2011 18:27 #10007 by BigJohnT
You just have to multiply motion.current-vel by 60 for that.

John

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

Time to create page: 0.238 seconds
Powered by Kunena Forum