Or_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.5.2

OR_E

Outline
This function obtains the logical sum of two or more bits, and outputs it.
1. Format
Function name
OR_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_IN (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function obtains the logical sum using each bit of bit/word [unsigned]/bit string [16-bit]/double word
[unsigned]/bit string [32-bit] data stored in devices specified in
result to a device specified in
.
s2
Example: When the data type is word [unsigned]/bit string [16-bit]]
s1
1
0
s2
d
1
2) The number of pins in
Cautions
When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different from
simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
156
FX
3U(C)
Structured ladder
X000
OR_E
EN
M0
_IN
M10
_IN
Execution condition
...)
Device used to obtain the logical sum
s1
Execution status
Device which will store the operation result
(
)
d
d
1
0
0
1
1
1
Logical sum
0
0
0
0
0
1
1
0
0
1
1
1
can be changed.
s
FX
3G
FX
2N(C)
FX
Expression in each language
OR_E(EN,_IN,_IN,Output label);
Example:
ENO
OR_E(X000,M0,M10,M20);
*1
M20
Description
using the data type of data stored in devices specified in
1
0
0
0
0
1
1
0
0
0
1
1
0
1
1
0
0
1
1
1
1
5.5 Standard Bitwise Boolean Functions
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
ANY_BIT
Bit
ANY_BIT
and
, and outputs the operation
s1
s2
1
1
0
0
1
1
FX
0N
FX
0(S)
Data type
and
s1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents