Using the High_Speed_Counter technology object
3.6 Programming the High_Speed_Counter
Counting, measurement and position detection
120 Function Manual, 12/2017, A5E32009889-AG
: The output parameter SyncStatus = TRUE indicates that a synchronization
has occurred.
● The counter value is synchronized under the following conditions:
– A digital input has the parameter assignment "Synchronization"
the incremental
encoder has the parameter assignment "Synchronization at signal N"
– SyncEnable = TRUE
– SyncUpDirection (or SyncDownDirection) = TRUE
– Edge at the digital input with the synchronization function
positive edge of the signal
N at the encoder input
● The output parameter SyncStatus is reset by a negative edge at
– the input parameter SyncEnable or
– the static tag SyncDownDirection or
– the static tag SyncUpDirection
Parameter changes via the user program
Proceed as follows to modify parameters using the user program:
1. Check based on the respective Set tag to determine whether the technology object is
ready for the parameter change (Set tag = FALSE) or whether a change job is still
running (Set tag = TRUE).
The following Set tags in UserCmdFlags are available for this in the static tags of the
technology object instance DB:
– SetReferenceValue0
– SetReferenceValue1
– SetUpperLimit
– SetLowerLimit
– SetCountValue
– SetStartValue
– SetNewDirection
2. If the technology object is ready for the parameter change, modify the relevant static tag.
The following static tags of the technology object instance DB are available for this:
– NewReferenceValue0 / NewReferenceValue0_M (for SetReferenceValue0)
– NewReferenceValue1 / NewReferenceValue1_M (for SetReferenceValue1)
– NewUpperLimit
– NewLowerLimit
– NewCountValue
– NewStartValue
– NewDirection