public RobotAction(CmmClient client) { _client = client; _plcClient = PlcClient.Instance; _plcClient.DisconnectEvent += _plcClient_DisconnectEvent; _heartbeat = true; }
public ProxyFactory(CmmClient cmmClient) { // 三坐标控制代理工厂 NetTcpBinding cmmBinding = new NetTcpBinding(SecurityMode.None); cmmBinding.OpenTimeout = TimeSpan.FromSeconds(15); CSFeedback events = new CSFeedback(cmmClient); CmmControlFactory = new DuplexChannelFactory <ICmmControl>(new InstanceContext(events), cmmBinding); CmmControlFactory.Open(); // 文件传输代理工厂 NetTcpBinding fileBinding = new NetTcpBinding(SecurityMode.None); fileBinding.TransferMode = TransferMode.Streamed; fileBinding.MaxBufferSize = 65536; fileBinding.MaxReceivedMessageSize = 0x7fffffff; PartConfigServiceFactory = new ChannelFactory <IPartConfigService>(fileBinding); PartConfigServiceFactory.Open(); }
public RobotGripRequest(CmmClient client, bool isPass) : base(client) { _isPass = isPass; }
public CmmInitReady(CmmClient client) : base(client) { }
public RobotPlaceResponse(CmmClient client) : base(client) { CompletedEvent += client.OnPlaceCompleted; }
public RobotPlaceRequest(CmmClient client) : base(client) { }
public RobotGripResponse(CmmClient client) : base(client) { CompletedEvent += client.OnGripCompleted; }
public CSFeedback(CmmClient cmmClient) { _cmmClient = cmmClient; }