Gunta, Начал парстиь прям так :"CraneId":13,"TagName":"CraneWeight","Description":"Р'РчС?, Р+С?С?С'С'Р?","DataType":"С'Р?Р?Р?","TagValue":" Add(BlockFind,11475685,581,175){ IncludeBlock=1 StartBlock=""CraneId":13,"TagName":"CraneX","Description":"РЎР?РчС%РчР?РёРч","DataType":"Р?РчС'С?С<","TagValue":"" EndBlock=""}" link(onSearch,16305586:doText,[]) link(Text,8256133:Var3,[(587,159)]) } Add(BlockFind,12579745,581,231) { IncludeBlock=1 StartBlock=""CraneId":14,"TagName":"CraneX","Description":"РЎР?РчС%РчР?РёРч","DataType":"Р?РчС'С?С<","TagValue":"" EndBlock=""}" link(onSearch,5005220:doText,[]) link(Text,3063453:Var3,[(587,215)]) } Add(BlockFind,12179094,581,77) { IncludeBlock=1 StartBlock=""CraneId":13,"TagName":"CraneWeight","Description":"Р'РчС?, Р+С?С?С'С'Р?","DataType":"С'Р?Р?Р?","TagValue":"" EndBlock=""}" link(onSearch,15920451:doText,[]) link(Text,11600974:Var2,[(587,65)(566,65)]) } Add(BlockFind,9052252,581,126) { IncludeBlock=1 StartBlock=""CraneId":14,"TagName":"CraneWeight","Description":"Р'РчС?, Р+С?С?С'С'Р?","DataType":"С'Р?Р?Р?","TagValue":"" EndBlock=""}" link(onSearch,13262047:doText,[]) link(Text,11600974:Var3,[(587,110)]) } Add(MMTimer,5357834,182,112) { Interval=5000 Enable=1 AutoStop=1 link(onTimer,12523063:doValue,[]) } Add(WinExec,1079901,273,98) { FileName="powershell" Mode=0 Action="runas" Point(doConsoleExec) Point(onConsoleResult) Point(onConsoleError) link(onConsoleResult,4491789:doCharset,[]) link(onConsoleError,10237317:doWork1,[(316,125)(316,177)(452,177)]) } Add(FormatStr,4324491,231,112) { DataCount=1 Mask="$wc = New-Object System.Net.WebClient\r\n$wc.UseDefaultCredentials = $true\r\n$wc.DownloadString('%1')\r\n\r\n" link(onFString,1079901:doConsoleExec,[]) link(Str1,8287956:Text,[]) } Add(Hub,14410147,427,112) { OutCount=5 link(onEvent1,12179094:doSearch,[(556,118)(556,83)]) link(onEvent2,9052252:doSearch,[(557,125)(557,132)]) link(onEvent3,11475685:doSearch,[(549,132)(549,181)]) link(onEvent4,12579745:doSearch,[(540,139)(540,237)]) link(onEvent5,10237317:doWork2,[]) } Add(Charset,4491789,329,112) { } Add(Memory,12523063,385,112) { Point(Data) link(onData,14410147:doEvent1,[]) link(Data,548483:Text,[]) } Add(GetDataEx,3063453,560,210) { Angle=3 link(Data,12523063:Value,[(391,215)]) } Add(GetDataEx,8256133,560,154) { Angle=2 link(Data,3063453:Var1,[]) } Add(GetDataEx,11600974,560,105) { Angle=2 link(Data,8256133:Var2,[]) } Add(VisualStrings,8287956,231,77) { Lines=#54:http://10.2.19.193/api/Agregates/ReadCraneInstantAsync| Width=39 } Add(DoData,6592204,469,140) { link(onEventData,16125627:doWork3,[(513,146)(513,236)(158,236)]) } Add(HubEx,10237317,448,140) { link(onEvent,6592204:doData,[]) } Add(Button,14194099,112,112) { Left=30 Top=15 link(onClick,16125627:doWork2,[]) } Add(HubEx,16125627,154,112) { link(onEvent,5357834:doTimer,[]) } Add(Label,15920451,637,77) { Left=35 Top=50 } Add(Label,13262047,637,126) { Left=35 Top=100 } Add(Label,16305586,637,175) { Left=35 Top=150 } Add(Label,5005220,637,231) { Left=35 Top=205 } Add(Memo,548483,385,63) { Left=180 Top=10 Width=660 Height=355 Strings=#2543:[{"CraneId":13,"TagName":"CraneX","Description":"РЎР?РчС%РчР?РёРч","DataType":"Р?РчС'С?С<","TagValue":"9305"},{"CraneId":13,"TagName":"CraneY","Description":"РўРчР>РчР?Р°","DataType":"Р?РчС'С?С<","TagValue":"1457"},{"CraneId":13,"TagName":"CraneZ","Description":"Р?Р?Р?С?РчР?","DataType":"Р?РчС'С?С<","TagValue":"-36"},{"CraneId":13,"TagName":"CraneWeight","Description":"Р'РчС?, Р+С?С?С'С'Р?","DataType":"С'Р?Р?Р?","TagValue":"430"},{"CraneId":13,"TagName":"CraneSignalCounter","Description":"РЎС+РчС'С+РёРє С?Р?С?Р·Рё","DataType":null,"TagValue":"5"},{"CraneId":13,"TagName":"CraneWeightStability","Description":"С?С'Р°Р+РёР>С?Р?Р?С?С'С? Р?РчС?Р°","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneLadleStability","Description":"С?С'Р°Р+РёР>С?Р?Р?С?С'С? Р?РчС?Р° РїС?Рё РїР?Р?С?РчР?Рч РєР?Р?С?Р°","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneAcpHealth","Description":"Р?Р¦Р? РєР?Р?С'С?Р?Р>Р>РчС?Р°","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CranePositionReliable","Description":"РїР?Р>Р?РРчР?РёРч РєС?Р°Р?Р°","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneLadleUp","Description":"РєР?Р?С?","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneX","Description":"РЎР?РчС%РчР?РёРч","DataType":"Р?РчС'С?С<","TagValue":"7749"},{"CraneId":14,"TagName":"CraneY","Description":"РўРчР>РчР?Р°","DataType":"Р?РчС'С?С<","TagValue":"1568"},{"CraneId":14,"TagName":"CraneZ","Description":"Р?Р?Р?С?РчР?","DataType":"Р?РчС'С?С<","TagValue":"189"},{"CraneId":14,"TagName":"CraneWeight","Description":"Р'РчС?, Р+С?С?С'С'Р?","DataType":"С'Р?Р?Р?","TagValue":"993304"},{"CraneId":14,"TagName":"CraneSignalCounter","Description":"РЎС+РчС'С+РёРє С?Р?С?Р·Рё","DataType":null,"TagValue":"15"},{"CraneId":14,"TagName":"CraneWeightStability","Description":"С?С'Р°Р+РёР>С?Р?Р?С?С'С? Р?РчС?Р°","DataType":null,"TagValue":"1"},{"CraneId":14,"TagName":"CraneLadleStability","Description":"С?С'Р°Р+РёР>С?Р?Р?С?С'С? Р?РчС?Р° РїС?Рё РїР?Р?С?РчР?Рч РєР?Р?С?Р°","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneAcpHealth","Description":"Р?Р¦Р? РєР?Р?С'С?Р?Р>Р>РчС?Р°","DataType":null,"TagValue":"1"},{"CraneId":14,"TagName":"CranePositionReliable","Description":"РїР?Р>Р?РРчР?РёРч РєС?Р°Р?Р°","DataType":null,"TagValue":"1"},{"CraneId":14,"TagName":"CraneLadleUp","Description":"РєР?Р?С?","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneMoves","Description":"","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneMoves","Description":"","DataType":null,"TagValue":"0"}]| }
код должен быть вот такой: [{"CraneId":13,"TagName":"CraneX","Description":"Смещение","DataType":"метры","TagValue":"13613"},{"CraneId":13,"TagName":"CraneY","Description":"Телега","DataType":"метры","TagValue":"870"},{"CraneId":13,"TagName":"CraneZ","Description":"Подъем","DataType":"метры","TagValue":"1365"},{"CraneId":13,"TagName":"CraneWeight","Description":"Вес, брутто","DataType":"тонн","TagValue":"-12320"},{"CraneId":13,"TagName":"CraneSignalCounter","Description":"Счетчик связи","DataType":null,"TagValue":"23"},{"CraneId":13,"TagName":"CraneWeightStability","Description":"стабильность веса","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneLadleStability","Description":"стабильность веса при подъеме ковша","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneAcpHealth","Description":"АЦП контроллера","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CranePositionReliable","Description":"положение крана","DataType":null,"TagValue":"1"},{"CraneId":13,"TagName":"CraneLadleUp","Description":"ковш","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneX","Description":"Смещение","DataType":"метры","TagValue":"8428"},{"CraneId":14,"TagName":"CraneY","Description":"Телега","DataType":"метры","TagValue":"1536"},{"CraneId":14,"TagName":"CraneZ","Description":"Подъем","DataType":"метры","TagValue":"515"},{"CraneId":14,"TagName":"CraneWeight","Description":"Вес, брутто","DataType":"тонн","TagValue":"3481"},{"CraneId":14,"TagName":"CraneSignalCounter","Description":"Счетчик связи","DataType":null,"TagValue":"74"},{"CraneId":14,"TagName":"CraneWeightStability","Description":"стабильность веса","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneLadleStability","Description":"стабильность веса при подъеме ковша","DataType":null,"TagValue":"1"},{"CraneId":14,"TagName":"CraneAcpHealth","Description":"АЦП контроллера","DataType":null,"TagValue":"1"},{"CraneId":14,"TagName":"CranePositionReliable","Description":"положение крана","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneLadleUp","Description":"ковш","DataType":null,"TagValue":"0"},{"CraneId":13,"TagName":"CraneMoves","Description":"","DataType":null,"TagValue":"0"},{"CraneId":14,"TagName":"CraneMoves","Description":"","DataType":null,"TagValue":"0"}] Редактировалось 1 раз(а), последний 2022-09-22 20:03:40
|