Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

 AryXor
If both bits are the same, then the processing result is FALSE. If one bit is TRUE and the other is
FALSE, then the processing result is TRUE.
Bit of ele-
ment in In1[]
ment in In2[]
FALSE
FALSE
FALSE
TRUE
TRUE
FALSE
TRUE
TRUE
 AryXorN
If both bits are the same, then the processing result is TRUE. If one bit is TRUE and the other is FALSE,
then the processing result is FALSE.
Bit of ele-
ment in In1[]
ment in In2[]
FALSE
FALSE
FALSE
TRUE
TRUE
FALSE
TRUE
TRUE
The following example shows the AryAnd instruction when Size is UINT#3.
LD
EN
abc[1]
In1
def[2]
In2
UINT#3
Size
AryOut
ghi[3]
In1[0]=abc[1]
In1[1]=abc[2]
Size=UINT#3
In1[2]=abc[3]
Precautions for Correct Use
• The data types of In1[], In2[], and AryOut[] must be the same. If they are different, a building error will
occur.
• Use an AryOut[] array that has at least as many elements as the value of Size.
• The values in AryOut[] do not change if the value of Size is 0.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and AryOut[] will not change.
• The value of Size exceeds the number of elements in In1[], In2[], or AryOut[].

NY-series Instructions Reference Manual (W560)

Bit of ele-
Bit of Ary-
Out[]
FALSE
TRUE
TRUE
FALSE
Bit of ele-
Bit of Ary-
Out[]
TRUE
FALSE
FALSE
TRUE
AryAnd
ENO
ghi[3]
TRUE
AND
FALSE
AND
FALSE
AND
ST
AryAnd(abc[1], def[2], UINT#3, ghi[3]);
In2[0]=def[2]
TRUE
In2[1]=def[3]
TRUE
In2[2]=def[4]
FALSE
2 Instruction Descriptions
AryOut[0]=ghi[3]
TRUE
AryOut[1]=ghi[4]
FALSE
AryOut[2]=ghi[5]
FALSE
2
2-329

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents