ADD (16bit data)
WSUM, WSUMP (16bit data)
ADD (n)number of word data and save the result in Destination(double word)
(It supports only in XP and PLC-S CPU series)
| |
S | Starting address of Source |
D | Destination |
n | Number of source |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
WSUM WSUMP | S | o | o | o | o | o | o | o | o | - | o | o | o | - | 4 | o | - | - |
D | o | o | o | o | o | - | o | o | - | o | o | o | - | |||||
n | o | - | o | o | o | - | o | o | - | o | o | o | o |
Example)
If X00 is ON, add D0, D1, D2, D3, D4, and D5 and then send the result to D10 and D11.