BREAKPOINT

Top  Previous  Next

The BREAKPOINT keyword will enter an execution breakpoint that will stop the thread in question when enabled in the RTCU IEX.
When breakpoints has not been enabled (default state) they will have no effect-.

 

Please refer to the RTCU IEX documentation for details and usage.

 

 

 

Example:

INCLUDE rtcu.inc
 
VAR
  a   : INT;
  str : STRING;
END_VAR;
 
PROGRAM test;
 
BEGIN
  a := 0;
  WHILE a < 1000 DO
    a := a + 1;

     IF a = 500 THEN
    //When breakpoints are enabled the thread will stop here:

        BREAKPOINT;
     END_IF;

  END_WHILE;
END;
 
END_PROGRAM;