Hello Guest it is April 27, 2024, 10:59:24 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 - Bill_O

31
Mach4 General Discussion / Re: Set Tool Number in Gcode?
« on: September 06, 2023, 08:37:27 AM »
Steve,

I am not a programmer and it took me a little while to get the hang of the LUA.
I put this together to help other people.
https://www.machsupport.com/forum/index.php?topic=45397.msg289143#msg289143

Bill

32
Mach4 General Discussion / Re: Set Tool Number in Gcode?
« on: September 05, 2023, 05:38:22 PM »
I think you can just click on the tool number and type the tool you want then hit Enter

33
Mach4 General Discussion / Re: Set GCODE Line using Lua scripting
« on: August 23, 2023, 11:20:22 AM »
Beyond my knowledge if that did not work.
I would like to know how to do this if you get an answer.

34
Mach4 General Discussion / Re: Set GCODE Line using Lua scripting
« on: August 23, 2023, 10:17:49 AM »
I have found a couple of things that are not quite correct in the docs.
Sometimes with variables you need "" or ''
Try both of these.
mc.mcCntlSetGcodeLineNbr(inst, 'GcodeLineNew')
mc.mcCntlSetGcodeLineNbr(inst, "GcodeLineNew")

35
Mach4 General Discussion / Re: Problem with custom M5 macro
« on: August 10, 2023, 01:32:40 PM »
instead of mc.mcCntlGCodeExecuteWait try mc.mcCntlGCodeExecute
i found that some places one did not work well for me either.

36
An m code is a g code.
Do you not have a macros folder in your profile?
You are wanting to run a macro but not putting it in the macros folder.
It might be because of the different parts i was talking about.
Anything you have in your screen you need to put in a macro instead and try it that way.
I gave you 3 ways to try running the macro if you have it in your macro folder.
Some work better in some places than others.
I have never used a module so I do not know which works best in it.
If you do make the macro you need to comment out the function you have in your screen.

37
In the M4  folder you have a Profiles\Profile you are using\Macros folder.
It has things like m3 (spindle on) and m6 (tool change) macros.
Just make one for your m100.
Then in your module tell it to run g code
mc.mcCntlGcodeExecuteWait(inst, "m100")
or
mc.mcCntlGcodeExecute(inst, "m100")
or
mc.mcCntlMdiExecute(inst, 'm100')

I really do not know if any of this will work but it might.

38
You are beyond what I know how to do but this might help.

While one part of M4 is running another can not also run.
Instead of using a function in the screen script make the m100 an actual macro and see if it will run from your module.

39
Mach4 General Discussion / Re: trouble with rotary axis tool path
« on: July 05, 2023, 04:31:21 PM »
I don't do rotary but is it just a visual or does it actually cut like that?

40
Mach4 General Discussion / 4th of July
« on: June 30, 2023, 08:38:49 AM »
Just wanted to tell everyone in the US to have a great 4th of July weekend.