Internal register, 4 instruction details, Chapter 2 instructions – KEYENCE Visual KV Series User Manual
Page 159: And the corresponding alphanumeric keys. (pressing

2.4 Instruction Details
1
2
3-135
Chapter 2 Instructions
Internal register
KV executes all arithmetic instructions (i.e. data exchange) by using an internal
register, in order to increase the processing speed.
This section begins by describing details of the internal register.
■ Internal register
An internal register stores 16-digit binary data. That is, the resister uses 16 bits for
storing ON-OFF status data (1-0 status data). The internal register is required when
the KV performs arithmetic operation. Because this is not an instruction nor operand,
it is not necessary to take into consideration how the internal register functions or
operates.
■ Arithmetic instructions executed using internal register
1. ON-OFF status of the specified relay and 15 successive relays is stored into the
resister.
2. Current T/C value (decimal value = #*****) is automatically converted into a
binary value and input to the internal register.
3. Constant (decimal value = #*****, hexadecimal value = $****) is automatically
converted into a binary value and input to the internal register.
4. The range of numbers that can be specified is as follows:
Decimal #00000 to #65535
Hexadecimal $0000 to $FFFF
The constants can be entered by using
@
#, $
and the corresponding alphanumeric
keys.
(Pressing
@
#, $
once allows you to enter decimal values, and pressing twice to enter
hexadecimal values.)
5. The contents of the internal register (binary) is automatically converted into a
decimal value and (#*****) input to a timer/counter as the preset value.
Note 1: The internal structure of the internal register is the same as that of the data
memories. Although the data memories can store data when the power is being
OFF, the internal register cannot do so.
Note 2: Even for running one program, the contents of the internal register is rewrit-
ten each time when an instruction is executed.
Note 3: The internal register cannot be monitored.
CMP
MPX
ADD
DMX
SUB
TBCD
MUL
TBIN
DIV
ASC
ANDA
RASC
ORA
EORA
SRA
SLA
RRA
RLA
COM
INC
DEC
TMIN
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
(Arithmetic instructions executed as binary code.)
Relay No.
1.
Current T/C
value.
2.
Constant
3. 4.
(decimal,
hexadecimal)
Data memory,
temporary
memory
Data memory accessed
in indirect addressing via
temporary memory
LDA instruction
Internal register
STA direction
Relay No
Preset T/C
value.
5.
Data memory,
temporary
memory
Data memories,
temporary memories
Data memory accessed
in indirect addressing via
temporary memory
Con-
stant
KVNKA Chap 02_4cP.p65
08.3.11, 0:02 PM
135