585,679 active members*
4,988 visitors online*
Register for free
Login
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Posts
    189

    Set jog to 10% with button/key

    I have a custom screen I created using bits and pieces from the stock 1024 screen and other screens. I am using screen4.exe

    During tool setup, I am always setting the jog speed dpwn to 5% or 10% by hand in the dro box or by using the jog - and jog + buttons.

    Then I have to set it back to 100% so I can fast jog.
    I keep jog set a 100% most the time

    I would like to have two custom jog speed buttons. 10% and 100%

    I searched but did not see any way to set up a button that can change the jog speed to a certain value.

    Any way to do this?
    If not, this seems like a great feature to add to Mach3 if possible.

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    I think the jog % DRO # is 3, so have the button call a VB script with:

    SetOEMDRO (3,10)


    Which should set OEM DRO #3 to a value of 10.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

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

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

  3. #3
    Join Date
    Mar 2003
    Posts
    35538
    You might have to use:
    Call SetOEMDRO (3,10)
    Not sure.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

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

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

  4. #4
    Join Date
    Jul 2007
    Posts
    189
    Thanks Gerry

    First I have to figure out how to call a vb script
    Never done that before

    Going down to my CNC machine in my shop to have a go at it.

    I'll report back

  5. #5
    Join Date
    Mar 2003
    Posts
    35538
    In Screen 4, set the button for VB Script.
    In Mach3, go to Operator > Edit Button Script and click your button. When the editor opens, put your script in. Click File > Save in the editor, and then close it. If it asks you to save hiddenscript.m1s, choose yes.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

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

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

  6. #6
    Join Date
    Jul 2007
    Posts
    189
    I figured it out using the other screen editor
    I have both screen4 and the other one on the Mach3 site (can't remember the name)

    Anywho, the other editor lets you see the vb code and add vb code when you click on a button.
    BTW it was SetOEMDRO (3,10)

    And so I created 4 new buttons
    Jog 10, Jog 25, Jog 50 and Jog 100
    I then added hot keys for the 4 buttons. Numbers 1,2,3 and 4
    Then I went to my Logitech wireless controller and mapped out the 4 new buttons on the wireless controller.

    Bam!!!
    Now I can choose my jog speeds without using the computer keyboard or the on screen buttons
    Thanks for your help.

    Just got a wireless Logitech F710 game pad for Mach3 use and it is really cool!

Similar Threads

  1. Button function
    By ChattaMan in forum Okuma
    Replies: 2
    Last Post: 11-14-2009, 12:55 PM
  2. Need button
    By ozzie34231 in forum Mach Wizards, Macros, & Addons
    Replies: 1
    Last Post: 04-12-2009, 03:35 PM
  3. the green button
    By msn_jrd in forum Tormach Personal CNC Mill
    Replies: 1
    Last Post: 07-20-2008, 04:02 PM
  4. EZ button?
    By ericmattessich in forum LinuxCNC (formerly EMC2)
    Replies: 15
    Last Post: 04-29-2008, 06:59 PM

Posting Permissions

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