586,116 active members*
3,338 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2016
    Posts
    9

    NEED HELP WITH BUTTON SCRIPT

    Hello,
    i am not good in programing so maybe i have stupid question but i dont know how to do it.
    So i need a button script that put ON Output 4 until INPUT 1 is active ,then stop the power to output 4,
    i tryed this :
    DoOEMButton(233)
    IF IsActive(INPUT1)then
    DoButton(234)
    DoButton(0) // to start cycle

    But this works only if i activate INPUT1 it doesnt wait it.
    this si to control DC Motor with switches . So i dont know how to do it or how to LOOP the "IF" until is active INPUT1.
    And can someone tell me what is commad to WAIT UNTIL "SWITCH IS ON" or somethink like that .
    Sorry for poor English.
    Thanks .

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: NEED HELP WITH BUTTON SCRIPT

    I told you on the Machsupport forum. You need to use the macropump.

    Save your code as macropump.m1s, and enable the macropump in General Config, and it will run your code 10 times per second.
    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)

Similar Threads

  1. How to attach C# script to a screen button ??
    By Beefy in forum UCCNC Control Software
    Replies: 5
    Last Post: 08-31-2015, 02:37 AM
  2. VB Script
    By Montabelli in forum Mastercam
    Replies: 0
    Last Post: 08-20-2015, 12:11 AM
  3. Edit button script
    By dukedunham in forum Mach Mill
    Replies: 4
    Last Post: 01-25-2015, 01:28 AM
  4. Easiest way to make button run VB script
    By adamchapman in forum Mach Software (ArtSoft software)
    Replies: 9
    Last Post: 08-16-2010, 08:38 PM
  5. VB6,VB.net,VB script,What one???
    By hydrospin01 in forum Visual Basic
    Replies: 11
    Last Post: 05-25-2008, 02:09 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
  •