Hello Guest it is March 29, 2024, 08:48:52 AM

Author Topic: Feed and Spindle Bargraph with LEDs?  (Read 8416 times)

0 Members and 1 Guest are viewing this topic.

Feed and Spindle Bargraph with LEDs?
« 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

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Feed and Spindle Bargraph with LEDs?
« Reply #1 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.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Feed and Spindle Bargraph with LEDs?
« Reply #2 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
« Last Edit: July 04, 2013, 10:47:17 PM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Feed and Spindle Bargraph with LEDs?
« Reply #3 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
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Feed and Spindle Bargraph with LEDs?
« Reply #4 on: July 05, 2013, 06:05:52 AM »
good job Brett, I like!
Re: Feed and Spindle Bargraph with LEDs?
« Reply #5 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?

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Feed and Spindle Bargraph with LEDs?
« Reply #6 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.
« Last Edit: July 05, 2013, 09:12:24 AM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!