Milos Posted March 12, 2023 Report Share Posted March 12, 2023 Can anyone help me how to use UIS-WCB2 for the position detection? I have connected Encoder A and B outputs on card inputs, it counting But I need two directional counting and can't figure out how to set it. I am new with Unitronics so please feel free to propose obvious simple solutions if exist. Thank you in advance Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted March 12, 2023 MVP 2023 Report Share Posted March 12, 2023 Mayby you not select Encoder Quadrature (A/B) Link to comment Share on other sites More sharing options...
Rivka Posted March 16, 2023 Report Share Posted March 16, 2023 @kratmel You probably meant that in that case we should choose "Pulse and direction" interface type in the counter configuration, then one of the inputs will be connected t the counting and the other, to the direction. Am I missing something? Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted March 16, 2023 MVP 2023 Report Share Posted March 16, 2023 I think that the user did not select correct option in the HW configuration. Unfortunately, user did not specify which settings he selected. By selecting the quadrature (A/B) encoder option, we automatically select (maybe) that this is a reversible counting device, which also takes into account the direction of rotation of the encoder during the processing of two quadrature signals A and B. Unfortunately, I do not have such IO on my desk to experimentally confirm or refute my guesses. Although I may be wrong in my guesses - only the project sent by the user can show what is wrong with the encoder configuration or signal processing from it. Link to comment Share on other sites More sharing options...
Milos Posted March 17, 2023 Author Report Share Posted March 17, 2023 @kratmel @Rivka Thank you so much for the answer. Last few days I was not near machine so I am able to test it now. My first setup was as @kratmel suggested, I also tried with High speed type: Measure Length (Pulse Counter) and A/B interface of course. I have 2 encoders and in both cases during movement value of the tag UIS-WCB2_0.B1: Counter is alternately changing from 0 to 1. When I stop movement last value remains. During movement value of the tag UIS-WCB2_0.B1: Frequency is 0. I need this encoder for position reading so I would like to have some number which I can calculate position from. Link to comment Share on other sites More sharing options...
Milos Posted March 17, 2023 Author Report Share Posted March 17, 2023 Thank you all for the support. I found issue. On one encoder problem was wiring and another encoder is broken. regarding configuration all is as it is described and as I already done. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now