Set the counter value - referencing (Index 0x7000:03, 0x7000:08)
Since incremental encoders do not deliver an unambiguous position value after switching on, a homing must be carried out.
The EL5151-0021 offers the option to set the reference point both manually via “Set counter” (index 0x7000:03) and via the function “Set counter on latch C” (index 0x7000:08) on reaching the zero pulse.
- “Set counter” (index 0x7000:03)
- The value to be set as reference value (default: 0) is written in “Set counter value” (index 0x7000:11).
- The function is activated by setting the bit in “Set counter” (index 0x7000:03) to TRUE.
- The value from “Set counter value” (index 0x7000:11) is written in “Counter value” (index 0x6000:11).
- The value of the bit in “Set counter done” (index 0x6000:03) is set to TRUE.
- After re-activation of “Set counter” (index 0x7000:03) or “Set counter on latch C” (index 0x7000:08), the next reference value is written into “Counter value” (index 0x6000:11) only if the value of the “Set counter done bit” (index 0x6000:03) is FALSE.
The “Set counter done” bit (index 0x6000:03) is reset if both “Set counter” (index 0x7000:03) and “Set counter on latch C” (index 0x7000:08) have been reset. - “Set counter on latch C” index 0x7000:08
- The value to be set as reference value (default: 0) is written in “Set counter value” (index 0x7000:11).
- The function is activated by setting the bit in “Set counter on latch C” (index 0x7000:08) to TRUE.
- The value from “Set counter value” (index 0x7000:11) is written into “Counter value” (index 0x6000:11) if the zero pulse is present on channel C.
- The value of the bit in “Set counter done” (index 0x6000:03) is set to TRUE.
- After re-activation of “Set counter” (index 0x7000:03) or “Set counter on latch C” (index 0x7000:08), the next reference value is written into “Counter value” (index 0x6000:11) only if the value of the “Set counter done” bit (index 0x6000:03) is FALSE.
The “Set counter done” bit (index 0x6000:03) is reset if both “Set counter” (index 0x7000:03) and “Set counter on latch C” (index 0x7000:08) have been reset. - If “Enable latch C” (index 0x7000:01) und “Set counter on latch C” (index 0x7000:08) are activated simultaneously