Pyvcp, un seul bouton pour deux actions

More
06 May 2012 08:50 #19872 by finemeca
Bonjour,

En pyvcp, je fais un bouton.
Dans custom_postgui, je lie l'action du bouton.

Mais je souhaite que ce même bouton lance deux actions en même temps :

net home-x halui.joint.0.home <= pyvcp.retour_orig
net home-y halui.joint.1.home <= pyvcp.retour_orig

Comment faire ?

Merci d'avance

Pierre

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

More
06 May 2012 20:48 #19886 by finemeca

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

More
07 May 2012 21:27 #19913 by andypugh
lapenduledargent wrote:

Mais je souhaite que ce même bouton lance deux actions en même temps :


Two functions at the same time is as simple as placing both HAL pins on the same "net" line.

For more complicated actions
www.linuxcnc.org/index.php/english/compo...=10272&limit=6#10272

(I can read French, but I can't confidently write it)

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

More
08 May 2012 04:50 #19918 by finemeca
hello andypugh ,

I did that to order three actions :

net home-x halui.joint.0.home halui.joint.1.home halui.joint.2.home <= pyvcp.origine


Thank you for your help :)

Pierre

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

More
08 May 2012 11:59 #19923 by BigJohnT
If you have homing sequences set up for all axes then you can use the home all pin. The sequence for all the axis can be 0 so they all home at the same time.

halui.home-all bit in

pin for requesting home-all (only available when a valid homing sequence is specified)

John

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

Moderators: darty367
Time to create page: 0.097 seconds
Powered by Kunena Forum