User manual

Instruction Set
ASCII Instructions 3-50
ASCII instructions continued...
Instruction Description
ASCII Read Line
ARL
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
Status Bits
EN - Enable
DN - Done Bit
ER - Error Bit
UL - Unload
EM - Empty
EU - Queue
If input conditions go from false-to-true, read 18 characters (or until end-of-line) from the
buffer and move them to ST50:72. The number of characters read is stored in R6:30.POS and
displayed in the Characters Read Field of the instruction display.
ASCII String Search
ASC
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
If input conditions are true, search ST52:80 starting at the 35th character, for the string found in
ST38:40. In this example, the string was found at index 42. If the string is not found, the ASCII
instruction minor fault bit S:17/8 is set and the result is zero.
ASCII READ LINE
Channel
Dest ST50:72
Control R6:30
String Length 18
Characters Read
ARL
STRING SEARCH
Source ST38:40
Index 35
Search ST52:80
Result 42
ASC