Download Print this page

Compare - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

24.2

Compare

NE(_E)
These functions output the data comparison result of input values.
Ladder diagram, FBD/LD
[Without EN/ENO]
s1
d
s2
*1 Supported by engineering tool version "1.035M" and later. In earlier versions, write in operator form. (MELSEC iQ-F FX5
Programming Manual (Program Design))
Setting data
■Descriptions, types, and data types
Argument
EN
s1(IN1), s2(IN2)
ENO
d(NE(_E))
Processing details
■Operation processing
• These functions perform a comparison operation of input values of (s) and output operation results from (d) in the BOOL
type.
• NE(_E): These functions compare [(s1)(s2)].
• When (s1)(s2), these functions output TRUE.
• These functions output FALSE when (s1)=(s2).
• A data value of the INT, DINT, REAL, BOOL, WORD, DWORD, TIME, or STRING type can be input to (s).
■Operation result
1.
Function without EN/ENO
The following table lists the operation results.
Operation result
No operation error occurred
An operation error occurred
2.
Function with EN/ENO
The following table lists the execution conditions and operation results.
Execution condition
EN
TRUE (Executes operation)
FALSE (Stops operation)
*1 When FALSE is output from ENO, data output from (d) is undefined. In that case, modify a program so that the data output from (d) is
not used.
24 COMPARISON FUNCTIONS
1022
24.2 Compare
[With EN/ENO]
EN
ENO
s1
d
s2
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Input
Output status (TRUE: Normal, FALSE: Abnormal)
Output (TRUE: True value, FALSE: False value)
Operation result
ENO
TRUE (Operation error did not occur)
FALSE (Operation error occurred)
*1
FALSE
Structured text
*1
[Without EN/ENO]
d:=NE(s1,s2);
[With EN/ENO]
d:=NE_E(EN,ENO,s1,s2);
Type
Input variable
Input variable
Output variable
Output variable
(d)
Operation output value
Indefinite value
(d)
Operation output value
*1
Indefinite value
Indefinite value
Data type
BOOL
ANY_ELEMENTARY
BOOL
BOOL

Hide quick links:

Advertisement

loading