Files
RollMarking/IOT.Services/Models.cs
T
2026-09-07 08:07:08 +08:00

89 lines
2.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
#region 1、系统内部
public enum AcquisitionType
{
PPM,
Axis,
Cylinder,
LRobot
}
public enum PLCDataType
{
Short,
Float
}
public class StationData
{
public string Name { get; set; }
public object MainValue { get; set; }
public DateTime Timestamp { get; set; }
}
public class TypeConfig
{
public string Name { get; set; }
public string Address { get; set; }
public string DataType { get; set; }
}
public class CollectionGroupConfig
{
public string Name { get; set; }
public string StartAddress { get; set; }
public int Length { get; set; }
public string DefaultDataType { get; set; }
public Dictionary<string, TypeConfig> Types { get; set; }
}
#endregion
#region 2、PPM点位
#endregion
#region 3、预测性点位
#endregion
#region 4、机械臂
//直角坐标机械臂
public class LRobot
{
public string bu_id { get; set; }
public string district_id { get; set; }
public string factory_id { get; set; }
public string production_line_id { get; set; }
public string production_processes_id { get; set; }
public string work_center_id { get; set; }
public string station_id { get; set; }
public string device_name { get; set; } = "601PWM01";
public string robot_name { get; set; }
public List<Taglist> taglist { get; set; }
}
public class Taglist
{
public string device_time { get; set; }
public Collection collections_items { get; set; }
}
public class Collection
{
public string robot_status { get; set; } = "1";
public string x_value { get; set; }
public string y_value { get; set; }
public string z_value { get; set; }
public string time_span { get; set; } = "2.5";
public string hand_status { get; set; } = "1";
}
#endregion
}