8: Programming
(3) Sample program
1. Program for periodic energy function
Module
READY
Module
READY
2. Alarm monitoring function program
Module
Alarm 1 flag
READY
Module
Alarm 2 flag
READY
3. Error monitoring program
Flag for
error
occurrence
Figure 8.3.1-1 Example of sample program
8 – 5
Instruct to measure the periodic electric energy 1
(Measurement is taken when X10 is ON.)
Periodic electric energy 1
measurement flag
Instruct to measure the periodic electric energy 2
(Measurement is taken when X10 is OFF.)
Periodic electric energy 2
measurement flag
Output ON to Y20 when the alarm 1 occurs
Output ON to Y21 when the alarm 2 occurs
U0\
Acquire the latest error code
Latest error
code
Output ON to Y22 when an error occurs
QE81WH