![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268980.webp)
941
Basic I/O Unit Instructions
Section 3-23
7-segment Data
The following table shows the data conversions from a hexadecimal digit (4
bits) to 7-segment code (8 bits).
3-23-5 DIGITAL SWITCH INPUT – DSW(210)
Purpose
Reads the value set on a external digital switch (or thumbwheel switch) con-
nected to an I/O Unit and stores the 4-digit or 8-digit value in the specified
words.
This instruction is supported only by CS/CJ-series CPU Unit Ver. 2.0 or later.
Ladder Symbol
Variations
Original data
Converted code (segments)
Display
Original data
Digit
Bits
–
g
f
e
d
c
b
a
Hex
0
0
0
0
0
0
0
1
1
1
1
1
1
3F
1
0
0
0
1
0
0
0
0
0
1
1
0
06
2
0
0
1
0
0
1
0
1
1
0
1
1
5B
3
0
0
1
1
0
1
0
0
1
1
1
1
4F
4
0
1
0
0
0
1
1
0
0
1
1
0
66
5
0
1
0
1
0
1
1
0
1
1
0
1
6D
6
0
1
1
0
0
1
1
1
1
1
0
1
7D
7
0
1
1
1
0
0
1
0
0
1
1
1
27
8
1
0
0
0
0
1
1
1
1
1
1
1
7F
9
1
0
0
1
0
1
1
0
1
1
1
1
6F
A
1
0
1
0
0
1
1
1
0
1
1
1
77
B
1
0
1
1
0
1
1
1
1
1
0
0
7C
C
1
1
0
0
0
0
1
1
1
0
0
1
39
D
1
1
0
1
0
1
0
1
1
1
1
0
5E
E
1
1
1
0
0
1
1
1
1
0
0
1
79
F
1
1
1
1
0
1
1
1
0
0
0
1
71
1
1
1
1
1
1
1
0
g
f
b
c
d
e
a
a
b
c
d
e
f
g
LSB
MSB
DSW(210)
I
O
D
C1
C2
I
: Input word
O
: Output word
D
: First result word
C1
: Number of digits
C2
: System word
Variations
Executed Each Cycle for ON Condition
DSW(210)
Executed Once for Upward Differentiation
Not supported.
Executed Once for Downward Differentiation
Not supported.
Immediate Refreshing Specification
Not supported.
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...