Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Automating manufacturing systems with PLCs.2005.pdf
Скачиваний:
261
Добавлен:
23.08.2013
Размер:
5.34 Mб
Скачать

plc software - 32.2

Sabotage - For various reasons, some individuals may try to damage a system. These problems can be minimized preventing access.

Random failure - Each component is prone to random failure. It is worth considering what would happen if any of these components were to fail.

Some design rules that will help improve the safety of a system are listed below.

Programs

A fail-safe design - Programs should be designed so that they check for problems, and shut down in safe ways. Most PLC’s also have imminent power failure sensors, use these whenever danger is present to shut down the system safely.

Proper programming techniques and modular programming will help detect possible problems on paper instead of in operation.

Modular well designed programs.

Use predictable, non-configured programs.

Make the program inaccessible to unauthorized persons.

Check for system OK at start-up.

Use PLC built in functions for error and failure detection.

People

Provide clear and current documentation for maintenance and operators.

Provide training for new users and engineers to reduce careless and uninformed mistakes.

32.2DEBUGGING

Most engineers have taken a programming course where they learned to write a program and then debug it. Debugging involves running the program, testing it for errors, and then fixing them. Even for an experienced programmer it is common to spend more time debugging than writing software. For PLCs this is not acceptable! If you are running the program and it is operating irrationally it will often damage hardware. Also, if the error is not obvious, you should go back and reexamine the program design. When a program is debugged by trial and error, there are probably errors remaining in the logic, and the program is very hard to trust. Remember, a bug in a PLC program might kill somebody.

Note: when running a program for the first time it can be a good idea to keep one hand on the E-stop button.