EcoStruxure Machine Expert provides different build procedures in the Build menu. These procedures serve to handle syntactical checks, either just on the changed objects or on all objects of the active application.
You can perform an offline code generation in order to check for compilation errors before downloading the code to the device. For a successful login, the code generation must have been completed without detecting any errors.
Code Generation, Compile Information
Machine code is generated in the following cases:
oWhen the Application project is downloaded to the target device (controller, simulation target).
oWhen the Build > Generate code command is executed.
At each download, the compile information, containing the code and a reference ID of the loaded application, is stored in the project directory in a file <projectname>.<devicename>.<application ID>.compileinfo. The compileinfo file is deleted when the Clean or Clean all command is executed.
No code generation is performed when the project is compiled by the build commands (by default in the Build menu). The build process checks the project in order to detect programming errors. Any detected programming errors are displayed in the Messages view (message category Build).
During code generation, additional errors can be detected and displayed. These errors can only be detected by the code generator or they are caused by memory allocation.
At each code generation, additional information on the code and data size (in Bytes), on the content of the allocated memory areas, and on the highest used address (Byte) is displayed in the Messages > Build view.
It depends on the controller, in which memory areas the various types of data and the code are stored. For the addresses %I, %M, %Q memory is allocated, even if no variable is assigned to an address. After a Clean of the application, the memory is completely reallocated.