8 - 7
8
Programming
QE81WH4W
2. Measured data acquisition program
U0
\
Figure 8.3-2 Example of a sample program (continued)
Acquire each type of
the measured values
Instruct to measure the periodic electric energy 1
(Measurement is taken when X10 is ON.)
Instruct to measure the periodic electric energy 2
(Measurement is taken when X10 is OFF.)
Output ON to Y20 when the alarm 1 occurs
Output ON to Y21 when the alarm 2 occurs
Acquire the latest error code
Output ON to Y22 when an error occurs
Multiplier of
Module
READY
electric energy
Output period of
data acquisition
clock
Electric energy
(consumption)
U0
\
U0
\
Average current
U0
\
Average value
voltage (L-L)
U0
\
Average value
voltage (L-N)
U0
\
Active energy
U0
\
Reactive energy
U0
\
Apparent power
U0
\
Power factor
U0
\
Frequency
3. Program for periodic energy function
Module
READY
Periodic electric energy 1
measurement flag
Module
READY
Periodic electric energy 2
measurement flag
4. Alarm monitoring function program
Module
READY
Alarm 1
flag
Module
READY
Alarm 1
flag
Flag for
error
occurrence
5. Error monitoring program
U0
\
Latest error
code