6 - 63 6 - 63
6 IEC FUNCTIONS
6.9.4 Less than or equal to right member ( <= ) LE_E
In all the specified data, whether the relationship of (less than or equal to) is satisfied or not is acquired.
Function definition
BOOL LE_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 := LE_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
:=
LE_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,AND,SET,ANI,
RST
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......