Jump to content

V260 Decrementing High Speed Counter ?


Recommended Posts

High speed couters in my history count up. Im not sure what the end goal is, but if you need to for example show a decreasing value down to zero you can take the total value and subtract, then show this value on screen. For example when I have written programs for wire cutting machines in the past I can chose to either count up as the encoder spins till I meet the customers length then make a cut, or I can count down from the wanted length to zero then make the cut. After the cut I reset to either zero or the maximum value and do it all over again.

If the goal is to know if something is spinning forwards or backwards (and how far it went) then you will need a quadrature encoder that will allow you know what direction you are turning and you will add in one direction and subtract in the other. In any case make sure you do not compare a high speed input value using an equals function block you should always use a greater than or equals or a less than or equals.

Thanks

Keith

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...