351
5
5 High-speed Input 5.2.4 SPD Pulse Density Detection
5.2.4 SPD Pulse Density Detection
◆
Overview
The number of pulses at the specied port is detected within the set time for pulse frequency detection.
SPD
S1 S2 D
Pulse density detection Applicable Model:
H3U
S1 Source data Specied pulse signal input port
16-bit instruction
(7 steps)
SPD: Continuous
execution
S2 Source data Set pulse detection duration
D Result Count of pulses
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1
X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
S2
X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D
X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
Note: The elements in gray background are supported.
◆
Functions and actions:
The detected number of pulses by [S1] port in duration time [S2] is stored in address [D].
[S1] indicates the pulse signal input port, which is specied within the range X00 to X07.
[S2] indicates the pulse detection duration (ms), which is specied within the range 1 to 32,767.
[D] indicates the count of pulses, occupying three consecutive address units starting with [D]. [D + 0]
indicates the number of pulses within the set duration [S2]. [D + 1] indicates the real-time number of pulses.
[D + 2] indicates remaining time of the sampling period.