Machsupport Forum

Mach Discussion => Mach Screens => Machscreen Screen Designer => Topic started by: SteelWolf on July 04, 2013, 08:56:43 PM

Title: Feed and Spindle Bargraph with LEDs?
Post by: SteelWolf on July 04, 2013, 08:56:43 PM
Hi,

I was working the whole day on the Screenset and left room for a a planned Power Display in the style of some Feed and Spindle Speed Bargraphs I've seen.
Like this:
http://www.youtube.com/watch?v=ORR_pQgG0ys

But how can this be realized?
I would use a brain for the calculation.. but Is there a function for LEDs like Boolean Variables that can be set?
Im fairly new to writing macros and brains for mach so I've no real idea how to to this.


Thanks!
Max
Title: Re: Feed and Spindle Bargraph with LEDs?
Post by: ger21 on July 04, 2013, 09:36:51 PM
That screen on YouTube is done in Flash, and is not a standard Mach3 screenset.

I've never tried it, but I guess you could use a series of User LED's to represent your bar graph, and use brains to toggle them on/off based on rpm or feedrate.
You'd probably want to look at the DRO, and if it's greater than a certain value, turn on the LED.
Title: Re: Feed and Spindle Bargraph with LEDs?
Post by: Chaoticone on July 04, 2013, 10:45:27 PM
I have a load meter I did in a set file.  I used DROs.  Each one set to the same oem code and set the ranges of the dros from 0-10%, 10-20% etc. Then set the image path to some different color leds I made........ green to red.  I use it for spindle load. It works good and wish I could show you a video. I'm getting the load from the VFD via modbus and using a brain to set dro.

Brett
Title: Re: Feed and Spindle Bargraph with LEDs?
Post by: Chaoticone on July 04, 2013, 10:49:47 PM
With careful consideration and pre planning you could make it a sweep (half round) gauge I think.

Brett
Title: Re: Feed and Spindle Bargraph with LEDs?
Post by: Ya-Nvr-No on July 05, 2013, 06:05:52 AM
good job Brett, I like!
Title: Re: Feed and Spindle Bargraph with LEDs?
Post by: SteelWolf on July 05, 2013, 06:24:59 AM
Thanks for the answers so far!

@ Brett

Thats exactly what I wanted to do (VFD-> arduino with modbus -> mach3)
What oem code did you use? I don't really see how I can use custom variables here
Or what code range can be freely used for this purpose?

Btw I can't set a range in my DROs? The only thing where I can set a range is a slider.

PS: Does machscreen have a zoom function?
Title: Re: Feed and Spindle Bargraph with LEDs?
Post by: Chaoticone on July 05, 2013, 09:10:33 AM
Yes SteelWolf, exactly, sliders, not dros.  The dro above the slider is a dro though assigned to the same oem code as the sliders..........  :P

Valid User DRO numbers
range from 1000-2254.

I usually start around 2000 myself.  I think some wizards use some above 1000 so starting at 2000 is pretty good insurance they wont be stepping on one another.

good job Brett, I like!
Thanks!  It works well for me.

Thanks
Brett

Have sent you a PM SteelWolf.