Declaration of a program in ST
PROGRAM name
(* optional: declaration of variables *)
(* optional: body of program *)
END_PROGRAM
Meaning |
declaration of a →program, name must be an →IEC-identifier. |
PROGRAM Motor
END_PROGRAM
You are able to use the following language elements for ST within a program:
Page:Read-only statement
Page:SFC elements in ST
Page:Call of method in ST
Page:CASE statement in ST
Page:EXIT statement in ST
Page:FOR statement in ST
Page:IF statement in ST
Page:Comments in ST
Page:Assignments in ST
The usage of these language elements makes it possible to use other elements (e.g. declaration of STRING variables within the section VAR ... END_VAR ) as well. Such elements are not listed here.