[bf0acb]: / project / sparkplug™_mqtt_edge_b9741afd / function_blocks_d9bd2ff1 / fb_edge_df8b6e33 / fb_edgeinfoprovider_48a7c192 / adapterinfo_0c14aee8 / getadapterinfo_fecebd25 / fecebd25ca7c429aa25b26cf32aa7db2.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 5.1 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)fecebd25-ca7c-429a-a25b-26cf32aa7db2","ParentGuid":"(Guid)48a7c192-4473-4504-ac2b-56e2a1fecf8c","Name":"(string)GetAdapterInfo","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)0c14aee8-6c3f-426a-aa70-aeb7cfdd85e2"}]}}}}]},"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)198","Tag":null,"Text":"(string)Count := 0;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)199","Tag":null,"Text":"(string)xFirstAdapter := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)200","Tag":null,"Text":"(string)rResult := 0;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)201","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)202","Tag":null,"Text":"(string)WHILE rResult = 0 DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)203","Tag":null,"Text":"(string)    IF xFirstAdapter THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)204","Tag":null,"Text":"(string)        hAdapter := SysSockGetFirstAdapterInfo( ADR( AdapterInfo ), ADR( udiStructSize ), ADR( rResult ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)205","Tag":null,"Text":"(string)    ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)206","Tag":null,"Text":"(string)        hAdapter := SysSockGetNextAdapterInfo( hAdapter, ADR( AdapterInfo ), ADR( udiStructSize ), ADR( rResult ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)207","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)208","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)209","Tag":null,"Text":"(string)    IF rResult = 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)210","Tag":null,"Text":"(string)        // Bingo if Result = 0             "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)211","Tag":null,"Text":"(string)        Count := Count + 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)212","Tag":null,"Text":"(string)        Info[ Count ] := AdapterInfo;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)213","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)214","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)215","Tag":null,"Text":"(string)    xFirstAdapter := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)96","Tag":null,"Text":"(string)END_WHILE"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)186","Tag":null,"Text":"(string)METHOD GetAdapterInfo // Hardcoded maximum of 8 adapters"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)187","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)188","Tag":null,"Text":"(string)    Info : ARRAY[1..8] OF SOCK_ADAPTER_INFORMATION;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)189","Tag":null,"Text":"(string)    Count : UINT; // Between 0..8, if 0 then array is empty, else itterate up to this count"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)190","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)191","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)192","Tag":null,"Text":"(string)    AdapterInfo : SOCK_ADAPTER_INFORMATION;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)193","Tag":null,"Text":"(string)    hAdapter : RTS_IEC_HANDLE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)194","Tag":null,"Text":"(string)    udiStructSize : UDINT := SIZEOF( AdapterInfo );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)195","Tag":null,"Text":"(string)    rResult : RTS_IEC_RESULT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)196","Tag":null,"Text":"(string)    xFirstAdapter : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)197","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)"}}]}}}}}}},"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"}