Skip to content

Commit

Permalink
adapt resource manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ThKindler committed Jan 19, 2024
1 parent 83d8585 commit 9313ed5
Show file tree
Hide file tree
Showing 2 changed files with 440 additions and 576 deletions.
25 changes: 25 additions & 0 deletions src/Blocks/Resource Management/IResourceManager.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
NAMESPACE Simatic.Ax.LAcycCom

INTERFACE IResourcemanager

METHOD Allocate : Int //AllocatedIndex
VAR_INPUT
hardwareId : HW_IO; // Hardware identifier of the hardware module
END_VAR
END_METHOD

METHOD GetRessource : LAcycCom_ResourceManagerRetval
VAR_INPUT
AllocatedIndex : INT;
END_VAR
END_METHOD

METHOD Release : LAcycCom_ResourceManagerRetval
VAR_INPUT
AllocatedIndex : INT;
END_VAR
END_METHOD

END_INTERFACE

END_NAMESPACE
Loading

0 comments on commit 9313ed5

Please sign in to comment.