The application code is the machine code that a PLC executes when you start an application.
CODESYS automatically generates the application code from the source code that was written in the development system. This is done automatically before downloading the application to the controller. Before the application code is generated, a test is performed for checking the allocations, the data types, and the availability of libraries. Moreover, the memory addresses are allocated when the application code is generated.
You can click “Build Generate Code” to explicitly execute this command. This is useful for detecting any errors in your source code, even when the PLC is not connected yet. The errors are output in the message view in the "Build" category.




NOTICE

If you have encrypted the application, then consider the following information: If a (new) boot application is generated on request after an online change, then the boot application is formed in the RAM with the current code that is not encrypted.
-
See also: ⮫ Generate Code
-
Explicitly generating the application code
-
Messages when generating the application code
-
Encrypting the application code