First you need to know which VFD you want to use, then check how you want to control it (direct I/O or through bus like Modbus, Profinet, EtherCAT, ...). Then configure this in your CODESYS application and connect the Controller to your VFD.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
New to Codesys, need help adding a ethernet VFD to Codesys. Controller is a Opto22 Epic and I dont know yet on VFD type
First you need to know which VFD you want to use, then check how you want to control it (direct I/O or through bus like Modbus, Profinet, EtherCAT, ...). Then configure this in your CODESYS application and connect the Controller to your VFD.