![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030980.webp)
940
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.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...