Esempio n. 1
0
        public static int ReadServoMotorTemp(ushort handle, short axisNo)
        {
            FocasLibBase.ODBDGN_1 obj = new FocasLibBase.ODBDGN_1();
            short ret = FocasLib.cnc_diagnoss(handle, 308, axisNo, 8, obj);//temp spindle motor 408

            return(obj.ldata);
        }
Esempio n. 2
0
        public static int ReadSpindleMotorTemp(ushort handle)
        {
            FocasLibBase.ODBDGN_1 obj = new FocasLibBase.ODBDGN_1();
            short ret = FocasLib.cnc_diagnoss(handle, 403, 1, 8, obj);//temp spindle motor 408

            return(obj.ldata);
        }
Esempio n. 3
0
        public static int ReadServoMotorTempY2(ushort handle)
        {
            FocasLibBase.ODBDGN_1 obj1 = new FocasLibBase.ODBDGN_1();
            short ret = FocasLib.cnc_diagnoss(handle, 403, 2, 8, obj1);//temp spindle motor 403

            return(obj1.ldata);
        }
Esempio n. 4
0
        public static short ReadSpindleLoad(ushort handle)
        {
            FocasLibBase.ODBDGN_1 obj = new FocasLibBase.ODBDGN_1();
            short ret = FocasLib.cnc_diagnoss(handle, 410, 1, 8, obj);

            return(obj.idata);
        }
Esempio n. 5
0
        public static int ReadAxixServoMotorTempX(ushort handle)
        {
            FocasLibBase.ODBDGN_1 obj = new FocasLibBase.ODBDGN_1();
            short ret = FocasLib.cnc_diagnoss(handle, 308, 1, 8, obj);//temp spindle motor 308

            Debug.WriteLine("AXIS X temp=" + obj.ldata);
            return(obj.ldata);
        }