Hello Guest it is November 18, 2019, 03:50:18 AM

Author Topic: Execute Button Script - how do you use it?  (Read 16159 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Execute Button Script - how do you use it?
« Reply #10 on: November 26, 2010, 10:07:27 AM »
Really........

    after all, "How Hard Could IT Be?"

scott :)
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline Rademacher

*
  •  25 25
  • Give it a try! How hard can it be?
    • View Profile
Re: Execute Button Script - how do you use it?
« 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

Offline Rademacher

*
  •  25 25
  • Give it a try! How hard can it be?
    • View Profile
Re: Execute Button Script - how do you use it?
« Reply #12 on: November 28, 2010, 11:05:19 AM »
Here is my keypress brain and VB script

Wayne

Offline Rademacher

*
  •  25 25
  • Give it a try! How hard can it be?
    • View Profile
Re: Execute Button Script - how do you use it?
« Reply #13 on: November 28, 2010, 07:01:55 PM »
Finaly finished.....here's a photo of my finished pendant ;D

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: Execute Button Script - how do you use it?
« Reply #14 on: November 28, 2010, 07:16:51 PM »
That is beautiful!  ;)

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

Dave->    ;)

Offline Rademacher

*
  •  25 25
  • Give it a try! How hard can it be?
    • View Profile
Re: Execute Button Script - how do you use it?
« Reply #15 on: November 28, 2010, 11:09:10 PM »
Thanks, glad you like it.

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Execute Button Script - how do you use it?
« 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
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline Rademacher

*
  •  25 25
  • Give it a try! How hard can it be?
    • View Profile
Re: Execute Button Script - how do you use it?
« 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 :) 

Wayne

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Execute Button Script - how do you use it?
« 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
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline Rademacher

*
  •  25 25
  • Give it a try! How hard can it be?
    • View Profile
Re: Execute Button Script - how do you use it?
« 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