Free Encoder

 

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

Adding a free encoder

Requirement: A SoftMotion controller is inserted into the project.

  1. Select the SoftMotionGeneral axis pool in the device tree.

  2. Click Add device from the context menu.

  3. Select the device SoftMotionDrives ‣ Free encoder ‣ SMC_­FreeEncoder in the dialog Add device.

  4. Click Add device.

    ⇒ 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 variable <FREE_ENCODER_AXIS>.diEncoderPosition. This is possible either as IEC code or by mapping the memory of the input data.

    ⇒ Now you can use the encoder like a drive.

See also