Вверх ↑
Ответов: 182
Рейтинг: 14
#1: 2018-09-14 14:01:14 ЛС | профиль | цитата
Леонид, помогите реализовать данную схему, весь день сижу допереть не могу.
Как сделать с выбор материала флажками.

Add(MainForm,2407987,56,161)
{
Width=648
Height=556
}
Add(Edit,9343208,189,210)
{
Left=161
Top=332
Width=65
Text="100000"
ClearAfterEnter=1
link(onEnter,7974135:doWork3,[(235,223)])
}
Add(Edit,2590845,259,210)
{
Left=251
Top=332
Text="1"
ClearAfterEnter=1
link(onEnter,11196960:doWork2,[])
}
Add(Edit,2168509,329,210)
{
Left=326
Top=332
Text="1"
ClearAfterEnter=1
link(onEnter,1017110:doWork2,[])
}
Add(Edit,10209181,259,259)
{
Left=251
Top=382
Text="10"
ClearAfterEnter=1
link(onEnter,11196960:doWork3,[(305,272)])
}
Add(Edit,10509363,329,259)
{
Left=326
Top=382
Text="10"
ClearAfterEnter=1
link(onEnter,1017110:doWork3,[(375,272)])
}
Add(Label,898086,119,210)
{
Left=116
Top=312
Width=280
Caption="Имеем: Масса[кг] Углерод [%] Марганец [%]"
AutoSize=1
}
Add(Label,4632823,119,266)
{
Left=121
Top=362
Width=279
Height=17
Caption="Надо получить Углерод [%] Марганец [%] "
AutoSize=1
}
Add(Edit,784834,259,161)
{
Left=58
Top=127
Text="98"
ClearAfterEnter=1
link(onEnter,3155042:doWork2,[])
}
Add(Edit,7673149,385,161)
{
Left=379
Top=82
Text="80"
ClearAfterEnter=1
link(onEnter,5280778:doWork2,[])
}
Add(Edit,8040066,441,161)
{
Left=379
Top=227
Text="13"
ClearAfterEnter=1
link(onEnter,4815005:doWork2,[(427,174)(427,146)])
}
Add(Edit,4647735,252,406)
{
Left=231
Top=437
Width=70
ReadOnly=0
link(onChange,4864068:doText,[(291,412)(291,447)(179,447)(179,454)])
link(Str,16324613:CarbonTo,[(258,390)(209,390)])
}
Add(Edit,10677749,203,406)
{
Left=400
Top=437
Width=70
ReadOnly=0
link(onChange,4647735:doText,[])
link(Str,16324613:ManganeseIronTo,[(209,397)(202,397)])
}
Add(Label,13626286,119,406)
{
Left=117
Top=417
Width=82
Height=17
Caption="Надо добавить"
AutoSize=1
}
Add(Label,7839841,119,448)
{
Left=116
Top=467
Width=122
Height=17
Caption="Получаем: Масса[кг] "
}
Add(Edit,4864068,189,448)
{
Left=251
Top=467
Width=80
ReadOnly=0
link(Str,16324613:Alloy,[])
}
Add(MultiElementEx,16324613,189,336)
{
link(onCalc,10677749:doText,[(263,342)(263,377)(186,377)(186,412)])
link(MassaIn,9343208:Text,[])
link(CarbonIn,2590845:Text,[(202,250)(265,250)])
link(ManganeseIn,2168509:Text,[(209,299)(321,299)(321,250)(335,250)])
link(CarbonInOut,10209181:Text,[(216,305)(265,305)])
link(ManganeseOut,10509363:Text,[(223,311)(335,311)])
link(DigestibilityManganese,7673149:Text,[(230,320)(314,320)(314,229)(391,229)])
link(DigestibilityIron,8040066:Text,[(237,326)(447,326)])
link(ConcentrationCarbon,7078877:Text,[(244,201)(195,201)])
link(DigestibilityCarbon,784834:Text,[(251,201)(265,201)])
}
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,161)
{
Left=58
Top=82
Text="98"
ClearAfterEnter=1
link(onEnter,7974135:doWork2,[])
}
Add(HubEx,4815005,371,140)
{
Angle=2
link(onEvent,11551152:doWork2,[])
}
Add(HubEx,1017110,371,217)
{
Angle=3
link(onEvent,5280778:doWork3,[])
}
Add(HubEx,5280778,371,168)
{
Angle=3
link(onEvent,4815005:doWork3,[])
}
Add(HubEx,11551152,301,140)
{
Angle=2
link(onEvent,6021160:doWork2,[])
}
Add(HubEx,3155042,301,168)
{
Angle=3
link(onEvent,11551152:doWork3,[])
}
Add(HubEx,11196960,301,217)
{
Angle=3
link(onEvent,3155042:doWork3,[])
}
Add(HubEx,6021160,231,140)
{
Angle=2
link(onEvent,16324613:doCalc,[(174,146)(174,342)])
}
Add(HubEx,7974135,231,168)
{
Angle=3
link(onEvent,6021160:doWork3,[])
}
Add(Edit,832654,490,161)
{
Left=379
Top=177
Text="7"
ClearAfterEnter=1
}
Add(Label,8011873,700,56)
{
Left=374
Top=160
Width=61
Height=17
Caption="Углерод[%]"
}
Add(Label,1268322,595,56)
{
Left=334
Top=65
Width=133
Height=17
Caption="Марганец содержание[%]"
}
Add(Edit,5556603,539,161)
{
Left=379
Top=127
Text="100"
ClearAfterEnter=1
}
Add(Label,13706439,189,49)
{
Left=20
Top=65
Width=126
Height=17
Caption="Углерод содержание[%]"
}
Add(Label,11852765,259,49)
{
Left=27
Top=110
Width=111
Height=17
Caption="Углерод усвоение[%]"
}
Add(Label,12971151,224,7)
{
Left=12
Top=30
Width=129
Height=33
Font=[MS Sans Serif,18,1,16711680,1]
Caption="Эл. стр-ка"
}
Add(Label,6899419,651,56)
{
Left=375
Top=210
Width=59
Height=17
Caption="Железо[%]"
}
Add(Label,16178163,749,56)
{
Left=345
Top=111
Width=118
Height=17
Caption="Марганец усвоение[%]"
}
Add(Label,11215597,679,7)
{
Left=365
Top=30
Width=70
Height=33
Font=[MS Sans Serif,18,1,16711680,1]
Caption="FeMn"
}
Add(Edit,11996220,560,483)
{
Left=223
Top=127
Text="90"
ClearAfterEnter=1
}
Add(Edit,1511192,490,483)
{
Left=223
Top=82
Text="90"
ClearAfterEnter=1
}
Add(Label,12332442,490,434)
{
Left=185
Top=65
Width=126
Height=17
Caption="Углерод содержание[%]"
}
Add(Label,13231913,560,434)
{
Left=192
Top=110
Width=111
Height=17
Caption="Углерод усвоение[%]"
}
Add(Label,5848070,525,392)
{
Left=217
Top=30
Width=62
Height=33
Font=[MS Sans Serif,18,1,16711680,1]
Caption="Кокс"
}
Add(Label,10075580,119,497)
{
Left=231
Top=417
Width=70
Height=17
Caption="Эл.Стр-ка кг."
}
Add(Label,5707071,119,595)
{
Left=411
Top=417
Width=48
Height=17
Caption="FeMn кг."
}
Add(Edit,12952976,189,546)
{
Left=315
Top=437
Width=70
Text="???"
ReadOnly=0
}
Add(Label,8834296,119,546)
{
Left=327
Top=417
Width=46
Height=17
Caption="Кокс кг."
}
Add(CheckBox,2592549,469,343)
{
Left=55
Top=10
Width=75
Caption="Эл.Стр-ка"
}
Add(CheckBox,11776801,525,343)
{
Left=221
Top=10
Caption="Кокс"
}
Add(CheckBox,9679549,581,343)
{
Left=373
Top=10
Caption="FeMn"
}


--- Добавлено в 2018-09-14 14:11:09

Я смог сделать только вот так, но когда увеличиваю количество материалов, тормозит жутко.

Add(Label,3454046,112,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,105,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,4137484,287,35)
{
Width=757
Height=641
Color=-16777194
Position=1
link(onCreate,6895129:doEvent1,[])
}
Add(CheckBox,16297602,273,413)
{
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,280,483)
{
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,112,441)
{
@Hint=#6:Формат|
link(onEvent1,14227662:Cable,[(170,447)(170,349)])
link(onEvent2,1001967:Cable,[(183,454)(183,419)])
link(onEvent3,15553298:Cable,[(170,461)(170,496)])
}
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,196,343)
{
link(Wire1,9595767:doEvent1,[])
link(Wire2,3462522:doEvent1,[(217,356)(217,363)])
}
Add(CableEvent,1001967,196,413)
{
link(Wire1,493886:doEvent1,[(217,419)(217,426)])
link(Wire2,5027377:doEvent1,[(217,426)(217,440)])
}
Add(CableEvent,15553298,196,490)
{
link(Wire1,1918681:doEvent1,[])
link(Wire2,3328549:doEvent1,[(217,503)(217,510)])
}
Add(StrCat,5224041,364,336)
{
Str1="0;"
link(onStrCat,14628401:doWork2,[])
}
Add(StrCat,1947115,371,413)
{
Str1="1;"
link(onStrCat,9083665:doWork2,[])
}
Add(StrCat,14537579,378,483)
{
Str1="2;"
link(onStrCat,13913192:doWork2,[])
}
Add(HubEx,14628401,406,336)
{
Angle=3
link(onEvent,7853204:doWork1,[(410,326)(100,326)(100,447)])
}
Add(HubEx,9083665,413,413)
{
Angle=3
link(onEvent,14628401:doWork3,[(417,391)(410,391)])
}
Add(HubEx,13913192,420,483)
{
Angle=3
link(onEvent,9083665:doWork3,[(424,433)(417,433)])
}
Add(Edit,5020035,161,1323)
{
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,161,1365)
{
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,161,1407)
{
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,287,1337)
{
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,287,1379)
{
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,287,1421)
{
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,224,357)
{
link(onEvent1,2117759:doFont,[(252,363)(252,356)])
link(onEvent2,13944145:doFont,[(336,370)(336,356)])
}
Add(Hub,9595767,224,343)
{
link(onEvent1,2117759:doColor,[])
link(onEvent2,13944145:doColor,[(336,356)(336,349)])
}
Add(Hub,5027377,224,434)
{
link(onEvent1,16297602:doFont,[(252,440)(252,433)])
link(onEvent2,10468263:doFont,[(336,447)(336,433)])
}
Add(Hub,493886,224,420)
{
link(onEvent1,16297602:doColor,[])
link(onEvent2,10468263:doColor,[(340,433)(340,426)])
}
Add(Hub,3328549,224,504)
{
link(onEvent1,4027255:doFont,[(252,510)(252,503)])
link(onEvent2,13186909:doFont,[(340,517)(340,503)])
}
Add(Hub,1918681,224,490)
{
link(onEvent1,4027255:doColor,[])
link(onEvent2,13186909:doColor,[(340,503)(340,496)])
}
Add(UpDown,5371857,539,49)
{
Left=322
Top=20
Width=26
Height=290
Ctl3D=0
Max=200
Min=1
Position=100
link(onPosition,14614441:doText,[(586,55)(586,36)(527,36)(527,104)])
}
Add(DoData,14249546,448,49)
{
Data=Integer(100)
link(onEventData,115852:doWork2,[])
}
Add(Edit,14614441,539,98)
{
Left=404
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,[(582,111)(582,90)(501,90)])
link(Str,5371857:Position,[])
}
Add(Hub,7210031,791,301)
{
InCount=6
OutCount=4
link(onEvent1,6854205:In,[(812,307)(812,293)])
link(onEvent2,12270732:In,[])
link(onEvent3,11777822:In,[(812,321)(812,335)])
link(onEvent4,13211375:In,[(812,328)(812,356)])
}
Add(Hub,12740869,658,462)
{
OutCount=3
link(onEvent1,6653746:doWork2,[(938,468)(938,594)])
link(onEvent2,3735772:doWork2,[(904,475)(904,790)])
link(onEvent3,7210031:doEvent1,[(732,482)(732,307)])
}
Add(MultiSetParam,5690489,1561,714)
{
Parameters=#9:Эл.Стр-ка|4:Кокс|4:FeMn|0:|
Count=1
OutType=1
link(onSet1,5511638:doValue,[])
}
Add(GetIndexData,2855857,1659,658)
{
Count=3
link(Data1,7869277:Var,[])
link(Data2,12133815:Var,[])
link(Data3,6402141:Var,[])
}
Add(For,12362648,1477,707)
{
End=10
link(onEvent,6486535:doEvent1,[])
}
Add(Hub,6486535,1533,707)
{
link(onEvent1,2855857:doIndex,[(1556,713)(1556,664)])
link(onEvent2,5690489:doSet,[])
}
Add(LineBreakEx,3238583,441,770)
{
Type=2
}
Add(LineBreakEx,15170414,2037,700)
{
Type=3
link(_Data,12639502:Var3,[(2043,663)])
}
Add(MST_RowAction,4991091,497,798)
{
MSTControl="tabl"
}
Add(MST_Clear,2539529,1953,609)
{
MSTControl="tabl"
}
Add(MT_MTArrayRW,5050759,441,798)
{
link(onRead,4991091:doRowAction,[])
link(Array,3238583:getVar,[])
link(Index,2408786:Index,[(454,787)(483,787)(483,842)(335,842)])
}
Add(If_else,5621254,378,798)
{
Op2=Integer(1)
link(onTrue,5050759:doRead,[])
}
Add(MT_AddData,15248216,1652,714)
{
link(onAdd,3355436:doAdd,[])
link(Data1,5511638:Value,[(1658,703)(1643,703)(1643,758)(1609,758)])
link(Data2,2855857:Var,[])
}
Add(MT_MTArray,6247255,1995,602)
{
}
Add(MT_MTArrayRW,3355436,1995,700)
{
link(Array,12639502:Var2,[])
link(Index,12362648:Position,[(2008,688)(1830,688)(1830,766)(1483,766)])
}
Add(Memory,5511638,1603,714)
{
link(onData,15248216:doAdd,[])
}
Add(Hub,9579955,1820,602)
{
OutCount=4
link(onEvent1,6247255:doClear,[])
link(onEvent2,2539529:doClear,[])
link(onEvent3,4956049:doWork1,[(1839,622)(1839,585)(1208,585)])
link(onEvent4,3735772:doWork1,[(1846,629)(1846,708)(1502,708)])
}
Add(HubEx,3735772,1498,784)
{
Angle=1
link(onEvent,5755906:doAdd,[(1502,860)(251,860)(251,804)])
}
Add(ChanelToIndex,5120309,525,413)
{
Count=3
link(onIndex,12740869:doEvent1,[(614,419)(614,468)])
}
Add(MT_Enum,2408786,322,798)
{
link(onItem,5621254:doCompare,[])
}
Add(MT_AddData,5755906,266,798)
{
Count=3
link(onAdd,2408786:doEnum,[])
link(Data1,11272390:Var2,[])
link(Data2,11898620:Var2,[])
link(Data3,12820211:Var2,[])
}
Add(Hub,7381917,322,413)
{
link(onEvent1,1947115:doStrCat,[])
link(onEvent2,5120309:doWork2,[])
}
Add(Hub,9225181,315,336)
{
link(onEvent1,5224041:doStrCat,[])
link(onEvent2,5120309:doWork1,[(441,349)(441,419)])
}
Add(Hub,1083426,329,483)
{
link(onEvent1,14537579:doStrCat,[])
link(onEvent2,5120309:doWork3,[(448,496)(448,433)])
}
Add(MTStrTbl,13946322,546,798)
{
Left=348
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,497,49)
{
link(onEvent,5371857:doPosition,[])
}
Add(Label,13320999,98,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,91,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,84,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,77,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,644,154)
{
Name="ст1"
}
Add(DoData,15807324,539,154)
{
Data=Integer(100)
link(onEventData,2189399:doOperation,[])
link(Data,14614441:Text,[])
}
Add(Math,2189399,595,154)
{
OpType=2
Op2=1000
link(onResult,682212:doValue,[])
}
Add(Label,12685144,70,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,63,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,56,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,231,1232)
{
Name="C1"
link(onValue,11715060:doEvent3,[(366,1238)(366,1049)])
}
Add(DoData,14468035,175,1232)
{
link(onEventData,12344338:doWork2,[])
link(Data,14875724:Text,[])
}
Add(Hub,6895129,336,49)
{
link(onEvent1,14249546:doData,[])
link(onEvent2,13966058:doEvent1,[(380,62)(380,259)(30,259)(30,1231)])
}
Add(GlobalVar,293551,203,1365)
{
Name="кокс С"
Data=Integer(90)
link(onValue,11715060:doEvent6,[(409,1371)(409,1070)])
}
Add(GlobalVar,10812183,329,1379)
{
Name="кокс У"
Data=Integer(90)
link(onValue,11715060:doEvent9,[(409,1385)(409,1091)])
}
Add(GlobalVar,12660360,203,1323)
{
Name="стр-ка С"
Data=Integer(98)
link(onValue,11715060:doEvent5,[(409,1329)(409,1063)])
}
Add(GlobalVar,7615906,329,1337)
{
Name="стр-ка У"
Data=Integer(98)
link(onValue,11715060:doEvent8,[(409,1343)(409,1084)])
}
Add(CheckBox,2117759,266,336)
{
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(Label,13988717,49,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,42,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,35,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,203,1407)
{
Name="FeMn С"
Data=Integer(78)
link(onValue,11715060:doEvent7,[(409,1413)(409,1077)])
}
Add(GlobalVar,1737583,329,1421)
{
Name="FeMn У"
Data=Integer(100)
link(onValue,11715060:doEvent10,[(409,1427)(409,1098)])
}
Add(GlobalVar,1369573,357,1239)
{
Name="Mn1"
link(onValue,11715060:doEvent4,[(409,1245)(409,1056)])
}
Add(DoData,10075898,280,1239)
{
link(onEventData,12715042:doWork2,[])
link(Data,8147977:Text,[])
}
Add(Hub,13966058,42,1225)
{
OutCount=3
link(onEvent1,9171354:doData,[(69,1231)(69,974)(37,974)(37,937)])
link(onEvent2,14468035:doData,[])
link(onEvent3,10075898:doData,[])
}
Add(Edit,14875724,175,1162)
{
Left=35
Top=300
Width=60
Text="1"
Alignment=2
DataType=4
link(onChange,12344338:doWork1,[(221,1168)])
}
Add(Edit,8147977,280,1162)
{
Left=95
Top=300
Width=60
Text="1"
Alignment=2
DataType=4
link(onChange,12715042:doWork1,[(333,1168)])
}
Add(Label,13329120,175,1008)
{
Left=95
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,415275,175,889)
{
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,168,861)
{
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,168,973)
{
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,308,931)
{
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,119,931)
{
Left=34
Top=210
Height=30
Ctl3D=0
Max=100
Position=50
link(onPosition,11400181:doCalc,[])
}
Add(Label,12709963,308,1050)
{
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,119,1050)
{
Left=95
Top=210
Height=30
Ctl3D=0
Max=100
Position=50
link(onPosition,13599546:doCalc,[])
}
Add(GlobalVar,7817347,308,980)
{
@Color=65450
Name="C Ц"
link(onValue,11715060:doEvent1,[(366,986)(366,1035)])
}
Add(Hub,10730299,266,931)
{
link(onEvent1,11081099:doText,[])
link(onEvent2,7817347:doValue,[(290,944)(290,986)])
}
Add(MathParse,11400181,161,931)
{
DataCount=3
MathStr="((%2 - %3)/100)*%1+%3"
link(onResult,10951781:doConvert,[])
link(X2,4058693:Caption,[])
link(X3,415275:Caption,[])
}
Add(GlobalVar,5998413,301,1092)
{
@Color=16776960
Name="Mn Ц"
link(onValue,11715060:doEvent2,[(366,1098)(366,1042)])
}
Add(Hub,8162950,266,1050)
{
link(onEvent1,12709963:doText,[])
link(onEvent2,5998413:doValue,[(294,1063)(294,1098)])
}
Add(MathParse,13599546,161,1050)
{
DataCount=3
MathStr="((%2 - %3)/100)*%1+%3"
link(onResult,11604620:doConvert,[])
link(X2,16297211:Caption,[])
link(X3,13329120:Caption,[])
}
Add(ConvertorEx,10951781,217,931)
{
Mode=15
Width=5
Decimals=3
link(onResult,10730299:doEvent1,[])
}
Add(ConvertorEx,11604620,217,1050)
{
Mode=15
Width=5
Decimals=3
link(onResult,8162950:doEvent1,[])
}
Add(Hub,11715060,420,1029)
{
InCount=10
OutCount=1
link(onEvent1,14726024:In,[])
}
Add(LineBreak,8596692,672,315)
{
Caption="Вычислить"
Color=65535
link(Out,7210031:doEvent2,[(766,321)(766,314)])
Primary=[14726024,-224,714]
}
Add(Hub,13971466,91,931)
{
link(onEvent1,11443055:doPosition,[])
link(onEvent2,11058569:doPosition,[(112,944)(112,1056)])
}
Add(DoData,9171354,49,931)
{
Data=Integer(50)
link(onEventData,13971466:doEvent1,[])
}
Add(HubEx,12344338,217,1232)
{
link(onEvent,8439641:doValue,[])
}
Add(HubEx,12715042,329,1239)
{
link(onEvent,1369573:doValue,[])
}
Add(LineBreak,3250904,672,329)
{
Caption="Вычислить"
Color=65535
link(Out,7210031:doEvent3,[(766,335)(766,321)])
Primary=[15177914,-84,-231]
}
Add(HubEx,4956049,1204,588)
{
Angle=1
link(onEvent,6653746:doWork3,[])
}
Add(HubEx,6653746,1204,588)
{
link(onEvent,12362648:doFor,[(1210,713)])
}
Add(LineBreak,1938497,448,154)
{
Caption="Вычислить"
Color=65280
link(Out,15807324:doData,[])
Primary=[6854205,371,133]
}
Add(If_else,3312741,1050,210)
{
Op2=Integer(1)
link(onTrue,642536:doCalc,[])
link(onFalse,9930551:doClear,[])
link(Op1,11551894:Var,[])
}
Add(GlobalVar,12558790,1344,168)
{
Name="кокс кг"
}
Add(MathParse,642536,1190,210)
{
DataCount=7
MathStr="(%3-(%1/(%1+%6+%7)*%2))*(%1+%6+%7)/(%4*(%5/100)-%3)"
ResultType=0
link(onResult,9930551:doValue,[])
link(X1,13018847:Var,[(1196,196)(1091,196)])
link(X2,11850117:Var,[(1203,196)(1133,196)])
link(X3,13802472:Var,[(1210,196)(1168,196)])
link(X4,8912440:Var,[(1217,196)(1210,196)])
link(X5,2967602:Var,[(1224,196)(1273,196)])
link(X6,12558790:Var,[(1231,196)(1350,196)])
link(X7,5787268:Var,[(1238,196)(1406,196)])
}
Add(GlobalVar,13018847,1085,168)
{
Name="ст1"
}
Add(GlobalVar,11850117,1127,168)
{
Name="C1"
}
Add(GlobalVar,13802472,1162,168)
{
Name="C Ц"
}
Add(GlobalVar,8912440,1204,168)
{
Name="стр-ка С"
}
Add(GlobalVar,2967602,1267,168)
{
Name="стр-ка У"
}
Add(GlobalVar,3711309,1456,210)
{
Name="стр-ка кг"
link(onValue,10049839:doCompare,[])
}
Add(Memory,9930551,1281,210)
{
Default=Integer(0)
link(onData,3711309:doValue,[])
}
Add(LineBreak,14935026,273,399)
{
Caption="1"
Type=1
Color=65535
link(Data,11272390:Var3,[(279,376)])
Primary=[11551894,777,-210]
}
Add(LineBreak,13383068,966,210)
{
Caption="Вычислить"
Color=65535
link(Out,3312741:doCompare,[])
Primary=[12270732,-147,98]
}
Add(GlobalVar,5787268,1400,168)
{
Name="FeMn кг"
}
Add(GetDataEx,12639502,1995,658)
{
link(Data,6247255:Array,[])
}
Add(GetDataEx,11272390,266,371)
{
link(Data,2117759:Checked,[])
}
Add(If_else,14543411,1050,329)
{
Op2=Integer(1)
link(onTrue,1526640:doCalc,[])
link(onFalse,16281630:doClear,[])
link(Op1,3386:Var,[])
}
Add(GlobalVar,13522267,1316,287)
{
Name="стр-ка кг"
}
Add(MathParse,1526640,1183,329)
{
DataCount=7
MathStr="(%3-(%1/(%1+%6+%7)*%2))*(%1+%6+%7)/(%4*(%5/100)-%3)"
ResultType=0
link(onResult,16281630:doValue,[])
link(X1,15265657:Var,[(1189,315)(1091,315)])
link(X2,2635084:Var,[(1196,315)(1133,315)])
link(X3,6322844:Var,[(1203,315)(1168,315)])
link(X4,12594736:Var,[])
link(X5,294188:Var,[(1217,315)(1266,315)])
link(X6,13522267:Var,[(1224,315)(1322,315)])
link(X7,6506018:Var,[(1231,315)(1385,315)])
}
Add(GlobalVar,15265657,1085,287)
{
Name="ст1"
}
Add(GlobalVar,2635084,1127,287)
{
Name="C1"
}
Add(GlobalVar,6322844,1162,287)
{
Name="C Ц"
}
Add(GlobalVar,12594736,1204,287)
{
Name="кокс С"
}
Add(GlobalVar,294188,1260,287)
{
Name="кокс У"
}
Add(GlobalVar,2455289,1463,329)
{
Name="кокс кг"
link(onValue,13219724:doCompare,[])
}
Add(Memory,16281630,1281,329)
{
Default=Integer(0)
link(onData,2455289:doValue,[])
}
Add(LineBreak,13135345,280,469)
{
Caption="1"
Type=1
Color=65535
link(Data,11898620:Var3,[(286,453)])
Primary=[3386,770,-161]
}
Add(LineBreak,9746352,966,329)
{
Caption="Вычислить"
Color=65535
link(Out,14543411:doCompare,[])
Primary=[11777822,-147,0]
}
Add(GlobalVar,6506018,1379,287)
{
Name="FeMn кг"
}
Add(GetDataEx,11898620,273,448)
{
link(Data,16297602:Checked,[])
}
Add(MathParse,5715432,1183,462)
{
DataCount=7
MathStr="(%3-(%1/(%1+%6+%7)*%2))*(%1+%6+%7)/(%4*(%5/100)-%3)"
ResultType=0
link(onResult,1997910:doValue,[])
link(X1,15562081:Var,[(1189,455)(1091,455)])
link(X2,2476705:Var,[(1196,455)(1133,455)])
link(X3,990706:Var,[(1203,455)(1175,455)])
link(X4,4291043:Var,[(1210,455)(1217,455)])
link(X5,15395198:Var,[(1217,455)(1273,455)])
link(X6,8625879:Var,[(1224,448)(1329,448)])
link(X7,4382206:Var,[(1231,448)(1392,448)])
}
Add(GlobalVar,15562081,1085,420)
{
Name="ст1"
}
Add(GlobalVar,2476705,1127,420)
{
Name="Mn1"
}
Add(Memory,1997910,1281,462)
{
Default=Integer(0)
link(onData,13429284:doValue,[])
}
Add(GlobalVar,13429284,1470,462)
{
Name="FeMn кг"
link(onValue,15971815:doCompare,[])
}
Add(GlobalVar,15395198,1267,420)
{
Name="FeMn У"
}
Add(GlobalVar,4291043,1211,420)
{
Name="FeMn С"
}
Add(GlobalVar,990706,1169,420)
{
Name="Mn Ц"
}
Add(If_else,5102031,1050,462)
{
Op2=Integer(1)
link(onTrue,5715432:doCalc,[])
link(onFalse,1997910:doClear,[])
link(Op1,2701051:Var,[])
}
Add(LineBreak,5793999,287,539)
{
Caption="1"
Type=1
Color=65535
link(Data,12820211:Var3,[(293,523)])
Primary=[2701051,763,-98]
}
Add(LineBreak,6139997,966,462)
{
Caption="Вычислить"
Color=65535
link(Out,5102031:doCompare,[])
Primary=[13211375,-147,-112]
}
Add(GlobalVar,8625879,1323,420)
{
Name="стр-ка кг"
}
Add(GlobalVar,4382206,1386,420)
{
Name="кокс кг"
}
Add(GetDataEx,12820211,280,518)
{
link(Data,4027255:Checked,[])
}
Add(InfoTip,6153446,952,147)
{
Info=#6:Расчет|
Font=[Arial,14,1,255,204]
Frame=3
Width=862
Height=403
}
Add(Label,13944145,462,336)
{
Left=282
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,10468263,462,413)
{
Left=282
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,13186909,462,483)
{
Left=282
Top=76
Width=35
Height=28
Color=65535
Font=[Arial,12,1,0,204]
Ctl3D=0
WinStyle=3
Name="Si"
Caption="Mn"
AutoSize=1
Alignment=2
Point(doColor)
Point(doFont)
}
Add(If_else,10049839,1561,210)
{
link(onTrue,7869277:doValue,[])
link(onFalse,11918417:doValue,[(1607,223)(1607,249)(1444,249)(1444,265)])
link(Op2,5514271:Var,[])
}
Add(GlobalVarEx,11918417,1456,259)
{
Name="стр-ка кг(1)"
Point(Data)
Point(onValue)
link(Data,3711309:Var,[])
link(onValue,11443363:In,[])
}
Add(GlobalVarEx,7869277,1659,210)
{
Name="стр-ка кг(1)"
Point(Data)
Point(onValue)
link(onValue,7696359:doWork1,[(1775,216)])
}
Add(GlobalVarEx,5514271,1568,168)
{
Name="стр-ка кг(1)"
Point(Data)
}
Add(LineBreak,5767145,672,357)
{
Caption="Вычислить"
Color=65535
link(Out,7210031:doEvent4,[(766,363)(766,328)])
Primary=[11443363,889,-98]
}
Add(If_else,13219724,1561,329)
{
link(onTrue,12133815:doValue,[])
link(onFalse,9317835:doValue,[(1604,342)(1604,368)(1451,368)(1451,384)])
link(Op2,13899995:Var,[])
}
Add(GlobalVarEx,9317835,1463,378)
{
Name="кокс кг(1)"
Point(Data)
Point(onValue)
link(Data,2455289:Var,[])
link(onValue,808607:In,[])
}
Add(GlobalVarEx,12133815,1666,329)
{
Name="кокс кг(1)"
Point(Data)
Point(onValue)
link(onValue,7696359:doWork2,[])
}
Add(GlobalVarEx,13899995,1568,287)
{
Name="кокс кг(1)"
Point(Data)
}
Add(LineBreak,4468343,672,371)
{
Caption="Вычислить"
Color=65535
link(Out,7210031:doEvent5,[(766,377)(766,335)])
Primary=[808607,889,7]
}
Add(If_else,15971815,1561,462)
{
link(onTrue,6402141:doValue,[])
link(onFalse,2088434:doValue,[(1605,475)(1605,503)(1458,503)(1458,517)])
link(Op2,8834934:Var,[])
}
Add(GlobalVarEx,2088434,1470,511)
{
Name="FeMn кг(1)"
Point(Data)
Point(onValue)
link(Data,13429284:Var,[])
link(onValue,4494299:In,[])
}
Add(GlobalVarEx,6402141,1673,462)
{
Name="FeMn кг(1)"
Point(Data)
Point(onValue)
link(onValue,12558986:doWork2,[])
}
Add(GlobalVarEx,8834934,1568,420)
{
Name="FeMn кг(1)"
Point(Data)
}
Add(LineBreak,10062688,672,385)
{
Caption="Вычислить"
Color=65535
link(Out,7210031:doEvent6,[(766,391)(766,342)])
Primary=[4494299,889,126]
}
Add(HubEx,7696359,1771,329)
{
Angle=1
link(onEvent,12558986:doWork1,[])
}
Add(HubEx,12558986,1771,462)
{
Angle=1
link(onEvent,9579955:doEvent1,[(1775,608)])
}
Add(Label,9081930,532,329)
{
Left=515
Top=340
Width=26
Height=23
Font=[Arial,12,1,0,204]
Caption="тн."
}
Add(Label,895513,12,211)
{
Left=1
Top=216
Width=33
Height=19
Color=12644534
Font=[Calibri,10,1,0,204]
WinStyle=1
Name="Цель"
Caption="Цель"
AutoSize=1
Alignment=2
}

карма: 0

0
Редактировалось 1 раз(а), последний 2018-09-14 14:11:09