Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 07:37:59 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  need help ! three function on one button
Pages: 1   Go Down
Print
Author Topic: need help ! three function on one button  (Read 475 times)
0 Members and 1 Guest are viewing this topic.
kkquek
Active Member

Offline Offline

Posts: 9


View Profile
« on: November 02, 2010, 09:53:21 PM »

dear sir,
how to make a button to "run,pause,continue" on one button(same button)
because my extend keypad only have 10 button
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: November 04, 2010, 08:21:26 AM »

You can put the following code in your Macro pump,
you can also do this same thing in Brains if you wanted.
I will show you a macro pump example.
Since you didnt specify what your INPUT is, I am going to use INPUT4 as your trigger, change it to what you need.

'////////  Macro Pump code /////////////////////////////

Counter = GetUserDRO(2100)                               'interlock counter dro

If Not GetOEMLED(800) Then                                'if NOT currently estopped
  If IsActive(INPUT4) And Counter = 0 Then
    If GetOEMLED(804) Then                                  'if in a Run State
       DoOEMButton(1001)                                     'hit the pause button
    Else
       DoOEMButton(1000)                                     'hit the Start button ( or continue so to speak )
    End If
    SetUserDRO(2100, 1)
  End If

  If Not IsActive(INPUT4) And Counter = 1 Then
    SetUserDRO(2100, 0)                                      'reset your counter
  End If
End If

'Scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« Reply #2 on: November 04, 2010, 09:35:41 AM »

I guess someone should remind you of the safety concerns of having GO and Stop run from the SAME button?Huh?? surely there is another button on your setup that you could double up instead of start,hold?Huh

(;-)TP
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,616



View Profile WWW
« Reply #3 on: November 04, 2010, 10:36:41 AM »

It's not stop, he's just using cycle start to pause. To resume, you still hit cycle start, so he's just getting rid of the pause button.
Logged

BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« Reply #4 on: November 04, 2010, 11:16:19 AM »

Bad JUJU to have one button that controls stop and start. Safety 101

Hit it once the machine starts motion, hit it again it stops motion.

That is start / stop

(;-) TP
« Last Edit: November 04, 2010, 11:18:33 AM by BR549 » Logged
kkquek
Active Member

Offline Offline

Posts: 9


View Profile
« Reply #5 on: November 05, 2010, 10:15:19 PM »

I'll try that.

Thanks for all the replies!

kkquek
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!