Example #1
0
 public RobotAction(CmmClient client)
 {
     _client    = client;
     _plcClient = PlcClient.Instance;
     _plcClient.DisconnectEvent += _plcClient_DisconnectEvent;
     _heartbeat = true;
 }
Example #2
0
        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();
        }
Example #3
0
 public RobotGripRequest(CmmClient client, bool isPass) : base(client)
 {
     _isPass = isPass;
 }
Example #4
0
 public CmmInitReady(CmmClient client) : base(client)
 {
 }
Example #5
0
 public RobotPlaceResponse(CmmClient client) : base(client)
 {
     CompletedEvent += client.OnPlaceCompleted;
 }
Example #6
0
 public RobotPlaceRequest(CmmClient client) : base(client)
 {
 }
Example #7
0
 public RobotGripResponse(CmmClient client) : base(client)
 {
     CompletedEvent += client.OnGripCompleted;
 }
Example #8
0
 public CSFeedback(CmmClient cmmClient)
 {
     _cmmClient = cmmClient;
 }