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

page 179

There is also a temporary end (TND) that for a single ladder scan will skip the remaining portion of a program.

A one shot contact can be used to turn on a ladder run for a single scan. When the run has a positive rising edge the oneshot will turn on the run for a single scan. Bit ‘B3:0’ is used here to track to rung status.

A B3:0

 

ONS

 

B

 

 

 

 

 

 

A

B

7.13.2.1 - Immediate I/O Instructions

page 180

• The normal operation of the PLC is

fast [input scan]

Input values read

slow [ladder logic is checked]

outputs are updated in memory only as ladder logic scanned

fast [outputs updated]

Output values are changed to match values in memory

This approach avoids problems caused by logic setting and resetting outputs before done.

If we have a problem we may want to update an output immediately, and not wait for the PLC to complete its scan of the ladder logic. To do this we use immediate inputs and outputs.

page 181

e.g. Check for nuclear reactor overheat

I:001/03 overheat sensor

O:010/01 reactor shutdown

I:001

IIN

I:001/03

O:010/01

O:010

IOT

These added statements can allow the ladder logic to examine a critical input, and adjust a critical output many times during the execution of ladder logic that might take too long for safety.

7.13.2.2 - Fault Detection and Interrupts

The PLC can be set up to run programs automatically. This is normally done for a few rea-

sons,

-to deal with errors that occur (eg. divide by zero)

-to run a program at a regular timed interval (eg. SPC calculations)

-to respond when a long instruction is complete (eg. analog input)

-when a certain input changed (eg. panic button)

Two types of errors will occur - terminal (critical) and warnings (non-critical). A critical failure will normally stop the PLC.

In some applications faults and failures must be dealt with in logic if possible, if not the system must be shut down.