To run the CODESYS Control for CX9020 SL runtime on the Beckhoff CX9020 you will need a linux image. For this Beckhoff provided a tutorial on how to create one.
We recommend using a linux kernel with RT-Preempt. There are several approaches to do this. A up to date tutorial for this can also be found on github: Machinekit-Beckhoff-CX9020