Mitsubishi Electronics E60 Video Game Controller User Manual


 
9. Exclusive Commands
- 215 -
(2) Ring counter (Up/down counter)
This command is used to control position of rotary body (or turret).
Completion ("1" for error)
Ring counter command
Cycles of index for rotary body
are apecified.
Control data buffer location is specified.
Rn
Rn+1
Rp
Parameter setting R No.
Counter setting R No. (File register No.
which is the content in Rn+1 is actual ring counter.)
(Pulse coding)
Rn S.ROT
K3 Rm
Mm
ACT
The ring counter is a binary counter; it is used as an up/down counter of "start from 0" or "start
from 1" according to the parameter rotary body command.
Rp (parameter) contents
15
-
--3210
Rp (parameter) contents
FE
Error output
Command code ... S.ROT Kn is not "1" or "3".
Rotary body selection
0: Rotary body starts from 1
1: Rotary body starts from 0
Up/down selection
0: Up counter
1: Down counter
-
(Note 1) The ring counter command is executed after setting R numbers to Rn to Rn+1 and
specifying data for the parameter.
(Note 2) The error code (Mm) of the ring counter command and the error code in bit F of the
parameter (Rp) are cleared when the activating signal (ACT) goes off. The activating signal
(ACT) of the ring counter command is generally pulsed. This makes it hard for the interface
diagnostic and ladder monitor programs to detect an error signal. For debugging, therefore,
an error hold circuit is provided after the ring count command to ease error detection.