|
Modular Application Creator Use Case Based Documentation
|
With the help of the .tiares file, libraries can be easily integrated in the Module Builder. To do this, the file must first be opened in Visual Studio.

In the newly opened window, the selection menu can now be opened using the button in the top left-hand corner. The desired library must then be selected there.

By clicking on the "Mastercopies" area and then pressing the "Add" button, everything is included. This window can then be closed again, as everything is saved automatically.

To integrate parts of the library use the code explainned in Use Integrated Libraries
Currently the Modular Application Creator supports following languages:
The language can be changed during runtime in the settings menu. Depending on the selected language one of the defined XAML ResourceDictionary will be used.

Create KeyValue pairs in the ResourceDictionaries with matching Key and use them with DynamicResource Binding in your XAML files:
There have been major changes in the new TIA Portal V21 Openness API. This API is not backward compatible with any previous APIs, therefore every Openness user must upgrade their project to the latest API. To do this task with Siemens Modular Application Creator Equipment Modules, this manual will make it easier.
There are two easy ways to do it, if you already have the Siemens Collaboration Framework installed in your project, or if you don’t have it installed yet but agree to install it. This framework comes with MAC-MB by default and can only be missing in case of (un)intended removal, or in a case of a very old EQM project.
The third, bit harder way to do it is to direct reference the new dll-s into the csproj.
If you install the module to MAC V21 and generate, this is the result:

The v20 Siemens.Engineering.dll is not compatible with v21 dll-s, and also it does not exist in v21 installs, so MAC throws an assemby load exception. (This is expected behavior in this case).
If your project has collaboration framework then the changeover can be very easy.
Select the package source: „MacMbPackages”

Update all of these packages to the latest.
If you have “EquipmentModule.Build.Tasks” package, the update will not be an option because of the rename of this package. Please uninstall it and install “Siemens.EquipmentModule.Build.Tasks” latest version from this repo.

Try to generate your module with MAC V21. It should work now.

(Optional) There might be an old API dll stored in your EQM project. You can either change this dll to the V21 engineering dll-s, or you can delete it if your project does not use it. It does not matter at runtime.

If you do not have a nuget package reference for the Collaboration Framework, your module might use a direct dll reference to Siemens.Engineering.dll. The easiest way to fix this is to remove the dll reference and install the Collaboration Framework.
Select the package source: „MacMbPackages”

On the “Browse” tab, find and install “Siemens.Collaboration.Net.TiaPortal.Openness.Startdrive.Extensions”. The other packages will be installed as dependencies automatically.

Select the non “AddIn” – dll-s.

Add these dll-s into your project so the references will not be computer specific.

Make a dll reference for all 9 of them.

The "Classes" section explains the classes used in the project. In addition to the explanation of the class and a first overview of all functions used in the class, the page contains a detailed explanation of all functions of the class.

In all explanatory sections there is a short literal explanation of the function and its parameters, as well as a picture of the resulting result in the Tia Portal after generation. Also included is the used code of the function and a link to the code of the whole class.

The above-mentioned link to the class code then points to the files contained in the "Files" section. There, all classes in the C# code are included again to show how the classes look as simple as possible. It is also possible to copy the code to reuse it in your own modules.