Mode of action of the input lrMaxPositionDiff

The input lrMaxPositionDiff is only effective with incremental encoders
( xIsAbsoluteEncoder = FALSE).

After the incremental encoder has been switched on, it has an incremental value close to "0". This value can also fluctuate by a few increments at standstill.If an incremental encoder is externally supplied with voltage, it retains its incremental value after the PLC is switched off or the EtherCAT bus is reinitialised.

To detect whether the incremental encoder has changed or lost its incremental value after switching on the mains, a position window can be set at input lrMaxPositionDiff .

  1. If the incremental value is within the position window after power-on, the position is restored based on the position before power-on.
  • The old position is restored, since the raw value of the encoder position is within the window.
  • The value lrMaxPositionDiff is referred internally to the raw encoder value.
  • There is a time offset between the position values before and after the power is switched on. For reasons of clarity, the time offset is neglected in the diagrams.
  • If the incremental value is outside the window after power-on, the current encoder value remains effective.
    • The new encoder raw position is outside the window. The encoder raw position has not changed. It is set on the current raw value of the encoder position.
    • The value lrMaxPositionDiff is referenced to the raw encoder value within the module.
    • There is a time offset between the position values before and after power-on. For reasons of clarity, the time offset has been neglected in the diagrams.