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 28 29 30 31 32 33 34 35 36 37 38 | (* _EncodedBlob : ARRAY[0..65535] OF BYTE; // Protobuf serilized blob, Max Blob Size of 64 KByte _NextBdSeq : ULINT := 0; //next birth/death sequence number (0..255) _EncodeDiag : STRING; _DecodeDiag : STRING; _TimeStamp : T_DateTime; _EncodeError : BOOL; // Based on CBML.LCon, but will automatically be reset if xEncode _Encode_eError : ERROR; // Enumerated Encoding Error _Decoder : FB_PayloadSimpleDecoder; _Decode : BOOL; _DecodeBlob : ARRAY[0..65535] OF BYTE; // Protobuf serilized blob, Max Blob Size of 64 KByte _DecodeDone : BOOL; _DecodeBusy : BOOL; _Decode_eError : ERROR; // Enumerated Encoding Error END_VAR VAR_IN_OUT // Global All Metrics List AllMetricsList : LIST; _Encoder( xEnable := _Encode, protobufBlobSize:= _EncodedBlobSize, myProtobufBlob:= _EncodedBlob, AllMetricsWhichWillEverReport := AllMetricsList, xDone=> _EncodeDone, xBusy=> _EncodeBusy, xError=> _EncodeError, eError=> _Encode_eError); _Decoder( xEnable:= _Decode, protobufBlobSize:= _DecodeBlobSize, myProtobufBlob:= _DecodeBlob, AllMetricsWhichWillEverReport:= AllMetricsList, xDone=> _DecodeDone, xBusy=> _DecodeBusy, xError=> _DecodeError, eError=> _Decode_eError);# Diag(); |