Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-217
Ver. 1
2) DSUM (Double Word Summary)
(1) Saves the result of the sum up to N data starting from double word data S in D.
(2) Sum will be performed by signed operation.
(3) If operation result is Zero, Zero Flag will be set.
(4) If overflow occurs during operation, Carry Flag and Error Flag will be set.
(5) The operated value will be saved in result despite the overflow. Thus, Carry Flag should be checked since
unintentional value could be saved in result.
(6) If N=0, the instruction will not be executed.
3) Program Example
(1) When Dp1000=h1111, D01001=h3333, D01002=h2222, D01200=h0003, if Input Signal P00000 is changed
from Off to On status, it saves D01100=h6666.
P00000
SUMP D01000 D01100 D01200
n
Address to start operation
26831591
Sum
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...