587,449 active members*
2,482 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1

    Momentary Button OEM Code

    I require to set a momentary button on my Mach screen to ignite a oxy torch, meaning when I click on the button it sets an output hi then release the button and will go low. Is there an OEM code for this type of button?


    Sent from my iPhone using Tapatalk

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: Momentary Button OEM Code

    No, you'd need to click it twice.
    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

    Momentary Button OEM Code

    Thanks, looking at setting up a button to turn on output4 and led, then turn off button and led in VB code


    Sent from my iPhone using Tapatalk

  4. #4
    Join Date
    May 2013
    Posts
    37

    Re: Momentary Button OEM Code

    Quote Originally Posted by DrivenMachines View Post
    looking at setting up a button to turn on output4 and led, then turn off button and led in VB code
    Code:
    If  IsOutputActive(Output4) Then
        DeActivateSignal(Output4)    'deactivate mach output4
    	SetUSERLED(n,0)              'turn off User Led in Screen - n-number user led
    Else
        ActivateSignal(Output4)      'activate mach output4
    	SetUSERLED(n,1)              'turn on User Led in Screen - n-number user led
    End If

  5. #5

    Momentary Button OEM Code

    Quote Originally Posted by partur View Post
    Code:
    If  IsOutputActive(Output4) Then
        DeActivateSignal(Output4)    'deactivate mach output4
    SetUSERLED(n,0)              'turn off User Led in Screen - n-number user led
    Else
        ActivateSignal(Output4)      'activate mach output4
    SetUSERLED(n,1)              'turn on User Led in Screen - n-number user led
    End If
    Thankyou!

Similar Threads

  1. Momentary ON Switch
    By kolias in forum Open Source CNC Machine Designs
    Replies: 9
    Last Post: 08-21-2013, 12:41 AM
  2. Use of Momentary Switches on VFD
    By db113 in forum Phase Converters
    Replies: 11
    Last Post: 10-11-2009, 11:42 PM
  3. MPG and Momentary Switches?????
    By SPEEDRE in forum CNC Machine Related Electronics
    Replies: 7
    Last Post: 08-07-2009, 03:02 PM
  4. Help with button code please
    By tmead in forum Mach Wizards, Macros, & Addons
    Replies: 4
    Last Post: 10-30-2008, 02:43 PM
  5. Momentary Switch
    By SPEEDRE in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 08-07-2007, 12:34 AM

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
  •