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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

plc function ref - 34.42<br />

AWT, AWA - Ascii WriTe, Ascii Write Append<br />

A<br />

AWT<br />

ASCII WRITE<br />

Channel<br />

Source<br />

<strong>Control</strong><br />

String Length<br />

Characters Sent<br />

0<br />

ST11:9<br />

R6:3<br />

14<br />

Description:<br />

The AWT instruction will send a character string. In this example, when<br />

’A’ goes from false to true, up to 14 characters will be sent from<br />

’ST11:9’ to channel 0. This does not append any end of line characters.<br />

The AWA function has a similar operation, except that the channel configuration<br />

characters are added - by default these are ’CR’ <strong>and</strong> ’LF’.<br />

Status Bits:<br />

EN<br />

DN<br />

ER<br />

UL<br />

EM<br />

EU<br />

enable - this will be set while the instruction is active<br />

done - this will be set after the string has been sent<br />

error bit - set when an error has occurred<br />

unload -<br />

empty - set if no string was found<br />

queue -<br />

Registers: POS the number of characters sent instructions<br />

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

34.2 DATA TYPES<br />

The following table describes the arguments <strong>and</strong> return values for functions. Some<br />

notes are;<br />

• ’immediate’ values are numerical, not memory addresses.<br />

• ’returns’ indicates that the function returns that data value.<br />

• numbers between ’[’ <strong>and</strong> ’]’ indicate a range of values.<br />

• values such as ’yes’ <strong>and</strong> ’no’ are typed in literally.<br />

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

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

Saved successfully!

Ooh no, something went wrong!