{"id":173,"date":"2008-09-09T18:44:06","date_gmt":"2008-09-09T18:44:06","guid":{"rendered":"http:\/\/soulysolar.mudventions.com\/?p=173"},"modified":"2008-09-18T13:11:48","modified_gmt":"2008-09-18T13:11:48","slug":"encoders-revisited","status":"publish","type":"post","link":"https:\/\/soulysolar.mudventions.com\/?p=173","title":{"rendered":"Encoders Revisited"},"content":{"rendered":"<p>Prompted by my friend Michael I decided to take another look at the encoder set up on the OZO machine.<\/p>\n<p>The encoder board, has the spindle signal conditioning circuit mentioned in previous post as well as two <a href=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/sn74ls123.pdf\">SN74LS123<\/a> Monostable Multivibrators.\u00a0 Its my guess that these chips act as one shots, conditioning the signals coming from the encoders.\u00a0 On the encoder board pictured below, pin 1 is at the top and 22 is at the bottom.\u00a0 Encoder signals are marked with black connecting lines.<\/p>\n<p><a href=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/board.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-175\" title=\"board\" src=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/board-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/board-300x225.jpg 300w, https:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/board.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>Pins 2 &#8211; 7 are directly involved with the encoders.\u00a0 The even pins 2,4,6 go to the non inverting inputs on the 74LS123 chips and the outputs come from the chips to the odd pins 3,5,7.\u00a0 Pins 3,5,7 then connect to the parallel port pins 20,23,24 respectively.<\/p>\n<p>According to the data sheet the timing appears to be set to about a 27mS pulse from the chip each time it is triggered.\u00a0 The timing is set with an external 82K resistor and a 1uF tantalum cap, 3 sets for each of the 3 triggers in two chips.\u00a0 One chip has holes where the timing could be set with external components however this is not populated on my board, and that multivibrator is not in use.<\/p>\n<p>The black box encoders are made by Computer Optical Products, Inc in Chatsworth, California<\/p>\n<p>From the encoder label they are <a href=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/modular_encoders.pdf\">CP 250-400-ODA<\/a><\/p>\n<p>Corresponding to 400 steps per revolution, digital encoders with two signals out, in quadrature.<\/p>\n<p>The black box digital encoders are on the X and Y axis and look like this,<\/p>\n<p><a href=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/encoder.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-176\" title=\"encoder\" src=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/encoder-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/encoder-300x225.jpg 300w, https:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/encoder.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>While the Z-Axis has a flat disk with a slit in it like so, (thanks for the photo Michael)<\/p>\n<p><a href=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/mvc-882s.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-179\" title=\"mvc-882s\" src=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/mvc-882s-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/mvc-882s-300x225.jpg 300w, https:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/mvc-882s.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Edit:\u00a0 More Info discovered and added below<\/p>\n<p>The signals going to the encoder board and ultimately the one shots are index signals.\u00a0 I think they represent full rotations of the stepper motors, but still not quite sure.\u00a0 If you look at the <a href=\"http:\/\/soulysolar.mudventions.com\/wp-content\/uploads\/2008\/09\/modular_encoders.pdf\">data sheet<\/a> for the black box encoders they have Chan A, Chan B, and index.<\/p>\n<p>The pin out in the data sheet is for the &#8220;Rear Exit Pin Option&#8221; on my machine.\u00a0 The A and B channels are in quadrature, 400 steps per revolution.\u00a0 The index I think goes by at 1 rpm.\u00a0 Coming into the encoder board, the index signals are about 1ms long, leaving the encoder board and going to the parallel port they are about 24ms long, consistent with the data sheet for the one shots.\u00a0 The Chan A, Chan B quadrature signals square wave frequency varies with the feed rate of the Axis in motion, as it should.<\/p>\n<p>Good news is I discovered that the Chan A and Chan B signals route directly to the parallel port, the encoder board is not even in play so&#8230;<\/p>\n<p>It shakes out like this,<br \/>\nX-Axis<br \/>\nChan-A straight to Pin 21 parallel<br \/>\nChan-B straight to Pin 22 parallel<br \/>\nIndex Signal from encoder board to Pin 23 parallel<br \/>\nIndex Signal associated with my labeled 4 &amp; 5 on encoder board<\/p>\n<p>Y-Axis (Best Educated Guess)<br \/>\nChan-A straight to Pin 18 parallel<br \/>\nChan-B straight to Pin 19 parallel<br \/>\nIndex Signal from encoder board to Pin 20 parallel (Sure about this one, the other two are derived from photos, not proved with a probe)<br \/>\nIndex Signal associated with my labeled 2 &amp; 3 on encoder board<\/p>\n<p>Z-Axis<br \/>\nIndex Signal from encoder board to Pin 24 parallel<br \/>\nCould not find any other signals associated with the Z, no encoder?<br \/>\nIndex Signal associated with my labeled 6 &amp; 7 on encoder board<\/p>\n<p>To bad I don&#8217;t have enough input pins to do anything with this info.\u00a0 I think I can add another parallel port, but thats a whole other game.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prompted by my friend Michael I decided to take another look at the encoder set up on the OZO machine. The encoder board, has the spindle signal conditioning circuit mentioned in previous post as well as two SN74LS123 Monostable Multivibrators.\u00a0 Its my guess that these chips act as one shots, conditioning the signals coming from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5],"class_list":["post-173","post","type-post","status-publish","format-standard","hentry","category-ozorebuild","tag-ozo-cnc-rebuild"],"_links":{"self":[{"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":0,"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions"}],"wp:attachment":[{"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soulysolar.mudventions.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}