Machsupport Forum

Mach Discussion => Mach Screens => Works in progress => Topic started by: ger21 on June 24, 2008, 09:04:49 AM

Title: Throwing together a simple Router Screen
Post by: ger21 on June 24, 2008, 09:04:49 AM
Working on a simple router screen set for a dual Z axis router I'm designing. This is pretty close to what I want. Just need to wait for the new Flash docs to figure out how to create it in Flash. :)
Title: Re: Throwing together a simple Router Screen
Post by: Overloaded on June 24, 2008, 09:24:05 AM
MAN that looks GOOD !
Would like to have one similar for TURN.
GREAT work.
Thanks,
RC
Title: Re: Throwing together a simple Router Screen
Post by: Chaoticone on June 24, 2008, 10:35:41 AM
That looks great Ger! Good job.

Brett
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on June 24, 2008, 11:20:11 AM
Here's the "Load Programs" screen. Gcode on the left with a large toolpath window.
Title: Re: Throwing together a simple Router Screen
Post by: Overloaded on June 24, 2008, 12:00:20 PM
Looks GREAT !
Good sized buttons for a Touch screeen too.
Keep em' coming,
RC
Title: Re: Throwing together a simple Router Screen
Post by: poppabear on June 24, 2008, 04:55:57 PM
Very good work indeed!!

Scott
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on June 30, 2008, 10:14:18 PM
Getting closer. I'm using RealDraw Pro to do the rough layout, then I'll export exerything and bring it into Flash. This may be the final "Run" screen.
Title: Re: Throwing together a simple Router Screen
Post by: Overloaded on June 30, 2008, 10:54:20 PM
LOOKING GOOD....Hope you make it available when done. Any chance ?
RC

And....If this is what you call "THROWN" together, it's beyond imagination what it would be if you took your time !  ;)
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 01, 2008, 05:49:41 AM
LOOKING GOOD....Hope you make it available when done. Any chance ?


Probably, but it'll be a while. Still need to learn Flash, and I don't have a lot of free time. I'm just trying to get it layed out before my 30 day trial of RD Pro runs out. ;) But I'll probably need to buy it to finish up.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 01, 2008, 10:35:54 PM
Settings page. Not sure what else to add just yet.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 03, 2008, 11:47:07 PM
While waiting for the new Flash docs, I figured I'd try to throw this together in Screen4. Here's the start running in Mach3.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 04, 2008, 12:28:03 AM
OK, ran into a problem. The buttons don't want to work right. They either look right, but go behind the background after clicking them, or I can get them to stay in front, but they don't look right. I believe I know the workaround, though. I'll find out if it works in the morning.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 05, 2008, 11:34:40 AM
OK, after banging my head against the wall for a few hours, I figured out something. My laptop, running without the driver installed, is not the best place to test the screens I'm building, as not everything works correctly. I wasted a lot of time trying to figure out what was going on, but when I tried the screen on my desktop, everything seems to work as expected, with one exception. The triangular LED on my start buttom is a two color .png, and it works intermittenly. sometines it displays red instead of green, and vice versa. But everything else that I have done seems to work correctly so far. The Load Programs screen is complete, the Run screen works, but everything to the right of the DRO's is not implemented yet, but the jog controls work. And nothing works on the Settings screen except the buttons to switch back to the other screens. But it's pretty cool so far. Anyone want to do some beta testing??
Title: Re: Throwing together a simple Router Screen
Post by: Chaoticone on July 05, 2008, 03:02:56 PM
Looking real nice Gerry, great work.  :)

Brett
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 06, 2008, 08:45:21 AM
If I hide the menu bar using my buttons (or using general config), the screen moves up, but doesn't fill the bottom. Is there a fix for this, other than making the screen bigger? I wish I'd have known this, because I don't have the time to go back and move everything.

EDIT: I was thinking I needed to redo the whole thing in RealDraw Pro, but I think I can just in increase the size in Screen4. Since I'm using a single background image with invisible button images, I'll just need to move or stretch the button images a little.

On another note, in the next few days I'll relabel the buttons and create a more generic screen without the two Z axis, which would probably work better for 99% of the users out there. I'll release that one when it's ready.

Any feature requests should be made now, before I do it. I'll be changing about 5 buttons on the Run screen, and can add 1 or two (three?) more. And I can add some stuff to the settings screen if anyone needs anything else.
Title: Re: Throwing together a simple Router Screen
Post by: poppabear on July 06, 2008, 09:13:49 AM
when you hide your menu buttons then goto
Under General, tick or untick the "Auto Screen Enlarge"
close Mach, and reopen see what happens

scott
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 06, 2008, 09:31:36 AM
when you hide your menu buttons then goto
Under General, tick or untick the "Auto Screen Enlarge"


scott

You can't, it's hidden. :) It is checked, though. The only thing I can do, is turn on the menu, go to config, turn off auto enlarge. Restart Mach, go to config. Turn off menu, turn on auto enlarge. Restart. Menu is gone, but space on the bottom is there.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 06, 2008, 09:57:41 AM
Tried inreasing the height of the background in screen4, and it doesn't change anything. Although if different screens have different size background images, the locations are all based on the largest ones. I have my images sized to 1024x768 (they're 1280x1024 .pngs) in Sceen4. I changed one to 1024x800, and the smaller ones had a larger gap at the bottom, but the 1024 x 800 still had the same gap at the bottom.

So unless this can be fixed, turning off the menu doesn't gain anything, other than maybe some security.
Title: Re: Throwing together a simple Router Screen
Post by: penmaker1 on July 06, 2008, 12:03:41 PM
gerry,

What I did was add two buttons on the diagnostics page, or where ever you like, to hide or unhide the menu.  On my lathe screens they are hidden buttons right next to the reset button.  They don't show through the bitmap but they are there and they work nicely to hide or unhide the menus.  That way I can have Mach3 configured to hide the menus but when I need them I can turn them back on with a single mouse click or touch of the styles on the screen.

John Guenther
'Ye Olde Men Penmaker'
Sterling, Virginia
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 06, 2008, 12:29:27 PM
I added some stuff to the Settings page. I think I need to add an MPG axis select button and LED's, but that should be it. I'll need to tuck them in there somewhere.

You can see the space I'm getting at the bottom with the menu off.
Title: Re: Throwing together a simple Router Screen
Post by: budman68 on July 06, 2008, 12:36:25 PM
Very nice job, Gerry-
Title: Re: Throwing together a simple Router Screen
Post by: penmaker1 on July 06, 2008, 02:31:04 PM
Ok Gerry,

It does the same thing to me  if the bit map is other than the correct size for the screen and I have the auto screen enlarge checked on the General Config screen.

As I said, may shop computer has a 640x480 10.4" LCD display and with the bitmap sized for that screen it works as you want without wasting space at the bottom when the menu's are turned off.  When the menus are on, the entire screen is moved down by the hieght of the menu line.

I can scend you a couple of pictures off line to show the results if you want them.

John Guenther
'Ye Olde Pen Maker'
Sterling, Virginia
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 07, 2008, 08:47:16 AM
OK, here it is, ready for testing. Extract the bitmaps (.png's) to Mach3\bitmaps\DualZ. Extract DualZ.set to the Mach3 folder.

Couple of things.

The LED in the Start button doesn't always work correctly, especially after pausing and stopping.

The second spindle is actually set to spindle CCW, so you can't use both at the same time without changing the button functions.

You'll need to setup Mach3'3 outputs to match what I have here, or you'll need to change button functions.

Spindle 1 is Output #1, assigned to spindle CW
Spindle 2 is Output #2, assigned to spindle CCW
Coolant1 is Output #3, assigned to Mist.
Coolant2 is Output #4, assigned to Flood

For the hide menu to be persistent when closing and restarting, you'll need to turn it off in General Config first.

To change the Park position, edit the button script to your liking, it's just two lines of g-code, but you can add more if you want.

Home all button homes Z first, then X and Y together. Edit button script to change.

Swap axis swaps Z for C.

The Auto Zero buttons need to VB script code. They are not doing anything now.

I don't have any way to check the Home /Limits LED's, since I have no machine right now to test them with. Let me know if they work correctly.

Enjoy.

Edit. It won't let me attach it here for some reason, so here it is, http://tinyurl.com/6867lz

Edit. Fixed link
Title: Re: Throwing together a simple Router Screen
Post by: penmaker1 on July 07, 2008, 08:50:53 AM
Gerry,

I just tried the tinyurl and got some sort of comcast error saying the site does not exist.


John Guenther
'Ye Olde Pen Maker'
Sterling, Virginia
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 07, 2008, 08:56:05 AM
Sorry, missed a /

Try again.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 07, 2008, 11:17:01 AM
The X Offset DRO on the settings page was wrong. I fixed it in the zip file. You can change it in Screen4 by right clicking it and setting it to OEM code 47. Or just download it again and copy the .set file.
Title: Re: Throwing together a simple Router Screen
Post by: ger21 on July 07, 2008, 08:34:42 PM
Also fixed the Run button LED (thanks to Greolt), and changed the axis DRO's to all match (3 decimals).
Title: Re: Throwing together a simple Router Screen
Post by: xscsime on February 27, 2009, 07:37:58 PM
Thanks for the link Gerry, I"ll try it this weekend.

Rick