|
|
@@ -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); |
|
|
|