Jump to content

Encoder - Counting up and down / reverse or invert ch A & B without changing the wiring.


Recommended Posts

Hi 

 

I have written a programme to control a small rewinding machine, the machine run both CW & CCW.  I have the counter working, when it counts up the screen output in fine, if you run the encoder backwards the count will  go down, but once it reaches 0 and attempts to go into a minus the display ##########. The number is in -40 something millions.  Does this need a scaling factor?

 

The other issue I have is that sometime the  roll unwinds in the opposite direction and the encoder counts into a minus.  Is there a way to switch the input within the ladder? So the count is always positive?

Sorry if this is vague . Program attached

Final Vers 1.3 180823 no over temp 305dc.vlp

Link to comment
Share on other sites

  • MVP 2023

If you use both direction for only positive count - no quadrature encoder signal needed (Shaft encoder must be changed to High Speed Counter) .

You can use High Speed Counter for encoder (run only to positive) without any changes in wiring.

Try to test this option and make some correction in math.

Link to comment
Share on other sites

On 9/12/2023 at 12:00 AM, kratmel said:

If you use both direction for only positive count - no quadrature encoder signal needed (Shaft encoder must be changed to High Speed Counter) .

You can use High Speed Counter for encoder (run only to positive) without any changes in wiring.

Try to test this option and make some correction in math.

I have not tried that yet.  The machines needs to be able to run in reverse to get the material passing under the encoder to stop in the right place, if it over runs.  HSC counts positive in both directions it wouldn't allow for error correction. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...