E L C P r o g r a m m i n g M a n u a l
F or more info rmat io n vi sit: www.e a to n.c om M N 0 5 003 00 3 E
3-430
API Mnemonic
Operands
Function
179
D WSUM P
S, D, n
Sum of Multiple Devices
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
*
*
*
n
*
*
*
D
*
*
*
WSUM, WSUMP: 7 steps
DWSUM, DWSUMP: 13
steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
: Source address
n
: Data length to be summed
D
: Address for storing the result
Description:
1.
The WSUM instruction adds
n
values starting from
S
and stores the result in
D.
2.
Valid range for
n
: 1~64. If the
n
value is out of
the available range (1~64), ELC will use the
upper (64) or lower (1) bound.
Program example:
When X10 = ON, 3 consecutive addresses (
n
= 3) starting from D0 will be added and the result will
be stored in D10
X10
WSUM
D0
D10
K3
D0
D1
D2
D10
K338
K100
K113
K125
(D0+D1+D2)
D10
Result:
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...