The scope of this operator is to allow access to modify active programs from controllers and move the operations, operation groups between controllers.
[Example]
def ExecuteBalancingSequencingScript(Operator: CENPyOlpBalancingSequencingOperator):
pass
[Example]
logger = Operator.GetLoggerOperator()
[Example]
allProjectController = Operator.GetAllControllers()
|
|
|
|
|
|
Returns the active controller
|
[Example]
activeController = Operator.GetActiveController()
|
|
ℜ•
|
SetActiveController(const CENPyOlpController* controller)
|
|
|
The controller that should be set as active
|
[Example]
Operator.SetActiveController(otherController)
|
|
|
|
Operations to sequence
|
|
oreferenceOperation
|
Referenced operation, after or before the operationsToMove will be sequenced
|
|
oinsertLocation
|
The insert-type: SequenceInsertionType::InsertAfterRef or SequenceInsertionType::InsertBeforeRef
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
This method reorders operations by sequencing the given operations after or before a referenced operation.
For example :
operations of the operation-group : [O1, O2, O3, O4, O5]
Switch O4 and O1 after O2.
Input :
operationsToSequence = [O4, O1],
refOperation = O2,
insertType = SequenceInsertionType::InsertAfterRef
Result -> (operations after sequencing) : [O2, O4, O1, O3, O5]
|
|
ℜ•
|
CanSequenceOperations(const std::vector<CENPyOlpOperation*>& operationsToCheck, const CENPyOlpOperation* referenceOperation, SequenceInsertionType insertLocation): int
|
|
|
The operations to be checked
|
|
oreferenceOperation
|
Referenced operation, after or before the operationsToMove will be sequenced
|
|
oinsertLocation
|
The insert-type: SequenceInsertionType::InsertAfterRef or SequenceInsertionType::InsertBeforeRef
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
Checks if operations could be sequenced with SequenceOperations() method.
|
|
|
o
|
operationGroupsToSequence
|
|
The operation groups to sequence
|
|
oreferenceOperationGroup
|
Referenced operation group, after or before the operationGroupsToSequence will be sequenced
|
|
oinsertLocation
|
The insert-type: SequenceInsertionType::InsertAfterRef or SequenceInsertionType::InsertBeforeRef
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
This method reorders operation groups by sequencing the given groups to a new position
For example :
operation groups of the program: [C0, C1, C2, C3, C4, C5]
Switch C4 and C1 after C2.
Input :
operationGroupsToSequence = [CO4, CO1],
refOperationGroup = CO2,
insertType = SequenceInsertionType::InsertAfterRef
Resulting operation groups after sequencing: [C0 C2, C4, C1, C3, C5]
|
|
|
|
The operation groups to check
|
|
oreferenceOperationGroup
|
Referenced operation group, after or before the operationGroupsToSequence will be sequenced
|
|
oinsertLocation
|
The insert-type: SequenceInsertionType::InsertAfterRef or SequenceInsertionType::InsertBeforeRef
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
Checks if operation groups could be sequenced using SequenceOperationGroups() method
|
|
|
[Example]
computeHandler = Operator.GetComputeHandler(activeProgram)
|
|
|
[Example]
interpolationHandler = Operator.GetInterpolationHandler(activeProgram)
|
|
|
[Example]
teachHandler = Operator.GetTeachHandler(activeProgram)
|
|
|
[Example]
eventHandler = Operator.GetEventHandler(activeProgram)
|
|
ℜ•
|
RunAutomatedPathOptimizationOnOperations(const std::vector<CENPyOlpOperation*>& listOfOperations): int
|
|
|
The operations to optimize
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
Performs automated path optimization on the given operations
|
|
ℜ•
|
RemoveAutomatedPathOptimizationOnOperations(const std::vector<CENPyOlpOperation*>& listOfOperations): int
|
|
|
The operations to remove path optimization from
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
Removes automated path optimization from the given operations
|
|
ℜ•
|
RunAutomatedLinkPathOptimizationOnOperations(const std::vector<CENPyOlpOperation*>& listOfOperations): int
|
|
|
The list of operations whose link paths should be optimized
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
Performs automated link-path optimization on the given operations.
A link path is the path up to approach of an given operation, starting from the retract of the previous operation.
|
|
ℜ•
|
RemoveAutomatedLinkOptimizationOnOperations(const std::vector<CENPyOlpOperation*>& listOfOperations): int
|
|
|
The operations to remove link-path optimization from.
|
|
oreturns
|
ERR_NO_ERROR (0) on success, an error code otherwise
|
Removes automated link-path optimization from the given operations.
A link path is the path up to approach of an given operation, starting from the retract of the previous operation.
|
|