Thursday, April 19, 2012

Breaking a loop in Rapid ABB

To break an infinite loop in Rapid ABB try the following code:

WHILE (TRUE)
      Counter = Counter + 1;
      IF (Counter = 5) THEN
           Return;
     ENDIF
ENDWHILE

Wednesday, April 11, 2012

Visual Studio shortcut for commenting program lines

Ctrl-K, Ctrl-C – Comments selected text
Ctrl-K, Ctrl-U – De-Comment selected text