5.5 Standard Bitwise Boolean Functions
156
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
*1.
Output variable
2. Set data
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
and
, and outputs the operation
result to a device specified in
using the data type of data stored in devices specified in
and
.
Example: When the data type is word [unsigned]/bit string [16-bit]]
2) The number of pins in
can be changed.
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.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Function name
Expression in each language
Structured ladder
ST
OR_E
OR_E(EN,_IN,_IN,Output label);
Example:
OR_E(X000,M0,M10,M20);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
_IN (
…
)
Device used to obtain the logical sum
ANY_BIT
Output
variable
ENO
Execution status
Bit
*1
(
)
Device which will store the operation result
ANY_BIT
OR_E
EN
ENO
*1
M20
X000
M0
_IN
_IN
M10
s1
d
s1
s2
d
s1
s2
0
0
0
0
0
0
1
0
0
0
1
1
0
1
0
0
1
1
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
1
0
0
1
1
1
1
0
0
1
1
1
1
1
1
Logical sum
s2
s1
d
s