Commit 8692c7b7 authored by 潘栩锋's avatar 潘栩锋 🚴

添加 AD盒模拟器,吹膜 3d旋转模拟

parent 57a29c0d
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Blowing.cs" /> <Compile Include="Blowing.cs" />
<Compile Include="FilmLength3D.cs" />
<Compile Include="GageAD.cs" /> <Compile Include="GageAD.cs" />
<Compile Include="HMI.cs" /> <Compile Include="HMI.cs" />
<Compile Include="OrgData.cs" /> <Compile Include="OrgData.cs" />
...@@ -68,6 +69,9 @@ ...@@ -68,6 +69,9 @@
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper">
<Version>10.1.1</Version>
</PackageReference>
<PackageReference Include="PropertyChanged.Fody"> <PackageReference Include="PropertyChanged.Fody">
<Version>3.3.1</Version> <Version>3.3.1</Version>
</PackageReference> </PackageReference>
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FLY.Simulation.Blowing
{
class FilmLength3D
{
static double[] data = new double[]{
0 ,
0.02494285 ,
0.049407656 ,
0.073422521 ,
0.097013985 ,
0.120207153 ,
0.14302581 ,
0.165492532 ,
0.187628781 ,
0.209454993 ,
0.230990664 ,
0.252254425 ,
0.273264111 ,
0.294036829 ,
0.314589014 ,
0.334936491 ,
0.35509452 ,
0.375077852 ,
0.394900772 ,
0.414577143 ,
0.434120444 ,
0.453543814 ,
0.472860084 ,
0.492081814 ,
0.511221328 ,
0.530290744 ,
0.549302006 ,
0.568266915 ,
0.587197158 ,
0.606104338 ,
0.625 ,
0.643895662 ,
0.662802842 ,
0.681733085 ,
0.700697994 ,
0.719709256 ,
0.738778672 ,
0.757918186 ,
0.777139916 ,
0.796456186 ,
0.815879556 ,
0.835422857 ,
0.855099228 ,
0.874922148 ,
0.89490548 ,
0.915063509 ,
0.935410986 ,
0.955963171 ,
0.976735889 ,
0.997745575 ,
1.019009336 ,
1.040545007 ,
1.062371219 ,
1.084507468 ,
1.10697419 ,
1.129792847 ,
1.152986015 ,
1.176577479 ,
1.200592344 ,
1.22505715 ,
1.25 ,
1.27494285 ,
1.299407656 ,
1.323422521 ,
1.347013985 ,
1.370207153 ,
1.39302581 ,
1.415492532 ,
1.437628781 ,
1.459454993 ,
1.480990664 ,
1.502254425 ,
1.523264111 ,
1.544036829 ,
1.564589014 ,
1.584936491 ,
1.60509452 ,
1.625077852 ,
1.644900772 ,
1.664577143 ,
1.684120444 ,
1.703543814 ,
1.722860084 ,
1.742081814 ,
1.761221328 ,
1.780290744 ,
1.799302006 ,
1.818266915 ,
1.837197158 ,
1.856104338 ,
1.875 ,
1.893895662 ,
1.912802842 ,
1.931733085 ,
1.950697994 ,
1.969709256 ,
1.988778672 ,
2.007918186 ,
2.027139916 ,
2.046456186 ,
2.065879556 ,
2.085422857 ,
2.105099228 ,
2.124922148 ,
2.14490548 ,
2.165063509 ,
2.185410986 ,
2.205963171 ,
2.226735889 ,
2.247745575 ,
2.269009336 ,
2.290545007 ,
2.312371219 ,
2.334507468 ,
2.35697419 ,
2.379792847 ,
2.402986015 ,
2.426577479 ,
2.450592344 ,
2.47505715 ,
2.5 ,
2.52494285 ,
2.549407656 ,
2.573422521 ,
2.597013985 ,
2.620207153 ,
2.64302581 ,
2.665492532 ,
2.687628781 ,
2.709454993 ,
2.730990664 ,
2.752254425 ,
2.773264111 ,
2.794036829 ,
2.814589014 ,
2.834936491 ,
2.85509452 ,
2.875077852 ,
2.894900772 ,
2.914577143 ,
2.934120444 ,
2.953543814 ,
2.972860084 ,
2.992081814 ,
3.011221328 ,
3.030290744 ,
3.049302006 ,
3.068266915 ,
3.087197158 ,
3.106104338 ,
3.125 ,
3.143895662 ,
3.162802842 ,
3.181733085 ,
3.200697994 ,
3.219709256 ,
3.238778672 ,
3.257918186 ,
3.277139916 ,
3.296456186 ,
3.315879556 ,
3.335422857 ,
3.355099228 ,
3.374922148 ,
3.39490548 ,
3.415063509 ,
3.435410986 ,
3.455963171 ,
3.476735889 ,
3.497745575 ,
3.519009336 ,
3.540545007 ,
3.562371219 ,
3.584507468 ,
3.60697419 ,
3.629792847 ,
3.652986015 ,
3.676577479 ,
3.700592344 ,
3.72505715 ,
3.75 ,
3.77494285 ,
3.799407656 ,
3.823422521 ,
3.847013985 ,
3.870207153 ,
3.89302581 ,
3.915492532 ,
3.937628781 ,
3.959454993 ,
3.980990664 ,
4.002254425 ,
4.023264111 ,
4.044036829 ,
4.064589014 ,
4.084936491 ,
4.10509452 ,
4.125077852 ,
4.144900772 ,
4.164577143 ,
4.184120444 ,
4.203543814 ,
4.222860084 ,
4.242081814 ,
4.261221328 ,
4.280290744 ,
4.299302006 ,
4.318266915 ,
4.337197158 ,
4.356104338 ,
4.375 ,
4.393895662 ,
4.412802842 ,
4.431733085 ,
4.450697994 ,
4.469709256 ,
4.488778672 ,
4.507918186 ,
4.527139916 ,
4.546456186 ,
4.565879556 ,
4.585422857 ,
4.605099228 ,
4.624922148 ,
4.64490548 ,
4.665063509 ,
4.685410986 ,
4.705963171 ,
4.726735889 ,
4.747745575 ,
4.769009336 ,
4.790545007 ,
4.812371219 ,
4.834507468 ,
4.85697419 ,
4.879792847 ,
4.902986015 ,
4.926577479 ,
4.950592344 ,
4.97505715 ,
5 ,
5.02494285 ,
5.049407656 ,
5.073422521 ,
5.097013985 ,
5.120207153 ,
5.14302581 ,
5.165492532 ,
5.187628781 ,
5.209454993 ,
5.230990664 ,
5.252254425 ,
5.273264111 ,
5.294036829 ,
5.314589014 ,
5.334936491 ,
5.35509452 ,
5.375077852 ,
5.394900772 ,
5.414577143 ,
5.434120444 ,
5.453543814 ,
5.472860084 ,
5.492081814 ,
5.511221328 ,
5.530290744 ,
5.549302006 ,
5.568266915 ,
5.587197158 ,
5.606104338 ,
5.625 ,
5.643895662 ,
5.662802842 ,
5.681733085 ,
5.700697994 ,
5.719709256 ,
5.738778672 ,
5.757918186 ,
5.777139916 ,
5.796456186 ,
5.815879556 ,
5.835422857 ,
5.855099228 ,
5.874922148 ,
5.89490548 ,
5.915063509 ,
5.935410986 ,
5.955963171 ,
5.976735889 ,
5.997745575 ,
6.019009336 ,
6.040545007 ,
6.062371219 ,
6.084507468 ,
6.10697419 ,
6.129792847 ,
6.152986015 ,
6.176577479 ,
6.200592344 ,
6.22505715 ,
6.25 ,
6.27494285 ,
6.299407656 ,
6.323422521 ,
6.347013985 ,
6.370207153 ,
6.39302581 ,
6.415492532 ,
6.437628781 ,
6.459454993 ,
6.480990664 ,
6.502254425 ,
6.523264111 ,
6.544036829 ,
6.564589014 ,
6.584936491 ,
6.60509452 ,
6.625077852 ,
6.644900772 ,
6.664577143 ,
6.684120444 ,
6.703543814 ,
6.722860084 ,
6.742081814 ,
6.761221328 ,
6.780290744 ,
6.799302006 ,
6.818266915 ,
6.837197158 ,
6.856104338 ,
6.875 ,
6.893895662 ,
6.912802842 ,
6.931733085 ,
6.950697994 ,
6.969709256 ,
6.988778672 ,
7.007918186 ,
7.027139916 ,
7.046456186 ,
7.065879556 ,
7.085422857 ,
7.105099228 ,
7.124922148 ,
7.14490548 ,
7.165063509 ,
7.185410986 ,
7.205963171 ,
7.226735889 ,
7.247745575 ,
7.269009336 ,
7.290545007 ,
7.312371219 ,
7.334507468 ,
7.35697419 ,
7.379792847 ,
7.402986015 ,
7.426577479 ,
7.450592344 ,
7.47505715
};
//1°1个膜距离
public static double[] GetData() {
return data;
}
}
}
...@@ -71,6 +71,17 @@ ...@@ -71,6 +71,17 @@
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal">
<StackPanel Margin="2">
<TextBlock Style="{StaticResource TitleStyle}" Text="当前线速度(m/min)" />
<TextBlock Style="{StaticResource FieldValueStyle}" Text="{Binding CurrFilmVelocity,StringFormat={}{0:F6}}"/>
</StackPanel>
<StackPanel Margin="2">
<TextBlock Style="{StaticResource TitleStyle}" Text="当前膜距离(m)" />
<TextBlock Style="{StaticResource FieldValueStyle}" Text="{Binding CurrFilmDistance,StringFormat={}{0:F1}}"/>
</StackPanel>
</StackPanel>
</StackPanel> </StackPanel>
<GroupBox Header="电柜" Margin="2" > <GroupBox Header="电柜" Margin="2" >
<StackPanel > <StackPanel >
...@@ -148,6 +159,11 @@ ...@@ -148,6 +159,11 @@
<TextBlock Style="{StaticResource FieldNameStyle}" Text="膜走带速度(m/min)"/> <TextBlock Style="{StaticResource FieldNameStyle}" Text="膜走带速度(m/min)"/>
<TextBox Style="{StaticResource InputStyle}" Text="{Binding FilmVelocity}"/> <TextBox Style="{StaticResource InputStyle}" Text="{Binding FilmVelocity}"/>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" Margin="2">
<TextBlock Style="{StaticResource FieldNameStyle}" Text="旋转角度(°)"/>
<TextBox Style="{StaticResource InputStyle}" Text="{Binding AngleRange}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="2"> <StackPanel Orientation="Horizontal" Margin="2">
<TextBlock Style="{StaticResource FieldNameStyle}" Text="膜距离(m)"/> <TextBlock Style="{StaticResource FieldNameStyle}" Text="膜距离(m)"/>
<TextBox Style="{StaticResource InputStyle}" Text="{Binding FilmDistance}"/> <TextBox Style="{StaticResource InputStyle}" Text="{Binding FilmDistance}"/>
...@@ -172,6 +188,7 @@ ...@@ -172,6 +188,7 @@
<GroupBox Header="运动控制"> <GroupBox Header="运动控制">
<StackPanel> <StackPanel>
<CheckBox Content="连续旋转" Height="16" Margin="5" IsChecked="{Binding Is360}" /> <CheckBox Content="连续旋转" Height="16" Margin="5" IsChecked="{Binding Is360}" />
<CheckBox Content="立体牵引" Height="16" Margin="5" IsChecked="{Binding Is3D}" />
<CheckBox Content="正向旋转" Height="16" Margin="5" IsChecked="{Binding IsForw}" /> <CheckBox Content="正向旋转" Height="16" Margin="5" IsChecked="{Binding IsForw}" />
<CheckBox Content="复位" Height="16" Margin="5" IsChecked="{Binding IsOrg}" /> <CheckBox Content="复位" Height="16" Margin="5" IsChecked="{Binding IsOrg}" />
<CheckBox Content="旋转启动" Height="16" Margin="5" IsChecked="{Binding IsRotationOn}" /> <CheckBox Content="旋转启动" Height="16" Margin="5" IsChecked="{Binding IsRotationOn}" />
......
0
0.02494285
0.049407656
0.073422521
0.097013985
0.120207153
0.14302581
0.165492532
0.187628781
0.209454993
0.230990664
0.252254425
0.273264111
0.294036829
0.314589014
0.334936491
0.35509452
0.375077852
0.394900772
0.414577143
0.434120444
0.453543814
0.472860084
0.492081814
0.511221328
0.530290744
0.549302006
0.568266915
0.587197158
0.606104338
0.625
0.643895662
0.662802842
0.681733085
0.700697994
0.719709256
0.738778672
0.757918186
0.777139916
0.796456186
0.815879556
0.835422857
0.855099228
0.874922148
0.89490548
0.915063509
0.935410986
0.955963171
0.976735889
0.997745575
1.019009336
1.040545007
1.062371219
1.084507468
1.10697419
1.129792847
1.152986015
1.176577479
1.200592344
1.22505715
1.25
1.27494285
1.299407656
1.323422521
1.347013985
1.370207153
1.39302581
1.415492532
1.437628781
1.459454993
1.480990664
1.502254425
1.523264111
1.544036829
1.564589014
1.584936491
1.60509452
1.625077852
1.644900772
1.664577143
1.684120444
1.703543814
1.722860084
1.742081814
1.761221328
1.780290744
1.799302006
1.818266915
1.837197158
1.856104338
1.875
1.893895662
1.912802842
1.931733085
1.950697994
1.969709256
1.988778672
2.007918186
2.027139916
2.046456186
2.065879556
2.085422857
2.105099228
2.124922148
2.14490548
2.165063509
2.185410986
2.205963171
2.226735889
2.247745575
2.269009336
2.290545007
2.312371219
2.334507468
2.35697419
2.379792847
2.402986015
2.426577479
2.450592344
2.47505715
2.5
2.52494285
2.549407656
2.573422521
2.597013985
2.620207153
2.64302581
2.665492532
2.687628781
2.709454993
2.730990664
2.752254425
2.773264111
2.794036829
2.814589014
2.834936491
2.85509452
2.875077852
2.894900772
2.914577143
2.934120444
2.953543814
2.972860084
2.992081814
3.011221328
3.030290744
3.049302006
3.068266915
3.087197158
3.106104338
3.125
3.143895662
3.162802842
3.181733085
3.200697994
3.219709256
3.238778672
3.257918186
3.277139916
3.296456186
3.315879556
3.335422857
3.355099228
3.374922148
3.39490548
3.415063509
3.435410986
3.455963171
3.476735889
3.497745575
3.519009336
3.540545007
3.562371219
3.584507468
3.60697419
3.629792847
3.652986015
3.676577479
3.700592344
3.72505715
3.75
3.77494285
3.799407656
3.823422521
3.847013985
3.870207153
3.89302581
3.915492532
3.937628781
3.959454993
3.980990664
4.002254425
4.023264111
4.044036829
4.064589014
4.084936491
4.10509452
4.125077852
4.144900772
4.164577143
4.184120444
4.203543814
4.222860084
4.242081814
4.261221328
4.280290744
4.299302006
4.318266915
4.337197158
4.356104338
4.375
4.393895662
4.412802842
4.431733085
4.450697994
4.469709256
4.488778672
4.507918186
4.527139916
4.546456186
4.565879556
4.585422857
4.605099228
4.624922148
4.64490548
4.665063509
4.685410986
4.705963171
4.726735889
4.747745575
4.769009336
4.790545007
4.812371219
4.834507468
4.85697419
4.879792847
4.902986015
4.926577479
4.950592344
4.97505715
5
5.02494285
5.049407656
5.073422521
5.097013985
5.120207153
5.14302581
5.165492532
5.187628781
5.209454993
5.230990664
5.252254425
5.273264111
5.294036829
5.314589014
5.334936491
5.35509452
5.375077852
5.394900772
5.414577143
5.434120444
5.453543814
5.472860084
5.492081814
5.511221328
5.530290744
5.549302006
5.568266915
5.587197158
5.606104338
5.625
5.643895662
5.662802842
5.681733085
5.700697994
5.719709256
5.738778672
5.757918186
5.777139916
5.796456186
5.815879556
5.835422857
5.855099228
5.874922148
5.89490548
5.915063509
5.935410986
5.955963171
5.976735889
5.997745575
6.019009336
6.040545007
6.062371219
6.084507468
6.10697419
6.129792847
6.152986015
6.176577479
6.200592344
6.22505715
6.25
6.27494285
6.299407656
6.323422521
6.347013985
6.370207153
6.39302581
6.415492532
6.437628781
6.459454993
6.480990664
6.502254425
6.523264111
6.544036829
6.564589014
6.584936491
6.60509452
6.625077852
6.644900772
6.664577143
6.684120444
6.703543814
6.722860084
6.742081814
6.761221328
6.780290744
6.799302006
6.818266915
6.837197158
6.856104338
6.875
6.893895662
6.912802842
6.931733085
6.950697994
6.969709256
6.988778672
7.007918186
7.027139916
7.046456186
7.065879556
7.085422857
7.105099228
7.124922148
7.14490548
7.165063509
7.185410986
7.205963171
7.226735889
7.247745575
7.269009336
7.290545007
7.312371219
7.334507468
7.35697419
7.379792847
7.402986015
7.426577479
7.450592344
7.47505715
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment