pry 2 years ago
parent
commit
45b5c1cce1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      DosingSystem/Service/SiemensDevice.cs

+ 1
- 1
DosingSystem/Service/SiemensDevice.cs View File

@@ -22,7 +22,7 @@ namespace BPASmartClient.DosingSystem

public void Connect(string ip)
{
GlobalDevice.PlcData = MySiemens.ReadClass<PlcToComputer>(3);//获取PLC到上位机的数据
//GlobalDevice.PlcData = MySiemens.ReadClass<PlcToComputer>(3);//获取PLC到上位机的数据
while (!MySiemens.IsConnected)
{
MySiemens.Connect(S7.Net.CpuType.S71200, ip);


Loading…
Cancel
Save