change - 展示界面添加高低料位等

master
wangsr 1 year ago
parent 96afbeffa4
commit 4c5f60e7fb

@ -113,8 +113,8 @@ namespace Mesnac.Controls.ChemicalWeighing
{ {
Image img = Image.FromStream(_imageStream); Image img = Image.FromStream(_imageStream);
Size size = new Size(); Size size = new Size();
size.Width = 29; size.Width = 11;
size.Height = 24; size.Height = 14;
this.Size = size; this.Size = size;
if (bNewPic == true) if (bNewPic == true)
{ {

@ -593,7 +593,9 @@
<EmbeddedResource Include="Resources\UCConveyorMoveR.gif" /> <EmbeddedResource Include="Resources\UCConveyorMoveR.gif" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Resources\AlarmLightNewGray.png" /> <EmbeddedResource Include="Resources\AlarmLightNewGray.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Resources\AlarmLightNewGreen.gif" /> <EmbeddedResource Include="Resources\AlarmLightNewGreen.gif" />
<EmbeddedResource Include="Resources\AlarmLightNewRed.gif" /> <EmbeddedResource Include="Resources\AlarmLightNewRed.gif" />
</ItemGroup> </ItemGroup>
@ -628,6 +630,12 @@
<EmbeddedResource Include="Resources\controlCabinet.png" /> <EmbeddedResource Include="Resources\controlCabinet.png" />
<EmbeddedResource Include="Resources\controlCabinet0.png" /> <EmbeddedResource Include="Resources\controlCabinet0.png" />
<EmbeddedResource Include="Resources\controlCabinet1.png" /> <EmbeddedResource Include="Resources\controlCabinet1.png" />
<EmbeddedResource Include="Resources\AlarmLightNewGreen.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Resources\AlarmLightNewRed.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<Content Include="Resources\prepareHopperRight.png" /> <Content Include="Resources\prepareHopperRight.png" />
<Content Include="Resources\prepareHopperLeft.png" /> <Content Include="Resources\prepareHopperLeft.png" />
<Content Include="Resources\fay.png" /> <Content Include="Resources\fay.png" />
@ -673,6 +681,10 @@
<Name>Mesnac.Controls.Default</Name> <Name>Mesnac.Controls.Default</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="Resources\AlarmLightNewGreen.psd" />
<None Include="Resources\AlarmLightNewRed.psd" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

@ -42,7 +42,7 @@ namespace Mesnac.Controls.ChemicalWeighing
sImages = new string[2]; sImages = new string[2];
sImages[0] = "Mesnac.Controls.ChemicalWeighing.Resources.p0.png";//zsTurnOff sImages[0] = "Mesnac.Controls.ChemicalWeighing.Resources.p0.png";//zsTurnOff
sImages[1] = "Mesnac.Controls.ChemicalWeighing.Resources.p1.png";//zsTurnOn sImages[1] = "Mesnac.Controls.ChemicalWeighing.Resources.p1.png";//zsTurnOn
_status = Statuses.TurnOff; _status = Statuses.TurnOn;
} }
private void ReloadStream() private void ReloadStream()
@ -113,8 +113,8 @@ namespace Mesnac.Controls.ChemicalWeighing
{ {
Image img = Image.FromStream(_imageStream); Image img = Image.FromStream(_imageStream);
Size size = new Size(); Size size = new Size();
size.Width = 29; size.Width = 10;
size.Height = 24; size.Height = 15;
this.Size = size; this.Size = size;
if (bNewPic == true) if (bNewPic == true)
{ {

@ -4,7 +4,7 @@
<Main> <Main>
<Brand value="Siemens" /> <Brand value="Siemens" />
<Model value="S7" /> <Model value="S7" />
<ReadHz value="2500" /> <ReadHz value="2000" />
<UnitLen value="8" /> <UnitLen value="8" />
<Connection mode="Net"> <Connection mode="Net">
<IP value="192.168.1.50" /> <IP value="192.168.1.50" />
@ -199,7 +199,6 @@
<Data name="Hopper_2_LowLevel" runname="Hopper_2_LowLevel" start="229" len="1" method="Default_Bit(1,1)" max="" issave="False" subtractor="" remark="低料位指示" /> <Data name="Hopper_2_LowLevel" runname="Hopper_2_LowLevel" start="229" len="1" method="Default_Bit(1,1)" max="" issave="False" subtractor="" remark="低料位指示" />
<Data name="Hopper_3_ActWeight" runname="Hopper_3_ActWeight" start="230" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="实实重量" /> <Data name="Hopper_3_ActWeight" runname="Hopper_3_ActWeight" start="230" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="实实重量" />
<Data name="Hopper_3_HighWeight" runname="Hopper_3_HighWeight" start="232" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="高料位重量" /> <Data name="Hopper_3_HighWeight" runname="Hopper_3_HighWeight" start="232" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="高料位重量" />
<Data name="Hopper_3_LowWeight" runname="Hopper_3_LowWeight" start="234" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="低料位重量" /> <Data name="Hopper_3_LowWeight" runname="Hopper_3_LowWeight" start="234" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="低料位重量" />
<Data name="Hopper_3_HighLevel" runname="Hopper_3_HighLevel" start="236" len="1" method="Default_Bit(0,1)" max="" issave="False" subtractor="" remark="高料位指示" /> <Data name="Hopper_3_HighLevel" runname="Hopper_3_HighLevel" start="236" len="1" method="Default_Bit(0,1)" max="" issave="False" subtractor="" remark="高料位指示" />
<Data name="Hopper_3_LowLevel" runname="Hopper_3_LowLevel" start="236" len="1" method="Default_Bit(1,1)" max="" issave="False" subtractor="" remark="低料位指示" /> <Data name="Hopper_3_LowLevel" runname="Hopper_3_LowLevel" start="236" len="1" method="Default_Bit(1,1)" max="" issave="False" subtractor="" remark="低料位指示" />

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save