Unequal ( <> ) - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS
6.9.6 Unequal ( <> )
In all the specified data, whether the relationship of
Function definition
6 - 67
NE_E
BOOL NE_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2, BOOL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
S2
IN
D1
OUT
Remarks: D1 = (S1
S2 )
Return value
Return Value
BOOL
Execution condition
Example of use
Argument Type
REAL
b_result := NE_E( b_select,
r_data1, r_data2, b_data1 );
INT
B100 :=
NE_E( M20, D10, D20, M200
);
DINT
b_result := NE_E( b_select,
di_data1, di_data2, b_data1 );
(unequal) is satisfied or not is acquired.
Execution condition (Function is executed only when the result is TRUE)
Comparison target data
Comparison target data
Comparison result
ST Program
Conversion Result
LDE<>
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LD<>
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LDD<> di_data1 di_data2
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
Description
Description
Used Instruction
r_data1 r_data2
LDE<>,OUT,LD,
AND,SET,ANI,RST
M8191
b_select
M8191
b_data1
b_select
M8191
b_data1
b_select
b_result
D10 D20
LD<>,OUT,LD,AND,
SET,ANI,RST
M8191
M20
M8191
M200
M20
M8191
M200
M20
B100
LDD<>,OUT,LD,AND,
SET,ANI,RST
M8191
b_select
M8191
b_data1
b_select
M8191
b_data1
b_select
b_result
6 - 67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents