Dsw - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

DSW

Instruction
DIGITAL SWITCH INPUT
Symbol
Applicable Program Areas
Area
Step program areas
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
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
DSW
---
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
I: Input word
O
O: Output word
D
D: First result word
C1
C1: Number of digits
C2
C2: System word
Subroutines
OK
Data type
UINT
UINT
WORD
UINT
WORD
D0
D1
Rightmost 4 digits
D2
D3
CS0
CS1
CS signals
CS2
CS3
2 Instructions
Function
Interrupt tasks
Not allowed
Size
1
1
Variable
1
1
2-357
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents