Fnc121 - Esub / Floating Point Subtraction - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.9
FNC121 – ESUB / Floating Point Subtraction
Outline
This instruction executes subtraction of two binary floating point data.
1. Instruction format
FNC 121
D
ESUB
P
2. Set data
Operand Type
S
1
S
2
D
*1.
When a constant (K or H) is specified, it is automatically converted into binary floating point (real
number) when the instruction is executed.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
1
S
2
D
Explanation of function and operation
1. 32-bit operation (DESUB and DESUBP)
Binary floating point data [
the subtraction result in the binary floating point format is transferred to [
Command
input
FNC121
DESUB
When a constant (K or H) is specified as [
into binary floating point.
Command
input
FNC121
DESUB
Caution
1. When a same device is specified
A same device number can be specified in [
In this case, note that the subtraction result changes in every operation cycle when the continuous operation
type instruction (DESUB) is used.
→ For program examples of floating point operations, refer to Section 12.10.
Mnemonic
16-bit Instruction
Word device number storing binary floating point data used in subtraction
Word device number storing binary floating point data used in subtraction
Data register number storing the subtraction result
Digit Specification
+1,
] is subtracted from binary floating point data [
S
S
2
2
S
S
D
1
2
S
S
S
D
1
2
18.9 FNC121 – ESUB / Floating Point Subtraction
→ For handling of floating point, refer to Subsection 5.1.3.
→ For flag operations, refer to Subsection 6.5.2.
Operation Condition
32-bit Instruction
13 steps
Description
Word Devices
Special
System User
Unit
V Z Modify K H
] − [
[
S
+1,
S
S
1
1
2
Binary floating point
Binary floating point
+1,
] or [
+1,
S
S
1
1
2
] − [
[
S
+1,
S
1
1
Binary floating point
Automatically
converted into binary
+1,
],[
+1,
S
S
S
1
1
2
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
Continuous
DESUB
Operation
Pulse (Single)
DESUBP
Operation
Data Type
Real number
(binary)
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
+1,
S
S
1
+1,
].
D
D
] → [
+1,
S
D
+1,
D
2
Binary floating point
], it is automatically converted
S
2
] → [
K2346
D
+1,
D
Binary floating point
floating point
] and [
+1,
S
D
D
2
11
12
13
14
*1
15
Pointer
16
P
17
], and
1
18
]
19
]
20
].
481

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents