Introduction

This function makes it possible to "look into" a DFB or subroutine. This makes it possible to see the internal state of the DFB/subroutine when animation is used, or to make changes to the logic very quickly.

Refinable objects are labeled in boldface, e.g.

CAL SR_Name

or

MY_DFB (IN1 := var1, IN2 := var12, OUT => var3);
NOTE: The only limitation occurs when the displayed variable is in an ARRAY with at least 2 dimensions and when the index is not a constant. In this case an error message is displayed and the variable value can't be displayed.

Refining DFBs

Process the following steps to refine DFBs:

Step

Action

1

Place the cursor on the DFB instance name.

2

You have the following options to refine DFBs:

  • Use the Services > Refine menu command.

  • Use the Refine menu command from the shortcut menu.

    or

  • Press the Ctrl+Q key combination.

Result: If the DFB contains only one section, this will be opened automatically.

If the DFB contains several sections, a selection dialog is opened.

Example:

3

Select the desired DFB section.

Result: The DFB section is opened.

Note: With nested DFBs several refine processes are possible, but we should not let open simultaneously the refine editors or it could lead to a wrong data display.

Refining subroutines

Process the following steps to refine subroutines:

Step

Action

1

Position the cursor on the subroutine call.

2

You have the following options to refine subroutines:

  • Use the Services > Refine menu command.

  • Use the Refine menu command from the shortcut menu.

    or

  • Press the Ctrl+Q key combination.

Result: The subroutine is opened.

Note: With nested subroutines several refine processes are possible.