У MathParse в свойствах, ResultType-Integer везде не получилось поставить так как перестает работать с дробными вот здесь: Add(Label,13329120,147,791) { Left=95 Top=240 Width=60 Height=20 Color=16764057 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="9.5" AutoSize=1 Alignment=2 } Add(Label,415275,147,672) { Left=35 Top=240 Width=60 Height=20 Color=16764057 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="9" AutoSize=1 Alignment=2 } Add(Label,4058693,140,644) { Left=35 Top=190 Width=60 Height=20 Color=10987519 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="10" AutoSize=1 Alignment=2 } Add(Label,16297211,140,756) { Left=95 Top=190 Width=60 Height=20 Color=10987519 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="10" AutoSize=1 Alignment=2 } Add(Label,11081099,280,714) { Left=55 Top=216 Width=40 Height=19 Color=12644534 Font=[Calibri,10,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Transparent=0 Caption="10" AutoSize=1 Alignment=2 } Add(UpDown,11443055,91,714) { Left=34 Top=210 Height=30 Ctl3D=0 Max=100 Position=50 link(onPosition,11400181:doCalc,[]) } Add(Label,12709963,280,833) { Left=115 Top=216 Width=40 Height=19 Color=12644534 Font=[Calibri,10,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Transparent=0 Caption="10" AutoSize=1 Alignment=2 } Add(UpDown,11058569,91,833) { Left=95 Top=210 Height=30 Ctl3D=0 Max=100 Position=50 link(onPosition,13599546:doCalc,[]) } Add(GlobalVar,7817347,280,763) { @Color=65450 Name="C Ц" } Add(Hub,10730299,238,714) { link(onEvent1,11081099:doText,[]) link(onEvent2,7817347:doValue,[(262,727)(262,769)]) } Add(MathParse,11400181,133,714) { DataCount=3 MathStr="((%2 - %3)/100)*%1+%3" ResultType=0 link(onResult,10951781:doConvert,[]) link(X2,4058693:Caption,[]) link(X3,415275:Caption,[]) } Add(GlobalVar,5998413,273,875) { @Color=16776960 Name="Mn Ц" } Add(Hub,8162950,238,833) { link(onEvent1,12709963:doText,[]) link(onEvent2,5998413:doValue,[(266,846)(266,881)]) } Add(MathParse,13599546,133,833) { DataCount=3 MathStr="((%2 - %3)/100)*%1+%3" ResultType=0 link(onResult,11604620:doConvert,[]) link(X2,16297211:Caption,[]) link(X3,13329120:Caption,[]) } Add(ConvertorEx,10951781,189,714) { Mode=15 Width=5 Decimals=3 link(onResult,10730299:doEvent1,[]) } Add(ConvertorEx,11604620,189,833) { Mode=15 Width=5 Decimals=3 link(onResult,8162950:doEvent1,[]) } Add(Hub,13971466,63,714) { link(onEvent1,11443055:doPosition,[]) link(onEvent2,11058569:doPosition,[(84,727)(84,839)]) } Add(DoData,9171354,21,714) { Data=Integer(50) link(onEventData,13971466:doEvent1,[]) }
Вот что уже получается Не смог понять как красить переменные. Add(Label,3454046,1666,84) { Left=54 Top=210 Width=40 Height=30 Color=12644534 Font=[Calibri,10,1,0,204] Ctl3D=0 WinStyle=1 Name="нз 13" Caption="" AutoSize=1 Alignment=2 } Add(Label,2598496,1659,77) { Left=115 Top=210 Width=40 Height=30 Color=12644534 Font=[Calibri,10,1,0,204] WinStyle=1 Name="нз 13" Caption="" AutoSize=1 Alignment=2 } Add(MainForm,2953706,7,42) { Width=551 Height=399 Color=-16777194 Position=1 link(onCreate,6895129:doEvent1,[]) } Add(CheckBox,16297602,245,406) { Left=2 Top=48 Width=105 Height=28 Color=65535 Font=[Arial,12,1,0,204] Ctl3D=0 WinStyle=3 Caption="Кокс" Point(doColor) Point(doFont) link(onCheck,7381917:doEvent1,[]) } Add(CheckBox,4027255,252,448) { Left=2 Top=76 Width=105 Height=28 Color=65535 Font=[Arial,12,1,0,204] Ctl3D=0 WinStyle=3 Caption="FeMn" Point(doColor) Point(doFont) link(onCheck,1083426:doEvent1,[]) } Add(MultiElement,7853204,84,441) { @Hint=#6:Формат| link(onEvent1,14227662:Cable,[(142,447)(142,377)]) link(onEvent2,1001967:Cable,[(155,454)(155,419)]) link(onEvent3,15553298:Cable,[]) } BEGIN_SDK Add(EditMulti,3338469,28,49) { EventCount=3 WorkCount=1 Width=643 Height=690 link(doWork1,9992282:doSplit,[(46,55)(46,62)]) } Add(Font,4691505,182,140) { Font=[Arial,11,1,65280,204] link(onFont,1376853:doWork2,[]) } Add(Font,15417341,182,98) { Font=[Arial,11,1,0,204] link(onFont,1376853:doWork1,[(228,104)]) } Add(StrList,5442973,154,189) { Strings=#5:65535|8:10789024| Point(doGetString) Point(onGetString) Point(String) link(onGetString,4305358:doEvent,[(230,202)(230,237)]) } Add(IndexToChanel,13242610,133,98) { link(onEvent1,15417341:doFont,[]) link(onEvent2,4691505:doFont,[(173,111)(173,146)]) } Add(Hub,8646046,105,133) { link(onEvent1,13242610:doEvent,[(126,139)(126,104)]) link(onEvent2,5442973:doGetString,[(137,146)(137,237)]) } Add(MultiStrData,9992282,56,56) { link(onPart1,777246:doValue,[]) link(onPart2,8646046:doEvent1,[(95,69)(95,139)]) } Add(Memory,777246,280,56) { } Add(IndexToChanel,10506450,301,140) { Count=3 Point(Data) Point(Index) link(onEvent1,10633978:Wire2,[(433,146)(433,174)]) link(onEvent2,3683880:Wire2,[(433,153)(433,216)]) link(onEvent3,13779428:Wire2,[(433,160)(433,265)]) link(Data,14486282:Value,[(307,124)(279,124)(279,180)(244,180)]) link(Index,13624829:Var3,[(314,110)]) } Add(IndexToChanel,4305358,273,231) { Count=3 Point(Data) Point(Index) link(onEvent1,10633978:Wire1,[(419,237)(419,167)]) link(onEvent2,3683880:Wire1,[(419,244)(419,209)]) link(onEvent3,13779428:Wire1,[(419,251)(419,258)]) link(Data,5442973:String,[(279,184)(213,184)(213,250)(181,250)]) link(Index,13624829:Var2,[]) } Add(GetDataEx,13624829,280,105) { link(Data,777246:Value,[]) } Add(Memory,14486282,238,140) { link(onData,10506450:doEvent,[]) } Add(HubEx,1376853,224,140) { link(onEvent,14486282:doValue,[]) } Add(CableWork,10633978,532,161) { link(Cable,3338469:onEvent1,[(608,167)(608,55)]) } Add(CableWork,3683880,532,203) { link(Cable,3338469:onEvent2,[(608,209)(608,62)]) } Add(CableWork,13779428,532,252) { link(Cable,3338469:onEvent3,[(608,258)(608,69)]) } END_SDK Add(CableEvent,14227662,168,371) { link(Wire1,9595767:doEvent1,[]) link(Wire2,3462522:doEvent1,[(189,384)(189,391)]) } Add(CableEvent,1001967,168,413) { link(Wire1,493886:doEvent1,[]) link(Wire2,5027377:doEvent1,[(189,426)(189,433)]) } Add(CableEvent,15553298,168,455) { link(Wire1,1918681:doEvent1,[]) link(Wire2,3328549:doEvent1,[(189,468)(189,475)]) } Add(StrCat,5224041,336,364) { Str1="0;" link(onStrCat,14628401:doWork2,[]) } Add(StrCat,1947115,343,406) { Str1="1;" link(onStrCat,9083665:doWork2,[]) } Add(StrCat,14537579,350,448) { Str1="2;" link(onStrCat,13913192:doWork2,[]) } Add(HubEx,14628401,378,364) { Angle=3 link(onEvent,7853204:doWork1,[(382,350)(72,350)(72,447)]) } Add(HubEx,9083665,385,406) { Angle=3 link(onEvent,14628401:doWork3,[(389,391)(382,391)]) } Add(HubEx,13913192,392,448) { Angle=3 link(onEvent,9083665:doWork3,[(396,433)(389,433)]) } Add(Edit,5020035,133,1106) { Left=142 Top=20 Width=70 Height=28 Color=16237011 Font=[Arial,12,1,0,204] WinStyle=4 Text="98" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,12660360:doValue,[]) } Add(Edit,4184594,133,1148) { Left=142 Top=48 Width=70 Height=28 Color=16237011 Font=[Arial,12,1,0,204] WinStyle=4 Text="90" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,293551:doValue,[]) } Add(Edit,12951390,133,1190) { Left=142 Top=76 Width=70 Height=28 Color=16237011 Font=[Arial,12,1,0,204] WinStyle=4 Text="78" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,3372561:doValue,[]) } Add(Edit,13766560,259,1120) { Left=212 Top=20 Width=70 Height=28 Color=16237011 Font=[Arial,12,1,0,204] WinStyle=4 Text="98" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,7615906:doValue,[]) } Add(Edit,6549760,259,1162) { Left=212 Top=48 Width=70 Height=28 Color=16237011 Font=[Arial,12,1,0,204] WinStyle=4 Text="90" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,10812183:doValue,[]) } Add(Edit,5598161,259,1204) { Left=212 Top=76 Width=70 Height=28 Color=16237011 Font=[Arial,12,1,0,204] WinStyle=4 Text="100" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,1737583:doValue,[]) } Add(Hub,3462522,196,385) { link(onEvent1,2117759:doFont,[(224,391)(224,384)]) } Add(Hub,9595767,196,371) { link(onEvent1,2117759:doColor,[]) } Add(Hub,5027377,196,427) { link(onEvent1,16297602:doFont,[(224,433)(224,426)]) } Add(Hub,493886,196,413) { link(onEvent1,16297602:doColor,[]) } Add(Hub,3328549,196,469) { link(onEvent1,4027255:doFont,[(224,475)(224,468)]) } Add(Hub,1918681,196,455) { link(onEvent1,4027255:doColor,[]) } Add(UpDown,5371857,259,56) { Left=287 Top=20 Width=26 Height=290 Ctl3D=0 Max=200 Min=1 Position=100 link(onPosition,14614441:doText,[(306,62)(306,43)(247,43)(247,111)]) } Add(DoData,14249546,168,56) { Data=Integer(100) link(onEventData,115852:doWork2,[]) } Add(Edit,14614441,259,105) { Left=369 Top=319 Width=105 Height=40 Font=[Arial,24,1,0,204] WinStyle=3 Text="" Alignment=2 DataType=2 MaxLenField=3 ClearAfterEnter=1 link(onChange,15177914:In,[]) link(onEnter,115852:doWork3,[(302,118)(302,97)(221,97)]) link(Str,5371857:Position,[]) } Add(Hub,7210031,693,420) { InCount=4 OutCount=6 link(onEvent1,15807324:doData,[(726,426)(726,223)(246,223)(246,167)]) link(onEvent2,3312741:doCompare,[]) link(onEvent3,14543411:doCompare,[(749,440)(749,461)]) link(onEvent4,8882451:doCompare,[(719,447)(719,538)]) link(onEvent5,1053411:doWork1,[(1173,454)]) } Add(Hub,12740869,630,462) { OutCount=4 link(onEvent1,1053411:doWork3,[(1173,468)]) link(onEvent2,9116316:doWork3,[(1551,475)]) link(onEvent3,3735772:doWork2,[(901,482)(901,552)]) link(onEvent4,7210031:doEvent3,[(668,489)(668,440)]) } Add(MultiSetParam,5690489,1330,476) { Parameters=#9:Эл.Стр-ка|4:Кокс|4:FeMn|0:| Count=1 OutType=1 link(onSet1,5511638:doValue,[]) } Add(GetIndexData,2855857,1428,420) { Count=3 link(Data1,9078381:Var,[]) link(Data2,11326893:Var,[]) link(Data3,11011836:Var,[]) } Add(For,12362648,1246,469) { End=10 link(onEvent,6486535:doEvent1,[]) } Add(Hub,6486535,1302,469) { link(onEvent1,2855857:doIndex,[(1325,475)(1325,426)]) link(onEvent2,5690489:doSet,[]) } Add(HubEx,1053411,1169,469) { link(onEvent,12362648:doFor,[]) } Add(LineBreakEx,3238583,413,497) { Type=2 } Add(LineBreakEx,15170414,1680,462) { Type=3 link(_Data,4246749:Var3,[(1686,425)]) } Add(MST_RowAction,4991091,469,525) { MSTControl="tabl" } Add(MST_Clear,2539529,1596,371) { MSTControl="tabl" } Add(MT_MTArrayRW,5050759,413,525) { link(onRead,4991091:doRowAction,[]) link(Array,3238583:getVar,[]) link(Index,2408786:Index,[(426,514)(455,514)(455,569)(307,569)]) } Add(If_else,5621254,350,525) { Op2=Integer(1) link(onTrue,5050759:doRead,[]) } Add(MT_AddData,15248216,1421,476) { link(onAdd,3355436:doAdd,[]) link(Data1,5511638:Value,[(1427,465)(1412,465)(1412,520)(1378,520)]) link(Data2,2855857:Var,[]) } Add(MT_MTArray,6247255,1638,364) { } Add(MT_MTArrayRW,3355436,1638,462) { link(Array,4246749:Var2,[]) link(Index,12362648:Position,[(1651,450)(1599,450)(1599,528)(1252,528)]) } Add(GetDataEx,4246749,1638,420) { link(Data,6247255:Array,[]) } Add(Memory,5511638,1372,476) { link(onData,15248216:doAdd,[]) } Add(Hub,9579955,1526,364) { OutCount=5 link(onEvent1,6247255:doClear,[]) link(onEvent2,9116316:doWork2,[]) link(onEvent3,1053411:doWork2,[(1557,384)(1557,534)(1183,534)(1183,475)]) link(onEvent4,3735772:doWork1,[(1573,391)(1573,541)(1271,541)]) link(onEvent5,5198787:doEvent1,[(1579,398)(1579,2)(415,2)(415,111)]) } Add(HubEx,3735772,1267,546) { Angle=1 link(onEvent,5755906:doAdd,[(1271,598)(219,598)(219,531)]) } Add(HubEx,9116316,1547,371) { link(onEvent,2539529:doClear,[]) } Add(ChanelToIndex,5120309,497,406) { Count=3 link(onIndex,12740869:doEvent1,[(586,412)(586,468)]) } Add(MT_Enum,2408786,294,525) { link(onItem,5621254:doCompare,[]) } Add(MT_AddData,5755906,245,525) { Count=3 link(onAdd,2408786:doEnum,[]) link(Data1,9603529:Var2,[(251,461)(244,461)]) link(Data2,13468541:Var2,[(258,509)(251,509)]) link(Data3,585070:Var2,[(265,503)(258,503)]) } Add(Hub,7381917,294,406) { link(onEvent1,1947115:doStrCat,[]) link(onEvent2,5120309:doWork2,[]) } Add(Hub,9225181,287,364) { link(onEvent1,5224041:doStrCat,[]) link(onEvent2,5120309:doWork1,[(413,377)(413,412)]) } Add(Hub,1083426,301,448) { link(onEvent1,14537579:doStrCat,[]) link(onEvent2,5120309:doWork3,[(420,461)(420,426)]) } Add(MTStrTbl,13946322,518,525) { Left=313 Top=20 Width=225 Height=290 Color=0 Font=[Arial,14,1,65280,204] WinStyle=1 Name="tabl" Columns=#12:Материал=120|12:кг./метр=100| ColumnWidth=90 Style=4 ChangeWidth=1 } Add(HubEx,115852,217,56) { link(onEvent,5371857:doPosition,[]) } Add(Label,13320999,1652,70) { Left=35 Top=165 Width=60 Height=25 Color=65535 Font=[Calibri,12,1,0,204] Ctl3D=0 WinStyle=3 Name="нз 13" Caption="C" AutoSize=1 Alignment=2 } Add(Label,9024548,1645,63) { Left=94 Top=165 Width=60 Height=25 Color=65535 Font=[Calibri,12,1,0,204] Ctl3D=0 WinStyle=3 Name="нз 13" Caption="Mn" AutoSize=1 Alignment=2 } Add(Label,6007472,1638,56) { Left=10 Top=190 Width=25 Height=20 Color=10987519 Font=[Calibri,9,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="max" AutoSize=1 Alignment=2 } Add(Label,9637448,1631,49) { Left=11 Top=240 Width=25 Height=20 Color=16764057 Font=[Calibri,9,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="min" AutoSize=1 Alignment=2 } Add(GlobalVar,682212,364,161) { Name="ст1" link(onValue,10287995:doEvent1,[]) } Add(DoData,15807324,259,161) { Data=Integer(100) link(onEventData,2189399:doOperation,[]) link(Data,14614441:Text,[]) } Add(Math,2189399,315,161) { OpType=2 Op2=1000 link(onResult,682212:doValue,[]) } Add(MathParse,9740776,1106,280) { DataCount=6 MathStr="(%3-(%1/%6*%2))*%6/(%4*(%5/100)-%3)" ResultType=0 link(onResult,11730515:doValue,[]) link(X1,11773117:Var,[]) link(X2,8190836:Var,[(1119,234)(1112,234)]) link(X3,7488355:Var,[(1126,245)(1112,245)]) link(X4,11574272:Var,[(1133,256)(1112,256)]) link(X5,646101:Var,[(1140,266)(1112,266)]) link(X6,11149645:Var,[(1147,276)(1112,276)]) } Add(GlobalVar,11773117,1106,154) { Name="ст1" } Add(GlobalVar,8190836,1106,175) { Name="C1" } Add(GlobalVar,7488355,1106,196) { Name="C Ц" } Add(GlobalVar,11574272,1106,217) { Name="кокос С" } Add(GlobalVar,646101,1106,238) { Name="коккс У" } Add(GlobalVar,11149645,1106,259) { Name="кокс ст2" } Add(Hub,5198787,420,105) { OutCount=3 link(onEvent1,10165587:doCalc,[(466,111)(466,69)]) link(onEvent2,1544459:doCalc,[(466,118)(466,153)]) link(onEvent3,5140318:doCalc,[(466,125)(466,251)]) } Add(GlobalVar,10406390,539,63) { Name="стр-ка ст2" } Add(Label,12685144,1624,42) { Left=35 Top=275 Width=60 Height=25 Color=65535 Font=[Calibri,12,1,0,204] Ctl3D=0 WinStyle=3 Name="нз 13" Caption="C" AutoSize=1 Alignment=2 } Add(Label,14524777,1617,35) { Left=95 Top=275 Width=60 Height=25 Color=65535 Font=[Calibri,12,1,0,204] Ctl3D=0 WinStyle=3 Name="нз 13" Caption="Mn" AutoSize=1 Alignment=2 } Add(Label,6330024,1610,28) { Left=-1 Top=300 Width=36 Height=20 Color=9486586 Font=[Calibri,9,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="проба" AutoSize=1 Alignment=2 } Add(GlobalVar,8439641,203,1015) { Name="C1" link(onValue,11715060:doEvent3,[(338,1021)(338,832)]) } Add(DoData,14468035,147,1015) { link(onEventData,12344338:doWork2,[]) link(Data,14875724:Text,[]) } Add(Hub,6895129,56,56) { OutCount=5 link(onEvent1,14249546:doData,[]) link(onEvent2,13966058:doEvent1,[(79,69)(79,123)(2,123)(2,1014)]) } Add(MathParse,7771489,1183,238) { DataCount=6 MathStr="(%3-(%1/%6*%2))*%6/(%4*(%5/100)-%3)" ResultType=0 link(onResult,9802522:doValue,[]) link(X1,14765544:Var,[]) link(X2,6065423:Var,[(1196,192)(1189,192)]) link(X3,11865958:Var,[(1203,203)(1189,203)]) link(X4,3442056:Var,[(1210,214)(1189,214)]) link(X5,4162297:Var,[(1217,224)(1189,224)]) link(X6,15623867:Var,[(1224,234)(1189,234)]) } Add(GlobalVar,14765544,1183,112) { Name="ст1" } Add(GlobalVar,6065423,1183,133) { Name="C1" } Add(GlobalVar,11865958,1183,154) { Name="C Ц" } Add(GlobalVar,15623867,1183,217) { Name="стр-ка ст2" } Add(GlobalVar,293551,175,1148) { Name="кокос С" Data=Integer(90) link(onValue,11715060:doEvent6,[(381,1154)(381,853)]) } Add(GlobalVar,10812183,301,1162) { Name="коккс У" Data=Integer(90) link(onValue,11715060:doEvent9,[(381,1168)(381,874)]) } Add(GlobalVar,12660360,175,1106) { Name="стр-ка С" Data=Integer(98) link(onValue,11715060:doEvent5,[(381,1112)(381,846)]) } Add(GlobalVar,7615906,301,1120) { Name="стр-ка У" Data=Integer(98) link(onValue,11715060:doEvent8,[(381,1126)(381,867)]) } Add(GlobalVar,3442056,1183,175) { Name="стр-ка С" } Add(GlobalVar,4162297,1183,196) { Name="стр-ка У" } Add(GlobalVar,11326893,1435,280) { Name="кокс кг" link(onValue,11674361:doWork2,[]) } Add(GlobalVar,9078381,1428,238) { Name="стр-ка кг" link(onValue,11674361:doWork1,[(1509,244)]) } Add(GlobalVar,10120483,504,14) { Name="кокс кг" } Add(GlobalVar,4239584,504,98) { Name="стр-ка кг" } Add(GlobalVar,9296197,539,147) { Name="кокс ст2" } Add(HubEx,11674361,1505,280) { Angle=1 link(onEvent,6156699:doWork1,[]) } Add(If_else,3312741,728,427) { Op2=Integer(1) link(onTrue,1766645:doTimer,[(874,433)(874,244)]) link(onFalse,9802522:doClear,[(1285,440)(1285,251)]) link(Op1,9603529:Var3,[(734,404)]) } Add(Memory,9802522,1295,238) { Default=Integer(0) link(onData,9078381:doValue,[]) } Add(Memory,11730515,1232,280) { Default=Integer(0) link(onData,11326893:doValue,[]) } Add(If_else,14543411,784,455) { Op2=Integer(1) link(onTrue,11149677:doTimer,[(902,461)(902,286)]) link(onFalse,11730515:doClear,[(1224,468)(1224,293)]) link(Op1,13468541:Var3,[(790,446)]) } Add(CheckBox,2117759,238,364) { Left=2 Top=20 Width=105 Height=28 Color=65535 Font=[Arial,12,1,0,204] Ctl3D=0 WinStyle=3 Caption="Эл.Стр-ка" Point(doColor) Point(doFont) link(onCheck,9225181:doEvent1,[]) } Add(GetDataEx,9603529,238,399) { link(Data,2117759:Checked,[]) } Add(GetDataEx,13468541,245,441) { link(Data,16297602:Checked,[]) } Add(Label,13988717,1603,21) { Left=107 Top=20 Width=35 Height=28 Color=65535 Font=[Arial,12,1,0,204] Ctl3D=0 WinStyle=3 Name="C" Caption="C" AutoSize=1 Alignment=2 Point(doColor) Point(doFont) } Add(Label,16373010,1596,14) { Left=107 Top=48 Width=35 Height=28 Color=65535 Font=[Arial,12,1,0,204] Ctl3D=0 WinStyle=3 Name="C" Caption="C" AutoSize=1 Alignment=2 Point(doColor) Point(doFont) } Add(Label,6840745,1589,7) { Left=107 Top=76 Width=35 Height=28 Color=65535 Font=[Arial,12,1,0,204] Ctl3D=0 WinStyle=3 Name="C" Caption="Mn" AutoSize=1 Alignment=2 Point(doColor) Point(doFont) } Add(GlobalVar,3372561,175,1190) { Name="FeMn С" Data=Integer(78) link(onValue,11715060:doEvent7,[(381,1196)(381,860)]) } Add(GlobalVar,1737583,301,1204) { Name="FeMn У" Data=Integer(100) link(onValue,11715060:doEvent10,[(381,1210)(381,881)]) } Add(MathParse,3871530,1029,322) { DataCount=6 MathStr="(%3-(%1/%6*%2))*%6/(%4*(%5/100)-%3)" ResultType=0 link(onResult,2181564:doValue,[]) link(X1,11924034:Var,[]) link(X2,7368704:Var,[(1042,276)(1035,276)]) link(X3,4269061:Var,[(1049,287)(1035,287)]) link(X4,11752645:Var,[(1056,298)(1035,298)]) link(X5,9955313:Var,[(1063,308)(1035,308)]) link(X6,16182751:Var,[(1070,318)(1035,318)]) } Add(GlobalVar,11924034,1029,196) { Name="ст1" } Add(GlobalVar,7368704,1029,217) { Name="Mn1" } Add(If_else,8882451,840,532) { Op2=Integer(1) link(onTrue,7150979:doTimer,[(930,538)(930,328)]) link(onFalse,2181564:doClear,[(1145,545)(1145,335)]) link(Op1,585070:Var3,[(846,498)(485,498)(485,488)]) } Add(Memory,2181564,1155,322) { Default=Integer(0) link(onData,11011836:doValue,[]) } Add(GlobalVar,11011836,1442,322) { Name="FeMn кг" link(onValue,6156699:doWork2,[]) } Add(GlobalVar,9955313,1029,280) { Name="FeMn У" } Add(GlobalVar,11752645,1029,259) { Name="FeMn С" } Add(HubEx,6156699,1505,322) { Angle=1 link(onEvent,9579955:doEvent1,[(1509,370)]) } Add(GlobalVar,4669771,511,35) { Name="FeMn кг" } Add(MathParse,10165587,497,63) { DataCount=3 MathStr="%1 + %2+%3" ResultType=0 link(onResult,10406390:doValue,[]) link(X1,11888295:Value,[(503,58)(461,58)]) link(X2,10120483:Var,[]) link(X3,4669771:Var,[]) } Add(MathParse,1544459,497,147) { DataCount=3 MathStr="%1 + %2+%3" ResultType=0 link(onResult,9296197:doValue,[]) link(X1,2471154:Value,[(503,139)(461,139)]) link(X2,4239584:Var,[]) link(X3,16614572:Var,[]) } Add(GlobalVar,16614572,511,119) { Name="FeMn кг" } Add(GlobalVar,11831076,497,196) { Name="кокс кг" } Add(MathParse,5140318,497,245) { DataCount=3 MathStr="%1 + %2+%3" ResultType=0 link(onResult,6439411:doValue,[]) link(X1,7256806:Value,[(503,237)(461,237)]) link(X2,11831076:Var,[(510,231)(503,231)]) link(X3,2143183:Var,[]) } Add(GlobalVar,6439411,539,245) { Name="FeMn ст2" } Add(GlobalVar,2143183,511,217) { Name="стр-ка кг" } Add(GlobalVar,16182751,1029,301) { Name="FeMn ст2" } Add(GlobalVar,4269061,1029,238) { Name="Mn Ц" } Add(GlobalVar,1369573,329,1022) { Name="Mn1" link(onValue,11715060:doEvent4,[(381,1028)(381,839)]) } Add(DoData,10075898,252,1022) { link(onEventData,12715042:doWork2,[]) link(Data,8147977:Text,[]) } Add(Hub,13966058,14,1008) { OutCount=3 link(onEvent1,9171354:doData,[(41,1014)(41,757)(9,757)(9,720)]) link(onEvent2,14468035:doData,[]) link(onEvent3,10075898:doData,[]) } Add(Memory,11888295,455,21) { } Add(Hub,10287995,413,161) { OutCount=3 link(onEvent1,11888295:doValue,[(441,167)(441,27)]) link(onEvent2,2471154:doValue,[(441,174)(441,104)]) link(onEvent3,7256806:doValue,[(441,181)(441,202)]) } Add(Memory,2471154,455,98) { } Add(Memory,7256806,455,196) { } Add(Timer,7150979,987,322) { Interval=10 Enable=1 AutoStop=5 link(onTimer,3871530:doCalc,[]) } Add(Timer,11149677,987,280) { Interval=10 Enable=1 AutoStop=5 link(onTimer,9740776:doCalc,[]) } Add(Timer,1766645,987,238) { Interval=10 Enable=1 AutoStop=5 link(onTimer,7771489:doCalc,[]) } Add(Edit,14875724,147,945) { Left=35 Top=300 Width=60 Text="9" Alignment=2 DataType=4 link(onChange,12344338:doWork1,[(193,951)]) } Add(Edit,8147977,252,945) { Left=95 Top=300 Width=60 Text="9" Alignment=2 DataType=4 link(onChange,12715042:doWork1,[(305,951)]) } Add(GetDataEx,585070,252,483) { link(Data,4027255:Checked,[]) } Add(Label,13329120,147,791) { Left=95 Top=240 Width=60 Height=20 Color=16764057 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="9.5" AutoSize=1 Alignment=2 } Add(Label,415275,147,672) { Left=35 Top=240 Width=60 Height=20 Color=16764057 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="9" AutoSize=1 Alignment=2 } Add(Label,4058693,140,644) { Left=35 Top=190 Width=60 Height=20 Color=10987519 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="10" AutoSize=1 Alignment=2 } Add(Label,16297211,140,756) { Left=95 Top=190 Width=60 Height=20 Color=10987519 Font=[Calibri,11,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Caption="10" AutoSize=1 Alignment=2 } Add(Label,11081099,280,714) { Left=55 Top=216 Width=40 Height=19 Color=12644534 Font=[Calibri,10,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Transparent=0 Caption="10" AutoSize=1 Alignment=2 } Add(UpDown,11443055,91,714) { Left=34 Top=210 Height=30 Ctl3D=0 Max=100 Position=50 link(onPosition,11400181:doCalc,[]) } Add(Label,12709963,280,833) { Left=115 Top=216 Width=40 Height=19 Color=12644534 Font=[Calibri,10,1,0,204] Ctl3D=0 WinStyle=2 Name="нз 13" Transparent=0 Caption="10" AutoSize=1 Alignment=2 } Add(UpDown,11058569,91,833) { Left=95 Top=210 Height=30 Ctl3D=0 Max=100 Position=50 link(onPosition,13599546:doCalc,[]) } Add(GlobalVar,7817347,280,763) { @Color=65450 Name="C Ц" link(onValue,11715060:doEvent1,[(338,769)(338,818)]) } Add(Hub,10730299,238,714) { link(onEvent1,11081099:doText,[]) link(onEvent2,7817347:doValue,[(262,727)(262,769)]) } Add(MathParse,11400181,133,714) { DataCount=3 MathStr="((%2 - %3)/100)*%1+%3" link(onResult,10951781:doConvert,[]) link(X2,4058693:Caption,[]) link(X3,415275:Caption,[]) } Add(GlobalVar,5998413,273,875) { @Color=16776960 Name="Mn Ц" link(onValue,11715060:doEvent2,[(338,881)(338,825)]) } Add(Hub,8162950,238,833) { link(onEvent1,12709963:doText,[]) link(onEvent2,5998413:doValue,[(266,846)(266,881)]) } Add(MathParse,13599546,133,833) { DataCount=3 MathStr="((%2 - %3)/100)*%1+%3" link(onResult,11604620:doConvert,[]) link(X2,16297211:Caption,[]) link(X3,13329120:Caption,[]) } Add(ConvertorEx,10951781,189,714) { Mode=15 Width=5 Decimals=3 link(onResult,10730299:doEvent1,[]) } Add(ConvertorEx,11604620,189,833) { Mode=15 Width=5 Decimals=3 link(onResult,8162950:doEvent1,[]) } Add(Hub,11715060,392,812) { InCount=10 OutCount=1 link(onEvent1,14726024:In,[]) } Add(LineBreak,8800997,595,427) { Caption="Вычислить" Color=65535 link(Out,7210031:doEvent2,[]) Primary=[14726024,-175,385] } Add(Hub,13971466,63,714) { link(onEvent1,11443055:doPosition,[]) link(onEvent2,11058569:doPosition,[(84,727)(84,839)]) } Add(DoData,9171354,21,714) { Data=Integer(50) link(onEventData,13971466:doEvent1,[]) } Add(HubEx,12344338,189,1015) { link(onEvent,8439641:doValue,[]) } Add(HubEx,12715042,301,1022) { link(onEvent,1369573:doValue,[]) } Add(LineBreak,6736418,595,406) { Caption="Вычислить" Color=65535 link(Out,7210031:doEvent1,[(678,412)(678,426)]) Primary=[15177914,-280,-301] }
Редактировалось 3 раз(а), последний 2018-08-31 01:22:41
|