The basics of counting, measurement and position detection
2.4 Basics of counting (digital input modules)
Counting, measurement and position detection
Function Manual, 12/2017, A5E32009889-AG
87
Depending on the module, you can define up to two comparison values that control a reset
bit for the channel, independent of the user program.
When there are two comparison values, comparison value 1 must be greater than
comparison value 0. The comparison values are configurable and can be changed at runtime
by the user program.
The comparison values are compared with the current counter value. If the counter value
meets the configured comparison condition, the respective STS_DQ reset bit is set.
You can use the respective reset bit in order to switch a digital output module's digital output.
You can make setting the respective STS_DQ reset bit dependent on one of the following
comparison events. See the device manual for the technology module to find out which
comparison events can be configured.
Setting between comparison value and high counter limit
The respective STS_DQ feedback bit is set to 1 when:
Comparison value <= counter value <= high counter limit