The Method RemoveIODD removes an IODD from the server and is used by the IODDManagement Object (see 8.2).
The following rules for deleting IODDs apply:
- If the IODD is used (meaning there is an instance of the ObjectType in the AddressSpace of the Server) and the force flag is set to “False” the operation shall fail. Clients need to remove the usage of the IODD first before it can be deleted.
- If the IODD is used (meaning there is an instance of the ObjectType in the AddressSpace of the Server) and the force flag is set to “True” the operation shall succeed and remove all instances of the corresponding ObjectType in the AddressSpace.
Signature
RemoveIODD (
[in]NodeId IODD,
[in]Boolean Force,
[out]Int32 Status
);
Argument |
Description |
IODD |
NodeId of the ObjectType representing an IODD description. The Node shall be referenced by the IODDs Object with an Organizes Reference. |
Force |
If “True”: Force the immediate deletion of instances of the ObjectType in the AddressSpace. |
Status |
Returns the status of the operation. 0: OK, operation successful -1: NodeId invalid for this operation – no NodeId of an IODD representation -2: IODD in use and cannot be deleted |
Method Result Codes (defined in Call Service)
Result Code |
Description |
Bad_UserAccessDenied |
See OPC 10000-4 for a general description. |