EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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 #1132 background image
3. Instructions
1094
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Flags
Function
FIND$(660) finds the text string designated by
S2 from within the text string designated by
S1, and outputs the result (a given number of
characters from the beginning of S1) in binary
data to D. If there is no matching text string,
0000 hex is output to D.
FIND$(660) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
Example Programming
In this example, FIND$(660) is used to find one character from within a text string.
Name Label Operation
Error Flag ER • ON if more than 4,095 characters are designated by S1 or S2.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
Equal Flag = • ON if 0000 (hex) is output to D.
• OFF in all other cases.
→→→
Found data
S1: D100
S2: D200
D: D300
D100
D200
D300
Text string: CText string: ABCDEF

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals