Allen-Bradley PLC-5 User Manual page 329

Enhanced and ethernet plc-5 programmable controllers
Hide thumbs Also See for PLC-5:
Table of Contents

Advertisement

Instruction
ASC
STRING SEARCH
Source
ST38:40
Index
35
Search
ST52:80
Result
42
ASR
ASCII STRING COMPARE
Source A
ST37:42
ST38:90
Source B
AWA
ASCII WRITE APPEND
Channel
0
Source
ST52:76
Control
R6:32
String Length
50
Characters Sent
AWT
ASCII WRITE
Channel
0
Source
ST37:40
Control
R6:23
String Length
40
Characters Sent
Description
ASCII String Search
If input conditions are true, search ST52:80 starting at the
ASC
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 String Compare
If the string in ST37:42 is identical to the string in ST38:90,
ASR
the instruction is true. Note that this is an input instruction.
An invalid string length causes the ASCII instruction error
minor fault bit S:17/8 to be set, and the instruction is false.
ASCII Write Append
If input conditions go from false-to-true, read 50 characters
AWA
from ST52:76 and write it to channel 0 and append the two
character configuration in the channel configuration
Status Bits
(default CR/LF). The number of characters sent is stored in
EN - Enable
R6:32.POS and displayed in the characters sent field of the
DN - Done Bit
instruction display.
ER - Error Bit
UL - Unload
See page F-8 for a description of prescan operation for this
EM - Empty
instruction.
EU - Queue
ASCII Write
If input conditions go from false-to-true, write 40 characters
AWT
from ST37:40 to channel 0. The number of characters sent
is stored in R6:23.POS and displayed in the characters sent
Status Bits
field of the instruction display.
EN - Enable
DN - Done Bit
See page F-8 for a description of prescan operation for this
ER - Error Bit
instruction.
UL - Unload
EM - Empty
EU - Queue
Instruction Set Quick Reference
Publication 1785-UM012D-EN-P - July 2005
D-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents