There is no any target to set in Codesys, after creating a new project setting our “Elsist SlimLine Mps052” target, inside PlcConfiguration you can find the digital input and output. Your PCB122 module has a dip switch to set its hardware address, the default address is 0.
So for example to address the digital input 5 of PCB122 with hardware address 0, in your programs you must use %IX0.5. To address digital output 3 of you must use %QX0.3.
For analog input you must use the SysGetAnInp function block and for analog output you must use the SystSetAnOut funcion block that you can fing adding our eSLineC2SysLib_A000.lib.
Please refer to the MNL170A010 manual (right now only available in italian language).