Introduction

The following can be defined for transitions:

Defining the transition condition as a variable

Defining the transition condition as a variable:

Step

Action

1

Open the properties dialog box for the transition.

Result: The properties dialog box for the transition is opened, see also Properties dialog box for transitions.

2

In the Type of transition condition area, activate the Variable option button, if it isn't already activated.

3

In the BOOL variable, value or address data selection box, enter a Boolean variable/address, a Boolean element for a multi-element variable or a Boolean literal, see also section Transition conditions in the Reference manual.

You have the following options to enter variables:

  • You can enter the name of the variable.

  • You can select the name of the variable from the list of recently used names using the symbol.

    or

  • Using the command button ... you can open a variable selection dialog box and confirm the selected variables there with OK.

Example:

4

Confirm the entry with OK.

Result:

  • If the selected variable is already declared, the transition condition is accepted, the properties dialog box is opened, a syntax and semantics check is carried out and the procedure is ended.

  • If the selected variable is not declared, a variable declaration dialog box opens. In this case, continue with the following steps of this procedure.

    Variable declaration dialog box

    Note: If you wish to declare the variable later, close the dialog box using the symbol. In this case, the variable name is enabled in the section, but not declared. You can declare the variables later in the Data Editor or by selecting the transition and the executing the menu command Generate Variable in the shortcut menu.

5

If you do not want to assign the variable an address or comment, confirm using Enter or the symbol.

Result:The variable is declared and enabled in the section. A syntax and semantics check is performed and the procedure ends here.

Example:

6

To assign an address or comment, use the symbol.

Result: The dialog box expands.

7

Enter the address or comment, or both.

8

Confirm with Enter or the symbol.

Result:The variable is declared and enabled in the section. A syntax and semantics check is performed.

Example:

Defining the transition condition as a section

Defining the transition condition as a section:

Step

Action

1

Open the properties dialog box for the transition.

Result: The properties dialog box for the transition is opened, see also Properties dialog box for transitions.

2

In the Type of transition condition area, activate the TRANSITIONS section option button.

3

Enter the name of the transition section in the text box, see also section Transition section in the Reference manual.

You have the following options to enter the section name:

  • You can enter the section name.

    or

  • You can select the name of the section from the list of transition sections which are defined but not yet used with the symbol.

Example:

4

To create the logic for the transition section, click the Edit command button.

Result: A dialog box to define the programming language of the transition section is opened.

Example:

5

Select the desired programming language for the transition section and confirm the selection with OK.

Information for creating LD sections: An LD section contains 11-63 columns and 17-3998 lines. The number of columns is set via the Tools > Project Settings dialog box, in the Editors tab in the Number of columns text box. These settings are only valid for new sections and not for existing sections. Always define the number of columns before you create a new LD section. (The number of lines can be increased or reduced during the creation of section contents.)

Result: The properties dialog box is closed and the transition section is opened.

6

Create the logic for the transition section, see also section Transition section in the Reference manual.

Inverting the transition condition

Inverting the transition condition:

Step

Action

1

Open the properties dialog box for the transition.

Result: The properties dialog box for the transition is opened, see also Properties dialog box for transitions.

2

To invert the transition condition, activate the Invert transition condition check box.

Example:

3

Confirm the entry with OK.

Result: The transition condition is represented as inverted in the section, the properties dialog box is closed and a syntax and semantics check is performed.

Example:

Enter a comment

Enter a comment:

Step

Action

1

Open the properties dialog box for the transition.

2

Select the Comment tab and enter a transition comment.

3

Confirm the comment with OK.

Result: The comment is accepted and the properties dialog box is closed.