NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum General International LinuxCNC Users Français Pyvcp, un seul bouton pour deux actions

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Pyvcp, un seul bouton pour deux actions

Pyvcp, un seul bouton pour deux actions 06 Mag 2012 01:50 #19872

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
The administrator has disabled public write access.

Re:Pyvcp, un seul bouton pour deux actions 06 Mag 2012 13:48 #19886

J'ai trouvé une réponse ici www.linuxcnc.org/index.php/english/compo...=10&id=8836&start=30

Bonne soirée

Pierre
The administrator has disabled public write access.

Re:Pyvcp, un seul bouton pour deux actions 07 Mag 2012 14:27 #19913

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4117
  • Thank you received: 141
  • Karma: 129
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)
The administrator has disabled public write access.

Re:Pyvcp, un seul bouton pour deux actions 07 Mag 2012 21:50 #19918

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
The administrator has disabled public write access.

Re:Pyvcp, un seul bouton pour deux actions 08 Mag 2012 04:59 #19923

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 86
  • Karma: 134
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
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: darty367
Time to create page: 2.830 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.