axis status
want to use a pyvcp led to show movement.
Thanks !
kenneth
Please Log in or Create an account to join the conversation.
www.linuxcnc.org/docview/html/man/man9/comp.9.html
Please Log in or Create an account to join the conversation.
float in. don't think i can use u32 or s32(floats ?) with leds.
if so, please point to where i can read more.
Please Log in or Create an account to join the conversation.
motion.current-vel will show the Current cartesian velocity as a float.
John
Please Log in or Create an account to join the conversation.
Thanks, i tried that but leds are bits(right ?)and comp wants
float in.
Exactly. Comp takes float in (axis.N.joint-vel-cmd is a float) and outputs a bit on comp.N.equal if the two pins are equal.
So,
setp comp.N.in0 0
net v1 axis.N.join-vel-cmd => comp.N.in1
net led-not comp.N.equal => not.N.in
net led not.N.out => pyvcp.led.N
Please Log in or Create an account to join the conversation.
the comp i read didn't use setp, used loadrt.
never used setp. will look more into it.
T'ANKS
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
what does what in this:
loadrt comp count=3
addf comp.0 servo-thread
setp comp.0.in0 0
net x1 axis.0.joint-vel-cmd => comp.0.in1
net xled-not comp.0.equal => not.0.in
net xled-equal not.0.out => pyvcp.x-moving
all the doc i find are not too specific. i can't see why
axis.0.joint-vel-cmd can't be connected to pyvcp.x-moving
directly. but i have trouble with what John got to work for
my pause/resume. maybe this explains it better. toggle ?
what does it toggle ? i to 0 - true to false ? toggle the state ?
mode ? my lights
thanks again !!!!
kenneth
Please Log in or Create an account to join the conversation.
Andy left out the loadrt and addf part and you need to set in0 with setp.
John
yea, saw that. also spelled joint as join
but didn't know setp set in0. no idea
what setp(set parameters) do. so i actually setting
set in0 to true or false ? with 0(false)
Thanks
kenneth
Please Log in or Create an account to join the conversation.
With zero hysteresis, the output is true when in1 > in0.
www.linuxcnc.org/docview/html/man/man9/comp.9.html
John
Please Log in or Create an account to join the conversation.