feed convertion
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.
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.
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
Please Log in or Create an account to join the conversation.
mult2.0.in1
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
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.
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
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.