6 - 65 6 - 65
6 IEC FUNCTIONS
6.9.5 Less than right member ( < ) LT_E
In all the specified data, whether the relationship of < (less than) is satisfied or not is acquired.
Function definition
BOOL LT_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2,…., ANY_SIMPLE Sn,
BOOL D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1 to Sn
IN
Comparison target data
D1 OUT
Comparison
result
Remarks: D1 = (S1 < S2 ) & (S2 < S3) & ............... & (Sn -1 < Sn)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
b_result := LT_E( b_select,
r_data1, r_data2, r_data3,
b_data1 );
LDE<
r_data1 r_data2
ANDE< r_data2 r_data3
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<, ANDE<,OUT,
LD,AND,SET,ANI,
RST
INT B100
:=
LT_E( M20, D10, D20, D30,
M200 );
LD<
D10 D20
AND<
D20 D30
OUT
M8191
LD
M20
AND
M8191
SET
M200
LD
M20
ANI
M8191
RST
M200
LD
M20
OUT
B100
LD<, AND<,OUT,
LD,SET,ANI,RST
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......