Fnc110 - Ecmp / Floating Point Compare - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.1
FNC110 – ECMP / Floating Point Compare
Outline
This instruction compares two data values (binary floating point), and outputs the result (larger, same or smaller) to
three consecutive bit devices.
1. Instruction format
FNC 110
D
ECMP
2. Set data
Operand Type
S
1
S
2
D
*1.
When a constant (K or H) is specified, it is automatically converted from binary 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
S
1
S
2
D
1: "D .b" is available only in FX
2: This function is supported only in FX
Explanation of function and operation
1. 32-bit operation (DECMP and DECMPP)
The comparison value [
data, and one of the bits among
larger).
• When a constant (K or H) is specified as [
binary into binary floating point (real number) when the instruction is executed.
Command
input
D
D
D
Even if the command input turns OFF before the DECMP instruction is fully executed,
Caution
1. Number of occupied devices
Three devices are occupied from
Make sure that these devices are not used for any other purpose.
488
Mnemonic
16-bit Instruction
P
Device number storing binary floating point data to be compared
Device number storing binary floating point data to be compared
Head bit device number to which the comparison result is output (Three devices are
occupied.)
Digit Specification
1
/FX
3U
3UC
/FX
3U
+1,
] is compared with the comparison source [
S
S
1
1
,
D
FNC110
S
S
1
2
DECMP
Turns ON in the case of
" [
+1,
]
S
S
>
1
1
Turns ON in the case of
+1
" [
+1,
]
S
S
=
1
1
Turns ON in the case of
+2
" [
+1,
]
S
S
<
1
1
D
(
D
18.1 FNC110 – ECMP / Floating Point Compare
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
Description
Word Devices
Special
System User
Unit
T
C D R U \G
2
2
PLCs, and cannot be indexed with index registers (V and Z).
PLCs.
3UC
+1 and
+2 turns ON according to the result (smaller, same or
D
D
+1,
] or [
S
S
S
1
1
2
D
[ S
+1,
] ".
S
2
2
[ S
+1,
] ".
S
2
2
[ S
+1,
] ".
S
2
2
,
D
+1 and
D
+2).
18 Floating Point – FNC110 to FNC139
Mnemonic
32-bit Instruction
DECMP
13 steps
DECMPP
Real number (binary)
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
+1,
S
S
2
2
+1,
], it is automatically converted from
S
2
D
to
D
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Data Type
*1
Bit
Others
Charac-
Pointer
ter String
" "
P
] as floating point
+2 hold the status.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents