Hello Guest it is May 10, 2024, 02:23:59 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 - Bill_O

261
Mach4 General Discussion / cv not staying on
« on: September 11, 2020, 03:19:11 PM »
I set up Mach4 and used the cv wizard.
Turned CV On and it works great.
Restarted Mach4 and cv settings are not working and all at 0
How do I make Mach4 stay in CV On?

Bill

262
Mach4 General Discussion / Re: Button G code juggle
« on: September 11, 2020, 08:39:13 AM »
Sorry I missed that.

263
Mach4 General Discussion / Re: Button G code juggle
« on: September 10, 2020, 04:13:06 PM »
Try using mc.AxisGetPos instead.

Bill

264
Mach4 General Discussion / Re: z inhibit / max z depth
« on: September 03, 2020, 08:50:50 AM »
Steve,

It works great.
Thank you.

Bill

265
Mach4 General Discussion / Re: z inhibit / max z depth
« on: September 01, 2020, 10:34:23 AM »
Steve,

Thanks.
I will give it a try.

Bill

266
Mach4 General Discussion / Re: z inhibit / max z depth
« on: August 27, 2020, 08:25:49 AM »
David,

I thought about that but it looked like that only worked for jogging or if in a program would stop if the file went outside the limits.
I will give it a try and see what happens.

Thank you.

Bill

267
Mach4 General Discussion / z inhibit / max z depth
« on: August 26, 2020, 05:18:38 PM »
Is there a function in Mach4 that will limit how deep the z axis will move?
I think there was one in Mach3 but I never used it.

Bill

268
Mach4 General Discussion / Re: Mach4 Re-Zeroing mid run
« on: August 21, 2020, 08:38:14 AM »
If it is a stepper motor system you could be loosing steps.
How fast are you moving the Z axis and what is the acceleration.

Bill

269
Mach4 General Discussion / Re: set selected tool
« on: August 19, 2020, 11:57:30 AM »
Swifty,

It worked great.
Thanks for the help.
Here is the final code.

Tool to get plus;
Code: [Select]
local inst = mc.mcGetInstance()
local Tool = mc.mcToolGetSelected(inst)
--get max tools
local ATCMaxTlsReg = mc.mcRegGetHandle(inst, 'iRegs0/ATCMaxTools')
local ATCMaxTlsVal = mc.mcRegGetValue(ATCMaxTlsReg)

--if tool is in range add one to tool #
if (Tool <= (ATCMaxTlsVal - 1)) then
Tool = (Tool + 1)
mc.mcCntlSetPoundVar(inst, mc.SV_CUR_SELECTED_TOOL, Tool)
end


Tool to get minus;
Code: [Select]
local inst = mc.mcGetInstance()
local Tool = mc.mcToolGetSelected(inst)

--if tool is in range subtract one from tool #
if (Tool >= 2) then
Tool = (Tool - 1)
mc.mcCntlSetPoundVar(inst, mc.SV_CUR_SELECTED_TOOL, Tool)
end


270
Mach4 General Discussion / Re: set selected tool
« on: August 19, 2020, 10:01:36 AM »
Swifty,

Thank you.
I will give it a try.
I do not care about the best way I just need it to work.

Bill