Skip to main content

subtract

Short summary

overwrites the content of this set with the set difference of this set and the given set Set difference: Elements present in one set but not in the other.

Example: Set A = 4 Set B = 4

Set difference (A - B): 2 Set difference (B - A): 6

Return: SUCCESS: if insert could made, error if object was already in the tree, ABORTED: execute has a falling edge during insert, BUSY: Insert is in Progress ERROR: the passed collection where not valid / contained invalid Elements

Parameters

NameTypeCommentKind
setISetforeign set to construct substractioninput
executeBOOLIf substract should be processedinput

Code

Declaration

METHOD subtract :CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
(*foreign set to construct substraction*)
set :ISet;
(*If substract should be processed*)
execute :BOOL;
END_VAR