Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Integration and automation of manufacturing systems.2001.pdf
Скачиваний:
86
Добавлен:
23.08.2013
Размер:
3.84 Mб
Скачать

page 558

p1

b

p2

a b b

p1

 

p3

a

b

t1

a

b a

 

p2

p4

a b b

b

a b

 

fired with rule 1

p3

p1

t1

 

ba

a

p4

p2

b a b

b

a b

 

fired with rule 2

p3

t1

a b b a a b

p4

a b a b b

This may be seen in the fifth test subroutine in the program.

20.5 C++ SOFTWARE

At present there is one data structure used which holds structures for Places and for Transitions. Arc information is stored (redundantly) in both. These are defined when a Place or Transition number is requested for one that does not exist. Each place and transition have reference numbers, which are used by all other net functions.

page 559

The software is still undergoing development, and testing, thus a list of functions would be premature.

20.6 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.

page 560

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 561

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 562

 

 

 

 

 

 

 

 

 

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 563

 

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,