Справочник Пользователя для Mitsubishi Electronics FX

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-119
5.11.1
ECMP (FNC 110)
Operation:
The data of S
is compared to the data of S
2
. The
result is indicated by 3 bit devices specified with
the head address entered as D. The bit devices
indicate:
S
is less than < S
- bit device D is ON
S
is equal to = S
- bit device D
+1 
is ON
S
is greater than > S
- bit device D
+2 
is ON
5.11.2
EZCP (FNC 111)
Operation:
The operation is the same as the ECMP instruction
except that a single data value (S
3
) is compared to
a data range (S
- S
2
).
S
is less than S
and S
- bit device D is ON
S
is between S
and S
- bit device D
+1 
is ON
S
is greater than S
- bit device D
+2 
is ON
Mnemonic
Function 
Operands
Program steps
S
1
S
2
D
ECMP
FNC 110
(Floating
Point
Compare)
Compares two
floating point
values - results of
<, = and > are
given
K, H - integer value automati-
cally converted to floating point
D - must be in floating point
format (32bits).
Y, M, S
Note:
3 consecutive
devices are
used.
DECMP,
DECMPP:
13 steps
Mnemonic
Function 
Operands
Program steps
S
1
S
2
S
3
D
EZCP
FNC 111
(Floating
Point Zone
Compare)
Compares a float
range with a float
value - results of
<, = and > are
given
K, H - integer value automatically
converted to floating point
D - must be in floating point format
(32 bits).
Note: S
1
 must be less than S
2
Y, M, S
Note: 3
consecu-
tive devices 
are used.
DEZCP,
DEZCPP:
13 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
DECMP
M8000
M16
M17
M18
D12
D20
M16
[ S1 ]
[ S2 ]
[ D ]
D20 < D12
D20 = D12
D20 > D12
Points to note:
The status of the destination devices will be kept even if the ECMP instruction is deactivated.
Full algebraic comparisons are used: i.e. -1.79 
×
 10 
27
 is smaller than 9.43 
×
 10 
-15
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
DEZCP
M8000
M50
M51
M52
D50 D60
D100
M50
[ S
1
  ] [  S
2
  ] [  S
3
 ] [ D ]
D100 < D50,D60
D100 
£
 D50 
£
 D60
D100 > D50,D60