High-speed counter instructions
910
Part III FP Instructions
PLC types Availability of F178_HighSpeedCounter_Measure (see page 1322)
Variable Data
type
Function
s1_iHscChannel INT High-speed counter channel: 0–5
s2_NumberOfPulses_iPeriodTime_m
s
INT Counting period [ms]:
1–5000 (1ms–5s).
s1_NumberOfPulses_iNumberOfPeri
ods
INT Number of counting periods: 1–5
s1_PulsePeriod_iMeasurementMetho
d
INT Unit of pulse period measurement
0: Pulse period is not measured
1: Pulse period is measured in
s
2: Pulse period is measured in ms
3: Pulse period is measured in
s and ms
Time-out value of pulse period
measurement [ms]:
0: no time-out
s1_PulsePeriod_iTimeoutValueOf1ms
UnitOutput
INT
1: 100ms
2: 200ms
3: 300ms
4: 500ms
6: 1s
7: 2s
8: 10s
9: 60s
d_NumberOfPulses_diAverage DINT Average number of pulses per counting
period (no. of pulses in counting
period/number of counting periods)
d_PulsePeriod_diTime_s
DINT
Pulse period [s]
For Relay T/C Register Constant
s1_iHscC
hannel
WX WY WR WL SV EV DT LD FL dec. or hex.
s1/s2
inputs
WX WY WR WL SV EV DT LD FL dec. or hex.
d outputs - WY WR WL SV EV DT LD FL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
channel number or values of the data
table are outside the permissible range
high-speed counter has not been set in
the system registers
the high-speed counter channel is
already used by another high-speed
counter or pulse output instruction
the number of channels used is 3 or
more
Data types
Operands
Error flags