Action
The temperature management system detects an error bit from the connected device and displays alarm messages when the temperature information storage address (D200) rises to 70 degrees C or higher, or falls to 30 degrees C or lower. Also, this script counts the number of detected errors.
Counts each time D200 rises to 70 degrees C or higher and stores the count in address LS0300.
Counts each time D200 drops to 30 degrees C or lower and stores the count in address LS0301.
Address that stores the alarm screen number: LS0008
Commands Used
if ( )
When the "if" condition, enclosed in brackets "( )", is true, the expression following the "if ( )" statement is run.21.11.8 Conditional Expressions
Greater than or equal to (>=)
N1 >= N2 True if N1 is greater than or equal to N2.
Assignment (=)
Assign the value on the right hand side to the left hand side.
Addition (+)
Adds a constant to a Word device's data.
Less than or equal to (<=)
N1 <= N2 True if N1 is less than or equal to N2.
Trigger
In [Trigger], select [Bit ON], and set the [Bit Address] to M000100.
Completed Script