Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 818

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

DSW
Instruction
DIGITAL SWITCH INPUT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
I
Input word
O
Output word
D
First result word
C1
Number of digit
C2
System word
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.
15
14
13
12
11
10
I
Leftmost 4 digits
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.
15
14
13
12
11
O
One Round Flag
RD0 Read signal
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
DSW
---
Block program areas
Step program areas
Not allowed
OK
Description
9
8
7
6
5
4
3
2
1
0
D3
D2
D1
D0
10
9
8
7
6
5
4
3
2
1
0
Function
code
Reads the value set on a external digital switch (or
thumbwheel switch) connected to an I/O Unit and
210
stores the 4-digit or 8-digit value in the specified
words.
DSW
DSW(210)
I: Input word
I
O: Output word
O
D: First result word
D
C1: Number of digits
C1
C2: System word
C2
Subroutines
OK
Data type
UINT
UINT
WORD
UINT
WORD
D0
D1
Rightmost 4 digits
D2
D3
CS0
CS1
CS signals
CS2
CS3
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
Not allowed
OK
Size
1
1
Variable
1
1
3
781

Advertisement

Table of Contents
loading

Table of Contents