Chapter 5 Instruction Specifications

Program example

X00000

R7F2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X00001 DIF1

 

 

SHR (DR0000,1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R7F0

Y00100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LD

X00000

X00000

Defective unit input

OUT

R7F2

LD

X00001

 

To SD

 

AND

DIF1

 

 

X00001

Conveyor movement

[

 

 

 

SHR

(DR0000,1)

 

 

]

 

Y00001

Defective unit output

LD

R7F0

 

Carry

OUT

Y00100

 

 

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)

 

 

 

 

 

 

 

 

 

 

 

 

(Y00100)

 

 

 

 

b16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b0

Solenoid valve

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X00001

 

Conveyor movement

 

 

 

 

 

 

 

 

 

 

X00000

 

 

 

 

 

 

 

 

 

 

 

Y00000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b0

 

 

b16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

1

 

0

 

0

1

 

0

0

0

 

0

 

1

 

0

 

 

SD (R7F2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C (R7F0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Shifts one bit at a time

SHR (d, n)

5-73

Page 123
Image 123
Hitachi NJI-350B manual DIF1