123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
-
- using DeviceServer.HttpServer;
- using System.Collections.Generic;
- namespace ResponseServer.HttpServer
- {
- public class ResponseBody
- {
- public int code
- { get; set; } = 0;
- public bool result
- { get; set; } = true;
- public string msg
- { get; set; } = "调用成功";
- public int statusCode { get; set; } = 200;
- public string toolsData { get; set; }
- public string errorsInfo { get; set; } = "";
- public string runDatasInfo { get; set; } = "";
-
- public string deviceState //设备状态
- { get; set; } = "离线";
- }
- public class ToolsInfo
- {
- public string position { get; set; }
- public string number { get; set; }
- public string name { get; set; }
- public string targetLife { get; set; }
- //额定寿命
- public string rateLife { get; set; }
- public string useLife { get; set; }
- public string curTime { get; set; }
- //0:时间 1:次数
- public int lifeType { get; set; } = 0;
- }
- public class RunDatasInfo
- {
- public string mainProg //主程序号
- { get; set; }
- public int partsCount //工件数
- { get; set; }
- public string actFeedSpeed //主轴进给速度
- { get; set; }
- public string spindleRateOvr //主轴倍率
- { get; set; }
- public string feedRateOvr //进给倍率
- { get; set; }
- public string spindleLoad //主轴负载
- { get; set; }
- public string feedAxisLoad //进给轴负载
- { get; set; }
- public string servoLoad //伺服负载
- { get; set; }
- public string actSpindleSpeed //主轴转速
- { get; set; }
- public string powerOnTime //开机时长
- { get; set; }
- public string ncSysTime //nc系统时间
- { get; set; }
- public string ncModel //nc型号
- { get; set; }
- public string machineCoordinate //机械坐标
- { get; set; }
- public string relativeCoordinate //相对坐标
- { get; set; }
- public string absoluteCoordinate //绝对坐标
- { get; set; }
- public string runMode //运行模式
- { get; set; }
- public string ncRunTime //NC运行时间
- { get; set; }
- public string currentToolNo //当前刀号
- { get; set; }
- public string runStatus //运行状态
- { get; set; } = "空闲";
- }
- public class AlmInfo
- {
- public string no { get; set; }
- public string msg { get; set; }
- }
- }
|