Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Use third party actuator with IO-Link Master (IFM)

leafy
2024-04-16
3 days ago
  • leafy - 2024-04-16

    Hey there!
    I am currently doing a little automation project for uni. I am trying to integrate a control-valve-system (Buerkert AirLINE Field) in my IO-Link environment.

    With IFM sensors, I used their pre-built function blocks, but with this third-party device, i need to write my own function block. Thankfully, IFM provides a generic sensor-fb so I can write my own FB with "extends" and "super". So far, so good. I found the IODD and some other documentation and I thought I get how it works, but somehow can't really get it to work at all.
    From my understanding, i need to write data into the PDO-Array. But i get confused with the indices and subindices of IO-Link. I'll append the IODD and some screenshots of my project. There is an AOI for LogicXDesigner, but I can't use that in Codesys.

    I hope someone has integrated a IOL-device in Codesys before and can help me with this.
    Cheers
    leafy

     
  • hoatran - 2024-04-23

    The generic sensor FB is for controlling the sensor via its cyclic input (PDI) and output (PDO).
    In this case, ifm raw cyclic input and output data are WORDs (16 bits total)
    The PDO data from the Buerkert unit are SINT (8 bits)
    In this case, I would use the unpackword fb from the CAA memory library to unpack the valve feed back value into the appropriate location.

     
  • dhumphries - 3 days ago

    Try calling IFM customer support, they have been really helpful for me in the past.

     

Log in to post a comment.