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 function ref - 34.41<br />

ASC - Ascii string Search for Character<br />

A<br />

ASC<br />

STRING SEARCH<br />

Source ST9:0<br />

Index 20<br />

Search ST9:1<br />

Result<br />

Description:<br />

This function will search a string for a character. In this example the<br />

character will look for the character in string ’ST9:0’ in position 20<br />

(21st) in string ’ST9:1’. If a match is NOT found the bit ’S2:17/8’ will<br />

be turned on.<br />

Status Bits:<br />

Registers:<br />

S2:17/8<br />

none<br />

ascii minor fault bit - this bit will be set if there was no match<br />

Available on: Micrologix, PLC-5<br />

ASR - Ascii StRing compare<br />

A<br />

ASR<br />

ASCII STRING COMPARE<br />

SourceA ST10:10<br />

SourceB ST10:11<br />

X<br />

Description:<br />

This instruction will compare two strings. In this example, if ’A’ is true<br />

then the strings ’ST10:10’ <strong>and</strong> ’ST10:11’ will be compared. If they are<br />

equal then ’X’ will be true, otherwise it will be false. If the strings are<br />

different lengths then the bit ’S2:17/8’ will be set.<br />

Status Bits:<br />

Registers:<br />

S2:17/8<br />

none<br />

ascii minor fault bit - this bit will be set if the string lengths<br />

don’t match.<br />

Available on: Micrologix, PLC-5<br />

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

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

Saved successfully!

Ooh no, something went wrong!