![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030129.webp)
89
Instruction Functions
Section 2-2
7-SEGMENT
DECODER
SDEC
@SDEC
078
Output
Required
937
DIGITAL SWITCH
INPUT
DSW
210
(CS/CJ-series
CPU Unit Ver. 2.0
or later 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
940
TEN KEY INPUT
TKY
211
(CS/CJ-series
CPU Unit Ver. 2.0
or later 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
945
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SDEC(078)
S
Di
D
S
: Source word
Di
: Digit
designator
D
: 1st destination
word
Number of digits
Rightmost 8 bits (0)
Di
7-segment
First digit to convert
Converts the hexadecimal contents of the designated digit(s) into
8-bit, 7-segment display code and places it into the upper or lower
8-bits of the specified destination words.
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
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...