Introduction

Create FBD, LD, IL, or ST sections for Modicon M340:

  • in the MAST and FAST tasks (Logic directory of the task)

  • in a Program Unit that belongs to a task ( Sections directory of the Program Unit)

  • in offline and online mode

Create FBD, LD, IL, or ST sections for Modicon M580:

  • in the MAST, FAST, AUX0, and AUX1 tasks (Logic directory of the task)

  • in a Program Unit that belongs to a task ( Sections directory of the Program Unit)

  • in offline and online mode

Create FBD, LD, IL, or ST sections for Quantum, Premium and Atrium:

  • in MAST, FAST, and AUX tasks (Sections directory of the task)

  • in offline and online mode

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. Verify that you 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 a section

Creating a section:

Step

Action

1

To create a section in a task, select the desired directory (Sections or Logic ) or place the cursor using the arrow keys on this directory.

2

Click the right mouse button or use Shift+F10 to select New Section in the context menu.

Or

Select Edit > New Section

Result: The New dialog box for the section opens.

3

Enter the section name.

The section name must be unique in the entire project and conform to the general naming conventions.

NOTE: Two sections of different program units can have the same name.

4

Select the programming language of the section.

5

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 Project Protection.

6

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

See also section Functional module.

7

Define a Boolean variable in the Condition tab with which the section can be activated/deactivated (section active when variable=1) if required.

You have the following options to select variables:

  • You can enter the name of the variable/address directly or copy it from the clipboard.

  • Use the command button ... to open an instance selection dialog box.

Activate the Can be forced check box when you want to force the variable.

8

Only applies to Quantum projects:

Assign a read RIO drop and a write RIO drop to the section in the Remote IO tab if required.

See also section Executing Quantum sections with distributed inputs/outputs.

9

Enter a comment in the Comment tab if desired.

10

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 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

Select (right-click or Shift+F10 key combination) 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: