Преглед на файлове

修改松下库off 流程

Shun преди 2 години
родител
ревизия
56280f97ed

+ 2 - 2
src/YSAI.Mewtocol/MewtocolOperate.cs

@@ -728,7 +728,7 @@ namespace YSAI.Mewtocol
                 switch (basics.PType)
                 {
                     case MewtocolData.ProtocolType.Tcp:
-                        if (MTcp == null)
+                        if (!GetStatus().State)
                         {
                             return Break(SN, false, "未连接");
                         }
@@ -754,7 +754,7 @@ namespace YSAI.Mewtocol
                         }
                         break;
                     case MewtocolData.ProtocolType.Serial:
-                        if (MSerial == null)
+                        if (!GetStatus().State)
                         {
                             return Break(SN, false, "未连接");
                         }

+ 1 - 1
src/YSAI.Mewtocol/YSAI.Mewtocol.csproj

@@ -3,7 +3,7 @@
     <TargetFrameworks>net6.0;net8.0</TargetFrameworks>
     <ImplicitUsings>enable</ImplicitUsings>
     <Nullable>enable</Nullable>
-    <Version>23.360.5691</Version>
+    <Version>23.360.36511</Version>
     <PackageOutputPath Condition="'$(Configuration)' == 'Release'">../YSAI.Publish/Release</PackageOutputPath>
     <PackageOutputPath Condition="'$(Configuration)' == 'Debug'">../YSAI.Publish/Debug</PackageOutputPath>
     <Authors>Shun</Authors>

+ 1 - 1
src/YSAI.Tool.Wpf/YSAI.Tool.Wpf.csproj

@@ -32,7 +32,7 @@
 		<PackageReference Include="YSAI.Opc" Version="23.360.7834" />
 		<PackageReference Include="YSAI.RabbitMQ" Version="23.352.38022" />
 		<PackageReference Include="YSAI.Redis" Version="23.352.38022" />
-		<PackageReference Include="YSAI.Siemens" Version="23.360.5691" />
+		<PackageReference Include="YSAI.Siemens" Version="23.360.36030" />
 	</ItemGroup>
 	<ItemGroup>
 		<ProjectReference Include="..\YSAI.Core.Wpf\YSAI.Core.Wpf.csproj" />

+ 1 - 1
src/YSAI.Ver.Manage.Tool/Program.cs

@@ -48,7 +48,7 @@ List<string> strings = new List<string>
     //"YSAI.Modbus",
     //"YSAI.Omron",
     //"YSAI.Opc",
-    "YSAI.Siemens",
+    //"YSAI.Siemens",
 #endif
 };