Skip to Content

Controller

Quick Facts

PropertyValue
ClassCENPyOlpController
Modulecenpylib.CENPyOlpController
Packagecenpylib
ReleaseR2025.2.4
Methods39

Quick Start

# Boilerplate Example controller = ... # obtained from the runtime context result = controller.GetName()

Lifecycle

MethodReturnsSummary
CreateProgramCENPyOlpProgramCreates a new controller program and sets it active.

Query Methods

MethodReturnsSummary
GetNamestrGet the controller name.
GetControllerTypeintGet the controller type.
GetManufacturerstrGet the controller manufacturer.
GetSeriesstrGet the controller series.
GetModelstrGet the controller model.
GetActorslist[CENPyOlpActor]Returns the attached actors of specified type.
GetSensorslist[CENPyOlpSensor]Gets all sensors which are on a controlled item.
GetSignalNumberintSearches for the first signal with the given name, found on a controller signal connection for this controller,
GetUuIdstrGets the controller’s unique ID.
GetActiveToolFrameIndexintGets the index of the active tool frame.
GetActiveBaseFrameIndexintGets the index of the active base frame.
GetActiveToolFrameMatrixCENPyOlpMatrixGets the matrix of the active tool frame.
GetActiveBaseFrameMatrixCENPyOlpMatrixGets the matrix of the active base frame.
GetActiveToolFrameNamestrGet the tool frame name of the active tool.
GetActiveToolResourceNamestrGet the resource name of the active tool.
GetResourceslist[CENPyOlpResource]Gets resources that are controlled by this controller.
GetMainResourcesMaxTCPFeedratefloatReturns the max TCP feedrate of main resource of the controller.
IsTeamControllerboolReturns whether the controller is a team controller.
GetTeamControllerCENPyOlpControllerReturns the team controller current controller is connected to.
GetControllerslist[CENPyOlpController]Returns all controllers connected to this controller.
GetProgramNameslistReturns a list of program names on this controller.
GetLogicPortByNameCENPyOlpPortReturns the first logic port found on the current controller with the given name.
GetOutputDirectorystrReturns the download output directory of the program.
GetEtwoLanguagestrReturns the language setting of E2 as a String (de-DE, en-US, fr-FR, ja-JP, zh-CN).
GetAttributeByNameCENPyOlpAttributeGets a user-defined attribute by the given name.
GetAttributeIntegerByNameCENPyOlpAttributeIntGets the Integer attribute by the given name.
GetAttributeDoubleByNameCENPyOlpAttributeDoubleGets the Double attribute by the given name.
GetAttributeStringByNameCENPyOlpAttributeStringGets the String attribute by the given name.
GetAttributeBoolByNameCENPyOlpAttributeBoolGets the Bool attribute by the given name.
GetLastGeneratedFilePathsFromDownloadlistGets the absolute file paths generated during the last download.
GetLastSelectedFilePathsFromUploadlistGets the absolute file paths selected during the last upload.
GetWeldingDataSetsFromDataBaselistGet defined welding data sets from weld database of the active controller
GetActiveProgramCENPyOlpProgramGet active controller program.
GetProgramslist[CENPyOlpProgram]Returns a list of programs on this controller.

Mutation Methods

MethodReturnsSummary
SetActiveProgramintGet active controller program.

Execution & Actions

MethodReturnsSummary
DownloadProgramByNameintDownloads the program specified by its name from the current controller.
CalculateTotalTimeForSequenceBalanceintMethod to calculate the total time for all components from active program of the current controller
CalculateTimeForOperationInSequenceBalanceintMethod to start calculate the time for given operation

Changes in R2025.2.4

Compared to R2025.1:

  • Method count increased from 34 to 39

  • [NEW] GetActiveProgram: New method added

  • [NEW] GetPrograms: New method added

  • [NEW] SetActiveProgram: New method added

  • [NEW] CalculateTotalTimeForSequenceBalance: New method added

  • [NEW] CalculateTimeForOperationInSequenceBalance: New method added

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?