Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(EOD).Mechatronics.pdf
Скачиваний:
81
Добавлен:
23.08.2013
Размер:
5.07 Mб
Скачать

page 87

and Black, 1988]

6.2 IMPLEMENTATION FOR A PLC

• Consider the example of a parts buffer. Parts enter the buffer and are added to the top of the stack. The part at the bottom of the stack is checked and sorted (ejected differently) based on a quality check.

keep alive

P1

T1 part enters

 

sorter

 

 

 

waiting for for next

T6

P7

part not

P6

entering

P2

sorter

 

 

T2

 

part waiting

part check

P3

part not good

T3

P4

eject bad

no part at bottom of sorter

T5

part at bottom of sorter

 

 

eject

part

good

good

 

 

T4

 

part ejected

P8

P5

• This can be implemented in ladder logic, but unlike the sequential techniques, there may be multiple tokens in the places, so counters are used to keep track of token counts.

page 88

first scan

GRT

source A C5:4.ACC source B 0

GRT

source A C5:4.ACC source B 0

MOV source 1

dest. CNT C5:1.ACC

RES C5:2

RES C5:3

RES C5:4

RES C5:5

RES C5:6

RES C5:7

RES C5:8

eject bad

eject good

 

 

 

 

 

 

page 89

 

 

 

 

 

 

 

 

 

part entering

 

 

 

 

 

 

 

GRT

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

source A C5:1.ACC

 

 

 

 

 

 

C5:1

 

 

 

 

 

 

 

 

 

 

 

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTU

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C5:2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTU

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C5:7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GRT

 

 

GRT

 

 

 

CTD

 

 

 

 

 

 

source A C5:2.ACC

 

 

source A C5:6.ACC

 

 

 

C5:2

 

source B 0

 

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C5:6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTU

C5:3

 

 

part good

 

 

GRT

 

 

 

 

CTU

 

 

 

 

 

 

 

 

 

 

source A C5:3.ACC

 

 

 

 

C5:4

 

 

 

 

 

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

C5:3

 

 

part good

 

 

 

 

 

GRT

 

 

 

 

CTU

 

 

 

 

 

 

 

 

 

 

 

source A C5:3.ACC

 

 

 

 

C5:5

 

 

 

 

 

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

C5:3

 

 

 

 

 

 

 

page 90

 

GRT

 

 

 

 

CTU

 

 

 

 

 

 

source A C5:5.ACC

 

 

 

 

C5:8

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

C5:5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GRT

 

 

 

 

CTU

 

 

 

 

 

 

source A C5:4.ACC

 

 

 

 

C5:8

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

C5:4

 

 

part entering

 

 

 

 

 

GRT

 

 

 

 

CTU

 

 

 

 

 

 

 

 

 

 

source A C5:7.ACC

 

 

 

 

C5:1

 

 

 

 

 

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

C5:7

 

 

part at sorter bottom

 

 

 

 

 

GRT

 

 

 

 

CTU

 

 

 

 

 

 

 

 

 

 

 

source A C5:8.ACC

 

 

 

 

C5:6

 

 

 

 

 

 

source B 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CTD

 

 

 

 

 

 

 

 

 

 

 

 

C5:8

 

 

 

 

 

 

 

 

 

 

 

 

 

• For practice,

Соседние файлы в предмете Электротехника