public USBCopyer() { Messages.WriteLine("建立USB复制-PLC通信连接"); copyTcp = new TCP_Client("192.168.10.40", "50001"); copyTcp.MessageReceived += AnalyzePLCMessage; }
public CameraColorTestTransfer() { Messages.WriteLine("建立CameraColor-PLC通信连接"); PCCameraTcp = new TCP_Client("192.168.10.49", "9001"); PLCTcp = new TCP_Client("192.168.10.40", "29001"); PCCameraTcp.MessageReceived += AnalyzePCCameraMessage; PLCTcp.MessageReceived += AnalyzePLCMessage; }
public MESController() { Messages.WriteLine("建立MES-PLC通信连接"); MESTcp = new TCP_Client("192.168.10.40", "50002"); MESTcp.MessageReceived += AnalyzePLCMessage; SQLc = new SQLConnector("Server=192.168.10.100;Database=PhoenixDB;user id=sa ;password=Phoenix@123 ;"); CancelTask = false; }
public SystemState(DataGridView sysGridView) { Messages.WriteLine("建立状态监控-PLC通信连接"); StateTcp = new TCP_Client("192.168.10.40", "50003"); initialStatesTable(); SetDataGridViewAppearance(sysGridView); sysGridView.DataSource = statesTable; StateTcp.MessageReceived += AnalyzePLCMessage; }