using System; using System.Collections.Generic; using System.Linq; using SqlSugar; namespace Models { /// /// 工位表 /// [SugarTable("cfgstationattr")] public class Cfgstationattr { /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="id" ,IsPrimaryKey = true,IsIdentity = true) ] public int Id { get; set; } /// /// 备 注:工位配置顺序号 /// 默认值: /// [SugarColumn(ColumnName="operid" ) ] public int? Operid { get; set; } /// /// 备 注:工位代码 /// 默认值: /// [SugarColumn(ColumnName="opercode" ) ] public string? Opercode { get; set; } /// /// 备 注:工位名称 /// 默认值: /// [SugarColumn(ColumnName="opername" ) ] public string? Opername { get; set; } /// /// 备 注:工位类别:起始工位、普通工位、换线工位、停止工位、半成品停止工位 /// 默认值: /// [SugarColumn(ColumnName="opertype" ) ] public string? Opertype { get; set; } /// /// 备 注:线路id /// 默认值: /// [SugarColumn(ColumnName="lineid" ) ] public int? Lineid { get; set; } /// /// 备 注:参数模板id /// 默认值: /// [SugarColumn(ColumnName="tempid" ) ] public int? Tempid { get; set; } /// /// 备 注:工位流水线顺序号(缺省) /// 默认值: /// [SugarColumn(ColumnName="no" ) ] public int? No { get; set; } /// /// 备 注:是否排出工位 0 -不是 1- 是 /// 默认值: /// [SugarColumn(ColumnName="outng" ) ] public SByte? Outng { get; set; } /// /// 备 注:是否是半成品投入位 0 -不是 1- 是 /// 默认值: /// [SugarColumn(ColumnName="semistart" ) ] public SByte? Semistart { get; set; } /// /// 备 注:半成品结束工位 /// 默认值: /// [SugarColumn(ColumnName="semifinish" ) ] public SByte? Semifinish { get; set; } /// /// 备 注:离线工位 /// 默认值: /// [SugarColumn(ColumnName="bloffline" ) ] public SByte? Bloffline { get; set; } /// /// 备 注:所属机种id(modelid) /// 默认值: /// [SugarColumn(ColumnName="productid" ) ] public int? Productid { get; set; } /// /// 备 注:当前状态:0 - 未启用,1-空闲 /// 默认值: /// [SugarColumn(ColumnName="status" ) ] public int? Status { get; set; } /// /// 备 注:PLC连接类型:0-三菱mc/slmp UDP协议; 1-欧姆龙 UDP协议;3-西门子 /// 默认值: /// [SugarColumn(ColumnName="plctype" ) ] public int? Plctype { get; set; } /// /// 备 注:PLC数据区起始地址 /// 默认值: /// [SugarColumn(ColumnName="addrstart" ) ] public int? Addrstart { get; set; } /// /// 备 注:PLC ip地址 /// 默认值: /// [SugarColumn(ColumnName="ip" ) ] public string? Ip { get; set; } /// /// 备 注:tcp/udp 端口 /// 默认值: /// [SugarColumn(ColumnName="port" ) ] public int? Port { get; set; } /// /// 备 注:串口设备名 /// 默认值: /// [SugarColumn(ColumnName="com" ) ] public string? Com { get; set; } /// /// 备 注:波特率 /// 默认值: /// [SugarColumn(ColumnName="baudrate" ) ] public int? Baudrate { get; set; } /// /// 备 注:数据位 /// 默认值: /// [SugarColumn(ColumnName="databits" ) ] public int? Databits { get; set; } /// /// 备 注:校验位 /// 默认值: /// [SugarColumn(ColumnName="parity" ) ] public int? Parity { get; set; } /// /// 备 注:组态图用。当前操作状态: 正常生产,NG品排出,NG品非排出等 -- 外键:cfgoperstatus /// 默认值: /// [SugarColumn(ColumnName="curOperStatus" ) ] public int? CurOperStatus { get; set; } /// /// 备 注:生产合格品数量 /// 默认值: /// [SugarColumn(ColumnName="statNormalNum" ) ] public int? StatNormalNum { get; set; } /// /// 备 注:生产非合格品数量 /// 默认值: /// [SugarColumn(ColumnName="statNGNum" ) ] public int? StatNGNum { get; set; } /// /// 备 注:当前操作生产人员ID /// 默认值: /// [SugarColumn(ColumnName="curoperid" ) ] public string? Curoperid { get; set; } /// /// 备 注:连接方式 : 0 -网络;1-excel,通过excel传递数据 /// 默认值: /// [SugarColumn(ColumnName="auto" ) ] public int? Auto { get; set; } /// /// 备 注:最后状态改变时间 /// 默认值: /// [SugarColumn(ColumnName="ltime" ) ] public DateTime? Ltime { get; set; } /// /// 备 注:最后读取的PLC数据区号 /// 默认值: /// [SugarColumn(ColumnName="lastRegIndex" ) ] public int? LastRegIndex { get; set; } /// /// 备 注:当前是否未连接;0-否,1-是 /// 默认值: /// [SugarColumn(ColumnName="bcon" ) ] public SByte? Bcon { get; set; } /// /// 备 注:当前是否自动:0-否,1-是 /// 默认值: /// [SugarColumn(ColumnName="bauto" ) ] public SByte? Bauto { get; set; } /// /// 备 注:当前产品是否重投:0-否,1-是 /// 默认值: /// [SugarColumn(ColumnName="bret" ) ] public SByte? Bret { get; set; } /// /// 备 注:适用机种,用逗号分割,例如机种1,机种2,机种3 /// 默认值: /// [SugarColumn(ColumnName="appmode" ) ] public string? Appmode { get; set; } /// /// 备 注:节拍指标(单位秒) /// 默认值: /// [SugarColumn(ColumnName="rhythm" ) ] public int? Rhythm { get; set; } /// /// 备 注:PLC数据块编号 /// 默认值: /// [SugarColumn(ColumnName="dbcode" ) ] public int? Dbcode { get; set; } /// /// 备 注:PLC上报物料区起始地址 /// 默认值: /// [SugarColumn(ColumnName="matstartaddr" ) ] public int? Matstartaddr { get; set; } /// /// 备 注:该工位PLC挂接扫描枪只为本工位投料还是为全产线投料共用。0:该工位独用;1:产线共用。 /// 默认值: /// [SugarColumn(ColumnName="fulllinescan" ) ] public UInt32? Fulllinescan { get; set; } /// /// 备 注:上位机与PLC通信连接正常与否,0:连接断开,1:建立连接 /// 默认值: /// [SugarColumn(ColumnName="commstatus" ) ] public int? Commstatus { get; set; } /// /// 备 注:建立连接的时间 /// 默认值: /// [SugarColumn(ColumnName="connecttime" ) ] public DateTime? Connecttime { get; set; } /// /// 备 注:连接断开的时间 /// 默认值: /// [SugarColumn(ColumnName="disconnecttime" ) ] public DateTime? Disconnecttime { get; set; } /// /// 备 注:超时未连接的次数累计,默认大于2秒为超时,界面可清零 /// 默认值: /// [SugarColumn(ColumnName="timeoutnum" ) ] public int? Timeoutnum { get; set; } /// /// 备 注:连接断开的次数累计,界面可清零 /// 默认值: /// [SugarColumn(ColumnName="disconectnum" ) ] public int? Disconectnum { get; set; } /// /// 备 注:暂不用(预留)。该工位产品类别(针对机种下的首工位),是主产品还是部件,1主产品,2一级部件,3二级部件,4其他。 /// 默认值: /// [SugarColumn(ColumnName="statpdtype" ) ] public int? Statpdtype { get; set; } } }