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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

plc states - 12.6<br />

Previously state diagrams were used to define the system, it is possible to use a<br />

state table as shown in Figure 12.6. Here the light sequences are listed in order. Each state<br />

is given a name to ease interpretation, but the corresponding output pattern is also given.<br />

The system state is defined as the bit pattern of the 6 lights. Note that there are only 4 patterns,<br />

but 6 binary bits could give as many as 64.<br />

Step 1: Define the System States <strong>and</strong> put them (roughly) in sequence<br />

State Description<br />

Green East/West<br />

Yellow East/West<br />

Green North/South<br />

Yellow North/South<br />

System State<br />

L1 L2 L3 L4 L5 L6<br />

State Table<br />

# L1 L2 L3 L4 L5 L6<br />

1<br />

2<br />

3<br />

4<br />

1<br />

1<br />

0<br />

0<br />

0<br />

0<br />

0<br />

1<br />

0<br />

0<br />

1<br />

0<br />

0<br />

0<br />

1<br />

1<br />

0<br />

1<br />

0<br />

0<br />

1<br />

0<br />

0<br />

0<br />

A binary number<br />

0 = light off<br />

1 = light on<br />

Here the four states<br />

determine how the 6<br />

outputs are switched<br />

on/off.<br />

Figure 12.6<br />

System State Table for Traffic Lights<br />

Transitions can be added to the state table to clarify the operation, as shown in Figure<br />

12.7. Here the transition from Green E/W to Yellow E/W is S1. What this means is<br />

that a cross walk button must be pushed to end the green light. This is not normal, normally<br />

the lights would use a delay. The transition from Yellow E/W to Green N/S is<br />

caused by a 4 second delay (this is normal.) The next transition is also abnormal, requiring<br />

that the cross walk button be pushed to end the Green N/S state. The last state has a 4 second<br />

delay before returning to the first state in the table. In this state table the sequence will<br />

always be the same, but the times will vary for the green lights.

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

Saved successfully!

Ooh no, something went wrong!