Hello Guest it is May 17, 2024, 01:57:20 PM

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 - Brian Barker

151
Mach4 General Discussion / Re: Lua Script and reading register's Help
« on: February 01, 2021, 08:33:26 PM »
The screen script is global, you will have to check when you open. New chunk. I don’t think I understand :( sorry I don’t think I am helping ..

152
Mach4 General Discussion / Re: Mouse MPG Module
« on: February 01, 2021, 04:54:09 PM »
Yeah, it looks like it can be done.. I have been trying to get things off my plate. I will give it an hour tomorrow and see if I can get this https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexa to  work. I have a hook in now to grab the low level keyboard so I should be able to make that work as well. Mucking around with this stuff is on my list of things I don't like so it takes a push to do it :)

Thanks
Brian

153
Mach4 General Discussion / Re: Scripting Custom Control Panel
« on: February 01, 2021, 03:41:56 PM »
I was thinking that you where thinking I was throwing! Sweet that's over, Anyway we will get this done...

I don't get the LED's, Where and why are you making them? We shouldn't need any script to see the state of feedhold and so on. Many ways to solve a problem just some of them will make you work more.

If you want maybe we should make some better code and show everyone how it is done ;) I can tell you I am 4th best at this!

154
Mach4 General Discussion / Re: Lathe Profile Randomly Closes Mach4
« on: February 01, 2021, 03:25:34 PM »
Sweet! pound out the parts and see how she goes!

155
Mach4 General Discussion / Re: Lathe Profile Randomly Closes Mach4
« on: February 01, 2021, 02:57:22 PM »
This is a Parameter that was in mill that we moved to lathe that didn't effect you before . You need to open the parameter.ini file in the profile. change the following to look like this with Mach4 OFF:

[1801]
Desc=OEM parameter 1801
Type=2
Value=NULL

The value is zero now... This is a place where you can change how Gcode is ran. Sort of cool you can limit the stroke of the Zaxis :)  . Please adjust that and tell me if your set.

Thanks and sorry for the troubles!
Brian

156
Mach4 General Discussion / Re: Is there a BLINK function?
« on: February 01, 2021, 02:53:32 PM »
The video is old but it is a really cool tool (and we made a manual for it )
https://www.youtube.com/watch?v=jVhH9qyjjf0

157
Mach4 General Discussion / Re: Scripting Custom Control Panel
« on: February 01, 2021, 02:51:43 PM »
Hey man you do you ,I am simply showing  you how to get the "state" so you can see on press and on release. The Cycle start and feedhold are out of the stock screen as an example. If you like your way better, you do you! I am only trying to show you how I do it. I don't even know what your "LED management code" is. I don't have anything to prove and if what you have is what you like, I like it.

Feedhold is the stock action at instance zero (see the docs)

Try the Mach4->docs, that is where we keep all the API docs (Mach4CoreAPI.chm)

Hope that helps, if not we will try again

158
Mach4 General Discussion / Re: Lathe Profile Randomly Closes Mach4
« on: February 01, 2021, 02:37:24 PM »
That is a Parameter in the parameter.ini file in the profile. I have someone looking to see if we can clean  up your profile. Looks like some of the settings are very old. Sorry but this will take a bit, and will only hurt a little ;)

159
Mach4 General Discussion / Re: Scripting Custom Control Panel
« on: February 01, 2021, 02:22:22 PM »
your really close!

So it more like this please
Code: [Select]

[mc.ISIG_INPUT1] = function (state)
   if (state == 1) then   -- This is on press (Rising Edge)
        CycleStart()
   else
        mc.mcCntlFeedHold (0) -- This is on release (Falling Edge)
    end

end,

So if you simply look at the state when you call the function you can call it at the correct time. I think  your code will look more like this:

Code: [Select]
    [mc.ISIG_INPUT10] = function (state) -- Cycle Start
        if (state == 1) then   -- This is on press (Rising Edge)
              RunFNRCycleStart()
        end
    end,

Hope that helps !
Brian

160
Mach4 General Discussion / Re: Lathe Profile Randomly Closes Mach4
« on: February 01, 2021, 01:30:38 PM »
Don't matter to me if  you use it once a year :) it must be correct for you !