示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }