merge
Short summary
overwrites the content of this set with the union of this set and the given set Set union: Combination of all elements from two sets.
Example: Set A = 4 Set B = 4
Union of A and B: 6
Return: SUCCESS: if merge completed,
ABORTED: execute has a falling edge during merge,
BUSY: merge is in Progress
ERROR: the passed collection where not valid / contained invalid Elements
IDLE: Currently no merge in progress
- Return type: CNM_ReturnTypes.SingleExecutionState
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| set | CNM_CollectionInterfaces.ISet | foreign set to merge with | input |
| execute | BOOL | If merge should be processed | input |
Code
Declaration
METHOD INTERNAL merge :CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
(*foreign set to merge with*)
set :CNM_CollectionInterfaces.ISet;
(*If merge should be processed*)
execute :BOOL;
END_VAR
VAR
object :CNM_AbstractObject.IObject;
iterateState :CNM_ReturnTypes.SingleExecutionState;
END_VAR
Implementation
merge := THIS^.insertCollection(
collection := set,
execute := execute);