class FunctionBlock
Package: swiss.avm.up.core.generic.specification.interface_local.javamodel.FunctionBlock
Direct Known Subclasses:
class FunctionBlock extends AFunctionBlock, BaseDataVariable, BaseArrayVariable, AFunctionBlockCall
A FunctionBlock is an IEC function-block instance inside a controller, wrapping vendor or library logic. It references a function-block type from a datatype library that defines its inputs, outputs and internal state. In driver controllers it is effectively the driver implementation.
Properties
arrayIndex
ArrayIndex[0..N]
arrayIndex
ArrayIndex[0..N]
call
The code of the function block is executed with the call object.
FunctionBlockCall[1..1]
If the parameters are specified when the FunctionBlock call element is called, it is necessary to specify the function block with the corresponding interface field to identify the parameters.
In the case of a function block array, the array index must not be specified in the brackets.
Example:
fbABC.call(fbABC.field1 = 1))
Example with FunctionBlock as array:
aFbABC[1].call(fbABC.field1 = 1)
comment
Describes the intent of this Resource.
TextLiteral[0..1]
A Literal that accepts multiple lines of text.
name
The name of this Resource.
StringLiteral[1..1]
type
Type[1..1]
type
Type[1..1]
type
FunctionBlockType[0..1]
Method Summary
getComment
@FComments
getFunctionBlockParameter
@CodeSnippetExtension
Parameters:
NameProvider
CodeSnippet
IncrementLiteral_DiagramUtil
FunctionCall
ACallingBaseElement
PlatformType