Set counter value via gate/latch combination input

The counter value can be set to a predefined value at runtime and thus be used for synchronization with other processes. The preset can be activated in the following ways:

Set counter value via a PLC variable (Set counter value)

The counter value can be set to a predefined value during runtime via the process data (0x70n0:03 "Set counter"). In the PLC this bit can be linked to a digital input, for example, or used directly as a variable.

Set counter value via gate/latch combination input (Set counter on latch extern on positive/negative edge)

The terminal offers the option of using the Gate/Latch input as a latch input (external latch). To do this, the gate should be deactivated.

Set counter value via gate/latch combination input 1:

Deactivation of the gate

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

The counter value can be set to a preset value during runtime via the process data by the positive or negative edge at the gate/latch combination input.

Set counter value via gate/latch combination input 2:

Multiple activation of "Set counter on ..."

If several commands are activated to accept the preset counter value, only the command that is set first is accepted by the terminal. All other commands are ignored but remain activated, depending on the system.

  • The counter value is set to the preset counter value at the first activated event and confirmed by the bit "Set counter done" (index 0x60n0:03).
  • The counter value specification cannot be reactivated until all activated commands for the transfer of the counter value have been deactivated. This is confirmed by setting the "Set counter done" bit (index 0x60n0:03) to FALSE.