Creating value fields or calls of blocks by using the content assist in FBD

How to create →value fields and/or →calls of →blocks in the →graphical FBD-editor by using the Content Assist:

  1. Position the mouse pointer over an empty space – where you need the value field or the call.

  2. Start the content assist: From the context menu of the FBD-editor, select Content Assist. Alternative: Press Ctrl+Space.
    Result: An input field is opened. Below it, a list with all available elements is displayed:

    Icon

    Type

    images/download/thumbnails/413893088/Var-version-1-modificationdate-1533812279373-api-v2.jpg , images/download/thumbnails/413893093/VarInput-version-1-modificationdate-1533812305462-api-v2.jpg , images/download/thumbnails/413893098/VarOutput-version-1-modificationdate-1533812324909-api-v2.jpg , images/download/thumbnails/413893074/VarGlobal-version-1-modificationdate-1533808466516-api-v2.png or images/download/thumbnails/413893103/VarExternal-version-1-modificationdate-1533812344791-api-v2.png

    an already existing →variable (see "Instance-related and PLC-related information and actions within Instances view" for the meaning of the icons)
    The data type of the variable is displayed, too. Example: T1 – TIME – Meaning: variable with name T1 and →data type TIME

    images/download/thumbnails/409862626/Function-version-1-modificationdate-1531214341453-api-v22.png

    a →function

    images/download/thumbnails/409862631/Instance-version-1-modificationdate-1531214366502-api-v22.jpg

    a →function block
    The instance name and the type name is listed for already set calls. Example: MyTON – TON – Meaning: →function block instance MyTON of the →function block type TON

    If you want to close the input field without creating a value field or a call, click the primary mouse button outside the input field or press the ESC-key.

  3. Perform the following steps – depending on the requested FBD-element:

    Requested FBD-element

    Steps

    Value field with a →literal

    1. In the input field, enter the literal, e.g. T#14ms.

    2. Press the Enter-key.

    Value field with a new variable

    See "Declaring variables in FBD".

    Value field with
    an already existing variable, e.g. images/download/thumbnails/413893088/Var-version-1-modificationdate-1533812279373-api-v2.jpg

    1. Enter one or more letters. This displays a list with all elements fitting your input.
      Example: Enter Var. The list provides all elements containing the text Var.

    2. Click an element in the list or select it (by using the mouse or the cursor movement keys) and press the Enter-key .

    Call of a block
    (of a function images/download/thumbnails/409862626/Function-version-1-modificationdate-1531214341453-api-v2.png or
    a function block images/download/thumbnails/409862631/Instance-version-1-modificationdate-1531214366502-api-v2.jpg )

    1. Enter one or more letters. This displays a list with all elements fitting your input.
      Example: Enter OR. The list provides: OR, XOR, ROR (and maybe other elements fitting the text OR)

    2. Click an element in the list or select it (by using the mouse or the cursor movement keys) and press the Enter-key .

  4. Position the value field or the call in the FBD-editor by pressing the primary mouse button or the Enter-key.
    During this user action, it is possible that affected lines are automatically rerouted. If the positioned element is presented with a red rectangle, the destination is not possible.
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg You might want to use the following key while positioning the element: Press the ESC-key, if you do not want to position the element and abort the action.

Alternatives to creation by using content assist: