Skip to main content

Event Callbacks

note

This feature is meant to be used by RobCo internally, to extend functionality. If you need custom functionality, please reach out to RobCo directly.

There is an event_callbacks.py file in the plugins folder (where the Custom Function Nodes also live). In this file, some callback functions are pre-defined which are executed automatically on their respective events. If you need to run custom code when such an event occurs, you can write it here.

Pause callback

This callback is called when a Flow is paused, i.e. when robot.pause() is called.

Stop callback

This callback is called when an action is stopped, i.e. when robot.stop() is called.

It receives the current node_cache, which holds statuses about the Nodes that were being executed while the Flow was stopped, e.g. the current item in a Palletizing Node if it was in the middle of execution.

Resume callback

This callback is called when a Flow is resumed, i.e. when robot.resume() is called.

Safety-Stop callback

This callback is called when a SAFE_STOP is triggered, i.e. when an e-stop is pressed.