Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 619

Table of Contents

Advertisement

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.
0.00
C
#8000000A
R1
D100
D200
Cd
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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
PC memory
address
D100
D101
D102
10067
D103
D104
D105
D106
D107
D108
D109
IR0
DR0
Search
D200
Number of matches
00010067
0003
Number of matches
3. Instructions
3
583

Advertisement

Table of Contents
loading

Table of Contents