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
125
High_Speed_Counter input parameters
SwGate INPUT BOOL FALSE Control software gate:
• Positive edge: Software gate opens
• Negative edge: Software gate closes
Together with the hardware gate, the SwGate enables the inter-
SetCount-
Value
INOUT BOOL FALSE A positive edge starts the transfer of the new counter value in the
static tag NewCountValue to the technology module. The counter
value takes effect immediately after the transfer.
Capture-
Enable
INPUT BOOL FALSE Enable Capture function
After the enable, a Capture event occurs at the next configured
edge at the relevant digital input. A negative edge at CaptureEn-
able resets the output parameter CaptureStatus. A negative edge
at CaptureEnable resets the enable even if no Capture event has
occurred.
Irrespective of CaptureEnable the last value is retained at the
output parameter CapturedValue until the next Capture event.
SyncEnable INPUT BOOL FALSE Enable synchronization
The direction enabled for synchronization is indicated in the static
tags SyncUpDirection and SyncDownDirection. A negative edge
at SyncEnable resets the output parameter SyncStatus .
ErrorAck INPUT BOOL FALSE High_Speed_Counter up to V3.0:
A positive edge acknowledges the status reported.
High_Speed_Counter as of V3.1:
A high level acknowledges the error status reported.
EventAck INPUT BOOL FALSE A positive edge resets the following output parameters:
• CompResult0
• CompResult1
• ZeroStatus
• PosOverflow
• NegOverflow