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.12<br />

ACI<br />

String ST9:10<br />

Dest N7:0<br />

ACI<br />

String ST9:11<br />

Dest N7:1<br />

ADD<br />

SourceA N7:0<br />

SourceB N7:1<br />

Dest N7:2<br />

AIC<br />

Source N7:2<br />

String ST9:12<br />

Figure 27.10<br />

A String to Integer Conversion Example<br />

Many of the remaining string functions are illustrated in Figure 27.11. When A is<br />

true the ABL <strong>and</strong> ACB functions will check for characters that have arrived on channel 1,<br />

but have not been retrieved with an ARD function. If the characters "ABC" have<br />

arrived ( is an ASCII carriage return) the ACB would count the three characters, <strong>and</strong><br />

store the value in R6:0.POS. The ABL function would also count the <strong>and</strong> store a<br />

value of four in R6:1.POS. If B is true, <strong>and</strong> the string in ST9:0 is "ABCDEFGHIJKL",<br />

then "EF" will be stored in ST9:1. The last function will compare the strings in ST9:2 <strong>and</strong><br />

ST9:3, <strong>and</strong> if they are equal, output O:001/2 will be turned on.<br />

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

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

Saved successfully!

Ooh no, something went wrong!