logic_program_set_watchdog(action='pause')

Configures the main program watchdog to react when the Logic Program is not running.

Use this function when the Logic Program is an integral part of the robot application and the main program must not continue if background logic has stopped.

The watchdog is triggered when the Logic Program stops for any of the following reasons:

  • A programming error (runtime exception)
  • A halt or pause script command in the Logic Program
  • Manual stop from the teach pendant

Parameters

action: Optional string. Either "ignore", "pause", or "stop" the main program when the Logic Program is not running. The default action is "pause".

Return Value

None

This function is not related to rtde_set_watchdog(variable_name, min_frequency, action=’pause’), Modbus signal watchdogs, or Ethernet/IP handle watchdogs.

Example command: logic_program_set_watchdog("stop")

  • Example Parameters:
    • action = stop the main program if the Logic Program stops running