EasyManuals Logo

Allen-Bradley PLC-5 User Manual

Allen-Bradley PLC-5
388 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #329 background imageLoading...
Page #329 background image
Publication 1785-UM012D-EN-P - July 2005
Instruction Set Quick Reference D-29
ASCII String Search
ASC
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 String Compare
ASR
If the string in ST37:42 is identical to the string in ST38:90,
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
AWA
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 50 characters
from ST52:76 and write it to channel 0 and append the two
character configuration in the channel configuration
(default CR/LF). The number of characters sent is stored in
R6:32.POS and displayed in the characters sent field of the
instruction display.
See page F-8 for a description of prescan operation for this
instruction.
ASCII Write
AWT
Status Bits
EN - Enable
DN - Done Bit
ER - Error Bit
UL - Unload
EM - Empty
EU - Queue
If input conditions go from false-to-true, write 40 characters
from ST37:40 to channel 0. The number of characters sent
is stored in R6:23.POS and displayed in the characters sent
field of the instruction display.
See page F-8 for a description of prescan operation for this
instruction.
Instruction Description
ASC
STRING SEARCH
Source
Search
ST38:40
35
42
Index
Result
ST52:80
ASR
ASCII STRING COMPARE
Source A ST37:42
ST38:90
Source B
AWA
ASCII WRITE APPEND
Channel
Control
0
R6:32
ST52:76
50
Source
String Length
Characters Sent
AWT
ASCII WRITE
Channel
Control
R6:23
ST37:40
40
Source
String Length
Characters Sent
0

Table of Contents

Other manuals for Allen-Bradley PLC-5

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley PLC-5 and is the answer not in the manual?

Allen-Bradley PLC-5 Specifications

General IconGeneral
Programming SoftwareRSLogix 5
Programming LanguagesLadder Logic
Power Supply120/240V AC or 24V DC
Communication PortsDH+, Remote I/O, Ethernet/IP, ControlNet
Operating Temperature0 to 60°C (32 to 140°F)
Relative Humidity5 to 95% non-condensing
MemoryUp to 64K words (user program and data)

Related product manuals