1
This commit is contained in:
@@ -19,7 +19,7 @@ namespace DOAN.Infrastructure.PLC
|
|||||||
public static SiemensS7Net siemensTcpNet = null;
|
public static SiemensS7Net siemensTcpNet = null;
|
||||||
public static bool ConnectPLC()
|
public static bool ConnectPLC()
|
||||||
{
|
{
|
||||||
siemensTcpNet= new SiemensS7Net(SiemensPLCS.S1200, "192.168.2.1")
|
siemensTcpNet= new SiemensS7Net(SiemensPLCS.S200Smart, "192.168.2.1")
|
||||||
{
|
{
|
||||||
ConnectTimeOut = 5000
|
ConnectTimeOut = 5000
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user