Logical Sum - 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.7.2 Logical sum

The logical sum of the specified multiple data is operated.
Function definition
6 - 44
OR_E
BOOL OR_E( BOOL EN, ANY_BIT S1, ANY_BIT S2,...., ANY_BIT Sn, ANY_BIT D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1 to Sn
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Remarks:
Example of use
Argument Type
BOOL
b_result := OR_E( TRUE,
b_data1, b_data2, b_data3 );
Word device
B1 :=
OR_E( TRUE, D0, D1, D2 );
Execution condition (Function is executed only when the result is TRUE)
Data to be ORed
OR operation result
ST Program
Conversion Result
LD
OR
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LD
WOR
LD
OUT
For the usable data type, refer to "3.2.2 About ANY type".
Description
Description
Used Instruction
b_data1
LD,OR,OUT,AND,SET,
ANI,RST
b_data2
M8191
SM400
M8191
b_data3
SM400
M8191
b_data3
SM400
b_result
SM400
LD, WOR, OUT
D0 D1 D2
SM400
B1
6 - 44

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents