Results 1 to 5 of 5

Thread: Help with button code please

  1. #1
    Registered
    Join Date
    Sep 2008
    Location
    UK
    Posts
    28
    Downloads
    0
    Uploads
    0

    Help with button code please

    I'm struggling here, I'm looking to create some very simple screens to run a bespoke machine, but the code for my buttons is refusing to run ! The screens have been created in mach3screen 2.7, and they open just fine in Mach3 2.63.
    I can open the button code in mach3 using the operator->edit button script and it runs properly. Pressing the button normally doesn't do anything though. The code is very simple at the moment:

    DoButton( 233 )
    DoButton( 1000 )

    Setting up two buttons and allocating them to the two codes works fine, but I really don't want the operator to need to press two buttons. Also I'm stubborn, and the software should be able to do this !

    If I can get this to work i stand a chance of moving forward from here.

    Tim


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    I'd recommend trying version 3.041, as 2.63 is pretty old now and a lot has changed internally in Mach. Also, try coding it this way:

    DoOEMButton(233)
    DoOEMButton(1000)


    or:

    Activatesignal(OUTPUT4)
    DoOEMButton(1000)
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  3. #3
    Registered
    Join Date
    Sep 2008
    Location
    UK
    Posts
    28
    Downloads
    0
    Uploads
    0
    Thanks Gerry, but I've tried DoButton and DoOEMButton, I've tried with spaces around the numbers and without. Even putting just one of them in the code window doesn't work. Putting just the number in the OEM code box just above works fine for single commands with a button push.

    2.63 is the last stable release listed, and 4.04 is listed as development. In our commercial environment I need to be sure that we are working on a stable platform, so am reluctant to take on anything marked as development. Surely buttons have been working in 2.63 ?

    Tim


  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Try using the older screen designer and adding the code in the screen designer.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • #5
    Registered
    Join Date
    Sep 2008
    Location
    UK
    Posts
    28
    Downloads
    0
    Uploads
    0
    OK - not quite sure what's going on here, but I noticed that the VBScript buttons on the other screens didn't work on my laptop development environment either. They do work on the desktop running the machine though, which is strange.

    Tim


  • Similar Threads

    1. GOTO Z button
      By TMaster in forum Mach Mill
      Replies: 10
      Last Post: 05-30-2009, 08:18 AM
    2. Jogging with OEM button
      By jeffrey001 in forum DIY CNC Router Table Machines
      Replies: 0
      Last Post: 06-09-2008, 05:29 AM
    3. E-Stop Button
      By widgitmaster in forum General Electronics Discussion
      Replies: 3
      Last Post: 05-19-2008, 03:41 PM
    4. New Machine Build- EZ button?
      By ericmattessich in forum LinuxCNC (formerly EMC2)
      Replies: 15
      Last Post: 04-29-2008, 01:59 PM
    5. so that is what that button does
      By johnm in forum Test Forum
      Replies: 0
      Last Post: 03-26-2003, 04:43 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.