Jump to content

Using High Speed Counter inputs for encoder.


Recommended Posts

Hello,

I'm using a US5-B10-TA30 PLC+HMI with an encoder.  I'm using the High Speed Counter Inputs (channel 1) to count the encoder signals and do what I need to do.  This seems to be working well.

How is the HSC Counter Value maintained for the HSC?  Is the HSC counting interrupt driven and buffered?   If the CPU is off executing the rest of the ladder and performing other tasks, it there a risk of counts being missed because the counter is not being read enough?   

Thanks.

Link to comment
Share on other sites

  • MVP 2022

As standard for all high-speed inputs of most PLCs, the counter value (Hardware provided) is directly related to the value that the PLC processor "sees".

Therefore, it is usually stable and the HSC does not lose pulses in the entire range of the permissible frequency of pulses.

The main problem is the processing of this value. Without interrupting the PLC program, you cannot accurately track the desired value if the counting rate is greater than the PLC program execution time. Therefore, if you set the condition = following the increasing value - there is a risk of missing the necessary one.

Accordingly, set the condition >= for increasing and <= for decreasing value that needs to be processed in the PLC program. Both in the case of normal execution of the program and in the case of using an interrupt.

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