Diff of /project/sparkplug™_mqtt_edge_b9741afd/function_blocks_d9bd2ff1/fb_device_309d3c13/fb_device_98658e3f/ispluggedintoeon_799a892a/799a892a536d4f1b947e3af289725478.object [a48499] .. [ac6d98]  Maximize  Restore

Switch to side-by-side view

--- a/project/sparkplug™_mqtt_edge_b9741afd/function_blocks_d9bd2ff1/fb_device_309d3c13/fb_device_98658e3f/ispluggedintoeon_799a892a/799a892a536d4f1b947e3af289725478.object
+++ b/project/sparkplug™_mqtt_edge_b9741afd/function_blocks_d9bd2ff1/fb_device_309d3c13/fb_device_98658e3f/ispluggedintoeon_799a892a/799a892a536d4f1b947e3af289725478.object
@@ -1 +1 @@
-{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)799a892a-536d-4f1b-947e-3af289725478","ParentGuid":"(Guid)98658e3f-2022-4201-ad82-e23b1cb5aaf1","Name":"(string)IsPluggedIntoEoN","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"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}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)IsPluggedIntoEoN := FALSE;\n\n// the current and prev interfaces differ in value, so something happend\nIF ItfEdge <> ItfPrevEdge THEN\n    // we were allready connected, so we deregister that connection\n    IF ItfPrevEdge <> 0 THEN\n        ItfPrevEdge.DeregisterDevice(itfDevice := THIS^);\n        ItfPrevEdge := 0;\n    END_IF\n\n    // apperently we are newly connected, so we register that connection and copy it into our previous connection\n    IF ItfEdge <> 0 THEN\n        ItfEdge.RegisterDevice(itfDevice := THIS^);\n        // prev and current are now equal\n        ItfPrevEdge := ItfEdge;\n        // we are connected\n        IsPluggedIntoEoN := TRUE;\n    END_IF\nELSIF ItfPrevEdge <> 0 THEN\n    // we are connected\n    IsPluggedIntoEoN := TRUE;\nELSE\n    // we are NOT connected\n    ;\nEND_IF\n\n// Make the Instance of the EoN available\nIF ItfEdge <> 0 THEN\n    pEoN := ItfEdge.GetInstance();\nELSE\n    pEoN := 0;\nEND_IF","LineInfoPersistence":"(string)799a892a-536d-4f1b-947e-3af289725478_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string){attribute 'hide'}\nMETHOD IsPluggedIntoEoN : BOOL\nVAR_OUTPUT\n    pEoN : POINTER TO FB_Edge;\nEND_VAR\nVAR_INST\n    ItfPrevEdge : IEdge;\nEND_VAR","LineInfoPersistence":"(string)799a892a-536d-4f1b-947e-3af289725478_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}
\ No newline at end of file
+{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)799a892a-536d-4f1b-947e-3af289725478","ParentGuid":"(Guid)98658e3f-2022-4201-ad82-e23b1cb5aaf1","Name":"(string)IsPluggedIntoEoN","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"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}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)IsPluggedIntoEoN := FALSE;\n\n// the current and prev interfaces differ in value, so something happend\nIF ItfEdge <> ItfPrevEdge THEN\n    // we were allready connected, so we deregister that connection\n    IF ItfPrevEdge <> 0 THEN\n        ItfPrevEdge.DeregisterDevice( itfDevice := THIS^ );\n        ItfPrevEdge := 0;\n    END_IF\n\n    // apperently we are newly connected, so we register that connection and copy it into our previous connection\n    IF ItfEdge <> 0 THEN\n        ItfEdge.RegisterDevice( itfDevice := THIS^ );\n        // prev and current are now equal\n        ItfPrevEdge := ItfEdge;\n        // we are connected\n        IsPluggedIntoEoN := TRUE;\n    END_IF\nELSIF ItfPrevEdge <> 0 THEN\n    // we are connected\n    IsPluggedIntoEoN := TRUE;\nELSE\n    // we are NOT connected\n    ;\nEND_IF\n\n// Make the Instance of the EoN available\nIF ItfEdge <> 0 THEN\n    pEoN := ItfEdge.GetInstance();\nELSE\n    pEoN := 0;\nEND_IF","LineInfoPersistence":"(string)799a892a-536d-4f1b-947e-3af289725478_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string){attribute 'hide'}\nMETHOD IsPluggedIntoEoN : BOOL\nVAR_OUTPUT\n    pEoN : POINTER TO FB_Edge;\nEND_VAR\nVAR_INST\n    ItfPrevEdge : IEdge;\nEND_VAR","LineInfoPersistence":"(string)799a892a-536d-4f1b-947e-3af289725478_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}
\ No newline at end of file