Pyvcp, un seul bouton pour deux actions
- lapenduledargent
- Topic Author
- Visitor
06 May 2012 08:50 #19872
by lapenduledargent
Pyvcp, un seul bouton pour deux actions was created by lapenduledargent
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
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.
- lapenduledargent
- Topic Author
- Visitor
06 May 2012 20:48 #19886
by lapenduledargent
Replied by lapenduledargent on topic Re:Pyvcp, un seul bouton pour deux actions
J'ai trouvé une réponse ici www.linuxcnc.org/index.php/english/compo...=10&id=8836&start=30
Bonne soirée
Pierre
Bonne soirée
Pierre
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23314
- Thank you received: 4861
07 May 2012 21:27 #19913
by andypugh
Replied by andypugh on topic Re:Pyvcp, un seul bouton pour deux actions
lapenduledargent wrote:
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)
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.
- lapenduledargent
- Topic Author
- Visitor
08 May 2012 04:50 #19918
by lapenduledargent
Replied by lapenduledargent on topic Re:Pyvcp, un seul bouton pour deux actions
hello andypugh ,
I did that to order three actions :
Thank you for your help
Pierre
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.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7106
- Thank you received: 1177
08 May 2012 11:59 #19923
by BigJohnT
Replied by BigJohnT on topic Re:Pyvcp, un seul bouton pour deux actions
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
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.
Time to create page: 0.062 seconds