Lock counter value
The gate function enables locking of the counter "Counter value". The counter is locked at the first pulse at the gate input. Subsequent pulses have no influence on the counter value. This allows a timeframe to be defined in which counting signals are acquired. The gate function can be triggered by:
- input "Gate": one positive/negative edge at the gate input
- PLC variable: the counter can be locked from the PLC application (see chapter "Setting and locking the counter value via PLC variable".
Locking counter value via input "Gate"
The input "Gate" is located at connections X03 and X07, see chapter 1 Encoder with latch and gate: "ENC_L_G" (SlotGroup 1). It is only available if the ModuleGroup "ENC_L_G" has been selected.
The CoE parameter 0x8000:04 “Gate polarity” can be used to set the level at the gate input at which the counter value is locked at runtime:
- 0: "Disable gate"
The gate/latch input is disabled. - 1: "Enable pos. Gate"
The counter value is locked with a high level at the gate input. - 2: "Enable neg. gate"
The counter value is locked with LOW level at the gate input.
The status bit "Status of input gate" shows the current level at the gate input.