
B-63983EN/02 4.LADDER LANGUAGE
- 269 -
4.7.2 DSCH (Data Search: SUB 17)
This function instruction instructs data search in the data table. DSCH
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 value type in this
instruction is BCD.
Search data
Data table
100
0
1
2
n
Table internal number
100
2
Search data result output
Fig. 4.7.2 (a)
CAUTION
You can specify any R,E and D address for the data
table in this functional instruction.
Format
Fig. 4.7.2 (b) shows the ladder format and Table 4.7.2 shows the
mnemonic format.
DSCH
SUB 17
RST
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡.¡
ACT
¡¡¡¡.¡
W1
¡¡¡¡.¡
Control condition
Number of data of the data table (Table capacity)
Data table heading address
Search data address
Search result output address
Search result
BYT
¡¡¡¡.¡
Fig. 4.7.2 (b) Format of DSCH instruction