cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to Increment a Counter Based on Tag Value Check Every Second in KepServerEX

EA_11204094
4-Participant

How to Increment a Counter Based on Tag Value Check Every Second in KepServerEX

Hello everyone,

 

I’m working with KepServerEX and need some help with a tag-based counter setup. I have a single tag, and I want to monitor its value every second. Specifically, whenever the tag’s value exceeds a certain threshold, I want to increase a counter that starts at 0 by +1.

Here's a summary of what I'm trying to achieve:

  1. Monitor the tag value every second.
  2. If the tag value is above a certain threshold, increment a counter by 1.
  3. Counter should start at 0 and increase by 1 each time the condition is met.

Could someone guide me on how to set this up? Any tips on scripting or configuration within KepServerEX would be greatly appreciated.

Thanks in advance!

ACCEPTED SOLUTION

Accepted Solutions
MKhatri
14-Alexandrite
(To:EA_11204094)

Hello,

Thank you for your inquiry regarding the counter operation in KEPServerEX/ThingWorx Kepware Server. 

 

After careful consideration, we would like to inform you that it is not practical to perform counter operations within KEPServer due to the advanced tag processing and timing limitations that could result in inaccurate results. The core functionality of KEPServerEX is not designed to handle counter operations, and attempting to do so may lead to inconsistencies in the data.

 

For accurate counter operations, we recommend performing them either in the PLCs themselves or in the end client applications. This will ensure that the counting process is reliable and accurate.

 

If you have any further questions or require additional assistance, please do not hesitate to reach out.

Regards,
Mohit

View solution in original post

1 REPLY 1
MKhatri
14-Alexandrite
(To:EA_11204094)

Hello,

Thank you for your inquiry regarding the counter operation in KEPServerEX/ThingWorx Kepware Server. 

 

After careful consideration, we would like to inform you that it is not practical to perform counter operations within KEPServer due to the advanced tag processing and timing limitations that could result in inaccurate results. The core functionality of KEPServerEX is not designed to handle counter operations, and attempting to do so may lead to inconsistencies in the data.

 

For accurate counter operations, we recommend performing them either in the PLCs themselves or in the end client applications. This will ensure that the counting process is reliable and accurate.

 

If you have any further questions or require additional assistance, please do not hesitate to reach out.

Regards,
Mohit

Announcements


Top Tags