Functional block syntax, Keywords – Echelon FTXL User Manual
Page 138
![background image](/manuals/735717/138/background.png)
126
Neuron C Syntax for the Model File
Functional Block Syntax
fblock
FPT-identifier
{
fblock-member-list
}
identifier
[
array-bounds
]
[
ext-name
] [
fb-property-list
] ;
fblock-member-list
:
fblock-member-list ; fblock-member
fblock-member
fblock-member
:
nv-reference
implements
member-name
nv-reference impl-specific
impl-specific
:
implementation_specific (
const-expr
)
member-name
nv-reference
:
nv-identifier array-index
nv-identifier
array-index
:
[
const-expr
]
array-bounds
:
[
const-expr
]
ext-name
:
external_name (
concatenated-string-const
)
external_resource_name (
concatenated-string-const
)
external_resource_name (
const-expr : const-expr
)
fb-property-list
:
See
Functional Block Properties Syntax
on page 129.
Keywords
fblock
Declares the functional block for the
FPT-identifier
functional-profile-type
identifier and the
identifier
functional block identifier.
The functional block declaration begins with the fblock keyword, followed by
the name of a functional profile from a resource file. The functional block is
an implementation of the functional profile. The functional profile defines
the network variable and configuration property members, a unique key
called the
functional profile key
, and other information. The network
variable and configuration property members are divided into mandatory
members and optional members. Mandatory members must be implemented,
and optional members may or may not be implemented.
The functional block declaration then includes a member list. In this
member list, network variables are associated with the abstract member
network variables of the profile. These network variables must have been
previously declared in the model file. The association between the members
of the functional block declaration and the abstract members of the profile is
performed with the implements keyword.
After the member list, the functional block declaration continues with the
name of the functional block itself. A functional block can be a single
declaration, or it can be a singly-dimensioned array.
If you do not specify an external name for the functional block, the functional
block identifier is limited to 16 characters.
If the fblock is implemented as an array, each network variable that is to be