.ROCStatus dotfield
- Last UpdatedJun 19, 2024
- 1 minute read
Indicates when a rate-of-change alarm becomes active for the specified tag or alarm group. The default value is 0. When a rate-of-change alarm condition exists for the specified tag, it is set to a value of 1. The value remains 1 until the rate-of-change alarm condition no longer exists.
This dotfield is often used in conjunction with the .Alarm and .Ack dotfields to determine the specific alarm state of a tag.
Category
Alarms
Usage
TagName.ROCStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
The following IF-THEN statement runs when the .ROCStatus (rate-of-change alarm) for the MyTag tag is equal to 1.
IF (MyTag.ROCStatus == 1) THEN
OperatorMessage="MyTag has gone into a Rate-Of-Change alarm";
ENDIF;
See Also
.ROCPct, .ROCSet