Mach3 EStop/Limits for JK02
Home
Up
Setup Power chassis
Mount Chassis
Mount Aux Panel
Mount Power supply
Power Supply no Chassis
Power Supply with Chassis
Power Supply with Chassis & Aux
Mount AC Relay
Mount DC Converter
Mount E-Stop
Mount Limit Switchs
Mount Stepper Motors
Mount Cooling Fan
Wire DC Converter to Power Supply
Wire JK02 to DC Conv
Wire DIV268N to Steppers
Wire JK02 to DIV268N
Wire DIV268N to Power
Wire Steppers
Wire E-Stop to JK02-M
Wire Limit Switches
Wire Limit Switches to JK02-M
Wire Converter/Fan
Mach3 EStop/Limits for JK02
Mach3 Pins/Ports JK02-M5

 

 

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 JK02-M5 Driver board.

 

JK02-M5 Driver board Pin Outs

The JK02-M5 Breakout board has the following Pin Outs/Ins through it's D-SUB 25 Connector, Pin:

  1. Enable Signal

  2. X Axis Step

  3. Y Axis Direction

  4. B Axis Step

  5. A Axis Direction

  6. A Axis Step

  7. Z Axis Step

  8. Z Axis Direction

  9. Spindle Motor

  10. Input 1 (X Limit)

  11. Input 2 (Y Limit)

  12. Input 3 (Z Limit)

  13. Input 4 (A Limit)

  14. X Axis Direction

  15. Input 5 (E-Stop)

  16. Y Axis Step

  17. B Axis Direction

  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 JK02-M5 Breakout 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 JK02 table we know PIN:
10 is configurable as a limit input,
11 is configurable as a limit input,
12 is configurable as a limit input,
13 is configurable as a limit input, and
15 is configurable as 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,
12 to the Z axis, and
13 to the A 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";
Z-- turn Enabled on, set Port # to "1", Pin Number to "12" and enable "Active Low";
A++ turn Enabled on, set Port # to "1", Pin Number to "13" and enable "Active Low"; and
A-- turn Enabled on, set Port # to "1", Pin Number to "13" 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 15. Set the table as follows: turn Enabled on, set Port # to "1", Pin Number to "15" 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 ++
Z-Limit Switch --
A-Limit Switch ++ , and
A-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

s

 

 

Next Step

You are now ready to move onto the next step:

TBA

 

 

 

 

   

Home

This site was last updated 02/08/14