Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 09:58:22 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Execute Button Script - how do you use it?
Pages: « 1 2   Go Down
Print
Author Topic: Execute Button Script - how do you use it?  (Read 1696 times)
0 Members and 3 Guests are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #10 on: November 26, 2010, 10:07:27 AM »

Really........

    after all, "How Hard Could IT Be?"

scott Smiley
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/
Rademacher
Active Member

Offline Offline

Posts: 25

Give it a try! How hard can it be?


View Profile
« Reply #11 on: November 28, 2010, 10:44:33 AM »

Thanks to Poppabear.....I got the "Execute Button Script" working.    Since this topic was not real clear to me...I thought I would share the steps I used to make it work.   In fact, I was able to trigger (3) different functions by using If Then statements in my script.

#1 Create (2) VB scripts;
The first script (m666) simply has this statement "SetTriggerMacro (1000)"
The second script (m1000) is the process, or processes, you want to run.

If isActive (OEMtrig1) then
******************X do something *********XX
end if

If isActive (OEMtrig2) then
******************X do something *********XX
end if

If isActive (OEMtrig3) then
******************X do something *********XX
end if


#2 Setup your hotkeys.
ex. Trigger#1 301, Trigger#2 301, Trigger#3 301

#3 Set your ports and pins
ex. oemtrigger#1 port10 pin5, oemtrigger#2 port10 pin6, oemtrigger#3 port10 pin7

#4 Write your Brain using the "execute buttonscript"
ex. oemtrigger#1--->no op---->execute button script
oemtrigger#2---->no op---> execute button script
oemtrigger#3--->no op--->execute button script

hope this helps,
Wayne
Logged
Rademacher
Active Member

Offline Offline

Posts: 25

Give it a try! How hard can it be?


View Profile
« Reply #12 on: November 28, 2010, 11:05:19 AM »

Here is my keypress brain and VB script

Wayne

* keypress brain.brn (10.35 KB - downloaded 88 times.)
* -M1000-.m1s (2.65 KB - downloaded 103 times.)
Logged
Rademacher
Active Member

Offline Offline

Posts: 25

Give it a try! How hard can it be?


View Profile
« Reply #13 on: November 28, 2010, 07:01:55 PM »

Finaly finished.....here's a photo of my finished pendant Grin


* DSCN4860.JPG (89.88 KB, 640x480 - viewed 122 times.)
Logged
budman68
Master of the Custodial Arts, or better known as:
Global Moderator
*
Offline Offline

Posts: 1,994



View Profile
« Reply #14 on: November 28, 2010, 07:16:51 PM »

That is beautiful!  Wink

Dave
Logged

----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    Wink
Rademacher
Active Member

Offline Offline

Posts: 25

Give it a try! How hard can it be?


View Profile
« Reply #15 on: November 28, 2010, 11:09:10 PM »

Thanks, glad you like it.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #16 on: November 29, 2010, 08:03:00 AM »

Nice, did you use the PoPendant auto set up? on the config page? or "Roll your own".

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/
Rademacher
Active Member

Offline Offline

Posts: 25

Give it a try! How hard can it be?


View Profile
« Reply #17 on: November 29, 2010, 12:06:29 PM »

Rolled my own, so I could connect the hardware to fit my needs.

I tried using the LCD and scan matrix keyboard configs but found the encoder become very jerky...appears the overhead of the keyboard scan and LCD was keeping the Pokey to busy for fluid encoder movements. 

To solve the encoder issue, I hacked the 16key keyboard so each button is a indepenent key press....no scan required.  I also disabled the LCD.  These two changes allows the Pokey to provide smooth encoder movements and yet allow the use of all the different key presses Smiley 

Wayne
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #18 on: November 30, 2010, 08:09:03 AM »

fixed that, in version 10.6.2 of the pokeys install from boris site, (he also did a firmware upgrade 2.17 I think), that addressed some of those issues from his end as well.

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/
Rademacher
Active Member

Offline Offline

Posts: 25

Give it a try! How hard can it be?


View Profile
« Reply #19 on: November 30, 2010, 10:18:23 AM »

This great news.....I really want to use the LCD.   

I had the latest pokey plugin, but the pokey firmware was out of date.  I will to the update and give it a try

thanks for the support Scott
Logged
Pages: « 1 2   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!