Hitachi HIDIC MICRO-EH Applications Manual page 123

Table of Contents

Advertisement

Program example
X00000
X00001 DIF1
SHR (DR0000,1)
R7F0
Program description
There exists a conveyor that has 16 stands and is moving to the right.
Each time the conveyor moves one stand to the right, a pulse input enters X1.
There is a sensor on the left end of the conveyor, and when a defective unit is placed on the conveyor, X00000 turns on.
X00000 (sensor input) and X00001 (conveyor movement) signals are as follows:
X00000
X00001
As the conveyor moves to the right, the data is also shifted one bit at a time, and when data exits to the carry (on the right
end of the conveyor), the (Y00100) solenoid valve turns on and rejects the defective unit.
Sensor (X00000)
b16
X00001
Conveyor movement
X00000
b16
0
1
0
0
SD (R7F2)
Shifts one bit at a time
R7F2
X00000 . . . . .
Defective unit input
To SD
X00001 . . . . .
Conveyor movement
Y00100
Y00001
. . . . .
Defective unit output
Carry
b0
b0
1
0
0
0
0
1
0
5-73
Chapter 5 Instruction Specifications
LD
X00000
OUT R7F2
LD
X00001
AND DIF1
[
SHR
(DR0000,1)
]
LD
R7F0
OUT Y00100
(Y00100)
Solenoid valve
Y00000
C (R7F0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents