Mitsubishi Electronics FXCPU Welding System User Manual


 
5.5 Standard Bitwise Boolean Functions
154
FXCPU Structured Programming Manual
(Application Functions)
5.5 Standard Bitwise Boolean Functions
5.5.1 AND_E
Outline
This function obtains the logical product of two or more bits, and outputs it.
1. Format
*1. Output variable
2. Variable
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function obtains the logical product 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
AND_E
AND_E(EN,_IN,_IN,Output
label);
Example:
AND_E(X000,M0,M10,M20);
Variable Description Data type
Input
variable
EN Execution condition Bit
_IN ( )
Device used to obtain the logical product ANY_BIT
Output
variable
ENO Execution status Bit
*1 ( )
Device which will store the operation result ANY_BIT
AND_E
EN ENO
*1
M20
X000
M0
_IN
_IN
M10
s1
d
s1
s2
d
s1
s2
0001001000110100
1111111100001111
0001001000000100
Logical product
s1
s2
d
s