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; |