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 serial - 27.11<br />

R6:1/EN<br />

GEQ<br />

Source A R6:1.POS<br />

Source B 2<br />

R6:0/DN<br />

ACB<br />

Channel 0<br />

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

ARL<br />

Channel 0<br />

Dest ST10:0<br />

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

Length 2<br />

ACN<br />

StringA ST10:1<br />

StringB ST10:0<br />

Dest ST10:2<br />

ST10:1 = "HI "<br />

AWT<br />

Channel 0<br />

String ST10:2<br />

Length 7<br />

Figure 27.9<br />

An ASCII String Example<br />

The ASCII functions can also be used to support simple number conversions. The<br />

example in Figure 27.10 will convert the strings in ST9:10 <strong>and</strong> ST9:11 to integers, add the<br />

numbers, <strong>and</strong> store the result as a string in ST9:12.<br />

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

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

Saved successfully!

Ooh no, something went wrong!