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:
- PLC variable: the counter value can be set from the PLC application (Set counter value)
- Gate/Latch input: a positive or negative edge at the Latch extern input (Set counter on latch extern on positive/negative edge)
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.
|
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.
- Presetting the counter value via index 0x70n0:11 "Set counter value"
- Activation of the counter value setting via the PLC variable: Index 0x70n0:03 "Set counter"
- For confirmation the "Set counter done" bit in index 0x60n0:03 is set to TRUE.
- The counter value setting cannot be reactivated until index 0x70n0:03 "Set counter" has been set to FALSE.
Set counter value via gate/latch combination input (Set counter on latch extern on positive/negative edge)
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.
- Counter value specification via object 0x70n0:11 "Set counter value"
- Activation of the counter value setting via
- the positive edge at the external gate/latch combination input: index 0x70n0:0A "Set counter on latch extern on positive edge"
- the negative edge at the external gate/latch combination input: index 0x70n0:0B "Set counter on latch extern on negative edge"
- If the bit is set (TRUE) in index 0x70n0:0A or 0x070n0:0B, the counter value is set to the specified value at the next rising or falling edge at the gate/latch combination input.
- For confirmation the "Set counter done" bit (index 0x60n0:03) is set to TRUE.
- The counter value specification cannot be reactivated until index 0x70n0:0A/0B "Set counter on latch extern on positive/negative edge" is set to FALSE.
Activation of gate and latch functions via the same edge at the gate/latch input in two-channel mode 2xAB When the gate function and a latch function is activated via the same edge at the gate/latch input, the latch function is always executed first, after which the counter value is disabled via the gate function. Example: Index 0x80n0:04 "Gate polarity"(1 = "Enable pos. gate")) and index 0x70n0:0A "Set counter on latch extern on positive edge"=1 With a positive edge at the gate/latch input the current counter value is first set to the value preset at index 0x70n0:11 "Set counter value". The counter value is then blocked. The same applies to index 0x80n0:04 "Gate polarity" (2 = "Enable neg. gate") and simultaneous activation of index 70x0n0:0B "Set counter on latch extern on negative edge". |