pyVCP doesn't update if machine 'stopped'?

More
24 Jan 2014 01:08 - 24 Jan 2014 01:09 #43112 by tomws
I'm trying to make a simple 'axis' (AKA 'joint') status display by adding LEDs to the pyVCP JOG buttons example. The status I'm interested in is 'fault', homed, and positive limit. Homed works fine, but it seems as if limit flickers momentarily but then the LEDs don't seem to be updated after Axis puts the machine in stopped state (due to hitting the limit). Is there a way to keep the pyVCP display updated even in stopped state?

Here are my updates...
In jog_buttons.xml I have...
<pyvcp>
...
<hbox>
...
<!-- Status LEDs -->
<led>
<halpin>"x_fault_led"</halpin>
<size>20</size>
<on_color>"red"</on_color>
<off_color>"green"</off_color>
</led>
<led>
<halpin>"x_homed_led"</halpin>
<size>20</size>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</led>
<led>
<halpin>"x_limit_led"</halpin>
<size>20</size>
<on_color>"red"</on_color>
<off_color>"green"</off_color>
</led>
...
</hbox>
...
</pyvcp>

In my .postgui.hal file I have...
...
# Axis status leds
net x_fault halui.joint.0.has-fault => pyvcp.x_fault_led
net x_homed halui.joint.0.is-homed => pyvcp.x_homed_led
net x_limit halui.joint.0.on-hard-max-limit => pyvcp.x_limit_led 

Thanks in advance,
Tom
Last edit: 24 Jan 2014 01:09 by tomws.

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

Time to create page: 0.262 seconds
Powered by Kunena Forum