Mitsubishi Electronics C64 Home Safety Product User Manual


 
10. Exclusive Commands 2
10.1 ATC Exclusive Command
- 343 -
(2) Tool No. logical product (AND) search
Tool number AND search is the same as the tool number search command (ATC K1) in function:
search data and in-magazine tool number and AND data are ANDed together for a search.
Based on the output result, the
rotation direction, the number of
steps, etc., are found by using the
ROT K1 command.
Output
M10 R4710 R4000 S.ATC K2
ACT
R4000
R4001
R4030
R4040
R4715
R4750
R4751
R4758
R4759
R4041
R4030
R4002
4030
4040
4031
2000
3
3
2
2001 (0)
1002 (1)
3003 (2)
2004 (3)
1009 (8)
2010 (9)
F000
1005 (4)
Register No. to store search data
Register No. to which data output
Search data
Location of
searched data:3
Number of
searched data
found (for error):3
Pointer
Tool data table head
There are three data "2***" and the location of
data "2***" nearest to the pointer is "3".
(Note 1) Pointer and location are counted up, like 0,1,2 ... 9,
in the tool data table, starting from the tool data table head.
(Note 2) When pointer is not used, R4751 should be set to
"zero".
(Ex.)
Register No. to store logical product
(AND) data
Logical product
data
The in-magazine tool number is ANDed with AND
data F000 in sequence. The result is compared
with the search data ( denotes AND.)
Search data 2000 = 2001 F000
1002 F000
3003 F000
2*** and F000 are ANDed together.
2000 is search data.
* is any desired data.
MOV K0 R4715