12 Applied Instructions (High Speed Processing)
292
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
12.7 SPD / Speed Detection
12.7 SPD / Speed Detection
Outline
This instruction counts the input pulse for a specified period of time as interrupt input.
The function of this instruction varies depending on the version.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
SPD 16 bits Continuous SPD(EN,s1,s2,d);
DSPD 32 bits Continuous DSPD(EN,s1,s2,d);
Variable Description
Data type
16-bit operation 32-bit operation
Input variable
EN Execution condition Bit
Device of pulse input (X) Bit
Time data (ms) or word device storing the data ANY16 ANY32
Output variable
EN0 Execution state Bit
Head word device storing the pulse density data
ARRAY [0..2] OF
ANY16
ARRAY [0..2] OF
ANY32
Operand
type
Bit Devices Word Devices Others
System User Digit Specification
System
User
Special
Unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D
.b
KnX KnY KnM KnS T C D R
U\G
VZ
Modifier
KH E
"
"
P
S1
z
z z z z zzz
S2 S3
zzzzz
zzz
S2
zz z
SPD
EN
s1
s2
ENO
d
DSPD
EN
s1
s2
ENO
d