DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
-146
API
Mnemonic Operands Function
56 SPD
Speed Detection
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
SPD: 7 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S
1
: External pulse input S
2
: Pulse receiving time (ms) D: Detected result (5 consecutive
devices)
Explanations:
1. The instruction counts the number of pulses received at input terminal S
1
during the time S
2
(ms)
and stores the result in the register D.
2. ES2/EX2 before V0.92. External pulse input terminals designated in S
1
:
X0, X2 X1 (X0/X1) X6, X7
Input mode
(Supports single
AB-phase input
(Supports quadruple frequency)
(Supports single
3. ES2/EX2/EC5: V1.00 or later. External pulse input terminals designated in S
1
:
X0, X2
X1 (X0/X1), X3 (X2/X3)
X5 (X4/X5), X7 (X6/X7)
X4, X6
Input mode
(Supports single
AB-phase input
(Supports quadruple frequency)
(Supports single
Max frequency
5KHz 10KHz
4. SS2/SA2/SX2/12SE. External pulse input terminals designated in S
1
:
X0, X2
X1 (X0/X1), X3 (X2/X3)
X5 (X4/X5), X7 (X6/X7)
X4, X6
Input mode
(Supports single
AB-phase input
(Supports quadruple frequency)
(Supports single
Max frequency
100kHz
5KHz.
X1(X0/X1) of SA2/12SE: 30kHz
10KHz
5. D occupies 5 consecutive registers, D + 1 and D store the results of previous pulse detection; D
+3 and D + 2 store the current accumulated number of pulses; D + 4 store the current time
remaining (max. 32,767ms).