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 st - 19.10<br />

• Language structures include those below,<br />

IF-THEN-ELSIF-ELSE-END_IF;<br />

CASE-value:-ELSE-END_CASE;<br />

FOR-TO-BY-DO-END_FOR;<br />

WHILE-DO-END_WHILE;<br />

normal if-then structure<br />

a case switching function<br />

for-next loop<br />

Figure 19.14<br />

Flow <strong>Control</strong> Functions<br />

• Special instructions include those shown below.<br />

RETAIN()<br />

IIN();<br />

EXIT;<br />

EMPTY<br />

causes a bit to be retentive<br />

immediate input update<br />

will quit a FOR or WHILE loop<br />

Figure 19.15<br />

Special Instructions<br />

• Consider the program below to find the average of five values in floating point<br />

memory.

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

Saved successfully!

Ooh no, something went wrong!