GladeVCP

More
13 May 2011 18:22 #9790 by PKM
Replied by PKM on topic Re:GladeVCP
OK, I got it started. Thanks!

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

More
01 Sep 2011 12:29 #12883 by piasdom
Replied by piasdom on topic Re:GladeVCP
how do i connect a led to some action. (like estop)
looked all thru the properties for the led and can' t find
how to point to anything.


Thanks
kenneth

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

More
01 Sep 2011 15:25 #12888 by psha
Replied by psha on topic Re:GladeVCP
What's purpose to connect Led (display element) to Action (like ESTOP)?
What would it display?

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

More
01 Sep 2011 15:29 #12889 by piasdom
Replied by piasdom on topic Re:GladeVCP
just a led to show estop(axis homed-whatever) is activated.

Thanks
kenneth

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

More
01 Sep 2011 15:59 #12891 by psha
Replied by psha on topic Re:GladeVCP
Don't mess Actions (like estop) and HAL pins. Actions are used to perform sumething in response to user interaction so they are kind of 'output' widgets.
Leds are used to display state of some HAL pins.
I really can not imagine how to connect them...

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

More
01 Sep 2011 16:11 #12892 by piasdom
Replied by piasdom on topic Re:GladeVCP
cool, thanks



kenneth

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

More
01 Sep 2011 18:03 #12897 by piasdom
Replied by piasdom on topic Re:GladeVCP
thinkin' about dat.......
what are the leds used for in glade if you can't
connect them to actions ?

Thanks
kenneth

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

More
01 Sep 2011 20:58 #12900 by psha
Replied by psha on topic Re:GladeVCP
Again...
What's purpose to indicate when ESTOP is _executed_?
Actions are not related to state - they represent some actions, like triggering estop, power, etc
If you need to represent _state_ you need something like halui pins (or use internal GStat object)

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

More
02 Sep 2011 12:28 #12906 by andypugh
Replied by andypugh on topic Re:GladeVCP
To put what psha just said in different words:
PyVCP pins can only display or set the values of HAL pins. So, a PyVCP LED will light up if the value of the HAL pin that it is connected to in the HAL file is high.

Similarly, when you operate a PyVCP control, it changes the value of its corresponding output HAL pin.

GladeVCP can do this, just the same as PyVCP. However GladeVCP also supports Actions. An action would be something like calling an executable Python file, for example. So, you could have a GladeVCP button that runs a script file, but without having to set a HAL pin connected to an MDI_COMMAND pin which is in turn linked to a custom M-code which contains the file. The button can call the file _directly_.

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

More
06 Sep 2011 10:08 #13000 by piasdom
Replied by piasdom on topic Re:GladeVCP
so the leds in glade are not used ? i don't need them to
be connected to an action, just light up when 'say' an axis
is moving or homed''
as i have in pyvcp.
Thanks

kenneth

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

Moderators: mhaberlerHansU
Time to create page: 0.118 seconds
Powered by Kunena Forum