Winerack Style Tool Changer
Winerack Style Tool Changer Overview
The MachMotion plugin supports a wine-rack tool changing system.
It combines user-defined rack positions with a pre-programmed tool-change sequence to run a reliable tool-change routine.
The plugin includes common safety checks.
Wine-rack tool changer: a fixed array of tool holders arranged in a rack.
Tool-change sequence: predefined machine motions that pick up or return a tool.
Orientation
The tool rack must be parallel to either the X-axis or the Y-axis.
The plugin works with both orientations.
Configure the Correct Orientation
-
Determine which axis the rack is parallel to (X or Y).
-
Open:
C:\Mach\Profiles\Router\ToolTables. -
Keep the file that matches your rack orientation.
-
Create an archive folder and move the other tool changer files to the archive folder.
Enable Macros
If you get this error, macros are not enabled. Follow the procedure below:
Press the Macro Security button. Set security to Medium.
Restart LibreOffice. When it opens up press Enable Macros.
To confirm macros are working, when you save the file you should see this dialog and "ToolChangerData.csv" should appear or update in C:\Mach\Profiles\[PROFILE]\ToolTables.
Example: Wine-Rack Tool Changer Parallel to X
When the rack is parallel to the X-axis, use the Tool Changer X Parallel to Rack.ods file.
Steps
-
Open
C:\Mach\Profiles\Router\ToolTables. -
Keep Tool Changer X Parallel to Rack.ods.
-
Move the other tool changer files to an Archive folder.
-
Archiving is optional. It keeps the folder clean.
Edit the file with Libre Office. In the file, there is a graphic detailing the sequence and positions.
Keep in mind, all positions are absolute and must be machine coordinate(G53) values, not work offsets.
Configure the values in the Description section before editing any other parameters. The default settings are placeholders only.
Using them without adjustment can cause incorrect movements or machine crashes.
Setting Tool Pocket Positions
-
Carefully position the tool in each pocket holder.
-
Record the machine coordinate (G53) position for that pocket.
-
Enter each recorded value into the corresponding tool pocket field.
⚠️ Important: Set each pocket position individually.
Do not copy values between pockets.
Even small physical differences can cause large alignment errors.
Notes
-
Setting a pocket position to “Nil” or “0” will disable that pocket.
-
The number of active pocket positions must not exceed the number of physical pockets in the rack.
You might find that the tool is picked up more easily if you set the clamp position to be 0.002" lower than the pocket position.
After entering any positions you must save the document and the CSV conversion macro must run. You will see this dialog if it is successful in updating the settings:
All positions are exported to a .CSV file at that point. If the macro does not run when you save the file, the changed positions will not have any effect.
MachPro Setup
Settings configuration for winerack tool changers
To operate the tool changer it must be enabled in the MachPro settings.
Pull down Configure -> Control and select the Settings tab at the far right side.
Click the Predefined Filters button for Tool Change.
The first group of settings should match this. The number of pockets will vary from machine to machine.
The second group is I/O mapping for Drawbar, airpurge, ect.
Some IO is required for operation. Ones that are optional are highlighted in Yellow and rare cases in Orange.













