News:

  • June 25, 2026, 05:05:39 PM

Login with username, password and session length

Author Topic: High speed up counter  (Read 9006 times)

jwbaker3

  • Hero Member
  • *****
  • Posts: 142
High speed up counter
« on: February 02, 2023, 09:06:36 AM »
There are 3 high speed up counter functions built into the PLC (BX-DM1E-36ER3) can I add another one? I need 4 if possible.

Thanks,
JW


jwbaker3

  • Hero Member
  • *****
  • Posts: 142
Re: High speed up counter
« Reply #2 on: February 02, 2023, 09:27:41 AM »
I was hoping to be able to add it to the main PLC. I already looked at the HSIO but I can't add another card to the rack. I'll have to add another CPU for the card.

Thanks for the quick answer!
JW

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6161
  • Yes Pinky, Do-more will control the world!
Re: High speed up counter
« Reply #3 on: February 02, 2023, 11:35:12 AM »
I was hoping to be able to add it to the main PLC. I already looked at the HSIO but I can't add another card to the rack. I'll have to add another CPU for the card.

Thanks for the quick answer!
JW

They are physical things implemented in FPGA logic. Can't be added.

How fast do you need the counter to count?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: High speed up counter
« Reply #4 on: February 03, 2023, 05:36:18 PM »
I got a faster 4th counter using the interupt routine Its used in every waste treatment plant we built to count flow meters.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6161
  • Yes Pinky, Do-more will control the world!
Re: High speed up counter
« Reply #5 on: February 03, 2023, 05:45:24 PM »
I got a faster 4th counter using the interupt routine Its used in every waste treatment plant we built to count flow meters.

This is what I was about to recommend, if his speed requirement isn't too high.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

jwbaker3

  • Hero Member
  • *****
  • Posts: 142
Re: High speed up counter
« Reply #6 on: February 06, 2023, 08:24:31 AM »
The rate is ~7,500 counts per second. A standard counter misses about 75% of the count. The interrupt is a good idea, I'll look and see if I can get it working.

Thanks,
JW