EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 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
Page #207 background imageLoading...
Page #207 background image
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
205
6
Processing details
• These instructions subtract (n) point(s) of 16-bit binary data from the device specified by (s1) and the (n) point(s) of 16-bit
binary data from the device specified by (s2), and store the subtraction results in the device specified by (d).
• Block subtraction is performed in 16-bit units.
Ex.
If device has been specified for (s2)
If constant is specified for (s2)
• If an underflow or overflow occurs for operation result, the result will be as follows. In this case, the carry flag (SM700) does
not turn ON.
Operation error
If signed is specified If unsigned is specified
Error code
(SD0/SD8067)
Description
2820 The range of (n) point(s) of data starting from the device specified by (s1), (s2), or (d) exceed the corresponding device range.
2821 The device range for (n) point(s) beginning from (s1) overlaps with that of (n) point(s) starting from (d).
(Does not apply when same device has been specified for (s1) and (d).)
The device range for (n) point(s) beginning from (s2) overlaps with that of (n) point(s) starting from (d).
(Does not apply when same device has been specified for (s2) and (d).)
···
-
8765 (BIN)
8888 (BIN)
9325 (BIN)
5000 (BIN)
4352 (BIN)
(n)
(n) (n)
1234 (BIN)
5678 (BIN)
9876 (BIN)
4321 (BIN)
4000 (BIN)
7531 (BIN)
3210 (BIN)
-551 (BIN)
679 (BIN)
352 (BIN)
(s1)
(s1)+1
(s1)+(n-2)
(s1)+(n-1)
(s1)+2
···
(s2)
(s2)+1
(s2)+(n-2)
(s2)+(n-1)
(s2)+2
···
(d)
(d)+1
(d)+(n-2)
(d)+(n-1)
(d)+2
···b15 b0 ···b15 b0 b15 b0···
···
-
8765 (BIN)
8888 (BIN)
9325 (BIN)
5000 (BIN)
4352 (BIN)
(n)
(n)
-115 (BIN)
8 (BIN)
445 (BIN)
-3880 (BIN)
-4528 (BIN)
(s1)
(s1)+1
(s1)+(n-2)
(s1)+(n-1)
(s1)+2
···
(d)
(d)+1
(d)+(n-2)
(d)+(n-1)
(d)+2
···b15 b0 b15 b0···
···b15 b0
8880 (BIN)(s2)
K-32767
(8001H)
K2
(0002H)
K32766
(7FFEH)
K32767
(7FFFH)
K-2
(FFFEH)
-
-
K-32767
(8001H)
K0
(0000H)
K1
(0001H)
K65535
(FFFFH)
-

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals