Static REAL Value Capture

riggs33x

Member
Join Date
Oct 2021
Location
Alabama
Posts
2
Hi all,

Let's say we have a nice real (analog) value that has already been scaled with an SCP in Studio5000.

Is there a slick method to capture/notice when this value has become static (non moving, sensor failure, etc.) without using some Mov instructions to move numbers and timers around.

I want to be able to check on this real value (constantly measuring and changing reported values as it weighs material == it's a scale) say every 60 seconds or so; then, if the value isn't changing (has become static), I can make myself some alarms and so on.

Thanks,:D
 
You can check for an open wire or a maxed-out signal without using a MOV instruction, but to check for data changes over time you have to capture and hold a value for later comparison and that implies a MOV or COP type of instruction. What is your objection to using the obvious tool available to do the task?
 
Still uses timers/mov but is concise.

NEQ CurrentVal OldVal TOF ChangeTimer 60000 0 MOV CurrentVal OldVal

That works in my head. The timer should always be done if the value is changing because a TOF goes DN on transition to True, will go False after not true for the time period. You could hide the code in an AOI, then just provide the analog value.
 
Still uses timers/mov but is concise.

NEQ CurrentVal OldVal TOF ChangeTimer 60000 0 MOV CurrentVal OldVal

That works in my head. The timer should always be done if the value is changing because a TOF goes DN on transition to True, will go False after not true for the time period. You could hide the code in an AOI, then just provide the analog value.

This seems to me like the quickest and simplest way to do it programmatically, and having it in an AOI would be nice as well
 
Presumably you’re scaling and filtering raw data?

Monitor the raw data for its noise.

One (good) reason to max the channel resolution wherever possible.
 
Last edited:

Similar Topics

guys: I have a problem with my IP configuration. my organization networking has 2 subnets. 10.0.0.25 and 10.1.0.25 both under 255.255.255.0 all...
Replies
2
Views
567
Hi Yes, I'm stuck again. Trying to define a Function Block. What I've put in there so far has been a straight copy/paste from the code (and that...
Replies
22
Views
2,892
Hi; In our Corrugator plant, there are automatic WIP conveyors having two moving carts also. System contains 17 items (server, two PCs, Siemens...
Replies
6
Views
2,436
HI All.It the matter of losing the JOB. I want to write a script in Archestra or in intouch where i have to perform the Tag validation. I need...
Replies
2
Views
1,385
The following is a set of photos illustrating ESD damage to a circuit board. I got this from here...
Replies
3
Views
1,670
Back
Top Bottom