IO link device and IODD files

Hello, I am new to B&R PLCs and Automation Studio. I am trying to modify an existing program. We had an IO-link sensor go obsolete and the replacement has slightly different parameters. Ideally we could read in the device ID and then select the IODD file, but from what I see, that is not possible and we will just have to have a completely new program that is not backwards compatible for the old sensor. I wanted to confirm this though before going down this route. thanks

Tbh I have never tried this on my own but I think it is not possible as the deviceID is checked from the master.
This means simply exchanging the device (physically) will most likely fail

best regards
Oliver

This scenario happened to me as well.
We handled it, by modifying our program and reading the device id from the device to “see” which one was installed, and then modify the data being read, and which register it was being read from.