Skip to main content
Search

Free Encoder

Use the Free encoder for integrating an encoder which is not coupled permanently to I/Os or hardware.

Adding a free encoder

  1. In the device tree, select SoftMotion General Axis Pool.

  2. In the context menu, click Add Device.

  3. In the Add Device dialog, select the SoftMotion drives → Free Encoders → SMC_FreeeEncoder device.

  4. Click the Add Device button.

    The device is added to the device tree.

    _sm_img_free_encoder.png
  5. Open the encoder in the Editor.

  6. Adapt the settings to the hardware and set the bit width and scaling.

  7. Assign the input value of the encoder to the <FREE_ENCODER_AXIS>.diEncoderPosition variable. This is possible either as IEC code or by mapping the memory of the input data.

    Tip

    During the initialization of the fieldbus, this input may yield invalid values. You can use the bDelayActivation input to disable the evaluation of the input until a valid value is available.

    Now you can use the encoder like a drive.