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

EL5131 | 1-Channel-Incremental Encoder Interface, 5 V with 2 parameterizable 24 V DC Outputs · 0 次阅读

Gate/Latch input

The terminal provides an external Gate/Latch input for 24 VDC signals with a minimum pulse duration of tON > 1 µs. This can be used as follows:

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 0x8000: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 0x6000:0C "Status of input gate".

Save counter value via a positive/negative edge at the Gate/Latch input (Enable latch extern 2 on positive/negative edge)

The Gate/Latch input may be used as a second latch input (Latch extern 2). To do this, the gate should be disabled.

Gate/Latch input 1:

Deactivation of the gate

Set the "Gate polarity" bit (index 0x8000:04) to "0 – Disable gate" in order to be able to use the Latch extern 2 input without disabling the counter value after the latch event.

  • The counter value at the Latch extern 2 input can be saved via:
    • Index 0x7000:0C "Enable latch extern 2 on positive edge" = TRUE
      At the first external latch pulse with positive edge at the Gate/Latch input the current counter value is stored in index 0x6000:22 "Latch value 2".
    • Index 0x7000:0D "Enable latch extern 2 on negative edge" = TRUE
      At the first external pulse with negative edge at the Gate/Latch input the current counter value is stored in index 0x6000:22 "Latch value 2".
    • Simultaneous activation of 0x7000:0C and 0x7000:0D
      On the first pulse at the Gate/Latch input, regardless of the polarity of the edge, the current counter value is stored in index 0x6000:22 "Latch value 2".
  • Specification whether it is necessary to reactivate the command to save the counter value via:
    • "Enable continuous latch extern 2" Index 0x8000:23 = FALSE
      The following pulses at the Gate/Latch input have no influence on the Latch value in index 0x6000:22 "Latch value 2" if the bit in index 0x7000:0C or 0x7000:0D is set.
      Only when index 0x6002:12 "Latch extern 2 valid" is FALSE, a new counter value can be written to the Gate/Latch input in index 0x6000:22 "Latch value 2".
    • "Enable continuous latch extern 2" index 0x8000:23 = TRUE
      The counter value is written to index 0x6002:12 "Latch value 2" for each parameterized edge at the Gate/Latch input.
      There is no need to reactivate index 0x7000:0C or 0x7000:0D.
  • The status of the Gate/Latch input can be recorded via index 0x6000:0C "Status of input gate".
  • Saving of the counter value in index 0x6000:22 "Latch value 2" is confirmed via bit 0x6002:12 "Latch extern 2 valid".
Gate/Latch input 2:

Simultaneous use of Gate und Latch extern 2

When using index 0x8000:04 "Gate polarity"(1 = "Enable pos. gate") and simultaneously activating index 0x7000:0C "Enable latch extern 2 on positive edge", the current counter value is initially stored in index 0x6000: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 0x80n00:04 "Gate polarity" (2 = "Enable neg. gate") and simultaneous activation of index 0x7000:0D "Enable latch extern 2 on negative edge" at a negative edge at the Gate/Latch input.

Gate/Latch input 3:

Multiple activation of the latch function

If several commands are activated simultaneously to save the counter value in the "Latch value" process data (index 0x60n0:12), only the command that is set first is accepted by the terminal.

  • The counter value is stored in the "Latch value" (index 0x60n0:12) at the next occurring event and confirmed with the corresponding bit.
  • All other activated events are ignored.
  • The counter value storage cannot be reactivated until all activated commands for latching the value have been deactivated. This also applies if they were activated after confirmation by the occurring event.