Add --on-plc-start --on-plc-stop and --status-change to runtime command line, calling given command respectively on start stop or any event. Command line string is python formated (to eventually include status with {}) before being split (supports quoted strings) and passed to Popen for non-blocking execution.
<?xml version='1.0' encoding='utf-8'?>
<BeremizRoot URI_location="LOCAL://">
<TargetType/>
<Libraries Enable_SVGUI_Library="true" Enable_Python_Library="true"/>
</BeremizRoot>