22 STANDARD BITWISE BOOLEAN FUNCTIONS
22.1 AND Operation, OR Operation, XOR Operation
1009
22
22
STANDARD BITWISE BOOLEAN FUNCTIONS
22.1
AND Operation, OR Operation, XOR Operation
AND(_E), OR(_E), XOR(_E)
• AND(_E): Outputs the logical product of input values.
• OR(_E): Outputs the logical sum of input values.
• XOR(_E): Outputs the exclusive logical sum of input values.
*1 The input variable "s" can be changed in the range of 2 to 28.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
1.
AND(_E)
• These functions perform the logical AND 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
Ladder diagram, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=AND(s1,s2);
d:=OR(s1,s2);
d:=XOR(s1,s2);
[With EN/ENO]
d:=AND_E(EN,ENO,s1,s2);
d:=OR_E(EN,ENO,s1,s2);
d:=XOR_E(EN,ENO,s1,s2);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s1(IN1) to s28(IN28)
Input
Input variable
ANY_BIT
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d(AND(_E) / OR(_E) / XOR(_E))
Output
Output variable
ANY_BIT
s1
d
s2
EN
ENO
d
s1
s2
0
0
1
0
0
1
0
0
0
0
1
1
0
1
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
1
1
1
1
1
1
1
1
0
0
0
1
1
1
1
AND
(s1)
(s2)
(d)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......