Calls of blocks: functions or function blocks

Use →calls in the →graphical editor →FBD to call a →function or a →function block. A catchall term for functions and function blocks is "→block". If you read about blocks in the logi.CAD 3 user documentation, the description is about functions and function blocks (unless otherwise clearly stated).

A call may get values from other elements via its inputs, the value of the call may be assigned to other elements via its outputs. →Assignments are visualized by lines connecting a call with the other elements.

It is not possible to insert calls of the following language elements in the FBD-editor:

  • →interfaces

  • →methods

  • derived function blocks (= function blocks using the keyword EXTENDS)

  • abstract function blocks (= function blocks using the keyword ABSTRACT)

Representation


Example for calling the ADD block and the F_TRIG block (incl. assignments by a line from/to a →value field ):
images/download/attachments/414777623/FBDCalls-version-1-modificationdate-1534167153162-api-v2.png

Usually, the input connection point (short: input) of the call is located on the left side and the output connection point (short: output) on the right side. The layout of the call (e.g. the color) is determined by a default layout.
images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg Use the interface editor, if you want to change the predefined layout attributes for user-defined blocks (e.g. the orientation of the in-/outputs).

Peculiarities

  • More in-/outputs might become visible for an extensible block, if the call is enlarged and the setting Expandable within the interface editor is checked. Example: The AND block is displayed with 2 inputs at least. When it is enlarged, up to 16 inputs are displayed.
    A certain number of the inputs of an extensible block must be connected (usually it is 2 inputs). Observe that input variable s of extensible system functions that are not connected get the default →initial value .

  • →In-/out variables within the interface are indicated by the straight line between the input connection point and the output connection point.
    Example for calling the user-defined block MyFB (incl. assignments by a value field) that contains an in-/out variable named In_Out1:
    images/download/attachments/414777628/FBDCall-InOut-version-1-modificationdate-1534167174132-api-v2.png
    However, if a block with in-out variables has been migrated from logi.CAD/32 to logi.CAD 3, the following is valid: logi.CAD 3 displays the user interface of the block as it is in logi.CAD/32. This means that only the input connection point of the in-out variable is displayed in logi.CAD 3. It is also possible that other variables are located on the opposite position of the input connection point.

  • A value field with the interface for a block is displayed as long as the respective input is not connected with an FBD-element .
    Example for the block interface in which the value of the input is assigned to its opposite output (the value is predefined by the 2 value fields within the interface) :

    images/download/thumbnails/431556346/FBDCall_IntVF1-version-1-modificationdate-1568616185634-api-v2.png

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg If the FBD-editor and its elements are displayed differently in your logi.CAD 3 version, the system integrator has changed the styles for the FBD-editor. In this case and for information about the changed representation, please contact your system integrator.