On 14/01/2017 23:00, Andrij Senyk wrote:
>You can add a button to Axis with the pyVCP interface
http://www.machinekit.io/docs/hal/pyvcp/ <http://www.machinekit.io/docs/hal/pyvcp/>

Add button it was easy

        <?xml version='1.0' encoding='UTF-8'?>

        <pyvcp>

        <button>

        <halpin>"ok-button"</halpin>

        <text>"OK"</text>

        </button>

        </pyvcp>


but I didnt find any docs about method for example onClick can you help me with more docs with method onClick -> G10 P0 L20 X0 Y0 Z0

Put the MDI command in your ini file
http://www.machinekit.io/docs/config/ini_config/#sub:HALUI-section

Create a postgui.hal file
http://www.machinekit.io/docs/config/ini_config/#hal-section-a-id-sub-hal-section-a

In that net the pyVCP button pin to the halui command
*net on-click halui.mdi-command-NN pyvcp.ok-button*

http://www.machinekit.io/docs/gui/halui/

Possible to add button near Home all or only in right side?

No, only right side with Axis using pyvcp



    or you can just set a User Key with the Axis extensions built into
    Machinekit
    
http://www.machinekit.io/docs/gui/axis-machinekit-enhancements/#user-defined-command-keys
    
<http://www.google.com/url?q=http%3A%2F%2Fwww.machinekit.io%2Fdocs%2Fgui%2Faxis-machinekit-enhancements%2F%23user-defined-command-keys&sa=D&sntz=1&usg=AFQjCNGLg4OqeemU8Kb1akQGCJRmSgRmLg>


Can I rename from User 0 to something else? If yes how?

They are general purpose user keys programmed from the ini file and could command anything.

You could name them if you can program python and tcl, but any time you updated packages you would lose it and have to do it over.


--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to