Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1930

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
■Operation processing
1.
AND(_E)
• These functions perform an AND operation (bit-by-bit) on the BOOL, WORD, or DWORD data type values input to (s1) to
(s28), and output the operation result, in the same data type as (s), from (d).
Ex.
Data type: WORD
(s1)
1
1
1
1
(s2)
0
0
0
1
(d)
0
0
0
1
2.
OR(_E)
• These functions perform an OR operation (bit-by-bit) on the BOOL, WORD, or DWORD data type values input to (s1) to
(s28), and output the operation result, in the same data type as (s), from (d).
Ex.
Data type: WORD
(s1)
1
1
0
0
(s2)
0
0
0
0
(d)
1
1
0
0
3.
XOR(_E)
• These functions perform an XOR operation (bit-by-bit) on the BOOL, WORD, or DWORD data type values input to (s1) to
(s28), and output the operation result, in the same data type as (s), from (d).
Ex.
Data type: WORD
(s1)
1
0
1
0
(s2)
0
0
0
1
(d)
1
0
1
1
• If three or more (s) settings exist, (s3) will be XORed with the result of XOR between (s1) and (s2). In addition, if (s4) exists,
(s4) will be XORed with the result of subjecting (s) to XOR. After this, XOR will repeat for the number of (s) settings.
Ex.
Data type: BOOL
(s1)
FALSE
XOR
(s2)
(s3)
TRUE
TRUE
(1) Number of s's: 3
(2) Number of s's: 4
(3) Number of s's: 5
The XOR operation is repeated by the number of s's.
29 BOOLEAN FUNCTIONS
1928
29.1 AND Operation, OR Operation, and XOR Operation
1
1
1
1
0
0
AND
0
0
1
0
0
0
0
0
1
0
0
0
1
1
1
1
0
0
OR
0
0
1
0
0
0
1
1
1
1
0
0
1
0
1
0
1
0
XOR
1
0
1
1
1
1
0
0
0
1
0
1
(1)
(2)
TRUE
FALSE
XOR
XOR
(s4)
TRUE
TRUE
FALSE
TRUE
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
1
1
1
1
1
1
0
1
0
0
1
1
1
1
1
1
1
0
1
0
1
0
1
1
0
0
0
0
0
1
1
0
1
0
(3)
TRUE
XOR
(s5)
TRUE
(4)
FALSE

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents