7 Applied Instructions
7.13 Data Operation 2
515
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Cautions
1) In 32-bit operation, the total value becomes 64-bit data. FX3U, FX3UC PLCs cannot handle 64-bit data.
However, when the total value is in the numeric value range of 32-bit data (K-2,147,483,648 to
K2,147,483,647), higher 32-bit data is ignored, and the lower 32-bit data can be handled as the total
value.
2) When handling array data or 32-bit data in structured program, you cannot specify 16-bit device directly
unlike the simple project. When handling array data or 32-bit data, please use the label.
However, the 32-bit counter is a 32-bit long device, and can be specified directly.
When specifying the device, use the global label.
3) FX
3U, FX3UC PLCs support the instruction at V2.20 or later.
Error
In the following case, it is an operation error, error flag M8067 is turned ON, and error code is stored in
D8067.
1) When n devices from the device specified by exceed the device range. (Error code: K6706)
2) When n ≤ 0. (Error code: K6706)
3) When the device specified by exceeds the range. (Error code: K6706)
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
VAR_SUM
VAR_SUM is a global label,
and D100 is defined.
[Structured ladder]
[ST]
WSUMP(X10,D10,K5,VAR_SUM);