EasyManuals Logo
Home>Allen-Bradley>Controller>micrologix 1500

Allen-Bradley micrologix 1500 Reference Manual

Allen-Bradley micrologix 1500
424 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 #294 background imageLoading...
Page #294 background image
Publication 1762-RM001C-EN-P
20-26 ASCII Instructions
Example
Error Conditions
The following conditions cause the controller to set the ASCII Error bit
(S:5/15).
Source string length is less than 1 or greater than 82.
Index value is less than 1 or greater than 82.
Index value is greater than Source string length.
The destination is not changed in any of the above conditions. When the
ASCII String Manipulation Error bit (S:5/15) is set, the Invalid String
Length Error (1F39H) is written to the Major Error Fault Code word (S:6).
ASR - ASCII String
Compare
Instruction Type: input
Use the ASR instruction to compare two ASCII strings. The controller
looks for a match in length and upper/lower case characters. If two
strings are identical, the rung is true; if there are any differences, the rung
is false.
I:1
10
ASC
String Search
Source ST38:40
Index 35
String Search ST52:80
Result N10:0
ASC
If input slot 1, bit 10 is set, search the string
in ST52:80 starting at the 36th character, for
the string found in ST38:40. In this example,
the position result is stored in N10:0.
ASR
ASCII String Compare
Source A ST10:8
Source B ST10:9
ASR
Table 20.29 Execution Time for the ASR Instruction
Controller When Instruction Is:
True False
MicroLogix 1200 Series B, FRN 3 or later 9.2
µ
s + 4.0
µ
s/matching character 0.0
µ
s
MicroLogix 1500 Series B, FRN 4 or later 7.5
µ
s + 3.5
µ
s/matching character 0.0
µ
s

Table of Contents

Other manuals for Allen-Bradley micrologix 1500

Questions and Answers:

Question and Answer IconNeed help?

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

Allen-Bradley micrologix 1500 Specifications

General IconGeneral
BrandAllen-Bradley
Modelmicrologix 1500
CategoryController
LanguageEnglish

Related product manuals