101
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-22 Basic I/O Unit Instructions
DIGITAL SWITCH
INPUT
DSW
210
(CS/CJ-series
CPU Unit Ver. 2.0
or later and CJ2
CPU Units only)
Reads the value set on an external digital switch (or thumbwheel
switch) connected to an Input Unit or Output Unit and stores the 4-digit
or 8-digit BCD data in the specified words.
Output
Required
807
TEN KEY INPUT
TKY
211
(CS/CJ-series
CPU Unit Ver. 2.0
or later and CJ2
CPU Units only)
Reads numeric data from a ten-key keypad connected to an Input Unit
and stores up to 8 digits of BCD data in the specified words.
Output
Required
811
HEXADECIMAL
KEY INPUT
HKY
212
(CS/CJ-series
CPU Unit Ver. 2.0
or later and CJ2
CPU Units only)
Reads numeric data from a hexadecimal keypad connected to an Input
Unit and Output Unit and stores up to 8 digits of hexadecimal data in
the specified words.
Output
Required
814
MATRIX INPUT
MTR
213
(CS/CJ-series
CPU Unit Ver. 2.0
or later and CJ2
CPU Units only)
Inputs up to 64 signals from an 8 × 8 matrix connected to an Input Unit
and Output Unit (using 8 input points and 8 output points) and stores
that 64-bit data in the 4 destination words.
Output
Required
818
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
DSW (210)
I
O
D
C1
C2
I:
O:
D:
C1:
C2:
Data i
nput word
(D0 to D3)
Output word
1st result
word
System word
Number of
digits
TKY (211)
I
D1
D2
I: Data input
word
D1: 1st register
word
D2: Key input
word
HKY (212)
I
O
D
C
I: Data input
word
O: Output word
D: 1st register
word
C: System word
MTR (213)
I
O
D
C
I: Data input
word
O: Output word
D: 1st
destination
word
C: System word