Hello Guest it is April 23, 2024, 09:48:15 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 - Cbyrdtopper

1
Mach4 General Discussion / Re: LUA Macro Spindle Run M3 Help
« on: March 11, 2024, 05:05:13 PM »
You can turn the spindle on in a macro and set the rpm
mc.mcSpindleSetCommandRPM(inst, 1000)
mc.mcSpindleSetDirection(inst, 1) --   -1 CCW   0 OFF   1 CW

2
Mach4 General Discussion / Re: Tool table undo
« on: March 11, 2024, 04:49:08 PM »
Any time I probe a tool or probe for a work offset, I save the fixture and work offsets tables.  You could save these in a file perhaps, then you can go back and look at them. 
Here is a macro that stores the tool lengths for tools 1-5 into a file.
You can take this code and put it in the PLC script and let it automatically update this log every so often.
You can put it in a button and press the button every time you make a change to your tool table.
Make a module and do something with it. 
Do whatever you want with it really...

--Store Tool Length Data
function m107()
local inst = mc.mcGetInstance()
local Date = os.date()
local Tool1 = mc.mcCntlGetPoundVar(inst, 11001)
local Tool2 = mc.mcCntlGetPoundVar(inst, 11002)
local Tool3 = mc.mcCntlGetPoundVar(inst, 11003)
local Tool4 = mc.mcCntlGetPoundVar(inst, 11004)
local Tool5 = mc.mcCntlGetPoundVar(inst, 11005)


local Backup = string.format("Date & Time:  ".. Date .."\n")
Backup = Backup .. "Tool 1 Length = " .. Tool1 .."\n"
Backup = Backup .. "Tool 2 Length = " .. Tool2 .."\n"
Backup = Backup .. "Tool 3 Length = " .. Tool3 .."\n"
Backup = Backup .. "Tool 4 Length = " .. Tool4 .."\n"
Backup = Backup .. "Tool 5 Length = " .. Tool5 .."\n"
Backup = Backup .. "\n" --Adds a blank line to space out backups.


--Write to the File Log
--Make a folder in the Mach4 Directory and Name it "Tool Length Log"
local MyFile = wx.wxGetCwd() .. "\\Tool Length Log\\Tool Length Backup.txt" --Location:  Mach4Hobby - Tool Length Log - Tool Length Backup.txt
file = io.open(MyFile, "a+") --Append the file.  Adds at the end of the file.
--file = io.open(MyFile, "w+") --Open the file in update mode, all previous data is erased
file:write (Backup) --Write the Gcode file
file:flush (MyFile) --Save written data
file:close (MyFile) --Close file

end--m107()

if (mc.mcInEditor() == 1) then
   m107()
end

3
That's awesome!  Crazy to hear you have a Shliex on a forum like this lol.

4
I use the HiCON for everything now.  We have 8-10 in the shop, I don't remember.
I don't use the closed loop features of the HiCON, I just let the servo drives do the closed loop stuff for me.
The HiCON has 3 encoder inputs (1 of which is for an MPG but you can use it if you need it.)  We have these on mills and lathes alike. 
It has 8 output and 16 input plus 3 relay outputs for spindle control and 0-10V spindle control on the board so you don't need an extra board or relays for spindle control.
If you need any additional I/O you can get the breakout boards that they offer for the two additional ports that are on the board; however, we use the Click PLC from automation direct for our additional I/O and communicate with Mach4 over TCP Modbus; it is incredibly robust and easy to set up.

5
Mach4 General Discussion / Re: 'Cannot initialise core instance'
« on: January 23, 2024, 11:10:37 AM »
That's pretty awesome Craig!  Can't wait to see how this turns out for you.

6
I had thought about doing this about a year ago, but didn't have the time to put into it.  Very nice!

7
Mach4 General Discussion / Re: Machine Turning On When Closing Mach 4
« on: September 26, 2023, 08:58:38 AM »
It's been an issue with every single ESS that I have used (probably more than 15 of them); but it doesn't matter now, I use the HiCON for everything.  24V Logic, onboard relays for and 0-10V for spindle control, and no breakout boards to buy.  Not knocking the smootstepper, it's a good product, it's just the HiCON is more reliable for what we do.

8
Mach4 General Discussion / Re: Machine Turning On When Closing Mach 4
« on: September 25, 2023, 11:27:38 AM »
As long as you have your outputs ran through the e stop for control.
Also, that wouldn’t have helped us.
That would require you to have to press the e stop when an issue occurs. Still wouldn’t have fixed our issue.   Our grinding motors would come on our knife grinders.  So… the machine could be sitting idle not doing anything (yeah sure, press the e stop before you walk away, but in reality operators won’t always do that) and then the ess would lose control and everything come on.
Besides, that’s like putting a bandaid on it instead of fixing the issue of why it occurs in the first place. 

9
Mach4 General Discussion / Re: Machine Turning On When Closing Mach 4
« on: September 25, 2023, 09:44:07 AM »
We had an issue with the smoothstepper doing this.
Anytime the Smoothstepper did not have control of Mach our outputs turned on.  All of them. 
We got away from the ESS and started using the HiCON before I really dove into how to stop this from happening; a charge pump is something I was thinking about when this was a big issue.

10
Mach4 General Discussion / Re: Motion control
« on: September 12, 2023, 10:40:02 AM »
Woodworking. Nice!  We make tooling for woodworking machines!
The Shelix is our big product line.  Planers, Jointers, Moulders.