Mach3 EStop/Limits TB6560
Home
Up
Mount TB6560
Wire TB6560 to Power Sup
Wire AC Relay
Wire E-Stop
Wire Limit Switches
Mach3 EStop/Limits TB6560
Mach3 Pins/Ports

 

 

Hi, if you find these instructions helped with your CNC project, please consider
making a donation to help keep this site going and growing.
To make a contribution click anywhere here

 

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:

  1. X Axis Step

  2. Y Axis Enable

  3. Y Axis Direction

  4. Z Axis Direction

  5. Z Axis Step

  6. Z Axis Enable

  7. X Axis Direction

  8. Y Axis Step

  9. Spindle Motor

  10. Input 1

  11. Input 2

  12. Input 3

  13. Input 4

  14. X Axis Enable

  15. Not used

  16. Expand Output 1

  17. Expand Output 2

  18. Ground

  19. Ground

  20. Ground

  21. Ground

  22. Ground

  23. Ground

  24. Ground

  25. Ground

 

 

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.

 

Testing

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.

 

 

Supplementary Images

Nil

 

 

 

Next Step

You are now ready to move onto the next step:

TBA

 

 

 

 

   

Home

This site was last updated 02/08/14