ST comments

Comment

Description

Sample:

Single line

Starts with // and ends at the end of the line.

// Dies ist ein Kommentar

Multi-line

Starts with (* and ends with *).

(* Dies ist ein mehrzeiliger Kommentar *)

Nested

Starts with (* and ends with *). Additional (*.... *) comments can be contained within this comment.

(* a:=fbTest.out; (* 1.Kommentar *)
b:=b+1; (* 2.Kommentar *)*)

In addition, one or more marked lines can be commented in/out with a menu command or a shortcut:

Tooltips comments

You can create a tooltip for a POU by inserting a comment above the declaration of the POU.

Sample:

// Das ist ein Beispiel-Funktionsbaustein
FUNCTION_BLOCK FB_Sample
VAR_INPUT
END_VAR