Chapter 16 PLC Function ApplicationsC2000-HS
16-75
API
SUM
ON bit number
43
D P
Bit device Word device
16-bit command (5 STEP)
SUM Continuous
execution type
SUMP Pulse
execution type
32-bit command (9 STEP)
DSUM Continuous
execution type
DSUMP Pulse
execution type
Flag signal: M1020
X Y M K H KnX KnY KnM T C D
S * * * * * * * *
D * * *
Notes on operand usage: none
S
: Source device.
D
: Destination of saving counter values.
The total amount of all digits that is “1” in S will be saved in D.
D will use 2 registers when use the 32-bit command.
Arithmetic elements S and D use F device, and can only use 16-bit command.
If there is no bit is ON, the flag signal M1020 will be ON.
When M200 = On, the total amount of content “1” digit in D0’s 16-bit command will
be saved in D2.
SUM D0 D2
0000 00011 100 0000 3
D2D0