Keyence Visual KV Series Manual de usuario Pagina 183

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 392
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 182
2.4 Instruction Details
1
2
3-159
Chapter 2 Instructions
Example
Coding
Description
The contents of DM0000 are 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 ANDed for each bit and the result (logical product) 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 are transferred to DM0001.
The following shows the case when DM0000 is "$F0F0".
Operands
Key operation
ANDA:
@ANDA:
ANDs contents of internal register and
value specified by operand for each of
16 bits, and inputs result back to same
register.
AND A
(Logical product)
@
#,$
FUN
FUN
SET
1
RES
0
SET
1
RES
0
nnnn
ANDA
nnnn
ANDA
Line No. Instruction Operand
0000 LD 0000
0001 LDA DM0000
0002 CON
0003 ANDA $00FF
0004 CON
0005 STA DM0001
0000 DM0000
LDA
$00FF
ANDA
DM0001
STA
(DM0000) ^ ($00FF) = (DM0001)
Logical product
Contents of DM0000
are transferred to the
internal register.
1
AND
111000011110000
1111000011110000
0000000011111111
0000000011110000
0000000011110000
DM0000
LDA
$00FF
ANDA
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
Only when both bits of the
internal register and the
operand are "1", will the logical
product be "1".
@
#,$
FUN
FUN
SET
1
RES
0
ENT
R-SRCH
ENT
R-SRCH
Operand
These values are ANDed for
each bit to obtain logical product.
The result is transferred
to DM0001.
Internal
register
Operand ($F0F0)
Internal
register
AND (Logical product)
truth table
(Result)
:
:
DM0000 ($F0F0)
($F0F0)
($F0F0)
DM0001 ($00F0)
Internal Operand Internal
register register
111
100
010
000
ANDA / @ANDA
Visual KV KV-300 KV-10/16 KV-24/40/80
0000 to 17915 0000 to 17915 0000 to 2915 0000 to 6915
DM0000 to DM1999 DM0000 to DM9999 DM0000 to DM0999 DM0000 to DM1999
TM00 to TM31 TM00 to TM31 TM00 to TM31 TM00 to TM31
#00000 to #65535 #00000 to #65535 #00000 to #65535 #00000 to #65535
$0000 to $FFFF $0000 to $FFFF $0000 to $FFFF $0000 to $FFFF
#TM00 to #TM29 #TM00 to #TM29 #TM00 to #TM29 #TM00 to #TM29
KVNKA Chap 02_4cP.p65 08.3.11, 0:02 PM159
Vista de pagina 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 391 392

Comentarios a estos manuales

Sin comentarios