Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:10:31 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  PoKeys (Moderator: NeoTO)
| | |-+  PoKeys button to set spindle speed
Pages: 1   Go Down
Print
Author Topic: PoKeys button to set spindle speed  (Read 677 times)
0 Members and 2 Guests are viewing this topic.
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« on: July 07, 2010, 06:04:17 PM »

I have 13 buttons on a panel and all are either set to keyboard emulation or are set to OEMTrigger (digital input) and I wrote brains to have them do things I want. I want one button to set spindle speed to 1000 and I can't figure out how to do it. How do I write a brain to have OEMTrigger 8 set the spindle speed to 1000? Not turn it on, I have a button for that, but set the speed to 1000. I don't know what that "DRO", or whatever it is, is called to write a brain to set it. Can anyone help me with this?
Logged
Hood
Active Member

Online Online

Posts: 17,347


Carnoustie, Scotland


View Profile
« Reply #1 on: July 08, 2010, 05:36:00 PM »

Brain would likely go like this

Oem Trig 8 > Formula > OemDRO 817

Put a value of 1000 for the formula and it should work.

Hood
Logged
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #2 on: July 09, 2010, 09:24:35 AM »

Hmmmm, can't get it. I have formula set to (1000). So it's OEMTrigger14-Formula (1000)-OEMDRO:817. Feed is set to 1000 when Mach 3 starts, but button does nothing.

There is no OEMDRO 817 in pulldown, and type in box says 1000-2255 valid, but checking and typing 817 gets above behavior.

And.....is the formula simply set to 1000, (1000), or a=1000, or something else? (1000) makes it set 1000 on Mach startup, so OEMDRO:817 must be good! Maybe 1000 does that, too, don't remember. a=1000 doesn't do anything.

Attached the brain, it's the bottom button, OEMTrigger 14 so it's easy to edit without having to redo the whole brain.

* T_Buttons.brn (3.71 KB - downloaded 64 times.)
Logged
Hood
Active Member

Online Online

Posts: 17,347


Carnoustie, Scotland


View Profile
« Reply #3 on: July 09, 2010, 11:20:15 AM »

try the formula as a+1000


Hood
Logged
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #4 on: July 09, 2010, 02:07:48 PM »

That did it! I'll eventually figure these brains out! Good thing I don't have to do complicated ones!!

Thanks, Hood.
Logged
Hood
Active Member

Online Online

Posts: 17,347


Carnoustie, Scotland


View Profile
« Reply #5 on: July 09, 2010, 02:22:52 PM »

Ha ha, well when I need to do a brain I get it all worked out eventually then never need to do another for a long time. Then when I do need another I have forgotten all I learned so have to start again Grin

Hood
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!