Vehicle simulation (rotary encoder) with "FB_EncoderInterfaceSimulation"

The FB_EncoderInterfaceSimulation function block simulates a rotary encoder. Use the function block to simulate the behavior of a vehicle with a rotary encoder mounted on a turntable drive module for position detection.

A virtual startup can be carried out easily and efficiently in combination with the visualization and its function blocks. The function block must be instantiated and initialized once for this purpose.

The M_CompExtRot method must be called cyclically at runtime.