Hello Guest it is May 10, 2024, 02:18:07 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: Cannot Get Machine Set Up
« on: October 10, 2023, 07:59:49 AM »
Total guess on my part but if you do not have a tool changer the tool info might be hanging it up.

32
Mach4 General Discussion / Re: Cannot Get Machine Set Up
« on: October 09, 2023, 09:40:27 AM »
Post your g-code.
Might be something in it causing the problem.

33
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

34
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

35
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.

36
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")

37
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.

38
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.

39
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.

40
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.