Chapter 29 Boolean Functions; And Operation, Or Operation, And Xor Operation - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

29
BOOLEAN FUNCTIONS
29.1

AND Operation, OR Operation, and XOR Operation

AND(_E), OR(_E), XOR(_E)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• AND(_E): These functions output the logical product of input values.
• OR(_E): These functions output the logical sum of input values.
• OR(_E): These functions output the exclusive logical sum of input values.
*1
Ladder, FBD/LD
[Without EN/ENO]
s1
d
s2
*1 The input variable s can be changed within the range from 2 to 28.
Setting data
■Description, type, data type
Argument
Description
EN
Execution condition (TRUE: Executed, FALSE: Not executed)
s1 (IN1) to s28 (IN28)
Input
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
d
Output
RnSFCPU RnSFCPU
(Standard)
(Safety)
[With EN/ENO]
EN
ENO
s1
d
s2
*1
Structured text
[Without EN/ENO]
The function is described as an operator. ( MELSEC iQ-R Programming
Manual (Program Design))
[With EN/ENO]
d:=AND_E(EN,ENO,s1,s2);
d:=OR_E(EN,ENO,s1,s2);
d:=XOR_E(EN,ENO,s1,s2);
Type
Input variable
Input variable
Output variable
Output variable
29.1 AND Operation, OR Operation, and XOR Operation
Data type
BOOL
ANY_BIT
BOOL
ANY_BIT
29 BOOLEAN FUNCTIONS
1927
29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents