Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
12 Applied Instructions (High Speed Processing)
293
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
12.7 SPD / Speed Detection
Function and operation explanation
1. 16-bit operation (SPD)
The input pulse specified by is counted only for the period of "time specified by multiplied by 1 ms."
The measured value is stored in , the current value is stored in +1, and the remaining time is stored
in +2 (ms).
By repeating this operation, the measured value will store the pulse density (which is proportional to the
rotation speed).
1) Timing chart
2) The measured value is in proportion to the number of rotations as shown below.
Command
input
SPD
EN
s1
s2
ENO
d
Device for
pulse input
Time data
Pulse density data
Command
input
Measured
value
ms ms
+1
Current value
ms
+2
Remaining time (ms)
The command contact is set to ON.
+1 counts "OFF to ON" operation of .
ms later, the counting result is stored to .
Accompanied by this operation, +1 is reset,
and then counting of the "OFF to ON" operation
of is started again.
+2 is used to measure the remaining time.
Counting time Counting time
d
s1
s2 s2
d
d
d
d
d
s2
s2
s1
s1
d
Input X000
N =
nt
60
10 (r/min)
3
t: Measurement time duration
specified as (ms).
Proximity switch
"n" pulses/rotation
N (rpm)