.OnMsg Dotfield
- Last UpdatedNov 07, 2016
- 1 minute read
The .OnMsg dotfield allows you to access the On message assigned to a discrete tag from the Tagname Dictionary.
Category
Tags
Usage
Tag_name.OnMsg
Parameter
Tag_name
Any discrete tag.
Data Type
Message (read/write). Values written to this dotfield are not retentive.
Valid Values
Any string containing 0 to 15 characters.
Example
The following statement issues a message if the indirect IndPumpState tag On message is assigned a string value of "Pump1 running".
IF IndPumpState.OnMsg == "Pump1 running" THEN
TypeOfTag = "The IndPumpState tag is assigned to Pump1.";
ENDIF;
See Also
.OffMsg