Omron C200HX Operation Manual page 362

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Advanced I/O Instructions
Overview
Precautions
Hardware
ID212
Input Unit
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
COM
COM
OD212
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Output Unit
COM
COM
344
DSW(––) is used to read the value set on a digital switch connected to I/O Units.
When the execution condition is OFF, DSW(––) is not executed. When the
execution condition is ON, DSW(––) reads the 8-digit value set on the digital
switch from IW and places the result in R.
The 8-digit value it is placed in R and R+1, with the most significant digits placed
in R+1.
DSW(––) reads the 8-digit value in 20 executions, and then starts over and con-
tinues reading the data.
The digital switch must provide four data lines and one latch signal line and read
signal line for each digit being input.
I/O refreshing must be performed for all I/O points used by DSW(––) each time it
is executed to ensure effective operation. The I/O REFRESH instruction must
thus be used with DSW(––) whenever DSW(––) is used in a subroutine to en-
sure that the I/O points are refreshed each execution. Refer to page 354 for an
example of this type of programming.
DSW(––) will be executed from the first cycle whenever program execution is
started, including restarts made after power interruptions.
Do not use DSW(––) more than twice in the program.
DSW(––) cannot be used for I/O Units mounted to Slave Racks.
Note Input and output bits not used here can be used as ordinary input and output bits.
With this instruction, 8-digit BCD set values are read from a digital switch.
DSW(––) utilizes 5 output bits and 8 input bits. Connect the digital switch and the
Input and Output Units as shown in the diagram below. Output point 5 will be
turned ON when one round of data is read, but there is no need to connect output
point 5 unless required for the application.
D
Interface
D
0
0
D
D
1
1
D
D
2
2
D
D
3
3
D
D
0
0
D
D
1
1
D
D
2
2
D
D
3
3
CS
CS
0
0
CS
CS
1
1
CS
CS
2
2
CS
CS
3
3
RD
RD
Note An interface to convert signals from 5 V to 24 V is
required to connect an A7E digital switch.
A7E data line rightmost digits
A7E data line
Leftmost digits
leftmost digits
To A7E chip selection
To A7E RD terminal
Section 5-28
A7E
Rightmost digits

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents