Sum Binary Numbers (SUMBIN) (IB-502)
Sum Binary Numbers sums up a list of consecutive 16-bit WORD Binary numbers into a 32-
bit DWORD binary result.
230
You specify the group's starting and ending
240
V-memory addresses (inclusive). When
250-1
enabled, this instruction will add up all the
numbers in the group (so you may want to
260
place a differential contact driving the
enable).
DS5
Used
SUMBIN could be used as the first part of
N/A
HPP
calculating an average.
SUMBIN Parameters
• Start Address: specifies the starting address of a block of V-memory location values to be added
together (Binary)
• End Addr (inclusive): specifies the ending address of a block of V-memory location values to be
added together (Binary)
• Result (DWORD Binary): specifies the location where the sum of the block of V-memory binary
values will be placed
Start Address . . . . . . . . . . . . . . . . . . . . . . . . . . V
End Address (inclusive) . . . . . . . . . . . . . . . . . . V
Result (DWORD Binary) . . . . . . . . . . . . . . . . . . V
SUMBIN Example
In the following example, the SUMBIN instruction is used to total the sum of all Binary
values in words V2000 thru V2007 and store the resulting 8-digit double word Binary value
in V3000 and V3001 when C100 turns on.
Chapter 5: Intelligent Box (IBox) Instructions
Parameter
DL205 User Manual, 4th Edition, Rev. B
DL205 Range
See DL205 V-memory map - Data Words
See DL205 V-memory map - Data Words
See DL205 V-memory map - Data Words
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
5–269
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?