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