Individual Components Macros can be saved in external macro libraries. These libraries can be included in other projects. · Creating a macro library containing the macros of the currently opened project: Press button Create . You get the dialog ' Merge project' , where all available macros are listed. Select the desired entries and confirm with OK. The selection dialog will close and dialog ' Save Macrolibrary' will open. Insert here a name and path for the new library and press button Save. The library will be created named as .mac and the dialog will be closed. · Including a macro library .mac in the currently opened project: Press button Include .
The dialog 'Open Macrolibrary' will open, which shows files with extension *.mac. Select the desired library and press button Open. The dialog will be closed and the library will be added to the tree of the Macrolist. The macros of a project also can be exported ('Project' 'Export'). TwinCAT If you choose this category, then you get the following dialog box: Options dialog box of the category TwinCAT This menu can be used to set the size of the addressable memory for all input, output and flag variables. Any non-allocated variables are located outside this memory area. The checkbox on the right can be used to decide whether to allow break points or not.
If variables from the PLC are to be read by name by a visualization system, all required variable names must be known in the runtime system of the PLC. Enable Inline String functions: String functions are not "thread safe": When using tasks, string functions may only be used in a single task. If the same function is used in different tasks, there is a danger of overwriting. By selecting this functionality the behaviour is changed and the compiler dissolves these string functions directly in the PLC code. TX1200 64 Version: 1.3