On 12/5/2011 11:37 AM, [email protected] wrote: > Does anyone know of any examples of code to index a tool magazine that > has switches like the following: > This is a 16 position magazine on a Mori MVJR mill. > > Limit Switch A Signal 0 on each pot, 1 between each pot > Limit Switch B Signal 1 on each pot, 0 between each pot > Limit Switch Z Signal 0 on pots 1-15, 1 at pot 16 > > Best Regards > > Jon Schmidt > > > > CRadek probably knows how this is setup - he did a Mori Seiki Junior - you might want to ask him on the IRC.
My guess is that the switches are setup in a full quadrature fashion so it can determine which way the magazine is rotating and sense the movement in 1/4 pot movements.. (At least that is what I would do ;-) ) If the switches are out phase by 90 degrees (360 degrees being on movement between pots) , that is probably what they are doing. That way they can sense direction and movement by looking for the edges of the switches. The Z signal resets the count. I could be entirely wrong though - I'd track down Chris. Tracking rotation and movement in Classic Ladder with a full quadrature setup is pretty easy - if that is what is happening. I could send you a ladder code snippet if that is the case. Dave ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
