Diff of /branches/develop/mqttsparkplug/mqttsparkplug-example/Device_1/Plc Logic/Application2_1/Edge2/svnobj [000000] .. [r889]  Maximize  Restore

Switch to unified view

a b/branches/develop/mqttsparkplug/mqttsparkplug-example/Device_1/Plc Logic/Application2_1/Edge2/svnobj
1
Gx_l%!0…jüo#9ÀÙÁºc£System.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument    L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
2
TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagTextIF Init THEN(    AddAllMetrics();~    Scenario( TestScenario := g_example_settings.TestScenario);ô    GenerateDataPeriod := UINT_TO_TIME( Scenario.publishPeriod - 250 ); // Now we surely change the data before sending it$    Init := FALSE;END_IFbGenerateDataTimer( IN := NOT GenerateDataTimer.Q,X                   PT := GenerateDataPeriod,^                   ET => GenerateDataElapsed );6IF GenerateDataTimer.Q THEN,    GenerateEoNData();2    GenerateDeviceData();>TON_DelayStartup( IN := TRUE );’IF NOT Scenario.StillGettingClientCertificate AND TON_DelayStartup.Q THENR    EoN( ServerUrl := Scenario.ServerUrl, V         ServerPort := Scenario.ServerPort,!x         PrimaryHostID := g_example_settings.PrimaryHostID1,"€         NodeName := g_example_settings.EdgeName2,              #^         GroupId := g_example_settings.GroupID,$R         KeepAlive := Scenario.KeepAlive,%^         CleanSession := Scenario.CleanSession,&N         Username := Scenario.Username,'N         Password := Scenario.Password,(F         UseTLS := Scenario.UseTLS,)B         hCert := Scenario.hCert,*b         publishPeriod := Scenario.publishPeriod,+¸         // Uncomment this for TLS usage and please alter the initialisation of myTLSContext,æ         //         ITLSContextProvider    := ItfTLSContext, // We provide a reference to an instance of TLSContext-F         IASyncPropertyProvider :=,.X         SessionState => EoNConnectionState,/\         NumberOfDevices => NumberOfDevices );0bELSIF Scenario.StillGettingClientCertificate THEN1v    //The below method creates a Client Certificate for you2    //It generates a CSR and sends it to test.mosquitto.org to be signed3¢    Scenario.AdditionalStepsToRegisterAClientCertificateWithtest_mosquitto_org();4IF PlugIt THEN5$    ItfEoN := EoN;6ELSE7     ItfEoN := 0;8FMyDevice1( DeviceName := "Device1",9V           DeviceHealthy := Device1Healthy,:H           ItfEoNInstance := ItfEoN,;:           PluggedIntoEoN =>,<T           SessionState => MyDevice1State,=j           publishPeriod := Scenario.publishPeriod );>FMyDevice2( DeviceName := "Device2",?V           DeviceHealthy := Device2Healthy,@T           SessionState => MyDevice2State,AFMyDevice3( DeviceName := "Device3",BV           DeviceHealthy := Device3Healthy,CT           SessionState => MyDevice3State,DInterfaceEL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}FPROGRAM Edge2GVARH0    Init : BOOL := TRUE;I8    EoN : Sparkplug.FB_Edge;Jz    EoNConnectionState : Sparkplug.SparkplugSessionStateType;K8    NumberOfDevices : UDINT;LH    MyDevice1 : Sparkplug.FB_Device;MD    Device1Healthy : BOOL := TRUE;NH    MyDevice2 : Sparkplug.FB_Device;OD    Device2Healthy : BOOL := TRUE;PH    MyDevice3 : Sparkplug.FB_Device;QD    Device3Healthy : BOOL := TRUE;Rr    MyDevice1State : Sparkplug.SparkplugSessionStateType;Sr    MyDevice2State : Sparkplug.SparkplugSessionStateType;Tr    MyDevice3State : Sparkplug.SparkplugSessionStateType;U4    PlugIt : BOOL := TRUE;Vh    ItfEoN : Sparkplug.ISparkplugDeviceProtocol;    W<    GenerateDataPeriod : TIME;X>    GenerateDataElapsed : TIME;Y8    GenerateDataTimer : TON;Z2    Str : ChangingString;[J    TimeStamp : Sparkplug.T_DateTime;\X    TON_DelayStartup : TON := (PT := T#5S); ]END_VAR^"UniqueIdGenerator_5223`POULevelaL{8e575c5b-1d37-49c6-941b-5c0ec7874787}bStandardc ChildObjectGuidsd8System.Collections.ArrayListe,AddAttributeSubsequentfboolÐÐ-ÐÐ   E
3
CÐÐ
­ÚÐ-ÐÐ
­+ÚÐ-ÐÐ
­,ÚÐ-ÐÐ
­-ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­©ÚÐ-ÐÐ
­ªÚÐ-ÐÐ
­«ÚÐ-ÐÐ
­¬ÚÐ-ÐÐ
­­ÚÐ-ÐÐ
­®ÚÐ-ÐÐ
­¯ÚÐ-ÐÐ
­°ÚÐ-ÐÐ
­±ÚÐ-ÐÐ
­²ÚÐ-ÐÐ
­³ÚÐ-ÐÐ
­´ÚÐ-ÐÐ
­RÚÐ-ÐÐ
­SÚÐ-ÐÐ
­·ÚÐ- ÐÐ
­ÚÐ-!ÐÐ
­ýÚÐ-"ÐÐ
­úÚÐ-#ÐÐ
­BÚÐ-$ÐÐ
­CÚÐ-%ÐÐ
­DÚÐ-&ÐÐ
­EÚÐ-'ÐÐ
­FÚÐ-(ÐÐ
­GÚÐ-)ÐÐ
­HÚÐ-*ÐÐ
­IÚÐ-+ÐÐ
­JÚÐ-,ÐÐ
­KÚÐ--ÐÐ
­LÚÐ-.ÐÐ
­MÚÐ-/ÐÐ
­NÚÐ-0ÐÐ
­OÚÐ-1ÐÐ
­PÚÐ-2ÐÐ
­QÚÐ-3ÐÐ
­ËÚÐ-ÐÐ
­ÌÚÐ-ÐÐ
­ÍÚÐ-4ÐÐ
­ÎÚÐ-5ÐÐ
­ÏÚÐ-6ÐÐ
­ÐÚÐ-7ÐÐ
­ÑÚÐ-ÐÐ
­TÚÐ-ÐÐ
­UÚÐ-8ÐÐ
­VÚÐ-9ÐÐ
­WÚÐ-:ÐÐ
­XÚÐ-;ÐÐ
­YÚÐ-<ÐÐ
­ZÚÐ-=ÐÐ
­[ÚÐ-ÐÐ
­\ÚÐ->ÐÐ
­]ÚÐ-?ÐÐ
­^ÚÐ-:ÐÐ
­_ÚÐ-;ÐÐ
­`ÚÐ-@ÐÐ
­aÚÐ-=ÐÐ
­bÚÐ-ÐÐ
­cÚÐ-AÐÐ
­dÚÐ-BÐÐ
­eÚÐ-:ÐÐ
­fÚÐ-;ÐÐ
­gÚÐ-CÐÐ
­‡ÚÐ-=ÐDEÐ E
4
ÐÐ
­`ÚÐ-FÐÐ
­aÚÐ-GÐÐ
­.ÚÐ-HÐÐ
­/ÚÐ-IÐÐ
­0ÚÐ-JÐÐ
­1ÚÐ-KÐÐ
­2ÚÐ-LÐÐ
­3ÚÐ-MÐÐ
­4ÚÐ-NÐÐ
­5ÚÐ-OÐÐ
­6ÚÐ-PÐÐ
­7ÚÐ-QÐÐ
­8ÚÐ-RÐÐ
­9ÚÐ-SÐÐ
­:ÚÐ-TÐÐ
­;ÚÐ-UÐÐ
­<ÚÐ-VÐÐ
­=ÚÐ-WÐÐ
­>ÚÐ-XÐÐ
­?ÚÐ-YÐÐ
­@ÚÐ-ZÐÐ
­AÚÐ-[ÐÐ
­¥ÚÐ-\ÐÐ
­ÚÐ-]Ð^-_Ð`a-bcdÐef­