EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

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
Loading...
585
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
SRCH
Example Programming
When CIO 0.00 is ON in the following example, SRCH(181) searches the 10-word range beginning at
D100 for words that have the same content as D200. The PLC memory address of the first word
containing a match is written to IR0 and the total number of matches is written to DR0.
If the table length is specified as &10 (10 decimal) or A hexadecimal, the number of matches will not be
output to the data register DR0.
D200
#8000000A
R1
Cd
10067
00010067
0003
IR0
DR0
C
Search
Number of matches
Number of matches
PC memory
address
0.00
D100
D200
D100
D101
D102
D103
D104
D105
D106
D107
D108
D109

Table of Contents

Related product manuals