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

advance<br />

SQO<br />

File #B3:0<br />

Mask 003F<br />

Destination O:000<br />

<strong>Control</strong> R6:0<br />

Length 4<br />

Position 0<br />

B3:0<br />

B3:4<br />

0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1<br />

0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0<br />

0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0<br />

0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1<br />

0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1<br />

NS - red<br />

NS - yellow<br />

NS - green<br />

EW - red<br />

EW - yellow<br />

EW - green<br />

Figure 16.8<br />

A Sequencer For Traffic Light <strong>Control</strong><br />

Figure 16.9 shows examples of the other sequencer functions. When A goes from<br />

false to true, the SQL function will move to the next position in the sequencer list, for<br />

example N7:21, <strong>and</strong> load a value from I:001.IfA then remains true the value in N7:21<br />

will be overwritten each scan. When the end of the sequencer list is encountered, the position<br />

will reset to 1.<br />

The sequencer input (SQI) function will compare values in the sequence list to the<br />

source I:002 while B is true. If the two values match B3/10 will stay on while B remains<br />

true. The mask value is 0005h or 0000000000000101b, so only the first <strong>and</strong> third bits will<br />

be compared. This instruction does not automatically change the position, so logic is<br />

shown that will increment the position every scan while C is true.

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

Saved successfully!

Ooh no, something went wrong!