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 advanced functions - 16.15<br />

MainProgram<br />

A<br />

B<br />

CPT<br />

Dest n[1]<br />

Expression<br />

n[n[0]] + 10<br />

MOV<br />

Source -10<br />

Dest n[0]<br />

Recover<br />

GSV<br />

Object: PROGRAM<br />

Instance: THIS<br />

Attribute: MAJORFAULTRECORD<br />

Dest: fault_data (Note: DINT[11])<br />

EQU<br />

SourceA fault_data[2]<br />

SourceB 0x2104<br />

MOV<br />

Source 0<br />

Dest N7:0<br />

CLR<br />

Dest. fault_data[2]<br />

SSV<br />

Object: PROGRAM<br />

Instance: THIS<br />

Attribute: MAJORFAULTRECORD<br />

Dest: fault_data<br />

Figure 16.15<br />

A Fault Recovery Program<br />

16.3.3 Interrupts<br />

The PLC can be set up to run programs automatically using interrupts. This is routinely<br />

done for a few reasons;<br />

• to run a program at a regular timed interval (e.g. SPC calculations)<br />

www.PA<strong>Control</strong>.com

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

Saved successfully!

Ooh no, something went wrong!