1
czw
2025-07-02 a54f394767fe561f8ed7e3d5b13bcb42868815cf
1
4个文件已修改
23 ■■■■ 已修改文件
2025年6月12日/AuxAllWCS/Build/Project/AuxAllWCS.csproj 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/AutoThread.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/TcpServer.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
2025年6月12日/AuxAllWCS/Build/Project/界面/View1.xaml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/AuxAllWCS.csproj
@@ -194,10 +194,14 @@
      <DependentUpon>App.xaml</DependentUpon>
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="界面\views2.xaml.cs">
      <DependentUpon>views2.xaml</DependentUpon>
    </Compile>
    <Page Include="界面\View1.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Compile Include="代码\VS自定义类\NotifyProperty.cs" />
    <Compile Include="界面\View1.xaml.cs">
      <DependentUpon>View1.xaml</DependentUpon>
      <SubType>Code</SubType>
@@ -213,6 +217,10 @@
    <Compile Include="代码\VS自定义类\TcpServer.cs" />
    <Compile Include="代码\VS自定义类\AutoThread.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Page Include="界面\views2.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/VS×Ô¶¨ÒåÀà/AutoThread.cs
@@ -1539,6 +1539,7 @@
        }
        public void Thread2030Down(Tag tag)
        {
            Console.WriteLine($"SA2030 ä»»åŠ¡çŠ¶æ€ï¼š   =====>");
            Console.WriteLine($"SA2030 ä»»åŠ¡çŠ¶æ€ï¼š{tag.SA2030.RtaskState}- ç©ºé—²{tag.SA2030.R5空闲} - barcode:{tag.SA2030.R托盘码}");
        }
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/VS×Ô¶¨ÒåÀà/TcpServer.cs
@@ -14,7 +14,7 @@
    public class TcpServer
    {
        public static Dictionary<string,string> TrayIps = new Dictionary<string,string>();
        public static Dictionary<string, string> TrayIps = new Dictionary<string, string>();
        public TcpServer(string ip)
        {
            Init(ip);
@@ -115,15 +115,18 @@
                        //}
                        //else
                        //{
                        Console.WriteLine($"【TCP信息协议异常 {DateTime.Now.Millisecond}】:IP:{remote_ip},MSG:{message}");
                        Console.WriteLine($"【TCP信息协议 {DateTime.Now.Millisecond}】:IP:{remote_ip},MSG:{message}");
                        var mg = Encoding.ASCII.GetString(PlcHelper.Hex2Bin(message));
                        Console.WriteLine(mg);
                        if (mg.StartsWith("DK") && mg.Trim().Length == "DK01000024".Length)
                        {
                           if(TrayIps.TryGetValue(remote_ip,out string traycode))
                            LogHelper.Info($"扫码器 >{remote_ip} -{mg}");
                            if (TrayIps.TryGetValue(remote_ip, out string traycode))
                            {
                                TrayIps[remote_ip] = traycode;
                            }else TrayIps.Add(remote_ip, traycode);
                            }
                            else TrayIps.Add(remote_ip, traycode);
                            Console.WriteLine("TOFF");
                            var mst = PlcHelper.Hex2Bin("544F4646");
                            TcpServer.TcpServerSend(remote_ip, mst);
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/½çÃæ/View1.xaml
@@ -1,5 +1,6 @@
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480" x:Class="GZ.Projects.AuxAllWCS.View1" xmlns:local="clr-namespace:GZ.Projects.AuxAllWCS">
  <Canvas>
    <Label Width="86" Height="25" Canvas.Left="31" Canvas.Top="172" />
  </Canvas>
        <TextBlock Text="嗷嗷嗷"/>
    </Canvas>
</Window>