Hello Guest it is May 10, 2021, 01:49:40 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HL

Pages: 1
1
Mach4 General Discussion / Re: Mach4 LED's
« on: February 12, 2019, 02:42:30 PM »
Just in case anyone wants to do the same, here is the code I used.( No guaranty it will work for you, and No it is most certainly not optimized). Use at your own risk...........

Code: [Select]
if (mc.mcSpindleGetDirection(0) == 1) then
scr.SetProperty("txtBoxCW", "Value", "CW")

elseif (mc.mcSpindleGetDirection(0) == 0) then
scr.SetProperty("txtBoxCW", "Value", "OFF")
else
scr.SetProperty("txtBoxCW", "Value", "CCW")
end

local CoolSig = mc.mcSignalGetHandle(0, mc.OSIG_COOLANTON)
local State = mc.mcSignalGetState(CoolSig)
if State == 1 then
    scr.SetProperty("txtBoxCoolant", "Value", "Coolant On")


else
     scr.SetProperty("txtBoxCoolant", "Value", "Coolant Off")

end

local MistSig = mc.mcSignalGetHandle(0, mc.OSIG_MISTON)
local State2 = mc.mcSignalGetState(MistSig)
if State2 == 1 then
    scr.SetProperty("txtBoxMist", "Value", "Mist On")
else
     scr.SetProperty("txtBoxMist", "Value", "Mist Off")
end

Hope this clarifies things somewhat........

P.S. I find programming very boring and repetitive, but sometimes you just have to do thing your way........I guess.

2
Mach4 General Discussion / Re: Mach4 LED's
« on: February 12, 2019, 02:23:20 PM »
Thinking out loud without knowledge of how easy it is to implement...

Could you use a variable text display where the LED would be? When on, display a period or asterisk in a large font (this would just look like a solid colored square) and when the signal is off display nothing? This would be very minimalist and go along with your flat look of the display.

Mike

You could, but I much rather have text. In the end it wasn't very complicated to do.

Keep in mind this is a work in progress. Not finalized, but slowly getting there.

3
Mach4 General Discussion / Re: Mach4 LED's
« on: February 12, 2019, 10:43:57 AM »
HL-What font are you using in your screen?  I'm a fan of slashed zeros.  Consolas font uses slashed zeros.

Hello buff. For the DRO's, Brave New Era G98. For G-Code, Nouveau IBM.

4
Mach4 General Discussion / Re: Mach4 LED's
« on: February 06, 2019, 01:49:58 AM »
Big Thank You to    Cbyrdtopper.....

I can finally move on.

Got Coolant, Mist, Spindle Direction texts to work perfectly.

Couldn't of done it without you.

LUA is so different than the other languages I've programmed in before.

Thank You.

5
Mach4 General Discussion / Re: Mach4 LED's
« on: February 06, 2019, 12:23:51 AM »
It took a while but I got text to show spindle direction( CW,CCW) and when its OFF.
Feeling good about this. Now to get coolant and mist and if that works I'll be happy.

Thanks for the help.


6
Mach4 General Discussion / Re: Mach4 LED's
« on: February 05, 2019, 09:27:19 PM »
joeaverage,
 I agree with everything you said, including commenting that my sense of style is not NFS's priority. That's perfectly fine. I can work with what they've put together.
I was only seeking help to create a clear and bare bones GUI that has little in the form of distractions. As an engineer I try my best to cut out all the fat. My GUI looks like a throw back of an antiquitated CNC panel, but it is done that way purposely.
I'm just an old fart that can't let go of the past, where flashy framed anything or 3D buttons or bubble gum LED's etc... weren't the norm, but that's just me.
I know many, like all that stuff and I think more power to them.

Thanks for all the help.

7
Mach4 General Discussion / Re: Mach4 LED's
« on: February 05, 2019, 07:02:09 PM »
Hi,

Quote
I wonder if it's because I'm using the hobby/trial version

To my knowledge the only restriction of the Demo version is the length of time  (six minutes) that it will run
before it requires a restart. Absolutely no changes in how the GUI works.

Craig

Thanks for confirmation.

8
Mach4 General Discussion / Re: Mach4 LED's
« on: February 05, 2019, 06:05:25 PM »
Thank you mcardoso. Like I said, this is not completed yet. The screen set will be shared with any one interested when completed. Still having issues implementing Cbyrdtopper's suggestion. I wonder if it's because I'm using the hobby/trial version. I haven't worked on this for couple of weeks now, but will try again tomorrow to see how far I can go. My only other complaint of Mach4 is the raised buttons/frame. That I imagine is a whole other problem.
I'll post if any positive results come out of this.

9
Mach4 General Discussion / Re: Mach4 LED's
« on: January 22, 2019, 07:34:32 PM »
Thanks Cbyrdtopper. I will give it a try. Now as for the "Kind of harsh wanting to ditch Mach4 because of some LEDs IMHO;" comment, I disagree. We're both entilled to our differing opinions, but I do have a good reason for saying that.
 I build Machine tools and retrofit some with Mach software. All of my customers have asked for a clean, non hobby looking GUI. So Yes, those goofy looking LED's that look like candy are a non starter.
Newfangled should of thought of that especially when the competition is getting better and better every year that goes by.
Like I said, I'm new at Mach4 and I just started playing with it, less than a day, and there are many things I like about it.
So I'll give it a try and if successful I'll let you know.

Again, thank you.

10
Mach4 General Discussion / Mach4 LED's
« on: January 22, 2019, 04:25:05 PM »
Hello all, I'm new here. First post.
I'm using Mach4 screen editor and have stumbled upon a seemingly not doable problem. It's those damn ugly LED's. Is there a way to replace LED's with a label that turns ON instead. Something like " Coolant ON" or "Spindle CCW"?
I could do this easily in Mach3, but LUA is not even close to C++. I'm getting old and don't want to learn yet another programming language just to get over this ugly LED B.S. I've included a screen shot of what I'm working on(not finished), and if it can't be done then I guess I won't be buying Mach4.
Thank you,
P.S. Any help will be greatly appreciated.

Pages: 1