Infosys在阅读器中打开 / AI 翻译

EL5112 | 2-Channel Incremental Encoder Interface, 5 V, (2xAB or 1xABC RS422, TTL) · 0 次阅读

Lock counter value

The gate function enables locking of the counter (0x60n0:11).
The counter is locked at the first pulse at the Gate/Latch 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:

The Gate/Latch input may be used as a second latch input (Latch external 2).

Lock counter value via a positive/negative edge at the gate input (Enable pos./neg. gate)

  • The level at the Gate input at which the counter value is locked during runtime can be specified via index 0x80n0:04 "Gate polarity".
    • 0: Disable gate
      The Gate/Latch input is disabled. It can still be used as Latch extern 2 input.
    • 1: Enable pos. gate
      The counter value is locked with HIGH level at the Gate/Latch input.
    • 2: Enable neg. gate
      The counter value is locked with LOW level at the Gate/Latch input.
  • The current level at the Gate input is displayed via process data 0x60n0:0C "Status of input gate".
Lock counter value 1:

Simultaneous use of Gate und Latch extern 2

When using index 0x80n0:04 "Gate polarity" (1 = "Enable pos. gate") and simultaneously activating index 0x70n0:0C "Enable latch extern 2 on positive edge", the current counter value is initially stored in index 0x60n0:22 "Latch value 2" when a positive edge is detected at the Gate/Latch input. The counter value is then blocked.

The same applies to the use of index 0x80n0:04 "Gate polarity" (2 = "Enable neg. gate") and simultaneous activation of index 0x70n0:0D "Enable latch extern 2 on negative edge" at a negative edge at the Gate/Latch input.

Locking the counter value via a PLC variable (Set software gate)

The counter value can be locked from the PLC application.

  • Index 0x70n0:09 "Set software gate" = TRUE
    The counter is locked.
  • For confirmation the "Software gate valid" bit (0x60n2:11) is set to TRUE.
  • Index 0x70n0:09 "Set software gate" = FALSE
    The counter is unlocked.