
B–61863E/15
5. FUNCTIONAL INSTRUCTIONS
PMC SEQUENCE PROGRAM
235
Table 5.29.2 DSCH instruction coding
Coding sheet Memory status of control condition
Step
Number
Instruc-
tion
Address
No.
Bit No. Remarks ST3 ST2 ST1 ST0
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 17 DSCH instruction
5 (PRM) ffff Number of data of the data table
6 (PRM) ffff Data table heading address
7 (PRM) ffff Search data address
8 (PRM) ffff Search result output address
9 WRT fff . f Search data presence/absence output adress W1
(a) Specify data size.
BYT=0 : Data stored in the data table, BCD two digits long.
BYT=1 : Data stored in the data table, BCD four digits long.
(b) Reset
RST=0 : Release reset
RST=1 : Enables a reset, that is, sets W1 to 0.
(c) Execution command
ACT=0 : The DSCH instruction is not executed. W1 does not change.
ACT=1 : The DSCH is executed, and the table internal number
storing the desired data is output., If the data cannot be
found, W1=1.
Specifies the size of the data table. If the beginning of the data table is 0
and the end is n, n+1 is set as the number of data of the data table.
Addresses that can be used in a data table are fixed. When preparing a data
table, the addresses to be used must be determined beforehand, specify the
head address of a data table here.
Indicates the address of the data to be searched.
5.29.3
Control Conditions
5.29.4
Number Of Data of the
Data Table
5.29.5
Data Table Head
Address
5.29.6
Search Data Address