Omron CJ - INSTRUCTIONS Reference Manual page 1132

Table of Contents

Advertisement

3. Instructions
Flags
Name
Error Flag
Equal Flag
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.
D100
D200
D300
1094
Label
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.
=
• ON if 0000 (hex) is output to D.
• OFF in all other cases.
Text string: ABCDEF
S1: D100
Operation
Found data
Text string: C
S2: D200
CS/CJ/NSJ Series Instructions Reference Manual (W474)
D: D300

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents