Balancing Sequencing Operator
Since R2025.2.4
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpBalancingSequencingOperator |
| Module | cenpylib.CENPyOlpBalancingSequencingOperator |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 15 |
Quick Start
# Boilerplate Example
balancingSequencingOperator = ... # obtained from the runtime context
result = balancingSequencingOperator.GetLoggerOperator()Method Index
| Method | Returns | Summary |
|---|---|---|
GetLoggerOperator | CENPyOlpLogOperator | Retrieve the logger operator associated with this sequencing operator. |
GetAllControllers | list[CENPyOlpController] | Get a list of all available controllers. |
GetActiveController | CENPyOlpController | Get the currently active controller. |
SetActiveController | int | Set the active controller. |
GetComputeHandler | CENPyOlpComputeHandler | Get a compute handler for active program on active controller. |
GetTeachHandler | CENPyOlpTeachHandler | Get a teach handler for active program on active controller. |
GetEventHandler | CENPyOlpEventHandler | Get an event handler for active program on active controller. |
SequenceOperations | int | Sequence a set of operations relative to a reference operation. |
CanSequenceOperations | int | Check if a set of operations can be sequenced relative to a reference. |
SequenceOperationGroups | int | Sequence a set of operation groups relative to a reference group. |
CanSequenceOperationGroups | int | Check if a set of operation groups can be sequenced relative to a reference group. |
RunAutomatedPathOptimizationOnOperations | int | Performs automated path optimization on the given operations. |
RunAutomatedLinkPathOptimizationOnOperations | int | Performs automated link-path optimization on the given operations. |
RemoveAutomatedPathOptimizationOnOperations | int | Removes automated path optimization from the given operations. |
RemoveAutomatedLinkOptimizationOnOperations | int | Removes automated link-path optimization from the given operations. |
Query Methods
GetLoggerOperator
Since R2025.2.4
def GetLoggerOperator() -> CENPyOlpLogOperatorRetrieve the logger operator associated with this sequencing operator.
Returns: CENPyOlpLogOperator — CENPyOlpLogOperator: Instance for logging.
GetAllControllers
Since R2025.2.4
def GetAllControllers() -> list[CENPyOlpController]Get a list of all available controllers.
Returns: list[CENPyOlpController] — list[CENPyOlpController]: All available controllers.
GetActiveController
Since R2025.2.4
def GetActiveController() -> CENPyOlpControllerGet the currently active controller.
Returns: CENPyOlpController — CENPyOlpController: The controller selected as active.
GetComputeHandler
Since R2025.2.4
def GetComputeHandler(activeProgram: CENPyOlpProgram) -> CENPyOlpComputeHandlerGet a compute handler for active program on active controller.
Parameters:
| Name | Type | Description |
|---|---|---|
activeProgram | CENPyOlpProgram | — |
Returns: CENPyOlpComputeHandler — CENPyOlpComputeHandler: Compute handler.
GetTeachHandler
Since R2025.2.4
def GetTeachHandler(activeProgram: CENPyOlpProgram) -> CENPyOlpTeachHandlerGet a teach handler for active program on active controller.
Parameters:
| Name | Type | Description |
|---|---|---|
activeProgram | CENPyOlpProgram | — |
Returns: CENPyOlpTeachHandler — CENPyOlpTeachHandler: Teach handler.
GetEventHandler
Since R2025.2.4
def GetEventHandler(activeProgram: CENPyOlpProgram) -> CENPyOlpEventHandlerGet an event handler for active program on active controller.
Parameters:
| Name | Type | Description |
|---|---|---|
activeProgram | CENPyOlpProgram | — |
Returns: CENPyOlpEventHandler — CENPyOlpEventHandler: Event handler.
CanSequenceOperations
Since R2025.2.4
def CanSequenceOperations(operationsToCheck: list[CENPyOlpOperation], referenceOperation: CENPyOlpOperation, insertLocation: SequenceInsertionType) -> intCheck if a set of operations can be sequenced relative to a reference.
Parameters:
| Name | Type | Description |
|---|---|---|
operationsToCheck | list[CENPyOlpOperation] | — |
referenceOperation | CENPyOlpOperation | — |
insertLocation | SequenceInsertionType | — |
Returns: int — int: Status code (0 = allowed, non-zero = not allowed).
CanSequenceOperationGroups
Since R2025.2.4
def CanSequenceOperationGroups(operationGroupsToCheck: list[CENPyOlpOperationGroup], referenceOperationGroup: CENPyOlpOperationGroup, insertLocation: SequenceInsertionType) -> intCheck if a set of operation groups can be sequenced relative to a reference group.
Parameters:
| Name | Type | Description |
|---|---|---|
operationGroupsToCheck | list[CENPyOlpOperationGroup] | — |
referenceOperationGroup | CENPyOlpOperationGroup | — |
insertLocation | SequenceInsertionType | — |
Returns: int — int: Status code (0 = allowed, non-zero = not allowed).
Mutation Methods
SetActiveController
Since R2025.2.4
def SetActiveController(controller: CENPyOlpController) -> intSet the active controller.
Parameters:
| Name | Type | Description |
|---|---|---|
controller | CENPyOlpController | — |
Returns: int — int: Status code (0 = success, non-zero = error).
RemoveAutomatedPathOptimizationOnOperations
Since R2025.2.4
def RemoveAutomatedPathOptimizationOnOperations(listOfOperations: list[CENPyOlpOperation]) -> intRemoves automated path optimization from the given operations.
Parameters:
| Name | Type | Description |
|---|---|---|
listOfOperations | list[CENPyOlpOperation] | — |
Returns: int — int: Status code (0 = success, non-zero = error).
RemoveAutomatedLinkOptimizationOnOperations
Since R2025.2.4
def RemoveAutomatedLinkOptimizationOnOperations(listOfOperations: list[CENPyOlpOperation]) -> intRemoves automated link-path optimization from the given operations.
A link path is the path up to approach of a given operation, starting from the retract of the previous operation.
Parameters:
| Name | Type | Description |
|---|---|---|
listOfOperations | list[CENPyOlpOperation] | — |
Returns: int — int: Status code (0 = success, non-zero = error).
Execution & Actions
RunAutomatedPathOptimizationOnOperations
Since R2025.2.4
def RunAutomatedPathOptimizationOnOperations(listOfOperations: list[CENPyOlpOperation]) -> intPerforms automated path optimization on the given operations.
Parameters:
| Name | Type | Description |
|---|---|---|
listOfOperations | list[CENPyOlpOperation] | — |
Returns: int — int: Status code (0 = success, non-zero = error).
RunAutomatedLinkPathOptimizationOnOperations
Since R2025.2.4
def RunAutomatedLinkPathOptimizationOnOperations(listOfOperations: list[CENPyOlpOperation]) -> intPerforms automated link-path optimization on the given operations.
A link path is the path up to approach of a given operation, starting from the retract of the previous operation.
Parameters:
| Name | Type | Description |
|---|---|---|
listOfOperations | list[CENPyOlpOperation] | — |
Returns: int — int: Status code (0 = success, non-zero = error).
Utilities
SequenceOperations
Since R2025.2.4
def SequenceOperations(operationsToMove: list[CENPyOlpOperation], referenceOperation: CENPyOlpOperation, insertLocation: SequenceInsertionType) -> intSequence a set of operations relative to a reference operation.
Parameters:
| Name | Type | Description |
|---|---|---|
operationsToMove | list[CENPyOlpOperation] | — |
referenceOperation | CENPyOlpOperation | — |
insertLocation | SequenceInsertionType | — |
Returns: int — int: Status code (0 = success, non-zero = error).
SequenceOperationGroups
Since R2025.2.4
def SequenceOperationGroups(operationGroupsToSequence: list[CENPyOlpOperationGroup], referenceOperationGroup: CENPyOlpOperationGroup, insertLocation: SequenceInsertionType) -> intSequence a set of operation groups relative to a reference group.
Parameters:
| Name | Type | Description |
|---|---|---|
operationGroupsToSequence | list[CENPyOlpOperationGroup] | — |
referenceOperationGroup | CENPyOlpOperationGroup | — |
insertLocation | SequenceInsertionType | — |
Returns: int — int: Status code (0 = success, non-zero = error).
Related Types
- Log Operator
- Controller
- Compute Handler
- Program
- Teach Handler
- Event Handler
- Operation
- Sequence Insertion Type
- Operation Group
Changes in R2025.2.4
Compared to R2025.1:
-
New class added
-
[NEW]
GetLoggerOperator: New method added -
[NEW]
GetAllControllers: New method added -
[NEW]
GetActiveController: New method added -
[NEW]
SetActiveController: New method added -
[NEW]
GetComputeHandler: New method added -
[NEW]
GetTeachHandler: New method added -
[NEW]
GetEventHandler: New method added -
[NEW]
SequenceOperations: New method added -
[NEW]
CanSequenceOperations: New method added -
[NEW]
SequenceOperationGroups: New method added -
[NEW]
CanSequenceOperationGroups: New method added -
[NEW]
RunAutomatedPathOptimizationOnOperations: New method added -
[NEW]
RunAutomatedLinkPathOptimizationOnOperations: New method added -
[NEW]
RemoveAutomatedPathOptimizationOnOperations: New method added -
[NEW]
RemoveAutomatedLinkOptimizationOnOperations: New method added
Version Notes
This class is documented as of release R2025.2.4. This class was added in R2025.2.4.