TwinCAT 2 error

Check
"Project must contain a POU named '<name>' (main routine) or a taskconfiguration"


Create an init POU of type Program (e.g. PLC_PRG) or set up a task configuration.
 
Top