EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 623

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.19 Block Data Operation
621
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) When underflow or overflow occurs in the operation result, the following processing is executed. At this
time, the carry flag does not turn ON.
a) In the case of 16-bit operation
b) In the case of 32-bit operation
2) When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the
case of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
3) The FX
3UC PLC of V. 2.20 or later supports this instruction.
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When "n" ("2n" in 32-bit operation) devices starting from the devices specified by , and/or
exceed the corresponding device range (error code: K6706).
2) When "n" ("2n" in 32-bit operation) devices starting from the device specified by overlap "n" ("2n" in
32-bit operation) devices starting from the device specified by (error code: K6706.)
3) When "n" ("2n" in 32-bit operation) devices starting from the device specified by overlap "n" ("2n" in
32-bit operation) devices starting from the device specified by (error code: K6706.)
Program examples
In the program shown below, the constant "8765" is subtracted from the data stored in D100 to D102 when
X010 is set to ON, and the operation result is stored in D200 and later.
K-32768(H8000) - K2(H0002) K32766(H7FFE)
K32767(H7FFF) - K-2(HFFFE) K-32767(H8001)
K-2,147,483,648(H80000000) - K2(H00000002) K2,147,483,646(H7FFFFFFE)
K2,147,483,647(H7FFFFFFF) - K-2(HFFFFFFFE) K-2,147,483,647(H80000001)
b15 b0
K12345
K8701
K3502
b15 b0
K8765
D200
b15 b0
K3580
K-64
K-5263
X020
BK-
EN ENO
d
s1
s2
n
D100
K8765
K3
D200
D201
D202
D100
D101
D102
[ST]
BK-(X020,D100,K8765,K3,D200);
[Structured ladder]

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals