A-51
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-20 B
a
sic I/O Unit Instr
uctio
ns
DIGITAL
SWITCH
INPUT
DSW
---
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.
I: Input Word (Data Line D0 to D
3
Inputs)
Specify the input word allocated to the Input Unit and connect
the digital switch
’
s D0 to D
3
data lines to the Input Unit as shown
in the following diagram.
O: Output Word (CS/RD Control Signal Outputs)
Specify the output word allocated to the Output Unit and con-
nect the digital switch
’
s control signals (CS and RD signals) to
the Output Unit as shown in the following diagram.
C1: Number of Digits
Specifies the number of digits that will be read from the exter-
nal digital switch. Set C1 to 0000 hex to read 4 digits or 0001
hex to read
8
digits.
C2: System Word
Specifies a work word used by the instruction. This word can-
not be used in any other application.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
DSW (210)
I
O
D
C1
C2
I
: Data input word (D0 to D3)
O
: Output word
D
: 1st result word
C1
: Number of digits
C2
: System word
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
I
D0
D1
D2
D3
D3
D2
D1
D0
Rightmost
4 digits
Leftmost 4 digits
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
O
CS0
CS1
CS2
CS3
CS signals
One Round Flag
RD0 Read signal
C2
15
0
System word
(Cannot be accessed by the user.)
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......