22.4 Displaying an Alarm When an Error
Occurs
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
When the "if" condition, enclosed in brackets
"( )", is true, the expression following the "if ( )" statement is
run.
22.11.10 Conditional Expressions
N1 >= N2 True if N1 is greater than or
equal to N2.
22.11.11 Comparison
Assign the value on the right hand side to
the left hand side.
22.11.12 Operator
Adds a constant to a Word device's data.
22.11.12 Operator
N1 <= N2 True if N1 is less than or equal
to N2.
22.11.11 Comparison
Trigger
In [Trigger], select [Bit ON], and set the [Bit Address] to
M000100.
Completed Script
22.4.1 Procedure - Displaying an
Alarm When an Error Occurs
|