WriteM 读取去掉

dep
我叫锄头 12 months ago
parent 6d2d3d0529
commit cd4282af76

@ -379,11 +379,11 @@ namespace DataBlockHelper.DBHelpers
private static bool WriteM(int start) private static bool WriteM(int start)
{ {
var siemensS7Net = PlcConnect.Instance; var siemensS7Net = PlcConnect.Instance;
var operateResult = siemensS7Net.ReadBool($"{DbName}.{start}.1"); //var operateResult = siemensS7Net.ReadBool($"{DbName}.{start}.1");
if (!operateResult.Content) //if (!operateResult.Content)
{ //{
return false; // return false;
} //}
var operate= siemensS7Net.Write($"{DbName}.{start}.0", true); var operate= siemensS7Net.Write($"{DbName}.{start}.0", true);
return operate.IsSuccess; return operate.IsSuccess;

Loading…
Cancel
Save