Keyence Visual KV Series Bedienungsanleitung Seite 188

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 392
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 187
2.4 Instruction Details
3-164
2
Chapter 2 Instructions
Example
Coding
Description
The contents of DM0000 is transferred to the internal register when input relay
0000 is ON.
The contents of the internal register (DM0000) and the value specified by the
operand ($00FF) are EORed (exclusive OR) for each bit and the result is input
back to the same register.
When the operation result is "0", special utility relay 2010 turns ON.
The contents of the internal register is transferred to DM0001.
The following shows the case when DM0000 is "$F0F0".
Operands
Key operation
EORA:
@EORA:
EXCLUSIVE ORs contents of internal
register and operand for each of 16 bits,
and inputs result back to same register.
Exclusive Or A
(Exclusive
logical sum)
@
#,$
FUN
FUN
SET
1
ANB
5
SET
1
ANB
5
nnnn
EORA
nnnn
EORA
0000 DM0000
LDA
$00FF
EORA
DM0001
STA
(DM0000) ($00FF) = (DM0001)
U
Exclusive
logical sum
Line No. Instruction Operand
0000 LD 0000
0001 LDA DM0000
0002 CON
0003 EORA $00FF
0004 CON
0005 STA DM0001
1
EORA
111000011110000
1111000011110000
0000000011111111
1111000000001111
1111000000001111
DM0000
LDA
$00FF
EORA
DM0001
STA
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
Contents of DM0000 are
transferred to the internal
register.
Only when the bits of the
internal register and the
operand have different values,
will the exclusive logical sum
be "1".
These values are EORed for each
bit to obtain exclusive OR value.
The result is trans-
ferred to DM0001.
Internal
register
Operand ($00FF)
Internal
register
EOR (Exclusive OR)
truth table
(Result)
:
:
@
#,$
FUN
FUN
SET
1
ANB
5
ENT
R-SRCH
ENT
R-SRCH
Operand
Internal Internal
register register
110
101
011
000
DM0000 ($F0F0)
($F0F0)
($F00F)
DM0000 ($F00F)
EORA / @EORA
Visual KV KV-300 KV-10/16 KV-24/40/80
0000 to 17915 00000 to 0009 0000 to 2915 0000 to 6915
DM0000 to DM1999 0500 to 17915 DM0000 to DM0999 DM0000 to DM1999
TM00 to TM31 DM0000 to DM9999 TM00 to TM31 TM00 to TM31
#00000 to #65535 TM00 to TM31 #00000 to #65535 #00000 to #65535
$0000 to $FFFF #00000 to #65535 $0000 to $FFFF $0000 to $FFFF
#TM00 to #TM29 $0000 to $FFFF #TM00 to #TM29 #TM00 to #TM29
#TM00 to #TM29
Operand
KVNKA Chap 02_4dP.p65 08.3.11, 0:03 PM164
Seitenansicht 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 391 392

Kommentare zu diesen Handbüchern

Keine Kommentare