6 - 61 6 - 61
6 IEC FUNCTIONS
6.9.3 Equal ( = ) EQ_E
In all the specified data, whether the relationship of = (equal) is satisfied or not is acquired.
Function definition
BOOL EQ_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 := EQ_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
:=
EQ_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
DINT
b_result := EQ_E( b_select,
di_data1, di_data2, di_data3,
b_data1 );
LDD= di_data1 di_data2
ANDD= di_data2 di_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
LDD=, ANDD=,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: ......