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

page 440

 

 

 

 

 

 

 

BT10:0/15

read

BTR

 

 

 

 

 

 

Rack: 00

 

 

 

 

 

 

 

 

 

 

 

 

Group: 0

 

 

 

 

 

 

 

 

 

 

 

 

Module: 0

 

 

 

 

 

 

BT Array: BT10:0

 

 

 

 

 

 

Data File: N9:4

 

 

 

 

 

 

Length: 9

 

 

 

 

 

 

Continuous: no

 

 

 

 

 

 

 

 

 

 

 

 

 

 

24.3 DESIGN TECHNIQUES

24.3.1 State Diagrams

We can implement state diagrams seen in earlier sections using many of the advanced function discussed in this section.

Most PLCs allow multiple programs that may be used as subroutines. We could implement a block logic method using subroutine programs.

Consider the state diagram below and implement it in ladder logic. You should anticipate what will happen if both A and C are pushed at the same time.

STA

STC

B

D

A

C

 

STB

first scan

page 441

PROGRAM 2

first scan

L STB

U STA

U STC

STA

JSR program 3

STB

JSR program 4

STC

JSR program 5

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