Displaying the average value – Yokogawa Data Acquisition with PID Control CX2000 User Manual

Page 422

Advertising
background image

App-53

IM 04L31A01-01E

Appendix

App

Appendix 10 Expression Examples

Function
Averages the measured values on channel 1 every 5 minutes and displays the result.

Scan Interval
1 second

Expression

31 = 31*(31.LT.K02)+K01

32 = 32*(31.NE.K01)+01

33 = 32/31

34 = (33*(31.EQ.K02))+(34*(31.NE.K02))

K01 = 1

K02 = 300

Explanation
Channel 31 is a counter that increments by 1 every scan interval. It counts from 1 to 300, and
then repeats.
Channel 32 integrates the measured values on channel 1 until channel 31 reaches 300.
Channel 33 calculates the average value of channel 1.
Channel 34 displays the value of channel 33 when channel 31 is 300, and holds that value until
the next time channel 31 becomes 300.

Displaying the Average Value

Channel 31

(counter)

Channel 32

(integrated value)

Channel 33

(average value)

Channel 34

(average every 5 min.)

0

300

Time

5 minutes

Advertising