6 - 44 6 - 44
6 IEC FUNCTIONS
6.7.2 Logical sum OR_E
The logical sum of the specified multiple data is operated.
Function definition
BOOL OR_E( BOOL EN, ANY_BIT S1, ANY_BIT S2,…., ANY_BIT Sn, ANY_BIT D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1 to Sn
IN
Data to be ORed
D1 OUT
OR
operation
result
Return value
Return Value
Description
BOOL Execution
condition
Remarks:
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
BOOL
b_result := OR_E( TRUE,
b_data1, b_data2, b_data3 );
LD b_data1
OR b_data2
OUT M8191
LD
SM400
AND
M8191
SET b_data3
LD SM400
ANI M8191
RST b_data3
LD SM400
OUT b_result
LD,OR,OUT,AND,SET,
ANI,RST
Word device
B1 :=
OR_E( TRUE, D0, D1, D2 );
LD SM400
WOR
D0 D1 D2
LD SM400
OUT B1
LD, WOR, OUT
For the usable data type, refer to "3.2.2 About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......