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

ACI, AIC - Ascii string Convert to Integer, Ascii Integer to string Conversion<br />

A<br />

ACI<br />

STRING TO INTEGER CONVERSION<br />

Source ST10:2<br />

Dest<br />

N9:5<br />

Description:<br />

The ACI instruction will convert a string to an integer value. In this<br />

example it retrieve the string in ’ST10:2’, convert it to an integer <strong>and</strong><br />

store it in ’N9:5’. When converting to an integer it is possible to have<br />

an overflow error.<br />

The AIC function will convert an integer to a string.<br />

Status Bits:<br />

C<br />

V<br />

Z<br />

N<br />

Carry - sets if a carry is generated<br />

Overflow - only set if value exceeds maximum for number type<br />

Zero-setsiftheresultiszero.<br />

Sign - sets if the result is negative<br />

Registers: POS the number of characters waiting in the buffer.<br />

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

ACN - Ascii string CoNcatenate<br />

A<br />

ACN<br />

STRING CONCATENATE<br />

SourceA ST10:0<br />

SourceB ST10:1<br />

Dest<br />

ST10:2<br />

Description:<br />

Status Bits:<br />

Registers:<br />

This will concatenate two strings together into one combined string. In<br />

this example while ’A’ is true the strings in ’ST10:0’ <strong>and</strong> ’ST10:1’<br />

will be added together <strong>and</strong> stored in ’ST10:2’.<br />

none<br />

none<br />

Available on: Micrologix, PLC-5

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

Saved successfully!

Ooh no, something went wrong!