Hello, I am working with a omron E6C2-CWZ5B rotary encoder (differential phase A, B and Z, 360 P/R). I am having trouble with it finding degrees accurately within a program. I have an omron cpm2a and am applying the high speed counter. I have set up a comparison table starting in dm0100. The table tells it to stop sending an on setting out to a rapid valve at 10 degrees and then to stop sending an on setting out to a creep valve at 2 degrees. That works fine, but where it actually stops is variable. I have a startup function to find the z phase in the clockwise direction and then go back to 0 degrees. Once I do that I tell it to go to 90 degrees. Once it hits 80 degrees it shuts off the rapid valve and at 88 degrees it shuts off the creep valve. This is how I think I have it set up.
Now when I tell it to go to 90 it does stop the rapid and creep but in the wrong places. As in it will shut it off at the approximately 15 degrees instead of 90. Or it will shut off at approximately 30 degrees.
Does it all have to do with how I find the Z phase pulse?
I am extremely new to this and if you need more information please tell me.
Now when I tell it to go to 90 it does stop the rapid and creep but in the wrong places. As in it will shut it off at the approximately 15 degrees instead of 90. Or it will shut off at approximately 30 degrees.
Does it all have to do with how I find the Z phase pulse?
I am extremely new to this and if you need more information please tell me.