
2.4 Instruction Details
1
2
3-165
Chapter 2 Instructions
Arithmetic flag
2009 No change
2010 Turns ON when the internal register is "0" after an EORA operation. Turns
OFF at other times.
2011 No change
2012 The DM or relay indirectly addressed with #TM is out of range.
➮
"Indirect addressing" (p. 3-127)
Tips
Turning output 0500 ON when inputs 0000 through 0015 have the same value as a
constant ($0F0F)
When the values match, special internal relay 2010 turns ON and output relay 0500
turns ON.
In this example, the constant is "$0F0F", or "0000 1111 0000 1111". Therefore,
output relay 0500 turns ON when input relays 0000 through 0003 and 0008 through
0011 are ON.
Application of EORA instruction
■ Judgment of matching data
Turns ON 0500 when the ON/OFF statuses of input relays 0100 to 0107 match the
DM0000 setting value.
Coding
When 2010 is ON, the two values match.
When 2010 is OFF, the two values do not match.
2002
2010
0500$0F0F
EORA
0000
LDA
STA
$00AA DM0000
LDA
$00FF
ANDA
0100
LDA
DM0000
EORA
2008
2002 2010
0500
1
ANDA
0100 to 0115
011101110111011
0000000011111111
0000000010111011
0
DM0000
000000010101010
0
$BBBB
$00FF
$00BB
$00AA
$0011
000000000010001
EORA
D
15
D
14
D
13
D
12
D
11
D
10
D
9
D
8
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
Operand
Internal register
Internal register 2010 is OFF. When the
value of internal register is 0000, 2010 turns ON.
Judges match between the operand and the
data of 0100 to 0107.
Line No. Instruction Operand Line No. Instruction Operand
0000 LD 2008 0007 ANDA $00FF
0001 LDA $00AA 0008 CON
0002 CON 0009 EORA DM0000
0003 STA DM0000 0010 CON
0004 LD 2002 0011 AND 2010
0005 LDA 0100 0012 OUT 0500
0006 CON
EORA / @EORA
KVNKA Chap 02_4dP.p65 08.3.11, 0:03 PM165
Comentarios a estos manuales