Skip to content

Commit cac5b37

Browse files
authored
Merge pull request #59 from siemens/58-add-tia-screenshots-to-the-docu-for-the-sofwareunits-typed-libraries-and-hw-from-excel-examples
docs: Add TIA-Screenshots to the docu for the 'SofwareUnits', 'Typed …
2 parents c4e88fb + bdb04db commit cac5b37

10 files changed

+16
-4
lines changed
Binary file not shown.
Loading
Loading
24.7 KB
Loading
Loading
22.4 KB
Loading

MAC_use_cases/MAC_use_cases.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>MAC_use_cases</id>
5-
<version>1.0.9238-pre20250417091804</version>
5+
<version>1.0.9243-pre20250422072413</version>
66
<title>MAC_use_cases</title>
77
<authors>SIEMENS AG</authors>
88
<projectUrl>http://equipmentmodule.info/</projectUrl>

MAC_use_cases/Model/UseCases/HardwareGenerationExcelBased.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class HardwareGenerationExcelBased
1818
{
1919
/// <summary>
2020
/// Reads device information from a specified Excel file.
21+
/// \image html ExampleExcelFile.png
2122
/// </summary>
2223
/// <param name="filePath">The full path to the Excel file containing device information.</param>
2324
/// <returns>A list of DeviceInfo objects containing the parsed device information.</returns>
@@ -141,6 +142,7 @@ private static string GetCellValueAsString(Excel.Range cell)
141142

142143
/// <summary>
143144
/// Creates new devices in the TIA Portal project based on information from an Excel sheet.
145+
/// \image html CreateNewDevicesFromExcelSheet.png
144146
/// </summary>
145147
/// <param name="module">The MAC use cases module instance.</param>
146148
/// <param name="tiaProject">The target TIA Portal project.</param>

MAC_use_cases/Model/UseCases/IntegrateLibraries.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Siemens.Automation.ModularApplicationCreator.Tia.Helper.Create_XML_Block.XmlBlocks.BlockFrames;
1+
using Siemens.Automation.ModularApplicationCreator.Tia.Helper.Create_XML_Block.XmlBlocks.BlockFrames;
22
using Siemens.Automation.ModularApplicationCreator.Tia.Openness;
33
using Siemens.Engineering.Hmi;
44
using Siemens.Engineering.Library.MasterCopies;
@@ -24,6 +24,14 @@ public static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBMaster
2424
return module.ResourceManagement.CreateInstanceDb(masterCopy, instanceName, target.Blocks);
2525
}
2626

27+
/// <summary>
28+
/// This function creates an instance DB in the target folder (folder under program blocks)
29+
/// \image html CreateInstanceDBFromTypedBlock.png
30+
/// </summary>
31+
/// <param name="module">The Module</param>
32+
/// <param name="libraryType">A master copy of the typed block you want to create an instance DB of</param>
33+
/// <param name="instanceName">Name of the instance</param>
34+
/// <param name="target">The folder under program blocks in which the DB is created</param>
2735
public static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBLibraryType libraryType,
2836
string instanceName, BlockGroup target)
2937
{
@@ -32,7 +40,7 @@ public static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBLibrar
3240

3341

3442
/// <summary>
35-
/// This function can also creates an instance DB in the target folder (folder under program blocks)
43+
/// This function can also create an instance DB in the target folder (folder under program blocks)
3644
/// \image html CreateInstanceDB_via_XmlInstDB.png
3745
/// </summary>
3846
/// <param name="module">The Module</param>

MAC_use_cases/Model/UseCases/SoftwareUnits.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Siemens.Automation.ModularApplicationCreator.Tia.Openness;
1+
using Siemens.Automation.ModularApplicationCreator.Tia.Openness;
22
using Siemens.Automation.ModularApplicationCreator.Tia.Openness.SoftwareUnit;
33

44
namespace MAC_use_cases.Model.UseCases;
@@ -7,6 +7,7 @@ public class SoftwareUnits
77
{
88
/// <summary>
99
/// Retrieves an existing software unit or creates a new one if it doesn't exist in the specified PLC device.
10+
/// \image html GetOrCreateSoftwareUnit.png
1011
/// </summary>
1112
/// <param name="plcDevice">The PLC device where the software unit should be located or created</param>
1213
/// <param name="myUnitName">The name of the software unit to get or create</param>
@@ -23,6 +24,7 @@ public static ISoftwareUnit GetOrCreateSoftwareUnit(PlcDevice
2324

2425
/// <summary>
2526
/// Retrieves the safety software unit from the specified PLC device.
27+
/// \image html GetSafetySoftwareUnit.png
2628
/// </summary>
2729
/// <param name="plcDevice">The PLC device containing the safety software unit</param>
2830
/// <returns>An interface to the safety software unit</returns>

0 commit comments

Comments
 (0)