[r99]: / branches / i-campbell / mqttsparkplugb / mqttsparkplugb / SparkplugB / Function Blocks / FB_Payload_1 / FB_PayloadParameter / svnobj  Maximize  Restore  History

Download this file

28 lines (26 with data), 6.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	OwnerPayload : FB_Payload; //He manages the assigning of Pool Objects
	{info 'TODO: i-campbell: Need to write code to handle any array indexes.  For now ONLY pass ARRAYS of starting index = 0'}
	//myPropertySetValuesPool : ARRAY [*] OF FB_PayloadPropertyValue;
	//myPorpertySetsPool : ARRAY [*] OF FB_PayloadPropertySet;
	//myBodyPool         : ARRAY [*] OF BYTE; // for example Payload.Metric[].Body
VAR_OUTPUT
	xDecodeDone,xDecodeBusy,xDecodeError : BOOL;
	eDecodeError : ERROR;
	xEncodeDone,xEncodeBusy,xEncodeError : BOOL;
	eEncodeError : ERROR;
VAR
	_xHasName : BOOL;
    _sName    : WSTRING;
	
	_xHasDataType : BOOL;
	_eType    : ParameterDataType;
	_eHasValue : ParameterProtobufsType;
//             uint32   int_value                      = 3;
//             uint64   long_value                     = 4;
//             bool     boolean_value                  = 7;
    _dzzValue  : DecodedVarInt;
//             float    float_value                    = 5;
    _rValue : REAL;
//             double   double_value                   = 6;
    _lrValue : LREAL;
//             string   string_value                   = 8;
    _sValue : WSTRING;