Individual Components NOTE If an existing project is opened, which has been created with a previous TwinCAT PLC Control version, the option will be deactivated per default. Thus the previously valid hierarchy (local variable before global vari- able before program before local action) can be kept. Treat LREAL as REAL If this option is activated, (availability depends on runtime system; default: not activated), the compile will handle LREAL values as REAL values. This can be used for creating platform independent projects. Number of data segments By entering a Number of data you can determine how many storage segments are to be reserved for your project data in the controller.
This space is required so that an Online Change can still be carried out when new variables are added. If during compilation the message “The global variables require too much storage; increase the number you have entered here”. This setting is only relevant for the Bus Controller BCxxxx. At TwinCAT PC the number of data segments is constant. The size can be changed under TwinCAT options. Exclude objects This button opens the dialog Exclude objects from build: In the tree of project components select those POUs which should not be regarded during compilation and activate option Exclude . Hereupon the excluded POUs will be displayed green-colored in the selection tree.
Press button Exclude unused , if you just want to get displayed those POUs which are currently used in the program. Regard that a single object which is selected in the Object Organizer can also be excluded from build by using the command 'Exclude from build' from the context menu. Macro In order to exert control over the compilation process you can set up two macros: the macro in the Macro before compile field is executed before the compilation process; the macro in the Macro after compile field afterwards. The following macro commands can not, however, be used here:
file new, file open, file close, file save as, file quit, online, project compile, project check, project build, debug, watchlist. Compiler Version Here you define the compiler version to be used. TwinCAT PLC Control versions after V2.9 (version, service pack, patch) will include besides the actual compiler version also the previous compiler versions (back to V2.9). If you always want to get the project compiled with the latest compiler version, activate option Use latest . In this case however it will be checked whether the currently opened programming system is also of that version.
If this is not true, the compiler version matching the actually used programming system version will be used! If the project should be compiled with a specific version, define this via the selection list at Fix . Check automatically In order to get the semantic correctness checked at each compilation of the project the following options can be activated: • Unused variables • Overlapping memory areas • Concurrent access • Multiple write access on output The results will be displayed in the message window. These checks also can be initiated by the respective commands of the 'Check' submenu in the 'Project' menu.
If supported by the target system, negative check results will produce compiler errors. All entries in the Build Options dialog are stored with the project. Passwords: If you choose this category, then you get the following dialog box: TwinCAT 2 PLC Control 54 Version: 1.0