axis status
- piasdom
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
want to use a pyvcp led to show movement.
Thanks !
kenneth
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23240
- Thank you received: 4914
www.linuxcnc.org/docview/html/man/man9/comp.9.html
Please Log in or Create an account to join the conversation.
- piasdom
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
motion.current-vel will show the Current cartesian velocity as a float.
John
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23240
- Thank you received: 4914
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.
- piasdom
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- piasdom
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
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.
- piasdom
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
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.