Exclusive Logical Sum - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.7.3 Exclusive logical sum

The exclusive logical sum of the specified multiple data is operated.
Function definition
6 - 45
XOR_E
BOOL XOR_E( BOOL EN, ANY_BIT S1, ANY_BIT S2,...., ANY_BIT Sn, ANY_BIT D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1 to Sn
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Remarks:
Example of use
Argument Type
BOOL
b_result := XOR_E( b_select,
b_data1, b_data2, b_data3 );
Word device
b_result := XOR_E( TRUE,
d0z2, d1z3, d2z4 );
Execution condition (Function is executed only when the result is TRUE)
Data to be EXCLUSIVE ORed
EXCLUSIVE OR operation result
ST Program
Conversion Result
LD
ANI
LDI
AND
ORB
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LD
WXOR
LD
OUT
For the usable data type, refer to "3.2.2 About ANY type".
Description
Description
Used Instruction
b_data1
LD,ANI,LDI,AND,ORB,
OUT,SET,RST
b_data2
b_data1
b_data2
M8191
b_select
M8191
b_data3
b_select
M8191
b_data3
b_select
b_result
SM400
LD,WXOR, OUT
D0Z2
D1Z3
D2Z4
SM400
b_result
6 - 45

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents