Programs

Define programs in the
Programs
section of the device in the
Application View
. For programs, specify these properties:
Property
Description
Comment
Plain text
Description
Rich text
Language
(Read-only) Programming language of the program organization unit (POU)
Name
Name of the program. Program names are limited to eight (8) characters beginning with a letter or single underscore followed by letters, digits, and single underscores. Do not use reserved words, defined words, or data types for names. Use unique names for POUs within a project.
Type
(Read-only) Type of POU. Possible values are program, user-defined function, or user-defined function block
Perform these tasks for programs:
Task
Procedure
Add programs
  • In the
    Application View
    , right-click the
    Programs
    element for the device, point to
    Add Programs
    , and then click one of these:
    • New FBD: Function Block Diagram
    • New LD: Ladder Diagram
    • New ST: Structured Text
Set properties for a program
In the
Application View
, right-click the program, and then click
Properties
.
Copy and paste programs
Copying and pasting a program includes local variables and local defined words.
  1. In the
    Application View
    , right-click the program, and then click
    Copy
    .
  2. Right-click the
    Programs
    element, and then click
    Paste
    TIP: POU comments are not copied during a copy and paste operation.
Rename programs
In the
Application View
, right-click the program, then click
Rename
, and then type a name for the program.
Delete programs
In the
Application View
, right-click the program, and then click
Delete
TIP: When deleting a program, save the project before making subsequent changes.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal