To create a user defined message, the INFORM instruction “SetUserAlarm” can be used. This command allows a user to provide an Alarm Code (8000-8999), a custom message (Alarm Text), and a Subcode value. The Alarm Text value can be either a Constant String or a String Variable.
This instruction can be found under the {Control} category.
To configure the error message as a Constant String, simply add the error message directly into the instruction:
To configure the error message as a String Variable, select {IO & Variables}->{Variables} from the Main Menu. Next, select the String tab and enter the desired message into a String Variable. Below, an error message has been added to S020.
Now, the alarm message below will be displayed when the INFORM instruction is executed.
Comments
0 comments
Please sign in to leave a comment.