richie Posted December 23, 2011 Report Share Posted December 23, 2011 my dispay is only counting up. i need it to count up and then count down. i think i may have something set wrong when i set up the high speed counter. any ideas? Quote Link to comment Share on other sites More sharing options...
AlexUT Posted December 25, 2011 Report Share Posted December 25, 2011 Hi richie, What OPLC type do you use? Do you use any Snap-in/Expansion Modules? You need to use shaft encoder and set up properly hardware configuration, then then direction of muvement/rotation will be detected automatically and counter will be incremented/decremented in accordance. There are examples you will open from Help Menu -> Examples. Quote Link to comment Share on other sites More sharing options...
Emil Posted December 26, 2011 Report Share Posted December 26, 2011 It will count up/down according to rotating direction, if: - You connect Shaft encoder - A & B signals to relevant HSC dedicated inputs (for example A & B ). - You will set in Hardware Configuration of the project HSC to Shadt encoder x 2 or Shaft encoder x 4. Quote Link to comment Share on other sites More sharing options...
richie Posted December 31, 2011 Author Report Share Posted December 31, 2011 It will count up/down according to rotating direction, if: - You connect Shaft encoder - A & B signals to relevant HSC dedicated inputs (for example A & B ). - You will set in Hardware Configuration of the project HSC to Shadt encoder x 2 or Shaft encoder x 4. THANKS I HAD THE INPUT SET UP FOR HIGH SPEED COUNTER . WHEN I CHANGED IT TO SHAFT ENCODER X2 IT COUNTED UP AND DOWN. MY ENCODER ONLY HAS A (A SIGNAL) WILL IT BE OK TO USE SHAFT ENCODER X 2 FOR THIS ? Quote Link to comment Share on other sites More sharing options...
Ofir Posted January 1, 2012 Report Share Posted January 1, 2012 Hi, If your encoder supports A & B signals (I hope so) you can select in Hardware configuration HSC as” Shaft encoder x2” or "Shaft encoder x4”. The first option – PLC counts the rising edges of A & B signals. In the second (x4) both rising and falling edges of A & B. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted January 3, 2012 MVP 2022 Report Share Posted January 3, 2012 If your encoder doesn't have a "B" signal then there's no way to determine which way the shaft is turning. Look on this page Rotarty Encoder and scroll down to "Incremental Rotary Encoder" to see how this works. Joe T. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.