Ejemplo n.º 1
0
        public bool GetCameraLight()
        {
            bool is_timeout = false;

            CanComm.ReadCoil(OP.CameraLightCoil.Addr);
            var ret = CanComm.GetBoolBlock(OP.CameraLightCoil.Addr, true, 3000, false, out is_timeout);

            return(ret && is_timeout == false);
        }
Ejemplo n.º 2
0
        public bool InitHandTongs(bool OnlyStart = false)
        {
            bool is_time_out = false;
            var  result      = this.CanComm.SetCoilOn(this.Hand.HandInitCoil.Addr);

            if (OnlyStart)
            {
                CanComm.GetBoolBlock(this.Hand.HandInitCoil.Addr, false, 2000, true, out is_time_out);
            }
            Hand.IsOpen = true;
            return(result);
        }