Reset counter value via gate/latch combination input
The “Latch” and “Gate” inputs each combine gate and latch functions in a single input and are therefore referred to below as gate/latch combination inputs.
A recurring reset of the counter value (input process data “Counter value” (0x60n0:11)) to “0” can be performed by:
- Gate/Latch combination input: one edge (positive/negative) at the “Latch extern” input (0x80n0:02 “Enable extern reset”)
The settings are made in the configuration data, so it is not necessary to reactivate the device after a reset.
Reset counter value via gate/latch combination input (Enable extern reset)
The counter value can be set to zero via the external gate/latch combination input.
- Presetting of the reset value via index 0x80n1:1B “Reset counter value”, (Default: 0)
- To activate this function set the bit in index 0x80n0:02 “Enable extern reset”.
- Index 0x80n0:10 “Extern reset polarity” can be used to specify at which edge the gate/latch combination input is active.
- 0: “Fall” - the counter is set to zero with a falling edge
- 1: “Rise” - the counter is set to zero with a rising edge
There is no status message via the process data.
![]() | Activation of gate and latch functions via the same edge at the gate/latch combination input in 2-channel mode 2xAB When the gate function and a latch function is activated via the same edge at the gate/latch combination input, the latch function is always executed first, after which the counter value is locked via the gate function. Example: Index 0x80n0:04 “Gate polarity” (1 = “Enable pos. gate”) and Index 0x80n0:02 “Enable extern reset” = 1 with 0x80n0:10 “Extern reset polarity” = 1 (reset on a positive edge at the gate/latch combination input) With a positive edge at the gate/latch combination input the current counter value is first set to zero (reset). After that, the counter value is locked. The same applies to the use of index 0x80n0:04 “Gate polarity” (2 = “Enable neg. gate”) and the simultaneous activation of index 0x80n0:02 “Enable extern reset” with 0x80n0:10 “Extern reset polarity” = 0 (reset on a negative edge at the gate/latch combination input). |
