[9a5d66]: / project / sparkplug™_mqtt_edge_and_host-stack_b9741afd / function_blocks_8ad6e219 / cmpsparkpluglog_9f245ad4 / cmpsparkpluglog_0dc3bfd6 / addlogentry_2e83b577 / 2e83b5779f204b3fbeb985c78e178904.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 5.5 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)2e83b577-9f20-4b3f-beb9-85c78e178904","ParentGuid":"(Guid)0dc3bfd6-42f4-485e-afae-258c1fe60287","Name":"(string)AddLogEntry","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":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)164","Tag":null,"Text":"(string)// check if verbose level isn't matching "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)165","Tag":null,"Text":"(string)IF NOT VerboseLevelOK( udiLogClass := udiLogClass, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)166","Tag":null,"Text":"(string)                       LogError => AddLogEntry ) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)167","Tag":null,"Text":"(string)    RETURN;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)168","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)169","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)170","Tag":null,"Text":"(string)// Check component input vs configured"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)171","Tag":null,"Text":"(string)CASE udiCmpID OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)172","Tag":null,"Text":"(string)    GC_Sparkplug.CMP_EDGE, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)173","Tag":null,"Text":"(string)    GC_Sparkplug.CMP_HOST, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)174","Tag":null,"Text":"(string)    GC_Sparkplug.CMP_CORE : "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)175","Tag":null,"Text":"(string)        AddLogEntry := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)176","Tag":null,"Text":"(string)ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)177","Tag":null,"Text":"(string)\tAddLogEntry := ERROR.CREATE_LOGGER;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)178","Tag":null,"Text":"(string)    RETURN;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)179","Tag":null,"Text":"(string)END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)180","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)181","Tag":null,"Text":"(string)// finally add the log"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)182","Tag":null,"Text":"(string)CmpLog.LogAdd2( hLogger := _hLog, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)183","Tag":null,"Text":"(string)                udiCmpID := udiCmpID, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)184","Tag":null,"Text":"(string)                udiClassID := ANY_NUM_TO_UDINT(udiLogClass), "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)185","Tag":null,"Text":"(string)                udiErrorID := udiRTS_IEC_RESULT, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)186","Tag":null,"Text":"(string)                udiInfoID := UDINT#0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)187","Tag":null,"Text":"(string)                pszInfo := sMsg);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)188","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)189","Tag":null,"Text":"(string)// return with a message\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)190","Tag":null,"Text":"(string)IF udiRTS_IEC_RESULT <> 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)191","Tag":null,"Text":"(string)\tAddLogEntry := ERROR.CREATE_MSG;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)10","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)132","Tag":null,"Text":"(string)// adds a message to the log"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3","Tag":null,"Text":"(string)METHOD AddLogEntry : ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)72","Tag":null,"Text":"(string)VAR_IN_OUT CONSTANT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)73","Tag":null,"Text":"(string)\tsMsg : T_MaxString;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)76","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)78","Tag":null,"Text":"(string)VAR_INPUT    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)74","Tag":null,"Text":"(string)    udiCmpID : UDINT(4096..8191);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)75","Tag":null,"Text":"(string)\tudiLogClass : UDINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)9","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)11","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)12","Tag":null,"Text":"(string)\tudiRTS_IEC_RESULT : SysTypes.RTS_IEC_RESULT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","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"}