Gentlemen, I have a prox for tool change zero return (to home the chain of pots) and a prox to count the pots during chain motion The chain moves slow - between 1 and 2 pots per second The chain matrix carries 30 pots This is a random tool changer - the pot swings down and a transfer arm swaps the tools between the spindle and the tool change pot I want to reset the count to 1 every time the zero return dog passes the prox The following code resets the count as I wish I have an edge component set up to trigger on the falling edge of the pot count prox signal The following code counts two every time the pot count dog passes the prox
if (PotZero) { toolpotcount = 1; } else if (PotCount) { toolpotcount = toolpotcount + 1; } I have removed all other logic from my component - this is the entire logic in the file at this time What am I missing? (except for intelligence) :) I trigger the pot with pliers and get the same results whether I trigger quickly or hold the pot on. thanks Stuart -- uno centavo ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users