5.7 Standard Comparison Functions
179
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on
Cons
tructi
on
4
Ho
w t
o R
ea
d
Explanati
on of
Func
tions
5
Appl
ie
d
Functions
6
Stan
dard
Functi
on
Blocks
A
Correspondence
be
tw
een Dev
ice
s
an
d A
ddres
ses
5.7.6
NE_E
Outline
This function compares data with regard to "
≠
(unequal)".
1. Format
*1.
Output variable
2. Set data
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function compares the contents of devices specified in
and
, and outputs the operation result
expressed as the bit type data to a device specified in
.
This function executes comparison [
≠
].
a) This function outputs "TRUE" when in the case of "
≠
"
b) This function outputs "FALSE" when in the case of "
=
"
Cautions
When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different from
simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices. Use global labels when
specifying labels.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Function name
Expression in each language
Structured ladder
ST
NE_E
NE_E(EN,_IN1,_IN2,Output label);
Example:
NE_E(X000,D0,D10,M0);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
_IN1 (
)
Compared data, or word device which stores such data
ANY_SIMPLE
_IN2 (
)
Compared data, or word device which stores such data
ANY_SIMPLE
Output
variable
ENO
Execution status
Bit
*1
(
)
Device which will store the comparison result
Bit
NE_E
EN
ENO
*1
M0
X000
_IN1
D0
_IN2
D10
s1
s2
d
s1
s2
d
s1
s2
s1
s2
s1
s2
Содержание 09R927
Страница 2: ......
Страница 234: ...232 FXCPU Structured Programming Manual Application Functions Revision History MEMO ...