DataSet (FB)ΒΆ
FUNCTION_BLOCK PUBLIC ABSTRACT DataSet IMPLEMENTS IDataSet, IGroupElement, IDataSet_Internal
A
DataSet
can be thought of as a list of Variable Values.For publishing, a
DataSet
will be encoded into a DataSetMessage.One or more DataSetMessages are combined to form the payload of a NetworkMessage.
See IDataSet for more details.
Not connected to both at the same time!
How to design a DataSet
In the area of CODESYS Forge you will find an example of two different DataSet designs.
A DataSet can be a simple listing of variables, or a complex structure with several variants of variable groups.
Take a look to a simple DataSet design (DataMessage). It contains one member of any possible data type.
The next example (DataMessage2) is sligtly more complex and integrates three different structures as variants of a UNION
.
The complete example DataSetDesign
can be downloaded from the CODESYS Forge (https://forge.codesys.com).
See: DataSet at OPC Foundation
- InOut:
Scope
Name
Type
Input
itfReader
itfWriter
Output
vtVersion
Methods:
Structure: