Mitsubishi Electronics E60 Video Game Controller User Manual


 
9. Exclusive Commands
- 199 -
(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 ...
R501
R530
R540
R2965
R3000
R3001
:
:
:
:
R3008
R3009
540
2000
3
3
2
2001 (0)
1002 (1)
3003 (2)
2004 (3)
1009 (8)
2010 (9)
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, R2965 should be set to
"zero".
Ex.)
MOV
K0
R2965
R502
531
R531
F000
1005 (4)
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.
R541
:
R500
530
Register No. to store search data
R500 S.ATC K2
ACT
M10
R2960