EasyManuals Logo

Allen-Bradley MicroLogix 1100 Instruction Set Reference Manual

Allen-Bradley MicroLogix 1100
616 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 #334 background imageLoading...
Page #334 background image
Publication 1763-RM001C-EN-P - October 2009
334 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.
Entering Parameters
Enter the following parameters when programming this instruction:
Source A is the location of the first string used for comparison.
Source B is the location of the second string used for comparison.
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
Execution Time for the ASR Instruction
Controller When Instruction Is:
True False
MicroLogix 1100 27.27 μs + 0.65 μs/matching
character
0.9 μs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1100

Questions and Answers:

Question and Answer IconNeed help?

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

Allen-Bradley MicroLogix 1100 Specifications

General IconGeneral
Processor32-bit
Programming SoftwareRSLogix 500
MountingDIN rail or panel mount
Power Supply24V DC
TypeCompact PLC
Digital Inputs12
Digital Outputs8
Analog Inputs4 (depending on model)
Analog OutputsOptional with expansion module
Programming LanguageLadder Logic
Operating Temperature0 to 55 °C (32 to 131 °F)
SeriesMicroLogix

Related product manuals