Connecting FBD-elements by lines

How to connect existing FBD-elements by a line in the →graphical FBD-editor:

1.

Point to the corresponding part of an FBD-element so that the mouse pointer images/download/thumbnails/413893218/PointerHand-version-1-modificationdate-1533814449999-api-v2.png is displayed (see the following examples under 1.).

The mouse pointer is displayed for these parts: the left or right outer area of a→value field, the in-/output of a →call of a →block or the displayed name for the in-/output respectively, a →connector or a →continuation, the in-/output of a →step, of a →transition or of an →action block

2.

Press and hold the primary mouse button, then move the mouse pointer onto another FBD-element in the FBD-editor (see the following examples under 2.a. and 2.b.).

These other FBD-elements are possible: a value field, a call or a particular input or output of the call, a connector or a continuation, a step, a transition, an action block or a particular input or output of these elements
In case of calls, steps, transitions and action blocks, the connection point of the in-/output gives you a feedback that the line will be connected to this in-/output – this connection point disappears while the line is dragged (see the following examples for call under 2.a. and 2.b.).

Observe:

  • A line that you drag from the input of an FBD-element will be highlighted as faulty until the line is dragged onto a correct FBD-element (see the following examples under 2.b.).

  • A line that you drag from the output of an FBD-element will not be highlighted as faulty until the line is dragged onto an incorrect FBD-element.

  • If you position the mouse cursor outside the drawing field while dragging , the drawing field will automatically be scrolled (see "Autoscrolling within the FBD-editor").

3.

Release the primary mouse button in order to connect both FBD-elements with the line. The FBD-editor creates orthogonal lines (see "Automatic routing of lines" for details).

Special behavior for value fields:

  • If the initial position has been the right outer area of a value field and the target position has been another value field, logi.CAD 3 automatically draws the line from the output of the first value field to the input of the second value field.

  • If the initial position has been the left outer area of a value field and the target position has been another value field, logi.CAD 3 automatically draws the line from the input of the first value field to the output of the second value field.

Observe:

  • It is also possible to create several lines in one go (see the last of the following examples) .

  • If the created line is highlighted as faulty, this connection is causing an error. In this case, undo the created connection and connect the FBD-element with a different FBD-element.

  • The variables and/or the in-/outputs of the call must be of an identical data type or of one that can be converted implicitly.

  • A value field with the interface for a block automatically disappears, if the respective input has been connected to an FBD-element.

  • If you create a line across different pages, a direct line is automatically created.

  • If you release the primary mouse button over an empty space of the drawing field, an open line is automatically created. It is possible to dock such lines to other FBD-elements .

  • You are able to change the already created line so that it leads to a different FBD-element .

  • If the logic is ambiguously displayed due to the automatic line routing, best practice is to move the FBD-elements. See "The automatic line routing is ambiguously displaying the logic".

  • If you connect the input/output of a block for safe logic to a safe data type , the background color of this block might be changed to a shade of yellow. Details: See " Highlighting safe logic in the FBD-editor".

This example illustrates how to connect a value field with another value field:

1.

images/download/thumbnails/413893140/DrawLine1-version-1-modificationdate-1533813955614-api-v2.png

2.a.

The line will not be created, if you release the mouse button over an empty area.
images/download/thumbnails/413893155/DrawLine2-version-1-modificationdate-1533814024585-api-v2.png

Therefore, drag the line onto another FBD-element, such as a value field:images/download/thumbnails/413893160/DrawLine3-version-1-modificationdate-1533814045525-api-v2.png

2.b.

Of course, it is possible to start dragging the line in the other direction.
images/download/thumbnails/413893165/DrawLine3b-version-1-modificationdate-1533814067165-api-v2.png
Here the line is highlighted as faulty until an FBD-element is the target.
images/download/thumbnails/413893229/DrawLine3c-version-1-modificationdate-1533814608983-api-v2.png
images/download/thumbnails/413893170/DrawLine3d-version-1-modificationdate-1533814086930-api-v2.png

3.

No matter how the line has been created, the value fields with a correct connection look like this:

images/download/thumbnails/413893192/DrawLine4-version-1-modificationdate-1533814200649-api-v2.png


Value fields with a faulty connection look like this:

images/download/thumbnails/413893008/FBDError_Line-version-1-modificationdate-1533806967804-api-v2.png

This example illustrates how to connect a call with value fields:

1.

images/download/attachments/413893145/DrawLineC1-version-1-modificationdate-1533813977209-api-v2.png

2.a.

The line will not be created, if you release the mouse button over an empty area.
images/download/attachments/413893150/DrawLineC3-version-1-modificationdate-1533814003918-api-v2.png

Therefore, drag the line onto another FBD-element, such as the input of a call:
images/download/attachments/413893175/DrawLineC2-version-1-modificationdate-1533814108064-api-v2.png

While dragging the line, the connection point of the input disappears. This indicates that the line can be created.

2.b.

Of course, it is possible to start dragging the line in the other direction.
images/download/attachments/413893180/DrawLineC2a-version-1-modificationdate-1533814132033-api-v2.png

Here the line is highlighted as faulty until an FBD-element is the target.

images/download/attachments/413893185/DrawLineC2c-version-1-modificationdate-1533814153468-api-v2.png

images/download/attachments/413893234/DrawLineC2b-version-1-modificationdate-1533814767564-api-v2.png

While dragging the line, the connection point of the input disappears as well. This indicates that the line can be created.

2.c.

Likewise, it is possible to draw the line from the output of the block to the value field.
images/download/attachments/413893197/DrawLineC2d-version-1-modificationdate-1533814219388-api-v2.png
images/download/attachments/413893202/DrawLineC2e-version-1-modificationdate-1533814239801-api-v2.png
images/download/attachments/413893207/DrawLineC2f-version-1-modificationdate-1533814260759-api-v2.png

Of course, it is possible to start dragging the line in the other direction as well. There are no illustrations for this possibility.

3.

No matter how the lines have been created, the block with the connected value fields looks like this:

images/download/attachments/413893212/DrawLineC4-version-1-modificationdate-1533814280521-api-v2.png

This example illustrates how to create the lines from the values fields to the block in one go:

0.

Select several connection points while pressing and holding the Ctrl-key . Here the outputs of the valued fields are selected.
images/download/attachments/443058858/DrawSeveralLines1-version-2-modificationdate-1589894194502-api-v2.png

1.

Point to one of the selected connection points.
images/download/attachments/443058865/DrawSeveralLines2-version-2-modificationdate-1589894790741-api-v2.png
The next steps are analogous to the above steps.

2.

images/download/attachments/443058869/DrawSeveralLines3-version-1-modificationdate-1589894816094-api-v2.png

3..

images/download/attachments/443058873/DrawSeveralLines4-version-1-modificationdate-1589894838352-api-v2.png