Diff of /branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/NDEATH/GetEoNNodeDeathCertificate/svnobj [r814] .. [r815]  Maximize  Restore

Switch to unified view

a/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/NDEATH/GetEoNNodeDeathCertificate/svnobj b/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/NDEATH/GetEoNNodeDeathCertificate/svnobj
1
Gx_lŒ!0…jüo#Y¶ñAŸ?eSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}    Id
1
Gx_lþ!0…jüo}~…ê?Yë±1System.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}    Id
2
longTagText
xSysTimeRtc.SysTimeRtcHighResGet( pTimestamp := _Timestamp );œ// Since the NDeath metrics contains a seqnum, we skip inserting a seqnum here¶InitEncoderErr := _Encoder.InitializePayloadBeforeAddingMetrics( timestamp := _Timestamp );¢(*  NDEATH Sequence Metric "bdSeq", None, MetricDataType.Int64, getBdSeqNum()) *)NIF InitEncoderErr = ERROR.NO_ERROR THEND    NDEATH.Name        := "bdSeq";P    NDEATH.Value       := getBdSeqNum();†    AddSimpleMetricErr := AddMetricSimple( TimeStamp := _Timestamp,„                                           SimpleObject := NDEATH,œ                                           AllMetricsList := AllMetricsList );j    GetEoNNodeDeathCertificate := AddSimpleMetricErr;n    IF GetEoNNodeDeathCertificate = ERROR.NO_ERROR THEN¤        WriteDeviceLog( msgCtrlMask := UDINT_TO_DWORD( CmpLog.LogClass.LOG_INFO ),¨                        msgFmtStr := 'SparkplugBSimple GetNDEATHCertificate Succes',N                        strArg := '' );    END_IFELSEb    GetEoNNodeDeathCertificate := InitEncoderErr; END_IF!Interface"L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}#(*  $Z    NDEATH   Death certificate for EoN nodes.%    &Ü    The NDEATH message contains a very simple payload that only includes a single metric, the bdSeq number, so'â    that the NDEATH event can be associated with the NBIRTH. Since this is typically published by the MQTT Server(è    on behalf of the EoN node, information about the current state of the EoN node and its devices is not and cannot)    be known.*À    - Always request this before requesting the Node Birth Payload, pass this sequence to NBIRTH+¼    - After Calling, the encoder must be used immedeatly to obtain the blob payload for NDEATH,*)-RMETHOD GetEoNNodeDeathCertificate : ERROR.VAR_IN_OUT/N    NDEATH         : FB_SparkplugUInt640ü    ;                      // Un-encoded NDEATH Metric for external storage purpose, contains BSeqNumber for usage with NBIRTH1È    AllMetricsList : LIST; // Contains a list of all metrics which will ever report on in this node 2END_VAR3VAR4>    InitEncoderErr     : ERROR;5>    AddSimpleMetricErr : ERROR;ÐÐÐEÐÐ   
2
longTagText
xSysTimeRtc.SysTimeRtcHighResGet( pTimestamp := _Timestamp );œ// Since the NDeath metrics contains a seqnum, we skip inserting a seqnum here¶InitEncoderErr := _Encoder.InitializePayloadBeforeAddingMetrics( timestamp := _Timestamp );¢(*  NDEATH Sequence Metric "bdSeq", None, MetricDataType.Int64, getBdSeqNum()) *)NIF InitEncoderErr = ERROR.NO_ERROR THEND    NDEATH.Name        := "bdSeq";Z    NDEATH.DataType    := MetricDataType.UInt64;R    NDEATH.Uint64       := getBdSeqNum();†    AddSimpleMetricErr := AddMetricSimple( TimeStamp := _Timestamp,„                                           SimpleObject := NDEATH,œ                                           AllMetricsList := AllMetricsList );j    GetEoNNodeDeathCertificate := AddSimpleMetricErr;n    IF GetEoNNodeDeathCertificate = ERROR.NO_ERROR THEN¤        WriteDeviceLog( msgCtrlMask := UDINT_TO_DWORD( CmpLog.LogClass.LOG_INFO ),¨                        msgFmtStr := 'SparkplugBSimple GetNDEATHCertificate Succes',N                        strArg := '' );    END_IFELSE b    GetEoNNodeDeathCertificate := InitEncoderErr;!END_IF"Interface#L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}$(*  %Z    NDEATH   Death certificate for EoN nodes.&    'Ü    The NDEATH message contains a very simple payload that only includes a single metric, the bdSeq number, so(â    that the NDEATH event can be associated with the NBIRTH. Since this is typically published by the MQTT Server)è    on behalf of the EoN node, information about the current state of the EoN node and its devices is not and cannot*    be known.+À    - Always request this before requesting the Node Birth Payload, pass this sequence to NBIRTH,¼    - After Calling, the encoder must be used immedeatly to obtain the blob payload for NDEATH-*).RMETHOD GetEoNNodeDeathCertificate : ERROR/VAR_IN_OUT0J    NDEATH         : FB_RemoteMetric;1ü    ;                      // Un-encoded NDEATH Metric for external storage purpose, contains BSeqNumber for usage with NBIRTH2È    AllMetricsList : LIST; // Contains a list of all metrics which will ever report on in this node 3END_VAR4VAR5>    InitEncoderErr     : ERROR;6>    AddSimpleMetricErr : ERROR;ÐÐÐEÐÐ  
3
­ÆÚÐ-
ÐÐ  
3
­ÆÚÐ-
ÐÐ  
4
­ÇÚÐ-ÐÐ  
4
­ÇÚÐ-ÐÐ  
5
­ÈÚÐ-ÐÐ  
5
­ÈÚÐ-ÐÐ  
6
­ÊÚÐ-ÐÐ  
6
­ÊÚÐ-ÐÐ  
7
­ËÚÐ-ÐÐ  
7
­ËÚÐ-ÐÐ  
8
­ÌÚÐ-ÐÐ  
8
­ÌÚÐ-ÐÐ  
9
­ÍÚÐ-ÐÐ  
9
­ÍÚÐ-ÐÐ  
10
­ÎÚÐ-ÐÐ  
10
­ÛÚÐ-ÐÐ  
11
­ÎÚÐ-ÐÐ  
11
­ÏÚÐ-ÐÐ  
12
­ÏÚÐ-ÐÐ  
12
­ÐÚÐ-ÐÐ  
13
­ÐÚÐ-ÐÐ  
13
­ÑÚÐ-ÐÐ  
14
­ÑÚÐ-ÐÐ  
14
­ÒÚÐ-ÐÐ  
15
­ÒÚÐ-ÐÐ  
15
­ÓÚÐ-ÐÐ  
16
­ÓÚÐ-ÐÐ  
16
­ÔÚÐ-ÐÐ  
17
­ÔÚÐ-ÐÐ  
17
­ÕÚÐ-ÐÐ  
18
­ÕÚÐ-ÐÐ  
18
­ÖÚÐ-ÐÐ  
19
­ÖÚÐ-ÐÐ  
19
­×ÚÐ-ÐÐ  
20
­×ÚÐ-ÐÐ  
20
­ØÚÐ-ÐÐ  
21
­ØÚÐ-ÐÐ  
21
­ÙÚÐ-ÐÐ  
22
­ÙÚÐ-ÐÐ  
22
­ÚÚÐ-ÐÐ  
23
­ÚÚÐ- ÐÐ  
23
­óÚÐ- Ð!"ÐEÐÐ    
24
­óÚÐ-!Ð"#ÐEÐÐ    
24
­°ÚÐ-#ÐÐ  
25
­°ÚÐ-$ÐÐ  
25
­±ÚÐ-$ÐÐ  
26
­±ÚÐ-%ÐÐ  
26
­²ÚÐ-%ÐÐ  
27
­²ÚÐ-&ÐÐ  
27
­³ÚÐ-&ÐÐ  
28
­³ÚÐ-'ÐÐ  
28
­´ÚÐ-'ÐÐ  
29
­´ÚÐ-(ÐÐ  
29
­µÚÐ-(ÐÐ  
30
­µÚÐ-)ÐÐ  
30
­¶ÚÐ-)ÐÐ  
31
­¶ÚÐ-*ÐÐ  
31
­·ÚÐ-%ÐÐ  
32
­·ÚÐ-&ÐÐ  
32
­¸ÚÐ-*ÐÐ  
33
­¸ÚÐ-+ÐÐ  
33
­¹ÚÐ-+ÐÐ  
34
­¹ÚÐ-,ÐÐ  
34
­ºÚÐ-%ÐÐ  
35
­ºÚÐ-&ÐÐ  
35
­»ÚÐ-%ÐÐ  
36
­»ÚÐ-&ÐÐ  
36
­¼ÚÐ-,ÐÐ  
37
­¼ÚÐ--ÐÐ  
37
­½ÚÐ--ÐÐ  
38
­½ÚÐ-.ÐÐ  
38
­¾ÚÐ-.ÐÐ  
39
­¾ÚÐ-/ÐÐ  
39
­¿ÚÐ-/ÐÐ  
40
­¿ÚÐ-0ÐÐ  
40
­ÀÚÐ-0ÐÐ  
41
­ÀÚÐ-1ÐÐ  
41
­ÁÚÐ-1ÐÐ  
42
­ÁÚÐ-2ÐÐ  
42
­ÂÚÐ-2ÐÐ  
43
­ÂÚÐ-3ÐÐ  
43
­ÃÚÐ-3ÐÐ  
44
­ÃÚÐ-4ÐÐ  
44
­ÄÚÐ-4ÐÐ  
45
­ÄÚÐ-5ÐÐ  
45
­ÅÚÐ-5ÐÐ  
46
­ÅÚÐ-6ÐÐ  
46
­5ÚÐ-2
47
­5ÚÐ-3