First you will need an analog input, for the LVDT.
If the machine tool builder did not supply one in the build you would have to add a IO module over the IO LINK bus. To do this you need to modify the PMC configuration and write some logic for your new inputs. Then you can work on writing some macros or doing this all in the logic.