Standard Bitwise Boolean Functions; And_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

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents