KEYENCE Visual KV Series User Manual
Page 167

2.4 Instruction Details
1
2
3-143
Chapter 2 Instructions
■ Outputting the input (ON/OFF status) of a basic unit directly to an expan-
sion output unit
The ON/OFF status of a KV series basic unit is output to a KV-E16T(P) unit con-
nected next to the basic unit.
Coding
Description
•
The LDA instruction transfers the input (ON/OFF status) of the KV basic unit to
the internal register using binary numbers.
•
The STA instruction outputs the binary data in the internal register as the ON/
OFF status from the KV-E16T(P) (output unit).
➮ Refer to "1.3 Device Configuration" (p. 3-5) for relay number assignments.
Note 1: When "LDA 0004" and "STA 0604" are programmed in the above example,
the LDA instruction can transfer inputs 0100 through 0103 to the internal register;
however, the STA instruction cannot output data across the channels. As a result,
the ON/OFF status of inputs 0100 through 0103 cannot be output even if they are
fetched by the LDA instruction.
Note 2: Relays 0000 through 0415 are assigned as input relays, and 0500 through
0915 are assigned as output relays.
➮ "1.3 Device Configuration" (p. 3-5)
2002
0000
LDA
0600
STA
Line No.
Instruction
Operand
0000
LD
2002
0001
LDA
0000
0002
CON
0003
STA
0600
1 : ON
0 : OFF
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D13
D14
D15
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
000
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
0600
0601
0602
0603
0604
0605
0606
0607
0608
0609
0610
0611
0612
0613
0614
0615
ON
ON
ON
ON
OFF
OFF
OFF
OFF
ON
ON
ON
ON
OFF
OFF
OFF
OFF
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
ON
ON
ON
ON
OFF
OFF
OFF
OFF
ON
ON
ON
ON
OFF
OFF
OFF
OFF
0600
0000
Out-
put
Input
(KV basic unit)
(Internal register)
16-bit
Binary number
Output
(KV-E16T(P))
Input
LDA / @LDA / STA @STA
KVNKA Chap 02_4cP.p65
08.3.11, 0:02 PM
143