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); }
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); }
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); }
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); }
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); }