Mitsubishi Electric MELSEC-Q/L Programming Manual page 143

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• OR_E
Performs Boolean OR on bit, word (unsigned)/16-bit string or double word (unsigned)/32-bit string type data input to (s1) to
(s28) bit by bit, and outputs the operation result from (d) in the same data type as that of (s1) to (s28).
Ex.
Word (unsigned)/16-bit string type data
s1
1
1
0
0
1
1
s2
0
0
0
0
0
0
d
1
1
0
0
1
1
The number of pins of variable 's' can be changed in the range from 2 to 28.
• XOR_E
Performs Boolean exclusive OR on bit, word (unsigned)/16-bit string or double word (unsigned)/32-bit string type data input to
(s1) to (s28) bit by bit, and outputs the operation result from (d) in the same data type as that of (s1) to (s28).
Ex.
Word (unsigned)/16-bit string type data
s1
1
0
1
0
1
0
s2
0
0
0
1
1
0
d
1
0
1
1
0
0
The number of pins of variable 's' can be changed in the range from 2 to 28.
When three or more variables 's' exist, XOR is performed between (s1) and (s2) first, and XOR is successively performed
between the result and (s3).
When the expression includes (s4), XOR is performed between the result of XOR with (s3) and (s4).
In this manner, XOR is repeated by the number of variables 's' in the order with (s5), (S6) and so on.
Ex.
Bit type data
For 3 INs
s1
FALSE
TRUE
XOR
XOR
s2
TRUE
s3
TRUE
TRUE
FALSE
Result
Result
• NOT, NOT_E
Performs Boolean NOT on bit, word (unsigned)/16-bit string or double word (unsigned)/32-bit string type data input to (s1) bit
by bit, and outputs the operation result from (d) in the same data type as that of (s1).
Ex.
Word (unsigned)/16-bit string type data
s1
0
1
1
0
1
0
d
1
0
0
1
0
1
The value to be input to variables (s1) to (s28) is bit, word (unsigned)/16-bit string or double word (unsigned)/32-bit string type
data.
1
1
0
0
0
0
1
OR
1
0
0
0
1
1
0
Boolean OR
1
1
0
0
1
1
1
1
0
1
0
1
0
1
OR
1
1
1
1
1
1
0
Boolean exclusive OR
0
1
0
1
0
1
1
For 4 INs
For 5 INs
FALSE
TRUE
XOR
XOR
s4
TRUE
s5
TRUE
TRUE
FALSE
Result
Result
1
1
0
0
0
0
1
NOT
0
0
1
1
1
1
0
1
1
1
1
0
0
1
1
1
0
1
0
0
0
0
0
1
0
Hereafter, XOR is repeated
by the number of s.
1
1
1
0
0
0
5.4 Standard Bitwise Boolean Functions
5 APPLICATION FUNCTIONS
5
141

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents