-

Inserting FUs/FBs and Variables

This topic applies to code worksheets in FBD/LD, NOLD, SNOLD and SFC.

In the graphic editor, objects can be inserted

Insertion of objects can be done via:

Further Info
For a description how to insert objects into an existing LD network, refer to the topic "Editing LD Networks".

Inserting Functions/Function Blocks

The block color and the icon in the upper left corner of the symbol indicate the origin of the function (locally created, contained a user library or system library). Refer to the section "FU/FB symbol indicates origin" for details.

Insert functions/function blocks via drag & drop

Insert a function/function block via keyboard using Intellisense

Further Info
Refer to the topic "Editing/Replacing/Updating FUs and FBs" for information how to add function inputs, replace blocks and how to update instances of user-defined function blocks.

Inserting Variables

In code worksheets, you can insert already declared variables and new variables. Inserting a variable into the code worksheet can be done either via the variables table by dragging and dropping the variable into the code worksheet or directly in the code worksheet.

Further Info
For a description how to assign variables to an LD object, refer to the topic "Editing LD Networks".

Insert one or more already declared variable(s) via drag and drop from the variables table

Insert an already declared variable directly in the code worksheet

Insert and declare a new variable

Editing the properties of the variable at the cursor position or marked variable

Assign a global variable to a process data item