Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 07:11:14 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Help.about screen designing
Pages: 1   Go Down
Print
Author Topic: Help.about screen designing  (Read 1004 times)
0 Members and 1 Guest are viewing this topic.
borbori
Active Member

Offline Offline

Posts: 11


View Profile
« on: June 25, 2009, 03:39:12 PM »

Hi,

I'm designing a screen for flame-cut machine,
I need 2 image button to directly enable special outputs,for example when pressing button 1on touch screen or clicking on it, enable 5 function be enabled,when depressing that button on touch screen or release the click on it enable 5 be disabled,
and second button is like this,
I need it for some relay controls...
how to do that?

Thanx...
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: June 26, 2009, 10:52:38 PM »

I am not sure what you need but I think you are asking how to make a "Toggle" button.

You only have a "OnPress" in Screen 4, you would need to use Flash to use a "Onrelease" and the other 6 button states.

In Screen 4 you would past VB code on a button to make it toggle, maybe something like this would help you:


Code:
If GetUserLED(1000) = 0 Then

SetUserLed(1000,1)
MsgBox "Turn it on"

Else

SetUserLed(1000,0)
MsgBox "Turn it Off"

End If
Logged

Regards, Jason Blake

www.Fusioncnc.com
borbori
Active Member

Offline Offline

Posts: 11


View Profile
« Reply #2 on: June 27, 2009, 04:02:22 PM »

I am not sure what you need but I think you are asking how to make a "Toggle" button.

You only have a "OnPress" in Screen 4, you would need to use Flash to use a "Onrelease" and the other 6 button states.

In Screen 4 you would past VB code on a button to make it toggle, maybe something like this would help you:


Code:
If GetUserLED(1000) = 0 Then

SetUserLed(1000,1)
MsgBox "Turn it on"

Else

SetUserLed(1000,0)
MsgBox "Turn it Off"

End If

thanx for reply.. yes i mean Toggle button,
but i have 2 outputs for THC Control,
i mean UP and DOWN, for my Flame-Cut cnc machine
how can i assign 2keys for THC up and down (Toggle button), for example pressing the thc up enables output 19, and releasing the button disables output 19, that's about THC Down too, output 20 ...
i don't know how to set THC up and down output ... but i need 2 outputs,one for up,and another for down !


Thanx
Logged
borbori
Active Member

Offline Offline

Posts: 11


View Profile
« Reply #3 on: July 01, 2009, 01:40:15 AM »

help me plz Sad
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!