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

AEX - Ascii string EXtract<br />

A<br />

Description:<br />

AEX<br />

STRING EXTRACT<br />

Source ST9:4<br />

Index 11<br />

Number 3<br />

Dest<br />

ST9:0<br />

This function will remove part of a string. In this example the characters<br />

in the 12th, 13th <strong>and</strong> 14th positions (’3’ charaters starting at the 11th<br />

position), are copied to the location ST9:0. The original string is not<br />

changed.<br />

Status Bits:<br />

Registers:<br />

none<br />

none<br />

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

AHL - Ascii H<strong>and</strong>shake Line<br />

A<br />

AHL<br />

ASCII HANDSHAKE LINE<br />

Channel 1<br />

AND Mask 0000<br />

OR Mask 0003<br />

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

Channel Status<br />

Description:<br />

This instruction will check the serial interface using the DTR <strong>and</strong> RTS<br />

send bits. Bit 0 is DTR <strong>and</strong> bit 1 is the RTS. If a bit is set in the AND<br />

mask the bits will be turned off, otherwise they will be left alone. If a<br />

bit is set in the OR word a bit will be turned on, otherwise they will be<br />

left alone. In this example the DTR <strong>and</strong> RTS bits will be turned on for<br />

channel 1.<br />

Status Bits:<br />

EN<br />

DN<br />

ER<br />

enable - this is set when the instruction is active<br />

done - when the bits have been reset this bit is on<br />

error - this bit is set if an error has occurred<br />

Registers:<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!