[1939f3]: / project / sparkplug™_mqtt_edge_and_host-stack_b9741afd / function_blocks_8ad6e219 / fb_metric_0161affa / fb_metric_c79cccec / payloadprocessing_289745bf / addchangestopayload_be59d58d / be59d58d52a1498aa9e152a38e6c09c5.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 21.9 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)be59d58d-52a1-498a-a9e1-52a38e6c09c5","ParentGuid":"(Guid)c79cccec-ca8d-4f26-a08b-cb32d8a13152","Name":"(string)AddChangesToPayload","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)21af5390-2942-461a-bf89-951aaf6999f1","@Value":"(Guid)289745bf-90a4-44ef-a714-d7eb1c1b36b9"}]}}}}]},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)141","Tag":null,"Text":"(string)// SparkplugSimpleEncoder.AddMetricChanges has already added the metric, its alias and name, but not its value."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)142","Tag":null,"Text":"(string)IF THIS^._NotifyThem THEN //Specifically, the value changed, not any sub objects"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)157","Tag":null,"Text":"(string)\tTHIS^.Timestamp := Timestamp;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)161","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)337","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)197","Tag":null,"Text":"(string)// To add the changes, we start with a blank payloadmetric, which the payload object can provide"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)198","Tag":null,"Text":"(string)MyTempMetric REF= Payload.AddMetricBlank(eError => AddChangesToPayload);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)200","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)201","Tag":null,"Text":"(string)IF AddChangesToPayload = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)202","Tag":null,"Text":"(string)    IF UseAliases THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)203","Tag":null,"Text":"(string)        MyTempMetric.SetAlias(THIS^.Alias);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)204","Tag":null,"Text":"(string)    ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)205","Tag":null,"Text":"(string)        MyTempMetric.SetName(Name := THIS^.Name);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)206","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)207","Tag":null,"Text":"(string)\t//We mustn't add the Value (nor its datatype and timestamp) if it isn't being notified!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)208","Tag":null,"Text":"(string)\t//Let's delegate that responsibilty to FB_Metric :D"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)211","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)213","Tag":null,"Text":"(string)\t// Actually, it is confusing for some clients, if they get a metric with no value.  Lets just always add it"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)214","Tag":null,"Text":"(string)\tMetric.SetTimestamp(uliTimestamp := THIS^.Timestamp);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)215","Tag":null,"Text":"(string)\tMetric.SetDatatype(Datatype := THIS^.DataType);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)216","Tag":null,"Text":"(string)\tCASE THIS^.DataType OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)217","Tag":null,"Text":"(string)\t\tMetricDataType.Int8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)218","Tag":null,"Text":"(string)\t\t\tMetricDataType.Int16,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)219","Tag":null,"Text":"(string)\t\t\tMetricDataType.Int32,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)220","Tag":null,"Text":"(string)\t\t\tMetricDataType.UInt8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)221","Tag":null,"Text":"(string)\t\t\tMetricDataType.UInt16,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)222","Tag":null,"Text":"(string)\t\t\tMetricDataType.UInt32:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)223","Tag":null,"Text":"(string)\t\t\t//Native storage format of a decodedvarint is UInt64, so for speed I will just grab that one."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)224","Tag":null,"Text":"(string)\t\t\tDecoded.UInt64 := THIS^.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)225","Tag":null,"Text":"(string)\t\t\tMetric.SetValueToInt(Value := Decoded);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)226","Tag":null,"Text":"(string)\t\tMetricDataType.Int64,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)227","Tag":null,"Text":"(string)\t\t\tMetricDataType.UInt64,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)228","Tag":null,"Text":"(string)\t\t\tMetricDataType.DateTime:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)229","Tag":null,"Text":"(string)\t\t\tDecoded.UInt64 := THIS^.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)230","Tag":null,"Text":"(string)\t\t\tMetric.SetValueToInt64(Value := Decoded);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)231","Tag":null,"Text":"(string)\t\tMetricDataType.Float:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)232","Tag":null,"Text":"(string)\t\t\tMetric.SetValueToReal(Value := THIS^.Float);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)233","Tag":null,"Text":"(string)\t\tMetricDataType.Double:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)234","Tag":null,"Text":"(string)\t\t\tMetric.SetValueToLreal(Value := THIS^.Double);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)235","Tag":null,"Text":"(string)\t\tMetricDataType.Boolean:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)236","Tag":null,"Text":"(string)\t\t\t//Native storage format of a decodedvarint is UInt64, so for speed I will just grab that one."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)237","Tag":null,"Text":"(string)\t\t\tMetric.SetValueToBool(Value := THIS^.Boolean);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)238","Tag":null,"Text":"(string)\t\tMetricDataType.String_,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)239","Tag":null,"Text":"(string)\t\t\tMetricDataType.Text,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)240","Tag":null,"Text":"(string)\t\t\tMetricDataType.UUID:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)241","Tag":null,"Text":"(string)\t\t\t// String_UUID_Text := THIS^.String_;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)242","Tag":null,"Text":"(string)\t\t\tMetric.SetValueToWString(Value := _wString);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)243","Tag":null,"Text":"(string)\t\tMetricDataType.Template:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)244","Tag":null,"Text":"(string)\t\t\tTempTemplate REF= Metric.SetValueToTemplateBlank(eError => AddChangesToPayload);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)245","Tag":null,"Text":"(string)\t\t\tIF AddChangesToPayload = ERROR.NO_ERROR AND THIS^.Template <> 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)246","Tag":null,"Text":"(string)\t\t\t\t//is_definition - must be included"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)247","Tag":null,"Text":"(string)\t\t\t\tTempTemplate.SetIsDefinition(THIS^.Template.IsDefinition);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)248","Tag":null,"Text":"(string)\t\t\t\t//template_ref"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)249","Tag":null,"Text":"(string)\t\t\t\tString_Text_Key := THIS^.Template.template_ref;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)250","Tag":null,"Text":"(string)\t\t\t\tIF String_Text_Key <> \"\" THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)251","Tag":null,"Text":"(string)\t\t\t\t\tTempTemplate.SetTemplateRef(String_Text_Key);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)252","Tag":null,"Text":"(string)\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)253","Tag":null,"Text":"(string)\t\t\t\t//version"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)254","Tag":null,"Text":"(string)\t\t\t\tString_Text_Key := THIS^.Template.version;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)255","Tag":null,"Text":"(string)\t\t\t\tIF String_Text_Key <> \"\" THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)256","Tag":null,"Text":"(string)\t\t\t\t\tTempTemplate.SetVersion(String_Text_Key);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)257","Tag":null,"Text":"(string)\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)258","Tag":null,"Text":"(string)\t\t\t\t//metrics"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)259","Tag":null,"Text":"(string)\t\t\t\tAddChangesToPayload := AddChildMetricsToTemplate(Timestamp:= Timestamp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)260","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t UseAliases:= UseAliases, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)261","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t PayloadTemplate:= TempTemplate);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)262","Tag":null,"Text":"(string)\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)263","Tag":null,"Text":"(string)\tEND_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)264","Tag":null,"Text":"(string)\tTHIS^.AcknowledgeNotify();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)265","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)266","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)267","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)268","Tag":null,"Text":"(string)\t// Currently All that is left is to add the Properties."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)269","Tag":null,"Text":"(string)\t//Metric.Property has changed"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)270","Tag":null,"Text":"(string)\t_Properties.ItterateRestart(HasNext => HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)271","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)272","Tag":null,"Text":"(string)\tIF HasNext THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)273","Tag":null,"Text":"(string)\t\t//At least one property to add, so we will need a Metric.PropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)274","Tag":null,"Text":"(string)\t\tTempPropertySet REF= Metric.SetPropertySetBlank();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)275","Tag":null,"Text":"(string)\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)276","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)277","Tag":null,"Text":"(string)\tWHILE HasNext AND (eError = ERROR.NO_ERROR) DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)278","Tag":null,"Text":"(string)\t\t_Properties.ItterateNext(itfElement => itfElement, HasNext => HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)279","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)280","Tag":null,"Text":"(string)\t\tIF __QUERYINTERFACE(itfElement, itfProperty) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)281","Tag":null,"Text":"(string)\t\t\tIF itfProperty.Notify THEN // IF need to send this property"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)282","Tag":null,"Text":"(string)\t\t\t\tIF NOT __ISVALIDREF(TempPropertySet) THEN //if we do need to send this, we get a propertySet if we don't have one already"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)283","Tag":null,"Text":"(string)\t\t\t\t\t//At least one property to add, so we will need a Metric.PropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)284","Tag":null,"Text":"(string)\t\t\t\t\tTempPropertySet REF= Metric.SetPropertySetBlank();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)285","Tag":null,"Text":"(string)\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)286","Tag":null,"Text":"(string)\t\t\t\tString_Text_Key := itfProperty.Key;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)287","Tag":null,"Text":"(string)\t\t\t\teError := TempPropertySet.AddKey(KeyName := String_Text_Key,OwnerPayload := Payload);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)288","Tag":null,"Text":"(string)\t\t\t\tIF String_Text_Key = c_Quality THEN // Also update timestamp if it is the Quality Property"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)289","Tag":null,"Text":"(string)\t\t\t\t\tTHIS^.Timestamp := Timestamp;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)290","Tag":null,"Text":"(string)\t\t\t\t\tMetric.SetTimestamp(uliTimestamp := THIS^.Timestamp);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)291","Tag":null,"Text":"(string)\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)292","Tag":null,"Text":"(string)\t\t\t\tIF eError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)293","Tag":null,"Text":"(string)\t\t\t\t\tTempPropertyValue REF= TempPropertySet.AddValueBlank(OwnerPayload := Payload, eError => eError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)294","Tag":null,"Text":"(string)\t\t\t\t\tIF eError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)295","Tag":null,"Text":"(string)\t\t\t\t\t\teError := TempPropertyValue.SetType(itfProperty.DataType);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)296","Tag":null,"Text":"(string)\t\t\t\t\t\tIF eError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)297","Tag":null,"Text":"(string)\t\t\t\t\t\t\t//Add Value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)298","Tag":null,"Text":"(string)\t\t\t\t\t\t\tCASE itfProperty.DataType OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)299","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Int8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)300","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Int16,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)301","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Int32,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)302","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.UInt8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)303","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.UInt16,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)304","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.UInt32:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)305","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\t//Native storage format of a decodedvarint is UInt64, so for speed I will just grab that one."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)306","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\tDecoded.UInt64 := itfProperty.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)307","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\teError := TempPropertyValue.SetValueToInt(Value := Decoded);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)308","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Int64,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)309","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.UInt64,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)310","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.DateTime:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)311","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\tDecoded.UInt64 := itfProperty.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)312","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\teError := TempPropertyValue.SetValueToInt64(Value := Decoded);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)313","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Float:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)314","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\teError := TempPropertyValue.SetValueToReal(Value := itfProperty.Float);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)315","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Double:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)316","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\teError := TempPropertyValue.SetValueToLreal(Value := itfProperty.Double);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)317","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Boolean:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)318","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\t//Native storage format of a decodedvarint is UInt64, so for speed I will just grab that one."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)319","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\teError := TempPropertyValue.SetValueToBool(Value := itfProperty.Boolean);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)320","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.String_,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)321","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tPropertyDataType.Text:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)322","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\tString_Text_Key := itfProperty.String_;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)323","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\t\teError := TempPropertyValue.SetValueToWString(Value := String_Text_Key);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)324","Tag":null,"Text":"(string)\t\t\t\t\t\t\tEND_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)325","Tag":null,"Text":"(string)\t\t\t\t\t\t\tIF eError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)326","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\titfProperty.AcknowledgeNotify();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)327","Tag":null,"Text":"(string)\t\t\t\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)328","Tag":null,"Text":"(string)\t\t\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)329","Tag":null,"Text":"(string)\t\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)330","Tag":null,"Text":"(string)\t\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)331","Tag":null,"Text":"(string)\t\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)332","Tag":null,"Text":"(string)\t\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)333","Tag":null,"Text":"(string)\tEND_WHILE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)334","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)212","Tag":null,"Text":"(string)\tAddChangesToPayload := eError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)196","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)92","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)335","Tag":null,"Text":"(string)// Only call this method if FB_Metric.Notify was true"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)336","Tag":null,"Text":"(string)// It will add all of the changes from this metric to a Payload"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)93","Tag":null,"Text":"(string)METHOD AddChangesToPayload : ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)154","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)155","Tag":null,"Text":"(string)\tTimestamp : T_DateTime;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)194","Tag":null,"Text":"(string)\tUseAliases : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)153","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)94","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)95","Tag":null,"Text":"(string)\tPayload : FB_Payload;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)97","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)98","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)195","Tag":null,"Text":"(string)\tMyTempMetric  : REFERENCE TO FB_PayloadMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)99","Tag":null,"Text":"(string)\tTempPropertySet : REFERENCE TO FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)100","Tag":null,"Text":"(string)\tTempPropertyValue : REFERENCE TO FB_PayloadPropertyValue;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)192","Tag":null,"Text":"(string)\tTempTemplate : REFERENCE TO FB_PayloadTemplate;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)101","Tag":null,"Text":"(string)\titfProperty : IProperty;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)102","Tag":null,"Text":"(string)    itfElement : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)103","Tag":null,"Text":"(string)    HasNext : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)104","Tag":null,"Text":"(string)\teError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)105","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)106","Tag":null,"Text":"(string)\tDecoded : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)107","Tag":null,"Text":"(string)    Double : LREAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)108","Tag":null,"Text":"(string)    Boolean : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)109","Tag":null,"Text":"(string)    String_Text_Key : WSTRING(GC_Sparkplug.supported_string_lengths);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)159","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)160","Tag":null,"Text":"(string)VAR CONSTANT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)158","Tag":null,"Text":"(string)\tc_Quality : WSTRING(GC_Sparkplug.supported_string_lengths) := \"Quality\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)29","Tag":null,"Text":"(string)END_VAR"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}