Machsupport Forum
Third party software and hardware support forums. => PoKeys => Topic started by: thosj on July 07, 2010, 07: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?
-
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
-
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.
-
try the formula as a+1000
Hood
-
That did it! I'll eventually figure these brains out! Good thing I don't have to do complicated ones!!
Thanks, Hood.
-
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 ;D
Hood