PYVCP format help

More
11 Aug 2011 22:38 #12440 by andypugh
Replied by andypugh on topic Re:PYVCP format help
piasdom wrote:

Thanks, so where do i add this number ? on my net connection in posthal?

I guess so.

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

More
31 Aug 2011 14:42 #12872 by piasdom
Replied by piasdom on topic Re:PYVCP format help
i'm trying to get a feed-override 'number' pyvcp. i have that working but wonder
if i can get it to show 100% instead of 1.00%. i tried setp mult2 but no change.
is this possible, or am i barking at the wrong tree ?



Thanks
kenneth

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

More
31 Aug 2011 15:16 #12873 by andypugh
Replied by andypugh on topic Re:PYVCP format help
You probably need to set the limits of the slider as 0 and 100 in the XML file, then pass the result through a mult2 with one input setp-ed to 0.01 before passing it to the feed-override pin. (sort-of the inverse of what you have, assuming that the PyVCP element is the controller/output, not an indicator.

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

More
31 Aug 2011 16:02 #12875 by piasdom
Replied by piasdom on topic Re:PYVCP format help
isn't that a 'scale' not a 'number' tag. i don't want to adjust the override,
but just display it. or am i wrong ?



Thanks
kenneth

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

More
31 Aug 2011 16:49 #12876 by andypugh
Replied by andypugh on topic Re:PYVCP format help
OK, in that case...
You need to make sure you are using the halui output pin, halui.feed-override.value
www.linuxcnc.org/docview/html/gui_halui.html#r1_2_4
The netting that to one input of a mult2, setp-ing the other, and wiring the output to the PyVCP ought to work.

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

More
31 Aug 2011 16:52 #12877 by piasdom
Replied by piasdom on topic Re:PYVCP format help
well, i had this. but it was still 1.00%



setp mult2.1.in0 100
net over-ride mult2.1.in0 halui.feed-override.value
net per_over pyvcp.override_percent mult2.1.out

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

More
31 Aug 2011 17:00 #12878 by andypugh
Replied by andypugh on topic Re:PYVCP format help
piasdom wrote:

setp mult2.1.in0 100
net over-ride mult2.1.in0 halui.feed-override.value
net per_over pyvcp.override_percent mult2.1.out


Try:
setp mult2.1.in0 100
net over-ride mult2.1.in1 halui.feed-override.value
net per_over pyvcp.override_percent mult2.1.out

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

More
31 Aug 2011 17:24 #12879 by piasdom
Replied by piasdom on topic Re:PYVCP format help
Thanks....had my mult2.1.in0 wrong(mult2.1.in1)


setp mult2.1.in0 100
net over-ride mult2.1.in1 <== halui.feed-override.value
net per_over pyvcp.override_percent ==> mult2.1.out




kenneth

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

Time to create page: 0.181 seconds
Powered by Kunena Forum