{"id":3695,"date":"2016-01-17T22:55:13","date_gmt":"2016-01-18T03:55:13","guid":{"rendered":"http:\/\/www.summet.com\/blog\/?p=3695"},"modified":"2016-01-21T20:34:41","modified_gmt":"2016-01-22T01:34:41","slug":"how-to-convert-a-denford-scantek-2000-micromill-to-linuxcnc-mach3-control-part-2-home-switches-e-stop","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2016\/01\/17\/how-to-convert-a-denford-scantek-2000-micromill-to-linuxcnc-mach3-control-part-2-home-switches-e-stop\/","title":{"rendered":"How to convert a Denford \/ ScanTek 2000 Micromill to LinuxCNC \/ Mach3 control: Part 2 \u2014 Home switches &#038; E-Stop"},"content":{"rendered":"<p><a href=\"http:\/\/www.summet.com\/blog\/2016\/01\/16\/how-to-convert-a-denford-scantek-2000-micromill-to-linuxcnc-mach3-control-part-1-3-axis-control\/\">Part 1<\/a> told how to make your computer output commands to the 3 stepper motors controlling the X,Y,Z axes of the mill so that you could jog them around under computer control.<\/p>\n<p>This post deals with getting input from the switches on the mill to your computer.<\/p>\n<p>I am interested in getting input from 4 switches on the mill. First, the Emergency Stop button on the front panel is great to have operational! <\/p>\n<p><a href=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247.jpg\" rel=\"attachment wp-att-3697\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247-1024x1024.jpg\" alt=\"estop\" width=\"584\" height=\"584\" class=\"alignnone size-large wp-image-3697\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247-1024x1024.jpg 1024w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247-150x150.jpg 150w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247-300x300.jpg 300w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247-768x768.jpg 768w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/estop-e1453087600247.jpg 1501w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>Second, I want to be able to use the three Home switches to home the axes, as well as act as limit switches.<br \/>\n<a href=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470.jpg\" rel=\"attachment wp-att-3698\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470-1024x1024.jpg\" alt=\"IMG_20160109_202839\" width=\"584\" height=\"584\" class=\"alignnone size-large wp-image-3698\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470-1024x1024.jpg 1024w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470-150x150.jpg 150w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470-300x300.jpg 300w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470-768x768.jpg 768w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160109_202839-e1453087761470.jpg 1297w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>(The mill does not have limit switches on the other side of the axes, so you will have to configure you software to use &#8220;soft limits&#8221; with respect to the home position of the mill.)<\/p>\n<p>These switches are connected to ground, but when they are activated, they open, which will allow the control line to (potentially) raise to 5V (active) assuming you have it configured with a &#8220;pull-up&#8221; resistor to 5 volts. My break out board had a jumper that I just moved from &#8220;pull-down&#8221; to &#8220;pull-up&#8221; to automaticlly apply a pull-up resistor to these lines.<\/p>\n<p>Get the E-stop working first in hardware and software. Always nice to be able to push it when your mill is driving an axis through a home switch due to a software misconfiguration or wiring mistake. [FYI &#8211; once you hit the big red button, you have to rotate it clockwise to get it to &#8216;un-pop&#8221;.]<\/p>\n<p>See <a href=\"http:\/\/www.summet.com\/blog\/2016\/01\/16\/how-to-convert-a-denford-scantek-2000-micromill-to-linuxcnc-mach3-control-part-1-3-axis-control\/\">Part 1<\/a> for a description of the B,C,A, 1-32 coordinates of the 96 way connector. We will be adding 4 wires for the X,Y,Z home switches and E-Stop.<\/p>\n<p><code>A25 - (E-)STOP.  [red wire] to Parallel pin 13.<\/code><br \/>\n        (I believe this line (only) has a pull-up on the Baldor board<br \/>\n         as it moves to 5v when pushed even without a pull-up resistor configured. But having another pull-up on the break out board for it did not seam to hurt.)<\/p>\n<p>The three home switches are wired as follows:<\/p>\n<p><code><br \/>\nC26 - Home 0 (X axis). [blue wire]  Parallel pin 10<br \/>\nB24 - Home 1 (Y axis). [green wire] Parallel pin 11<br \/>\nC23 - Home 2 (Z axis). [white wire] Parallel pin 12<br \/>\n<\/code><\/p>\n<p>NOTE: The X axis home switch is on the &#8220;reverse&#8221; side (max coordinate, not zero coordinate), so you will have to set your software to do a &#8220;reverse home&#8221; on the X axis, otherwise it will just try to home the table all the way to the right and never hit the home switch.<\/p>\n<p>My DIN connector from Part 1 has been updated with 4 more wires down on rows 23-26 and now looks like this:<br \/>\n<a href=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223729.jpg\" rel=\"attachment wp-att-3702\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223729-700x1024.jpg\" alt=\"IMG_20160117_223729\" width=\"584\" height=\"854\" class=\"alignnone size-large wp-image-3702\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223729-700x1024.jpg 700w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223729-205x300.jpg 205w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223729-768x1123.jpg 768w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223729.jpg 1711w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>And the breakout board is now using pins 10-13 on the right side:<br \/>\n<a href=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223652.jpg\" rel=\"attachment wp-att-3703\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223652-1024x768.jpg\" alt=\"IMG_20160117_223652\" width=\"584\" height=\"438\" class=\"alignnone size-large wp-image-3703\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223652-1024x768.jpg 1024w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223652-300x225.jpg 300w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223652-768x576.jpg 768w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/01\/IMG_20160117_223652-400x300.jpg 400w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>Now that we have those wired up, the only thing remaining is the spindle motor control (and possible RPM sensing). <a href=\"http:\/\/www.summet.com\/blog\/2016\/01\/21\/how-to-convert-a-denford-scantek-2000-micromill-to-linuxcnc-mach3-control-part-3-spindle-motor-control\/\">Part 3<\/a> of this series shows how to turn the spindle on and off using an output pin on the breakout board. It also has an embedded video showing the limit switches and E-Stop in operation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part 1 told how to make your computer output commands to the 3 stepper motors controlling the X,Y,Z axes of the mill so that you could jog them around under computer control. This post deals with getting input from the &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2016\/01\/17\/how-to-convert-a-denford-scantek-2000-micromill-to-linuxcnc-mach3-control-part-2-home-switches-e-stop\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[121],"class_list":["post-3695","post","type-post","status-publish","format-standard","hentry","category-projects","tag-micromill"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/3695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=3695"}],"version-history":[{"count":15,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/3695\/revisions"}],"predecessor-version":[{"id":3748,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/3695\/revisions\/3748"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=3695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=3695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=3695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}