Hello Guest it is April 25, 2024, 03:52:45 PM

Author Topic: PoKeys button to set spindle speed  (Read 3517 times)

0 Members and 1 Guest are viewing this topic.

Offline thosj

*
  •  532 532
    • View Profile
PoKeys button to set spindle speed
« 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?
--
Tom

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: PoKeys button to set spindle speed
« Reply #1 on: July 08, 2010, 06: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

Offline thosj

*
  •  532 532
    • View Profile
Re: PoKeys button to set spindle speed
« Reply #2 on: July 09, 2010, 10: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.
--
Tom

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: PoKeys button to set spindle speed
« Reply #3 on: July 09, 2010, 12:20:15 PM »
try the formula as a+1000


Hood

Offline thosj

*
  •  532 532
    • View Profile
Re: PoKeys button to set spindle speed
« Reply #4 on: July 09, 2010, 03: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.
--
Tom

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: PoKeys button to set spindle speed
« Reply #5 on: July 09, 2010, 03: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 ;D

Hood