Configuring Mach3 for Emergency Stop button and Limit Switches.
These instruction will explain how to configure the MACH3 Software to run the E-Stop button and Limit Switches connected to the TB6560 Driver board.
TB6560 Driver board Pin Outs
The TB6560 Driver board has the following Pin Outs/Ins through it’s D-SUB 25 Connector, Pin:
- X Axis Step
- Y Axis Enable
- Y Axis Direction
- Z Axis Direction
- Z Axis Step
- Z Axis Enable
- X Axis Direction
- Y Axis Step
- Spindle Motor
- Input 1
- Input 2
- Input 3
- Input 4
- X Axis Enable
- Not used
- Expand Output 1
- Expand Output 2
Configuring Mach3 to accept E-Stop and Limit signals from the TB6560 Driver board
Open Mach3 (Mill), go to the “Config” menu and select “Ports and Pins”
The first tab is “Port Setup and Axis Selection”, select the “Input Signals” Tab.
This is where we tell Mach3 what pins to monitor to receive limit signals. From our TB6560 table we know PIN:
10 is configurable a limit input,
11 is configurable a limit input,
12 is configurable a limit input, and
13 is configurable a limit input.
During the wiring of the Limit Switches we hard wired sets of switches to a particular pin, they where pin:
10 to the X Axis,
11 to the Y Axis, and
12 to the Z axis.
Fill in the Input Signal table as follows, For:
X++ turn Enabled on, set Port # to “1”, Pin Number to “10” and enable “Active Low”;
X– turn Enabled on, set Port # to “1”, Pin Number to “10” and enable “Active Low”;
Y++ turn Enabled on, set Port # to “1”, Pin Number to “11” and enable “Active Low”;
Y– turn Enabled on, set Port # to “1”, Pin Number to “11” and enable “Active Low”;
Z++ turn Enabled on, set Port # to “1”, Pin Number to “12” and enable “Active Low”; and
Z– turn Enabled on, set Port # to “1”, Pin Number to “12” and enable “Active Low”;
On this same panel we can also set the E-Stop button settings, scroll down until you can see the “EStop” item in the table. During the wiring phase we hard wired the E-Stop to Pin 13. Set the table as follows: turn Enabled on, set Port # to “1”, Pin Number to “13” and enable “Active Low”. Once these have been set click the “Apply” to save but don’t exit by hitting “OK”
All the pins and ports are now set for the limit switches and E-stop, however there is no setting to delineate between an NC circuit and an NO circuit. As all our circuits are NC, if we where exit here all switches will show as tripped. There is a way around this (I’m searching for a better way but until I find it I’ll show you this method). At the bottom of the panel you’ll see an “Automated Setup of Inputs” click on that button and the “Auto Setup of Input Signals” panel will be displayed.
This menu will allow Mach3 to learn signals by you select an item and the physically triggering the switch on your machine. The weird thing is have to have already set up and enabled the ports and pins for them. From the drop down menu select “X-Limit Switch ++” and click on the “AutoSet” button. Now press the switch on your machine for X Axis + Limit, you should here a beep and the bottom display window will show signal pin and port.
Repeat this step for:
X-Limit Switch —
Y-Limit Switch ++
Y-Limit Switch —
Z-Limit Switch ++ , and
Z-Limit Switch —
Your limit switches should all now be configured, click “OK” and then “OK” again to close these dialogue boxes.
You should now be able to test your setup. At the Mach 3 Window, press the “Tab” key and the virtual “Jog Pendant” should appear on the right side of the screen. Use the X+, X-, Y+, Y-, Z+ and Z- arrows to move your cutting head around. As you hit a limit switch the “Status Bar” should show “Limit Switch Triggered” in flashing red/white text that will eventually settle to just white. Hit the “Reset” button and test the next switch.
You are now ready to move onto the next step: