Appropriating an action to new buttons added to screen set


Results 1 to 8 of 8

Thread: Appropriating an action to new buttons added to screen set

  1. #1
    Member Rustyj's Avatar
    Join Date
    Aug 2020
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Appropriating an action to new buttons added to screen set

    Hi,
    I want to move X,Y&Z axis individually by 0.5mm incrementally using new buttons on the screen,I would like to know how to action this,
    The movement would be in both directions (+&-),
    thanks in anticipation

    Similar Threads:


  2. #2
    Member awerby's Avatar
    Join Date
    Apr 2004
    Posts
    5728
    Downloads
    0
    Uploads
    0

    Default Re: Appropriating an action to new buttons added to screen set

    What kind of CNC control software are you asking this about? They all work somewhat differently.

    [FONT=Verdana]Andrew Werby[/FONT]
    [URL="http://www.computersculpture.com/"]Website[/URL]


  3. #3
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Appropriating an action to new buttons added to screen set

    In Mach3, using a screen designer, add a button that calls an M Code, like M555

    Create a macro called M555.m1s, with this code:

    Code:
    DIM XMove
    
    XMove = 0.5
    
    CurrentAbsInc = GetOemLED(48) ' Get the current G90/G91 state
    
    Code "G91"
    
    Code  "G0 X" & XMove
    While IsMoving()
    Wend
    
    If CurrentAbsInc = 1 Then
    Code "G90" 
    End If


    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  4. #4
    Member Rustyj's Avatar
    Join Date
    Aug 2020
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by awerby View Post
    What kind of CNC control software are you asking this about? They all work somewhat differently.
    Hi,
    Am using Mach3



  5. #5
    Member Rustyj's Avatar
    Join Date
    Aug 2020
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ger21 View Post
    In Mach3, using a screen designer, add a button that calls an M Code, like M555

    Create a macro called M555.m1s, with this code:

    Code:
    DIM XMove
    
    XMove = 0.5
    
    CurrentAbsInc = GetOemLED(48) ' Get the current G90/G91 state
    
    Code "G91"
    
    Code  "G0 X" & XMove
    While IsMoving()
    Wend
    
    If CurrentAbsInc = 1 Then
    Code "G90" 
    End If
    Hi,
    Thanks for your reply,
    If I have got this right ?,
    I could set up six buttons,
    Two by each axis thus enabling + or- movement in that axis ?,
    Thanks in anticipation.



  6. #6
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Appropriating an action to new buttons added to screen set

    Yes, 6 buttons, and 6 macros.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  7. #7
    Member Rustyj's Avatar
    Join Date
    Aug 2020
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Appropriating an action to new buttons added to screen set

    hi,
    thanks for the info,
    do you know if its poss to incorporate a counter either on the button or adjacent to it to register how many increments have been used,
    v new to this, so green as grass!!!,
    all help/advice much appreciated,
    thanks



  8. #8
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Appropriating an action to new buttons added to screen set

    Yes. You need to add a user label, and read it when you press the button, then add the increment and re-write to it.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Appropriating an action to new buttons added to screen set

Appropriating an action to new buttons added to screen set