Вверх ↑
Ответов: 182
Рейтинг: 14
#1: 2018-09-12 11:39:35 ЛС | профиль | цитата
Леонид, можно немного еще арифметики
FeMn содержит: Марганец(Mn) = 80%; Углерод(C) = 7%; Остальное(Fe) = (100 - Mn - C)= 13%

Add(MainForm,2407987,56,112)
{
Width=819
Height=453
}
Add(Edit,9343208,189,161)
{
Left=315
Top=165
Width=65
Text="100000"
ClearAfterEnter=1
link(onEnter,7974135:doWork3,[(235,174)])
}
Add(Edit,2590845,259,161)
{
Left=405
Top=165
Text="1"
ClearAfterEnter=1
link(onEnter,11196960:doWork2,[])
}
Add(Edit,2168509,329,161)
{
Left=480
Top=165
Text="1"
ClearAfterEnter=1
link(onEnter,1017110:doWork2,[])
}
Add(Edit,10209181,259,210)
{
Left=405
Top=215
Text="10"
ClearAfterEnter=1
link(onEnter,11196960:doWork3,[(305,223)])
}
Add(Edit,10509363,329,210)
{
Left=480
Top=215
Text="10"
ClearAfterEnter=1
link(onEnter,1017110:doWork3,[(375,223)])
}
Add(Label,898086,119,161)
{
Left=270
Top=145
Width=280
Caption="Имеем: Масса[кг] Углерод [%] Марганец [%]"
AutoSize=1
}
Add(Label,4632823,119,217)
{
Left=275
Top=195
Width=279
Height=17
Caption="Надо получить Углерод [%] Марганец [%] "
AutoSize=1
}
Add(Edit,784834,259,112)
{
Left=193
Top=57
Text="98"
ClearAfterEnter=1
link(onEnter,3155042:doWork2,[])
}
Add(Edit,7673149,385,112)
{
Left=400
Top=60
Text="80"
ClearAfterEnter=1
link(onEnter,5280778:doWork2,[])
}
Add(Edit,8040066,441,112)
{
Left=719
Top=60
Text="13"
ClearAfterEnter=1
link(onEnter,4815005:doWork2,[(427,125)(427,97)])
}
Add(Edit,4647735,252,357)
{
Left=385
Top=270
Width=70
ReadOnly=0
link(onChange,4864068:doText,[(291,363)(291,398)(179,398)(179,405)])
link(Str,16324613:CarbonTo,[(258,341)(209,341)])
}
Add(Edit,10677749,203,357)
{
Left=465
Top=270
Width=70
ReadOnly=0
link(onChange,4647735:doText,[])
link(Str,16324613:ManganeseIronTo,[(209,348)(202,348)])
}
Add(Label,13626286,119,357)
{
Left=270
Top=250
Width=279
Height=17
Caption="Надо добавить Углерод [кг] Марганец [кг] "
AutoSize=1
}
Add(Label,7839841,119,399)
{
Left=270
Top=300
Width=122
Height=17
Caption="Получаем: Масса[кг] "
}
Add(Edit,4864068,189,399)
{
Left=405
Top=300
Width=80
ReadOnly=0
link(Str,16324613:Alloy,[])
}
Add(MultiElementEx,16324613,189,287)
{
link(onCalc,10677749:doText,[(263,293)(263,328)(186,328)(186,363)])
link(MassaIn,9343208:Text,[])
link(CarbonIn,2590845:Text,[(202,201)(265,201)])
link(ManganeseIn,2168509:Text,[(209,250)(321,250)(321,201)(335,201)])
link(CarbonInOut,10209181:Text,[(216,256)(265,256)])
link(ManganeseOut,10509363:Text,[(223,262)(335,262)])
link(DigestibilityManganese,7673149:Text,[(230,271)(314,271)(314,180)(391,180)])
link(DigestibilityIron,8040066:Text,[(237,277)(447,277)])
link(ConcentrationCarbon,7078877:Text,[(244,152)(195,152)])
link(DigestibilityCarbon,784834:Text,[(251,152)(265,152)])
}
BEGIN_SDK
Add(EditMultiEx,16717464,21,21)
{
WorkCount=#6:doCalc|
EventCount=#6:onCalc|
VarCount=#10:Alloy=[кг]|20:ManganeseIronTo=[кг]|13:CarbonTo=[кг]|
DataCount=#12:MassaIn=[кг]|12:CarbonIn=[%]|15:ManganeseIn=[%]|15:CarbonInOut=[%]|16:ManganeseOut=[%]|26:DigestibilityManganese=[%]|21:DigestibilityIron=[%]|23:ConcentrationCarbon=[%]|23:DigestibilityCarbon=[%]|
Width=356
Height=221
VOffset=42
HOffset=35
link(doCalc,15717847:doCalc,[])
link(Alloy,8726603:Var2,[])
link(ManganeseIronTo,9088357:Result,[(69,215)(125,215)])
link(CarbonTo,11517040:Result,[(76,222)(181,222)])
}
Add(MathParse,779928,56,168)
{
DataCount=6
MathStr="%1*(1-%2/100-%3*%6/100)/(1-%4/100-%5*%6/100)"
ResultType=0
link(onResult,9088357:doCalc,[])
link(X1,2774523:Var2,[])
link(X2,2280409:Var2,[])
link(X3,3876415:Var2,[])
link(X4,9692763:Var2,[])
link(X5,8175131:Var2,[])
}
Add(MathParse,1165778,203,63)
{
MathStr="1+%2/%1"
link(onResult,779928:doCalc,[(242,69)(242,104)(46,104)(46,174)])
link(X1,6005003:Var3,[(209,54)])
link(X2,4501765:Var3,[(216,47)])
}
Add(MathParse,15717847,105,63)
{
MathStr="%1*%2/10000"
link(onResult,12242963:doCalc,[])
link(X1,16717464:ConcentrationCarbon,[])
link(X2,16717464:DigestibilityCarbon,[])
}
Add(MathParse,9088357,119,168)
{
DataCount=5
MathStr="(%1*%2 - %3*%4)/100/%5"
ResultType=0
link(onResult,11517040:doCalc,[])
link(X2,8175131:Var3,[(132,138)])
link(X3,5844309:Var2,[])
link(X4,3876415:Var3,[(146,131)])
link(X5,12242963:Result,[(153,110)(160,110)])
}
Add(MathParse,11517040,175,168)
{
DataCount=5
MathStr="(%1*%2 - %3*%4)/100/%5"
ResultType=0
link(onResult,16717464:onCalc,[(249,174)(249,69)])
link(X1,8726603:Var3,[(181,159)(108,159)(108,208)])
link(X2,9692763:Var3,[(188,152)])
link(X3,5844309:Var3,[(195,124)])
link(X4,2280409:Var3,[(202,145)])
link(X5,15717847:Result,[(209,117)(111,117)])
}
Add(GetDataEx,2774523,56,119)
{
link(Data,16717464:MassaIn,[])
}
Add(GetDataEx,5844309,133,119)
{
Angle=3
link(Data,2774523:Var3,[])
}
Add(GetDataEx,8726603,56,203)
{
link(Data,779928:Result,[])
}
Add(GetDataEx,8175131,84,133)
{
link(Data,16717464:ManganeseOut,[])
}
Add(GetDataEx,3876415,70,126)
{
link(Data,16717464:ManganeseIn,[])
}
Add(GetDataEx,9692763,77,147)
{
link(Data,16717464:CarbonInOut,[])
}
Add(GetDataEx,2280409,63,140)
{
link(Data,16717464:CarbonIn,[])
}
Add(MathParse,12242963,154,63)
{
MathStr="%1/(%1+%2)"
link(onResult,1165778:doCalc,[])
link(X1,6005003:Var2,[])
link(X2,4501765:Var2,[])
}
Add(GetDataEx,6005003,154,49)
{
Angle=3
link(Data,16717464:DigestibilityManganese,[(97,54)])
}
Add(GetDataEx,4501765,161,42)
{
Angle=3
link(Data,16717464:DigestibilityIron,[(104,47)])
}
END_SDK
Add(Edit,7078877,189,112)
{
Left=53
Top=57
Text="98"
ClearAfterEnter=1
link(onEnter,7974135:doWork2,[])
}
Add(HubEx,4815005,371,91)
{
Angle=2
link(onEvent,11551152:doWork2,[])
}
Add(HubEx,1017110,371,168)
{
Angle=3
link(onEvent,5280778:doWork3,[])
}
Add(HubEx,5280778,371,119)
{
Angle=3
link(onEvent,4815005:doWork3,[])
}
Add(HubEx,11551152,301,91)
{
Angle=2
link(onEvent,6021160:doWork2,[])
}
Add(HubEx,3155042,301,119)
{
Angle=3
link(onEvent,11551152:doWork3,[])
}
Add(HubEx,11196960,301,168)
{
Angle=3
link(onEvent,3155042:doWork3,[])
}
Add(HubEx,6021160,231,91)
{
Angle=2
link(onEvent,16324613:doCalc,[(174,97)(174,293)])
}
Add(HubEx,7974135,231,119)
{
Angle=3
link(onEvent,6021160:doWork3,[])
}
Add(Edit,832654,490,112)
{
Left=646
Top=60
Text="7"
ClearAfterEnter=1
}
Add(Label,8011873,490,56)
{
Left=640
Top=40
Width=61
Height=17
Caption="Углерод[%]"
}
Add(Label,1268322,385,56)
{
Left=359
Top=41
Width=133
Height=17
Caption="Марганец содержание[%]"
}
Add(Edit,5556603,539,112)
{
Left=540
Top=60
Text="100"
ClearAfterEnter=1
}
Add(Label,13706439,189,49)
{
Left=15
Top=40
Width=126
Height=17
Caption="Углерод содержание[%]"
}
Add(Label,11852765,259,49)
{
Left=162
Top=40
Width=111
Height=17
Caption="Углерод усвоение[%]"
}
Add(Label,12971151,224,7)
{
Left=7
Top=5
Width=275
Height=33
Font=[MS Sans Serif,18,1,16711680,1]
Caption="Электродная стружка"
}
Add(Label,6899419,441,56)
{
Left=715
Top=40
Width=59
Height=17
Caption="Железо[%]"
}
Add(Label,16178163,539,56)
{
Left=506
Top=41
Width=118
Height=17
Caption="Марганец усвоение[%]"
}
Add(Label,11215597,469,7)
{
Left=550
Top=5
Width=70
Height=33
Font=[MS Sans Serif,18,1,16711680,1]
Caption="FeMn"
}

карма: 0

0