6 - 67 6 - 67
6 IEC FUNCTIONS
6.9.6 Unequal ( <> ) NE_E
In all the specified data, whether the relationship of (unequal) is satisfied or not is acquired.
Function definition
BOOL NE_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2, BOOL D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1
IN
Comparison target data
S2
IN
Comparison target data
D1 OUT
Comparison
result
Remarks: D1 = (S1 S2 )
Return value
Return Value
Description
BOOL Execution
condition
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
b_result := NE_E( b_select,
r_data1, r_data2, b_data1 );
LDE<>
r_data1 r_data2
OUT
M8191
LD
b_select
AND
M8191
SET
b_data1
LD
b_select
ANI
M8191
RST
b_data1
LD
b_select
OUT
b_result
LDE<>,OUT,LD,
AND,SET,ANI,RST
INT B100
:=
NE_E( M20, D10, D20, M200
);
LD<>
D10 D20
OUT
M8191
LD
M20
AND
M8191
SET
M200
LD
M20
ANI
M8191
RST
M200
LD
M20
OUT
B100
LD<>,OUT,LD,AND,
SET,ANI,RST
DINT
b_result := NE_E( b_select,
di_data1, di_data2, b_data1 );
LDD<> di_data1 di_data2
OUT
M8191
LD
b_select
AND
M8191
SET
b_data1
LD
b_select
ANI
M8191
RST
b_data1
LD
b_select
OUT
b_result
LDD<>,OUT,LD,AND,
SET,ANI,RST
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......