12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

plc software - 32.2<br />

Sabotage - For various reasons, some individuals may try to damage a system.<br />

These problems can be minimized preventing access.<br />

R<strong>and</strong>om failure - Each component is prone to r<strong>and</strong>om failure. It is worth considering<br />

what would happen if any of these components were to fail.<br />

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

Programs<br />

• A fail-safe design - Programs should be designed so that they check for<br />

problems, <strong>and</strong> shut down in safe ways. Most PLC’s also have imminent<br />

power failure sensors, use these whenever danger is present to shut down<br />

the system safely.<br />

• Proper programming techniques <strong>and</strong> modular programming will help<br />

detect possible problems on paper instead of in operation.<br />

• Modular well designed programs.<br />

• Use predictable, non-configured programs.<br />

• Make the program inaccessible to unauthorized persons.<br />

• Check for system OK at start-up.<br />

• Use PLC built in functions for error <strong>and</strong> failure detection.<br />

People<br />

• Provide clear <strong>and</strong> current documentation for maintenance <strong>and</strong> operators.<br />

• Provide training for new users <strong>and</strong> engineers to reduce careless <strong>and</strong> uninformed<br />

mistakes.<br />

32.2 DEBUGGING<br />

Most engineers have taken a programming course where they learned to write a<br />

program <strong>and</strong> then debug it. Debugging involves running the program, testing it for errors,<br />

<strong>and</strong> then fixing them. Even for an experienced programmer it is common to spend more<br />

time debugging than writing software. For PLCs this is not acceptable! If you are running<br />

the program <strong>and</strong> it is operating irrationally it will often damage hardware. Also, if the<br />

error is not obvious, you should go back <strong>and</strong> reexamine the program design. When a program<br />

is debugged by trial <strong>and</strong> error, there are probably errors remaining in the logic, <strong>and</strong><br />

the program is very hard to trust. Remember, a bug in a PLC program might kill somebody.<br />

Note: when running a program for the first time it can be a good idea to keep one h<strong>and</strong><br />

on the E-stop button.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!