Equal ( = ) - 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.3 Equal ( = )

In all the specified data, whether the relationship of = (equal) is satisfied or not is acquired.
Function definition
6 - 61
EQ_E
BOOL EQ_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2,...., ANY_SIMPLE Sn,
BOOL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1 to Sn
IN
D1
OUT
Remarks: D1 = (S1 = S2 ) & (S2 = S3) & ............... & (Sn -1 = Sn)
Return value
Return Value
BOOL
Execution condition
Example of use
Argument Type
REAL
b_result := EQ_E( b_select,
r_data1, r_data2, r_data3,
b_data1 );
INT
B100 :=
EQ_E( M20, D10, D20, D30,
M200 );
DINT
b_result := EQ_E( b_select,
di_data1, di_data2, di_data3,
b_data1 );
Execution condition (Function is executed only when the result is TRUE)
Comparison target data
Comparison result
ST Program
Conversion Result
LDE=
ANDE=
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LD=
AND=
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LDD=
ANDD= di_data2 di_data3
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
Description
Description
Used Instruction
r_data1 r_data2
LDE=, ANDE=,OUT
r_data2 r_data3
LD,AND,SET,ANI,
RST
M8191
b_select
M8191
b_data1
b_select
M8191
b_data1
b_select
b_result
D10 D20
LD=, AND=, OUT
D20 D30
LD,AND,SET,ANI
RST
M8191
M20
M8191
M200
M20
M8191
M200
M20
B100
di_data1 di_data2
LDD=, ANDD=,OUT,
LD,AND,SET,ANI,
RST
M8191
b_select
M8191
b_data1
b_select
M8191
b_data1
b_select
b_result
6 - 61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents