How to notify UI when RAPID stopped

Options
When RAPID stopped due to errors, like 40204 Value error which will trigger 10126 Program stopped, how can UI detect this error and notify the operator without checking RAPID code or Flex Pendant?

Answers

  • lemster68
    lemster68 ✭✭✭
    What UI?
    Lee Justice
  • We have a UI for an operator to run the machine, it is written using WPF/C#. The operator does not check Flex Pendant all the time, but watch the PC instead. We subscribe lots of variables in RAPID code, so we can report the status of the machine. When the RAPID stopped, we need to get some notification or some RAPID variable value changes so we can pop up some warning/error message so the operator can tell.
  • lemster68
    lemster68 ✭✭✭
    OK.  You will want to tap into the system output CycleOn.  It will be on when rapid is executing.
    Lee Justice
  • Yes, it is on when rapid is running, but does not turn to off when it stopped which is what I need. It might be off already but we do not get the notification; this is probably because the RAPID already stopped. 
  • lemster68
    lemster68 ✭✭✭
    System outputs are not affected by the program execution.
    Lee Justice
  • The CycleOn may work for the start/stop button only.
  • Through PCSDK, you can use ExecutionStatus in either Rapid or Task to check if the program is stopped or not.