The basics of counting, measurement and position detection
2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Counting, measurement and position detection
Function Manual, 12/2017, A5E32009889-AG
45
Setting between comparison value 0 and comparison value 1
The comparison event can be configured for the digital output DQ1 if "Use by user program"
has been configured for the digital output DQ0.
DQ1 is set to 1 if:
Comparison value 0 <= counter value <= comparison value 1
The comparison event is independent of the count direction.
Setting at comparison value for one pulse duration
The respective digital output is set to 1 for a specified period of time when the following
conditions are fulfilled:
● Counter value = comparison value
● Current count direction = configured count direction for the comparison event
The figure below shows an example of the comparison event when counting in an upwards
direction: