Skip to content

Commit e825536

Browse files
authored
Merge pull request #61 from siemens/60-add-a-createfb-image
docs: add create fb image
2 parents fbf5a0a + 73a385d commit e825536

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

MAC_use_cases/Model/MAC_use_casesEM.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public override bool GenerateTiaPortal(TiaTemplateContext tiaTemplateContext, st
183183
GenericBlockCreation.GenerateOB_Main(dbFromMasterCopy.Name, this,
184184
tiaTemplateContext.TiaProject.GetEditingLanguage(), _plcDevice);
185185

186-
GenericBlockCreation.GenerateMainOBWithMultipleCalls("myOB", 10,
186+
GenericBlockCreation.GenerateOBWithMultipleCalls("myOB", 10,
187187
tiaTemplateContext.TiaProject.GetEditingLanguage(), _plcDevice, this);
188188

189189
GenericBlockCreation.CreateFunctionBlock($"{NameOfMyFb}_FBD", dbFromMasterCopy.Name,

MAC_use_cases/Model/UseCases/GenericBlockCreation.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.IO;
33
using System.Linq;
44
using MAC_use_cases.TiaImports;
@@ -25,6 +25,7 @@ public class GenericBlockCreation
2525

2626
/// <summary>
2727
/// Creates a Function Block (FB) in the target PLC's program blocks folder.
28+
/// \image html CreateFB.png
2829
/// </summary>
2930
/// <remarks>
3031
/// This method performs the following steps:
@@ -427,14 +428,14 @@ public static void AddCodeBlockToOB(XmlLogicalBlock codeBlock, ResourceManagemen
427428

428429
/// <summary>
429430
/// This function Generates the OB with the given number of calls
431+
/// \image html DynamicCall.png
430432
/// </summary>
431433
/// <param name="name"></param>
432434
/// <param name="numberOfCalls">The number of calls in the OB</param>
433435
/// <param name="languageSettings">The tiaTemplateContext language key</param>
434436
/// <param name="plcDevice"></param>
435437
/// <param name="module"></param>
436-
/// //TODO params are wrong
437-
public static void GenerateMainOBWithMultipleCalls(string name, int numberOfCalls, string languageSettings,
438+
public static void GenerateOBWithMultipleCalls(string name, int numberOfCalls, string languageSettings,
438439
PlcDevice plcDevice, MAC_use_casesEM module)
439440
{
440441
var myOb = new XmlOB(name);

0 commit comments

Comments
 (0)