insertCollection
Short summary
This method inserts all elements of a collection into the tree.
If any value of the collection could not be inserted because of duplication, operation isn't aborted, insertion is tried for every element of the collection.
Return: SUCCESS: if insert could be made
ABORTED: execute has a falling edge during insert,
BUSY: Insert is in Progress
ERROR: the passed collection where not valid / contained invalid Elements
IDLE: method was never started
- Return type: CNM_ReturnTypes.SingleExecutionState
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| collection | CNM_CollectionInterfaces.ICollection | The collection that should be inserted | input |
| execute | BOOL | If insert should be processed | input |
Code
Declaration
METHOD INTERNAL insertCollection :CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
(*The collection that should be inserted*)
collection :CNM_CollectionInterfaces.ICollection;
(*If insert should be processed*)
execute :BOOL;
END_VAR