Hello Guest it is January 17, 2026, 12:20:35 PM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
21
Sorry there was an issue with the video, Here is a link to see SmartSwapATC in action!

https://youtu.be/6vQ*********tj4O0
23
Hi everyone — I wanted to share something I’ve been working on for a while now called SmartSwapATC.
SmartSwap is a modular, wireless automatic tool changer designed for ER spindles and built specifically around Mach4 using Lua. The core idea is simple: instead of committing a big chunk of your machine’s work area to a fixed tool magazine, you only use the number of tool holders you actually need for the job. I call them “cassettes.” If a job only needs three tools, you run three cassettes — not seven or ten bolted permanently to the table.
This project grew out of my own shop needs. I wanted an ATC (like most of us do), but I couldn’t justify spending thousands of dollars on one. I also didn’t want something that forced a rigid machine layout or took away flexibility. So I started building and iterating.

Most of SmartSwap’s features exist because something went wrong at some point. Crashes, broken bits, lost zeroes — each one turned into another safety check or workflow improvement in the code. I rewrote the tool-change logic more times than I care to admit, but the end result is something I trust to run unattended and repeatably.

What surprised me most wasn’t just the time savings, but how it changed how I work. I used to skip chamfers because it meant another tool change and another chance to mess up a touch-off. I avoided tightly nested parts because I didn’t want things moving when cutting with larger/faster tools, and small tools just took too long. Now I’ll rough aggressively, chamfer everything, and finish with small cutters without worrying about losing accuracy or parts getting launched. That alone has opened up designs I simply didn’t bother with before.
SmartSwapATC hasn’t just made my workflow faster — it’s made the machine more enjoyable to use.
There’s a short video below showing it in action. If you’re curious, more details are at www.SmartSwapATC.com. Hopefully it sparks some ideas for what an ATC could look like in your own shop. I also have a couple install videos on my channel, more videos and features are coming soon.


https://youtu.be/dNZGVk4NDHs
24
General Mach Discussion / Re: Macro/Script rodillos de sujeccion fresadora
« Last post by TPS on January 10, 2026, 11:03:15 AM »
no, nothing extra in G-Code needed.

the macro M334 will "switch" G54 and G55 and start the loaded  G-Code file.
25
General Mach Discussion / Re: Macro/Script rodillos de sujeccion fresadora
« Last post by Tecmaqcnc on January 10, 2026, 11:00:55 AM »
Ok, i need input a M code in the g-code?
26
General Mach Discussion / Re: Macro/Script rodillos de sujeccion fresadora
« Last post by TPS on January 10, 2026, 10:31:06 AM »
OK,
goto Config -> Ports&Pins -> Input Signal's
and enable  OEM Trig#1 and OEM Trig#2 then assign Port and Pin from CSMIO input's you want to use.

then goto Config -> General Config
now have a look for Initialitazion String and put M333 with a space before at the end

next goto Config -> System Hotkeys
on the right side (External Buttons - OEM Codes)
enter for 1 and 2 the number ->  301

now create a textfile in your macrofolder with the
name M333.M1S
copy and paste this code into the file:
Code: [Select]
' assign Triggermacro
' needs to be added to Initialisation String
Sub Main
SetTRiggerMacro 334   'assing Macro M334 for OEM-Code 301
Message ("Triggermakro 334 set")
Sleep(200)
End Sub


now create a textfile in your macrofolder with the
name M334.M1S
copy and paste this code into the file:
Code: [Select]
' check OEMTrigger
' called by OEM Code 301

Sub Main
message "button 1 (G54) has been pressed"
If IsActive (OEMTRIG1) Then         
Code("G54")
' Run loaded G-Code
RunFile()
goto ende
End If
message "button 2 (G55) has been pressed"
If IsActive (OEMTRIG2) Then         
Code("G55")
' Run loaded G-Code
RunFile()
goto ende
End If

ende:
End Sub


that's it.
be careful not tested just written down

27
Mach4 General Discussion / Re: Control Mode
« Last post by Starfire2038 on January 10, 2026, 10:28:20 AM »
Not having any issues, If I select rotary option, does that change the DRO from degrees to inches?
28
General Mach Discussion / Re: Macro/Script rodillos de sujeccion fresadora
« Last post by Tecmaqcnc on January 10, 2026, 10:11:53 AM »
A physical button, activated by an electrical pulse. First, the desired G-code is loaded. Then, using the physical buttons on the machine, the work area is selected.

I've seen a machine that does that function; they've programmed it inside a macropump, but I don't quite understand where to wire it. I've attached an example.



29
General Mach Discussion / Re: Macro/Script rodillos de sujeccion fresadora
« Last post by TPS on January 10, 2026, 09:55:34 AM »
a screen button or a hardwarebutton?
allways the same program (program name)?
or start the manually loaded program?

30
General Mach Discussion / Re: Macro/Script rodillos de sujeccion fresadora
« Last post by Tecmaqcnc on January 10, 2026, 09:53:23 AM »
That's right, what a silly mistake! Haste makes waste.

Thanks a million!

Another question: I need to program the machine so that when I press one button, it starts the start cycle with code G54. When this cycle finishes, pressing another button starts the cycle with code G55, allowing me to work in two different areas.

Can you help me?
Pages: « 1 2 3 4 5 6 7 8 9 10 »