The cMT3162X must be equipped with a CoDeSys license, after which you may add each Modbus server to your CoDeSys project by following this example: Learn more
To add an iR-ETN to your CoDeSys project, please see this tutorial: Learn more
H.H Barnum should be able to provide some guidance regarding the use and implementation of CoDeSys in this application. In addition, they may suggest an alternative that can also meet the requirements of your application.