Python scripting OLP - Operators

AuxiliaryCommands

Previous  Chapter  Next

 

E2 Kernel class

Operator class

OlpProgramModifyOperator

CENPyOlpProgramModifyOperator

OlpProgramProcessGeometryOperator

CENPyOlpProgramProcessGeometryOperator

OlpAttributeTableOperator

CENPyOlpAttributeTableOperator

 

 

AutoExecute auxiliary command entries

 

The AutoExecute scripts will be executed as an integrated step in the workflow of an (interactive) function or activity. With this integration only one script can be executed a single time.

 

The script has to be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\AutoExecute. Its name is also predefined, according to the table below. Scripts with different names are not integrated and therefore will not be executed.

 

AuxCommandsAutoExecuteFolderLocation

 

Here is a list of available AutoExecute auxiliary command entries:

 

Predefined script names

Operator called

When called

PostProgramProcessGeometries

CENPyOlpProgramModifyOperator

After the process geometry programming has been completed.

PostProgramReCompute

CENPyOlpProgramModifyOperator

After OLP re-compute has been completed.

PostProgramDownload

CENPyOlpProgramModifyOperator

In the OLP workbench; after the program has finished downloading.

PostProgramDownloadOnsite

CENPyOlpProgramModifyOperator

In the Onsite workbench; after the program has finished downloading.

PostProgramUpload

CENPyOlpProgramModifyOperator

In the OLP workbench; after the program has finished uploading.

PostProgramUploadOnsite

CENPyOlpProgramModifyOperator

In the Onsite workbench; after the program has finished uploading.

PrevProgramDownload

CENPyOlpProgramModifyOperator

In the OLP workbench; before starting to download the program.

PrevProgramDownloadOnsite

CENPyOlpProgramModifyOperator

In the Onsite workbench; before starting to download the program.

PrevProgramUpload

CENPyOlpProgramModifyOperator

In the OLP workbench; before starting to upload the program.

PrevProgramUploadOnsite

CENPyOlpProgramModifyOperator

In the Onsite workbench; before starting to upload the program.

 

 

CycleTimeDelayCalculation auxiliary command entries

 

The CycleTimeDelayCalculation scripts are of the same type as the AutoExecute scripts and will be executed as an integrated step in the workflow of an (interactive) function or activity.

 

The script has to be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\CycleTimeDelayCalculation. Its name is also predefined, according to the table below. Scripts with different names are not integrated and therefore will not be executed.

 

AuxCommandsCycleTimeDelayCalculationFolderLocation

 

Here is a list of available CycleTimeDelayCalculation auxiliary command entries:

 

Predefined script names

Operator called

When called

CycleTimeDelayCalculation

CENPyOlpProgramModifyOperator

In the OLP workbench; before starting each calculation of the cycle time in the Balancing & sequencing dashboard.

 

The script includes some attributes that can help to improve the time cycle delay accuracy.

 

Attribute

Description

Sequence_Cycle_Time_Delay_AccuracyOff

 

Adds a delay whenever FlyBy is off, which means the robot/machine has to slow down or stop its motion. The added delay value is 1.0s (line 77).

RegshapeCycleTimeDelay

This is a delay for RegShape events. The attribute already exists in all RegShape events.

CycleTimeDelay

This is a delay for all kinds of events except for RegShapes. It's already added to LaserCutting LaserOn and -Off events and ArcWelding ArcOn and -Off events.

 

 

OlpProgram auxiliary command entries

 

The ModifyActiveProgram scripts are of the type that can be called interactively.

 

They have to be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\OlpProgram.

 

AuxCommandsOlpProgramFolderLocation

 

All these scripts will become available for execution in the Programs dashboard:

 

AuxCommandsOlpProgramScripts

 

 

ProcessGeometry auxiliary command entries

 

The ProgramProcessGeometries scripts are of the type that can be called interactively.

 

They have to be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\ProcessGeometry.

 

AuxCommandsProgramPGFolderLocation

 

All these scripts will be available for selection in the Programming defaults dashboard:

 

AuxCommandsProgramPGScripts

 

The selected script will be than executed during the Process Geometry programming command:

 

AuxCommandsProgramPGCommand

 

Moreover, the return value of the ProgramProcessGeometries callback will define if the internal ProgramProcessGeometries method should be executed or not. Thus, if the return value is False – the script will be executed first followed by the internal PG programming method. So both, Python callback and internal method will be executed. Otherwise, if the return value is True – the internal method will be skipped. The default return value is False.

 

1


Previous
Previous page
Chapter
Chapter page
Next
Next page