Hello Guest it is May 09, 2024, 05:06:00 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

311
Mach4 General Discussion / Re: Mach4 in Fusion 360 Post Processor
« on: April 14, 2020, 03:04:23 PM »
Because the same file you would use for Mach3 you can use for Mach4.

312
Mach4 General Discussion / Re: Passing variable for gcode to module
« on: April 13, 2020, 10:56:12 AM »
I found that for me Registers are very useful.


•   How to turn on Registers.
Go to Configure, Control, Plugins tab then place a green check next to Regfile.

•   How to make a new Register.
Go to Configure, Plugins then Regfile.
Click on the green plus sign.
   Give the register a name. (no spaces)
   Give the register a starting value.
   Put in a longer description.
   Persistant
      A green check will keep value on exit from Mach4.
      A red x will start every new start of Mach4 with the starting value.

•   How to read a Register.
local variable = mc.mcRegGetHandle(inst, ‘path’)
local variable2 = mc.mcRegGetValue(variable)
   Examples:
local hreg = mc.mcRegGetHandle(inst, ‘Encoder_0’)
local EncRawVal = mc.mcRegGetValue(hreg)
or
local hreg = mc.mcRegGetHandle(inst, ‘ESS/EncRaw’)
local EncRawVal = mc.mcRegGetValue(hreg)
or
local hreg = mc.mcRegGetHandle(inst, ‘iRegs0/NotchTime’)
local EncRawVal = mc.mcRegGetValue(hreg)

•   How to write to a Register. (this might be wrong)
local variable = mc.mcRegGetHandle(inst, ‘path’)
local mc.mcRegSetValue(variable, value)
or
local variable = mc.mcRegGetHandle(inst, ‘path’)
local mc.mcRegSetValue(variable, tostring(value))
   Example:
local hreg = mc.mcRegGetHandle(inst, ‘ESS/EncRaw’)
local mc.mcRegSetValue(hreg, 23.35)
   or
local Num = 23.35
local hreg = mc.mcRegGetHandle(inst, ‘ESS/EncRaw’)
local mc.mcRegSetValue(hreg, tostring(Num))

314
Mach4 General Discussion / Re: Saving and replacing a Value
« on: March 18, 2020, 08:50:30 AM »
I could be wrong but if you are asking for a pound variable i think you need the number not the words.
I made a short document at the link below that might help.
It has a signal as one of the examples.
https://www.machsupport.com/forum/index.php?topic=39763.msg266718#msg266718

315
Mach4 General Discussion / Re: Z zero randomly changes on its own
« on: February 28, 2020, 03:20:10 PM »
Do you have tool height information in your gcode file?
In other words is there a line that has H plus a tool number?
h6

316
Mach4 General Discussion / Re: Integrating Clearpath SD Motors With Mach4
« on: February 11, 2020, 10:06:14 AM »
Josh,

The error could be mechanical in how you are moving the tube.
If you are using a roller to push it the roller could be slipping some.
If you are grabbing it that could also be slipping.
Like Thosj posted earlier you might need to slow down your acceleration.

Bill

317
Mach4 General Discussion / Re: vbs to lua
« on: February 03, 2020, 05:55:29 PM »
This will not get you close to what you want but it might help you start to understand Mach4 Lua

https://www.machsupport.com/forum/index.php?topic=39763.msg266718#msg266718

Bill

318
Mach4 General Discussion / Re: Mach4 Hobby Screen Editor
« on: November 07, 2019, 11:53:43 AM »
Ventuseu,

Which profile are you selecting when you start the loader?

Bill

319
Mach4 General Discussion / Re: Tool Change / Probe
« on: November 06, 2019, 08:34:28 AM »
I do not see a While loop to wait for the register to change in your m6

Bill

320
Mach4 General Discussion / Re: Tool Change / Probe
« on: November 06, 2019, 08:30:59 AM »
I will let someone who is good at the code look that over.
I am almost positive I would miss something.

Bill