Set DeviceID of an IO-Link Sensor at Runtime

atone
2025-03-19
2025-04-28
  • atone - 2025-03-19

    I need to be able to change (set) the DeviceID of an IO-Link sensor (see DeviceID.png) at runtime.

    I tried with both ProfinetCommon.PN_PortConfiguration and ProfinetCommon.IOL_PortConfiguration, but I get an error for both when I try to read the port configuration (see PN_PortConfiguration.png).

    Does one of those FBs is the right one for my purpose? Do I possibly make a mistake when assigning the parameter IOLD_ID/IOLM_ID?

     
  • atone - 2025-04-28

    Answering to myself: is not possible according to the IFM support, this possibility has not been taken into account, although the interfaces and FBs in Codesys would apparently support it. So I ended up having to deactivate the sensor validation and the backup & restore functionality in the master and implement it in the PLC myself.

     

Log in to post a comment.