Mitsubishi Electronics FXCPU Welding System User Manual


 
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.
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S
FX
U
/FX
2C
FX0N FX0(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
0000001000110100
1100111100001111
1100111100111111
Logical sum
s2
s1
d
s