Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 07:32:40 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  ON/OFF buttons
Pages: 1   Go Down
Print
Author Topic: ON/OFF buttons  (Read 1258 times)
0 Members and 2 Guests are viewing this topic.
madeintheshed
Active Member

Offline Offline

Posts: 4


View Profile
« on: September 02, 2009, 02:01:22 AM »

Greetings.

Is there a way that I could create seperate "on" and "off" buttons for various functions?
For example, I want to assign different keyboard shortcuts to "Optional Stop" so that one button will turn it on, and another will turn it off. This is so that I can use a hardware switch connected to a keyboard encoder. I would rather not use the toggle fuction that that button already uses.
Looking at the screen designer software, it apears that for that function (op stop) there is only a toggle on/off via the same button.
Could someone point me in the direction to find my solution please.

Jon
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: September 09, 2009, 09:45:39 AM »

You can check the state of Optional stop in VB

'turn off M01 bnt
Code:
if getOEMLED(65)=true Then
'Optional stop is on turn it off
DoOEMButton(177)
End If

'turn on M01 bnt
Code:
if getOEMLED(65)=false Then
'Optional stop is off turn it on
DoOEMButton(177)
End If

Logged

Regards, Jason Blake

www.Fusioncnc.com
madeintheshed
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #2 on: September 15, 2009, 08:05:08 PM »

Yeah, that works!
Just had to add onother button so that there is one for off, and one for on.

Now, the other buttons......

Does anyone know the OEM code for Single Block/Step. I cant see it in the list of OEM codes.
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,612



View Profile WWW
« Reply #3 on: September 15, 2009, 08:53:10 PM »

82
Logged

madeintheshed
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #4 on: September 15, 2009, 09:01:52 PM »

Thanks.

But, isnt 82 for the LED?
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,612



View Profile WWW
« Reply #5 on: September 15, 2009, 09:07:34 PM »

Oops, thought that was what you wanted. Try 1004.
Logged

madeintheshed
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #6 on: September 17, 2009, 06:30:38 AM »

Yeap. Thats the one. Thanks
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!