Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-219
Ver. 1
2) DAVE (Double Word Average)
(1) Saves the average resulted from the sum up to N double word data starting from S divided by N in D.
(2) Value to be saved in double word data D is of DINT.
(3) If operation result is Zero, Zero Flag will be set.
(4) The decimals will be omitted if the sum of N data is not exactly divided by N.
3) Program Example
(1) When D01000=1111, D01001=3333, D01002=2222, D01200=h0003, if Input Signal is changed from Off to
On status, it saves D01100=2222.
P00000
AVEP D01000 D01100 D01200
n
Address to start operation
3353948
Average
D
S
S + 2
S + 4
S + 6
S + (2n-8)
S + (2n-6)
S + (2n-4)
S + (2n-2)
-12345
25894
256
588479
145
26594823
-258
-365412
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...