Changing the instance type - STEP 7

Creating FBD programs

ft:publication_title
Creating FBD programs
Product
STEP 7
Version
V20
Publication date
11/2024
Language
en-US
Changing the instance type

Instance type

There are two ways of calling function blocks:

  • As a single instance

  • As a multiple instance

  • As parameter instance

See also: Basics of instances 

You can modify a defined instance type at any time.

Requirement

The user program contains a block call.

Procedure

To change the instance type of a function block, follow these steps:

  1. Open the code block and select the block call.

  2. Select the "Change instance" command in the shortcut menu.

    The "Call options" dialog opens.

  3. Click on the button "Single instance", "Multi-instance" or "Parameter instance".

    • If you select the "Single instance" instance type, enter a name for the data block that is to be assigned to the function block.

    • If you select "Multiple instance" as the instance type, enter in the "Name in the interface" text field the name of the tag with which the called function block is to be entered as a static tag in the interface of the calling block.

    • If you select "Parameter instance" as the instance type, enter the name of the in/out (InOut) parameter to which the instance should be passed during runtime in the "Name in the interface" text box.

  4. Confirm your entries with "OK".

Note

The previous instances are not deleted automatically.