Delta DVP — 4.1 Summation of Continuous D Registers

4. Index Registers E, F Design Examples the loop. z In the first FOR ~ NEXT loop, E1 = K1, so D100E1 represents D101. ADD instruction is executed, and the operation result of D100 plus D101 is stored in D100. Since the summand D100 = K0, the value stored in D100 equals to the value in D101. At the same time, INC instruction is executed to set E1 = K2. z In the second FOR ~ NEXT loop, E1 = K2, so D100E1 represents D102. ADD instruction is executed, and the operation result of the values of D100 plus D102 is stored in D100. Since the summand D100 = D101, the value stored in D100 is the sum of the D101 and D102.

z According to the same process, by the 10 th FOR ~ NEXT loop the value in D100 will be the sum of D101, D102, D103, D104, D105, D106, D107, D108, D109 and D110. z If the operation result flag indicator will be ON. On the contrary, if the operation result > K32767, M1022 will be ON to activate output coil Y1. Carry flag indicator will be ON in this case. DVP-PLC Application Examples 4-2