Using the High_Speed_Counter technology object
3.6 Programming the High_Speed_Counter
Counting, measurement and position detection
Function Manual, 12/2017, A5E32009889-AG
119
Description High_Speed_Counter
Description
The High_Speed_Counter instruction is used to control the technology module counting and
measuring functions via the user program.
The instruction High_Speed_Counter must be called once per counter, either cyclically or in
a time-controlled program. The call is not permitted in an event-controlled interrupt program.
Operating principle
Counter value
: The counter value is available at the output parameter CountValue. The
counter value is updated at every call of the High_Speed_Counter instruction.
: The technology module updates the measured value asynchronously to the
instruction call based on the configured update time. The measured value last determined by
the technology module is updated at the output parameter MeasuredValue each time the
instruction is called.
The measured value and the counter value are available in parallel in the feedback interface.
: The output parameter CaptureStatus = TRUE indicates a valid Capture value at the
output parameter CapturedValue.
● A Capture value is captured under the following conditions:
– A digital input has the parameter assignment "Capture"
– CaptureEnable = TRUE
– Edge at digital input with the Capture function
● The output parameter CaptureStatus is reset by a negative edge at the input parameter
CaptureEnable.