Modified file is attached for an 8 position tool changer.
The only bit you'll need to change is the Input and Output you'll be using. There is one place where the Output will need changed, and two places where the Input will need changed.
The file will need copied to <mach3install folder>/macros/<folder named the same as the current mach profile you're using>/ (there should already be various macros in it)
You'll need to change theTool Change (top left) setting in General Config... to AutoTool Changer, so the M6 macros are used.
In your G-Code or MDI, you then simply call Txxnn where xx is the tool position, and nn are the tool offsets from the tool table.
For example T0101 will call tool position 1, along with offsets 1, whereas T0106 would call tool position 1, but with tool table offsets for tool 6.
You can use just Txx, which means the same number is used for tool position and offsets i.e. T01 is the same as T0101, however I prefer to use the full version.