Applicable program areas operands, 2 instructions, I: input word (data line d0 to d3 inputs) – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 393: O: output word (cs/rd control signal outputs)
2-357
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Basic
I/O U
n
it I
n
stru
ctio
ns
2
DSW
DSW
Applicable Program Areas
Operands
I: Input Word (Data Line D0 to D3 Inputs)
Specify the input word allocated to the Input Unit and connect the digital switch’s D0 to D3 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 connect the digital switch’s control signals (CS
and RD signals) to the Output Unit as shown in the following diagram.
Instruction
Mnemonic
Variations
Function
code
Function
DIGITAL SWITCH INPUT
DSW
---
210
Reads the value set on a external digital switch (or
thumbwheel switch) connected to an I/O Unit and
stores the 4-digit or 8-digit value in the specified
words.
Symbol
DSW
Area
Step program areas
Subroutines
Interrupt tasks
Usage
OK
OK
Not allowed
Operand
Description
Data type
Size
I
Input word
UINT
1
O
Output word
UINT
1
D
First result word
WORD
Variable
C1
Number of digit
UINT
1
C2
System word
WORD
1
I: Input word
O: Output word
D: First result word
C1: Number of digits
C2: System word
DSW(210)
I
O
D
C1
C2
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