EasyManuals Logo
Home>Allen-Bradley>Control Unit>MicroLogix 1200

Allen-Bradley MicroLogix 1200 Reference Manual

Allen-Bradley MicroLogix 1200
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 #293 background imageLoading...
Page #293 background image
Publication 1762-RM001C-EN-P
ASCII Instructions 20-25
ASC - String Search
Instruction Type: output
Use the ASC instruction to search an existing string for an occurrence of
the source string. This instruction executes on a true rung.
Entering Parameters
Enter the following parameters when programming this instruction:
Source is the address of the string you want to find.
Index is the starting position (from 1 to 82) within the search string.
(An index of 1 indicates the left-most character of the string.)
Search is the address of the string you want to examine.
Result is the location (from 1 to 82) that the controller uses to store
the position in the Search string where the Source string begins. If no
match is found, result is set equal to zero.
Addressing Modes and File Types can be used as shown below:
ASC
String Search
Source ST10:6
Index 5
String Search ST10:7
Result N7:1
0<
ASC
Table 20.27 Execution Time for the ASC Instruction
Controller When Instruction Is:
True False
MicroLogix 1200 Series B, FRN 3 or later 16.2
µ
s + 4.0
µ
s/matching character 0.0
µ
s
MicroLogix 1500 Series B, FRN 4 or later 13.4
µ
s + 3.5
µ
s/matching character 0.0
µ
s
Table 20.28 ASC Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Parameter
Data Files
(1)
(1) The Control data file is the only valid file type for the Control Element.
Function Files
CS - Comms
IOS - I/O
Address
Mode
Address
Level
O
I
S
B
T, C, R
N
ST
L
MG, PD
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
DAT
TPI
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Source •• •••
Index
Search
Result •• •••

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1200

Questions and Answers:

Question and Answer IconNeed help?

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

Allen-Bradley MicroLogix 1200 Specifications

General IconGeneral
BrandAllen-Bradley
ModelMicroLogix 1200
CategoryControl Unit
LanguageEnglish

Related product manuals