예제 #1
0
        public int GetPressure(Enterclose ent)
        {
            bool is_timeout = false;

            CanComm.ReadRegister(ent.PumpMotor.Pressure.Addr);
            int pressure = CanComm.GetIntBlock(ent.PumpMotor.Pressure.Addr, 2000, out is_timeout);

            return(is_timeout?-1:pressure);
        }
예제 #2
0
        public int ReadTemp(byte index)
        {
            bool is_time_out = false;
            var  Couv        = this.CouMixer.Couveuses[index];

            CanComm.ReadRegister(Couv.SetupTemp.Addr);
            int temp = CanComm.GetIntBlock(Couv.SetupTemp.Addr, 1000, out is_time_out);

            return(is_time_out ? 0 : temp);
        }