Mach Discussion > Mach Screens

"Active" picture possible?

(1/2) > >>

howling60:
Hello all,

I am working on a cnc router that is being placed into a factory production role, and as such, I am trying to make it as "idiot proof" as possible...

I currently have a "pick your part" screen, where the user chooses what part they want to cut from a series of photos, it loads the GCode, takes them back to the program run screen, and then they hit "go"...

I have placed a ticker in the 4th axis DRO, that changes based on what has been selected, but I was wondering if there was a way to have a "hot swappable" image on the screen...

Basically, if the user has chosen part X, I would like to call up a picture of part X on the main screen, as a verification, but if they choose part Y, or part Z, the picture of those parts would be shown instead.

I was thinking of placing LED's underneath a picture, and in my button script, setting the LED, then referencing the LED state from within the picture.. but... not seeing how i can do that.

Any insight/thoughts would be great. ( oh yeah, this is using Screen4 as my designer, making basic screens)

Thanks again!

-Nate

zealous:
Nate,
Great idea with the image and using UserLed's.

Along with what you have on your button and with the UserLED number your using do:

'Part X on the button

Call SetUserLed(1101,1)
Call SetUserLed(1102,0)
Call SetUserLed(1103,0)

'Part Y on the button

Call SetUserLed(1101,0)
Call SetUserLed(1102,1)
Call SetUserLed(1103,0)

'Part Z on the button

Call SetUserLed(1101,0)
Call SetUserLed(1102,0)
Call SetUserLed(1103,1)




So you would have a blank image(or a color of the background) and the image of the Partx,Y,Z next to eachother (two state image LED).
When the user makes a selection have all the UserLED's go to OFF(0) and the one selected to UserLED got to ON(1).

If you haven't worked with two state Image LED's,Benny has a tutorial.

Hope I understood right what you wanted  ;D

zealous:
I'm going to add to this cause I think it's a good idea.

If you create a "Image LED" and in the "OFF" state have a blank image and in the "On" state have the image that you want.
And call to turn them "ON/OFF" with the above code on the three buttons.

You can also more easly do this in a Flash screen  ;D

Scott:
You could also have the 'Off' state image be transparent at a percentage that would make the image look sort of grayed or whited out and the 'On' state be sharp and clear.

poppabear:
A even Cheaper/easier way.......hehehe

Would be, to copy and paste your screen that has you button selections onto 3 other screens. From the main screen, when the user hits the wanted piece, it also flips to an Identical copy of the screen, (on another page), and on that page your Image is nice and pretty, and the others are Grayed out.........
Thus the main screen, all buttons are grayed out, but when selecting, it flips to the identicle screen layout, (just on another page), and the selected picture is there.

Scott

Navigation

[0] Message Index

[#] Next page

Go to full version