Introduction

Timer event sections can only be created in offline mode.

The following can be modified in offline mode:

  • the number of the timer event,

  • the time base,

  • the unit of the preset value,

  • the unit for the phase,

  • the type of access protection,

  • the functional module,

  • the comment.

In online mode in stop mode, the following can be changed:

  • the unit of the preset value,

  • the unit for the phase,

  • the type of access protection,

  • the functional module,

  • the comment.

Information for creating LD sections

An LD section contains 11-63 columns and 17-3998 rows.

The number of columns is set in the Tools > Project Settings dialog box, in the Program > Languages > LD tab, in the Number of Columns text box.

This setting only applies to sections to be created, not existing sections. Always define the number of columns before you create a new LD section.

(The number of rows and columns can be changed during the creation of section contents.)

Information for creating FBD sections

An FBD section contains 86,400 grids (number of rows x number of columns).

The number of rows and columns is set in the Tools > Project Settings dialog box, in the Program > FBD tab.

This setting only applies to sections to be created, not existing sections. Always define the number of rows and columns before you create a new FBD section.

(The number of rows and columns can be changed during the creation of section contents.)

Creating timer event sections

Creating timer event sections:

Step

Action

1

Left-click the Timer Events directory of the Events task, or place the cursor on this directory with the arrow keys.

2

Select (right-click or Shift+F10 key combination) the New Event Section menu command from the shortcut menu.

Result: The New dialog box for the section opens.

3

Enter the number of the timer event in the Timer number list box.

The maximum number of timer events depends on the selected CPU, see also section Timer section in the Reference manual.

4

Enter the time base for the preset value and phase in the Time base list box.

Note: Select the largest time base to reduce system load.

5

Enter the units for the preset value in the Preset text box.

The valid range is 0...1023.

Preset value = Preset x Timer base

6

Enter the unit for the phase in the Phase text box.

The valid range is 0...1023.

Phase value = Phase x Timer base

7

Select the programming language of the section.

8

Select the type of access protection if necessary from the Protection list box:

  • None

    No protection

  • Read-Only

    Write protection

  • No read & write

    Read and write protection

See also section Program Unit, Section and Subroutine Protection.

9

Select the functional module to which the section is allocated from the Localization tab if necessary.

See also section Functional modules.

10

Enter a comment in the Comment tab if desired.

11

If you wish to create additional sections, confirm the entries with Apply . In this case, the New dialog box will remain open and you can generate additional sections.

If you do not wish to create additional sections, confirm the entries with OK . In this case, the New dialog box will close and the generated section will open automatically.

Displaying or modifying the section properties

Displaying or modifying section properties:

Step

Action

1

Left-click on the desired section, or place the cursor on this section with the arrow keys.

2

Click the right mouse button or press Shift+F10 to select the Properties... menu command from the shortcut menu.

Result: The Properties of dialog box for the section opens.

3

Implement the desired changes.

4

Confirm all entries with OK.

Importing/exporting sections

See sections: