
4.LADDER LANGUAGE B-63983EN/02
- 266 -
4.7.1 DSCHB (Binary Data Search: SUB 34)
This function instruction instructs data search in the data table.
DSCHB searches the data table for a specified data, outputs an address
storing it counting from the beginning of the data table. If the data
cannot be found, an output is made accordingly.
The numerical data handled in this instruction are all in binary format
and number of data (table capacity) in the data table can be specified
by specifying the address, thus allowing change in table capacity even
after writing the sequence program in the flash ROM.
1
0
3
n
Table number
Data table
Search data
Search result output
100
100
2
2
Fig. 4.7.1 (a)
Format
Fig. 4.7.1 (b) shows the ladder format and Table 4.7.1 shows the
mnemonic format.
DSCHB
SUB 34
¡
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡
CT
W1
*
*
RST
*
Search result
*
Format designation
Storage address of number of data in data table
Data table head address
Search data address
Output address of search result
Fig. 4.7.1 (b) Format of DSCHB instruction
CAUTION
You can specify any R,E and D address for the data
table in this functional instruction.