Skip to content

Commit

Permalink
update: Informationmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasHeine committed Dec 4, 2024
1 parent 9662268 commit 8edef6c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/machines/MyControledMachine/jobcontrol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ export const createJobContolLogic = async (
organizedBy: machinesFolder,
});

const machineryBuildingBlocks = namespace.addObject({
browseName: {
name: "MachineryBuildingBlocks",
namespaceIndex: machineryIdx,
},
typeDefinition: "FolderType",
componentOf: controledMachine,
});

const machineryIdentificationType = addressSpace?.findNode(
`ns=${machineryIdx};i=1012`,
) as UAObjectType;
Expand Down Expand Up @@ -131,6 +140,12 @@ export const createJobContolLogic = async (
],
} as InstantiateObjectOptions);

jobManager.addReference({
referenceType: "HasAddIn",
nodeId: machineryBuildingBlocks,
isForward: false,
});

const ISA95Idx = addressSpace.getNamespaceIndex(
"http://opcfoundation.org/UA/ISA95-JOBCONTROL_V2/",
);
Expand Down

0 comments on commit 8edef6c

Please sign in to comment.