Skip to main content
Skip table of contents

CDRFLEx.set_on_program_stopped

Features

This is a function for registering the callback function that automatically checks if program execution has been completely terminated when the program is terminated due to errors or user command during execution in automatic mode in the robot controller. It is useful when functions that should be executed automatically are made.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnProgramStoppedCB

-

Refer to definition of callback function

Return

None.

Example

PY
void OnProgramStoppedCB(const PROGRAM_STOP_CAUSE eStopCause)
{
// Shows whether restart of program is possible
}

int main()
{
drfl.set_on_program_stopped(OnProgramStoppedCB);
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.