
800
19 STANDARD BITWISE BOOLEAN FUNCTIONS
19.1 AND Operation, OR Operation, XOR Operation
2.
OR(_E)
• These functions perform the logical OR on the BOOL, WORD, or DWORD type data input in (s1) to (s28) bit by bit, and
output the operation result from (d) in the same data type as (s).
Ex.
When the data type is WORD
3.
XOR(_E)
• These functions perform the exclusive logical OR on the BOOL, WORD, or DWORD type data input in (s1) to (s28) bit by
bit, and output the operation result from (d) in the same data type as (s).
Ex.
When the data type is WORD
• 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.
When the data type is BOOL
■
Operation result
1.
Function without EN/ENO
The operation processing is executed. The operation output value is output from (d).
2.
Function with EN/ENO
The following table lists the execution conditions and operation results.
*1
When FALSE is output from ENO, data output from (d) is undefined. In that case, modify a program so that the data output from (d) is
not used.
Operation error
There is no operation error.
Execution condition
Operation result
EN
ENO
(d)
TRUE (Executes operation)
TRUE
Operation output value
FALSE (Stops operation)
FALSE
Indefinite value
0
0
1
0
0
0
0
0
0
0
1
1
0
1
0
0
0
1
1
1
1
0
0
1
1
0
1
1
1
1
1
1
0
1
1
1
1
0
0
1
1
0
0
0
1
1
1
1
Logical Word OR
OR
(s1)
(s2)
(d)
1
1
1
0
1
1
0
0
0
1
1
1
0
0
0
0
0
1
0
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
Logical Exclusive OR
XOR
(s1)
(s2)
(d)
XOR
TRUE
TRUE
FALSE
Result
XOR
TRUE
FALSE
TRUE
Result
XOR
TRUE
TRUE
FALSE
Result
XOR
TRUE
FALSE
TRUE
Result
For 3 INs
For 4 INs
For 5 INs
(s1)
(s2)
(s3)
(s4)
(s5)
XOR is repeated by the
number of variables (s).
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......