19 Applied Instructions (Data Operation 2)
19.1 WSUM / Sum of Word Data
499
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
Program example
This is a program for storing the total value of 16-bit data of D10 to D14 when the X010 is turned ON to [D101,
D100].
[D101,D100]
WSUMP
instruction
K4500
K2500
K-3276
K6780
K4444
D10
K14948
D11
D12
D13
D14
WSUMP
EN
s
n
ENO
d
X10
D10
K5
D100
[Structured ladder/FBD]
[ST]
WSUMP(X10,D10,K5,D100);