Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:02:57 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Two State Buttons?
Pages: 1   Go Down
Print
Author Topic: Two State Buttons?  (Read 2999 times)
0 Members and 2 Guests are viewing this topic.
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« on: June 09, 2007, 06:15:45 AM »

How do I get "two state" buttons to work with Screen4 ?

I can't seem to get it to work.  Any tips ?

Greg
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #1 on: June 09, 2007, 11:34:40 PM »

Have you watched Benny's video, it shows you how to do this.

Look at the bottom of this page.

http://www.artsoftcontrols.com/artsoft/videos.htm

Graham.
« Last Edit: June 09, 2007, 11:36:29 PM by Graham Waterworth » Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #2 on: June 10, 2007, 01:47:13 AM »

Yes Graham I have seen it.  The 45 second long one demonstrates the "two state button"

However it wont work for me.  Angry  Must be doing something wrong.

This is what I'm doing.  For example a RUN button.

Set a LED and assign a two sided  BMP to it and set function "run"

Then place an IMAGE BUTTON over it and set it to function "run"

Try that in Mach and the button does not change state.

Go back to Screen4 and move the IMAGE BUTTON off the LED. 

Try again in Mach and it now changes state.

Back to Screen4 and move the IMAGE BUTTON to only half cover the LED.

In Mach now the half that is not covered changes state and the covered half does not.  Weird Hey!!!

So any ideas?  Am I doing something very stupid?  Grin

Greg
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #3 on: June 10, 2007, 09:06:04 PM »

Greg,

Mach needs an image there for the button to work correctly.

If you notice in "Simple screen" that the LED intermittently works, that is because I had no image for the buttons.

The work around is to load a transparent image.

You can create your own or use the one provide below.
Just drop that in you bitmap folder and load it for your invisible buttons that are over the "LED buttons".

Mach needs something for a place holder for them to work, that is why you have to use a"clear" image over the LED.

Also check that the button is ontop of the LED in Screen 4  Grin


* A_ClearBnt.png (47.68 KB, 660x440 - viewed 470 times.)
« Last Edit: June 10, 2007, 09:09:45 PM by zealous » Logged

Regards, Jason Blake

www.Fusioncnc.com
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #4 on: June 10, 2007, 10:30:46 PM »


Thanks Zealous.  That work around works just as you said.   Grin

Now my "two state buttons" which should really be called "two state leds" all work as I want.  YAY!!!!

Another question.  I want to apply it to HOLD or PAUSE or FEEDHOLD.

According to the LED list on the wiki  "Pause Active LED"  is 80   and "Pause LED" is 805  but neither work

I know that Art has had to play around with Feedhold a lot to try and keep all users happy. 

Maybe this is why it does not work.  Perhaps it did work in earlier versions.

Any Ideas? ..............  Greg
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #5 on: June 10, 2007, 11:04:56 PM »

Greg,

I dont think that there is any otherway to get the "Feedhold" call from Mach till Art reactivates those.
Hopfully in the next update those LED's will be active again.
Logged

Regards, Jason Blake

www.Fusioncnc.com
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!