plc地址更新

master
xjl 4 months ago
parent 914ec35564
commit 131c4f536c

@ -44,35 +44,43 @@ namespace Service.Plc.Msg
/// <para>1010全部关闭</para>
/// </summary>
public ModbusProperty<ushort> LightingControl { get; set; } = new(40008); //
public ModbusProperty<ushort> Standby1 { get; set; } = new(40009); // 备用
public ModbusProperty<ushort> Standby2 { get; set; } = new(40010); // 备用
/// <summary>
/// 对时时钟:秒
/// </summary>
public ModbusProperty<ushort> Seconds { get; set; } = new(40011);
/// <summary>
/// 对时时钟:分
/// </summary>
public ModbusProperty<ushort> Points { get; set; } = new(40012);
/// <summary>
/// 对时时钟:时
/// </summary>
public ModbusProperty<ushort> Hour { get; set; } = new(40013);
/// <summary>
/// 对时时钟:天
/// </summary>
public ModbusProperty<ushort> Day { get; set; } = new(40014);
/// <summary>
/// 对时时钟:月
/// 三色灯控制整站状态(入口)
/// <para>0无效值</para>
/// <para>1000绿灯</para>
/// <para>1010绿灯闪烁</para>
/// <para>1020红灯</para>
/// <para>1030红灯闪烁</para>
/// <para>1040黄灯</para>
/// <para>1050黄灯闪烁</para>
/// <para>1100所有灯亮</para>
/// </summary>
public ModbusProperty<ushort> Month { get; set; } = new(40015);
public ModbusProperty<ushort> LightIn { get; set; } = new(40009);
/// <summary>
/// 对时时钟:年
/// 三色灯控制引导状态(出口)
/// <para>0无效值</para>
/// <para>1000绿灯</para>
/// <para>1010绿灯闪烁</para>
/// <para>1020红灯</para>
/// <para>1030红灯闪烁</para>
/// <para>1040黄灯</para>
/// <para>1050黄灯闪烁</para>
/// <para>1100所有灯亮</para>
/// </summary>
public ModbusProperty<ushort> Years { get; set; } = new(40016);
//public ModbusProperty<string> Standby3 { get; set; } = new(40017, length: 4); // 备用36
//public ModbusProperty<string> ChargingStatus { get; set; } = new(40021, length: 40); // 仓位充电状态
public ModbusProperty<ushort> LightOut { get; set; } = new(40010);
public ModbusProperty<ushort> Standby1 { get; set; } = new(40011); // 备用
public ModbusProperty<ushort> Standby2 { get; set; } = new(40012); // 备用
public ModbusProperty<ushort> Standby3 { get; set; } = new(40013); // 备用
public ModbusProperty<ushort> Standby4 { get; set; } = new(40014); // 备用
public ModbusProperty<ushort> Standby5 { get; set; } = new(40015); // 备用
public ModbusProperty<ushort> Standby6 { get; set; } = new(40016); // 备用
public ModbusProperty<ushort> Standby7 { get; set; } = new(40017); // 备用
public ModbusProperty<ushort> Standby8 { get; set; } = new(40018); // 备用
public ModbusProperty<ushort> Standby9 { get; set; } = new(40019); // 备用
public ModbusProperty<ushort> Standby10 { get; set; } = new(40020); // 备用
#region 默认20个舱位信息预留20舱位地用于扩展
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
@ -213,7 +221,9 @@ namespace Service.Plc.Msg
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus20 { get; set; } = new(40040);
//public ModbusProperty<string> BatteryType { get; set; } = new(40061, length: 40); // 仓位所在电池型号
#endregion
#region 电池型号单一,可以不填
/// <summary>
/// 仓位所在电池型号
/// </summary>
@ -294,6 +304,8 @@ namespace Service.Plc.Msg
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType20 { get; set; } = new(40080);
#endregion
/// <summary>
/// 车辆驻车位置
@ -323,7 +335,7 @@ namespace Service.Plc.Msg
/// <para>1050黄灯闪烁</para>
/// <para>1100所有灯亮</para>
/// </summary>
public ModbusProperty<ushort> LightIn { get; set; } = new(40103);
public ModbusProperty<ushort> LightIn2 { get; set; } = new(40103);
/// <summary>
/// 三色灯控制整站状态(出口)
/// <para>0无效值</para>
@ -335,36 +347,39 @@ namespace Service.Plc.Msg
/// <para>1050黄灯闪烁</para>
/// <para>1100所有灯亮</para>
/// </summary>
public ModbusProperty<ushort> LightOut { get; set; } = new(40104);
public ModbusProperty<ushort> LightOut2 { get; set; } = new(40104);
/// <summary>
/// 电池包锁止异常,暂停命令 0无命令1000暂停使能
/// 电池包锁止状态 0加锁1000解锁
/// </summary>
public ModbusProperty<ushort> StopCommand { get; set; } = new(40105);
//public ModbusProperty<string> Standby4 { get; set; } = new(40106, length: 5); // 备用4
public ModbusProperty<string> Standby11 { get; set; } = new(40106); //备用
public ModbusProperty<string> Standby12 { get; set; } = new(40107); //备用
public ModbusProperty<string> Standby13 { get; set; } = new(40108); //备用
public ModbusProperty<string> Standby14 { get; set; } = new(40109); //备用
public ModbusProperty<string> Standby15 { get; set; } = new(40110); //备用
/// <summary>
/// 任务类型
/// <para>0.无任务</para>
/// <para>1.换电任务</para>
/// <para>2.移舱任务</para>
/// <para>3.移出任务</para>
/// <para>4.移入任务</para>
/// <para>5.消防任务</para>
/// <para>0.待机</para>
/// <para>1.任务异常结束</para>
/// <para>2.换电任务</para>
/// <para>3.入库任务</para>
/// <para>4.出库任务</para>
/// <para>5.维护任务</para>
/// <para>6.调库任务</para>
/// <para>7.消防任务</para>
/// </summary>
public ModbusProperty<ushort> TaskType { get; set; } = new(40111);
/// <summary>
/// 入仓位选择
/// 0无操作
/// 范围1-20
/// 1:缓存位舱位号
/// 2-20 电池存储舱位
/// 站控直接下发仓位1-8
/// PLC来区分左右仓位区别
/// </summary>
public ModbusProperty<ushort> EntrySelection { get; set; } = new(40112);
/// <summary>
/// 出仓仓位选择
/// 0无操作
/// 范围1-20
/// 1:缓存位舱位号
/// 2-20 电池存储舱位
/// 站控直接下发仓位1-8
/// PLC来区分左右仓位区别
/// </summary>
public ModbusProperty<ushort> ExitSelection { get; set; } = new(40113);
/// <summary>
@ -372,10 +387,31 @@ namespace Service.Plc.Msg
/// </summary>
public ModbusProperty<ushort> BatteryPackType { get; set; } = new(40114);
/// <summary>
/// 0:无操作
/// 1000任务使能
/// 任务使能
/// <para>0无操作</para>
/// <para>1000任务使能</para>
/// </summary>
public ModbusProperty<ushort> TaskEnablement { get; set; } = new(40115);
/// <summary>
/// 卷帘门控制
/// <para>0:无操作</para>
/// <para>1000请求开启</para>
/// <para>1010请求关闭</para>
/// </summary>
public ModbusProperty<ushort> RollerShutter { get; set; } = new(40116);
/// <summary>
/// 除换电任务外放仓位选择
/// 站控直接下发仓位1-8右侧电池仓
/// 站控直接下发仓位11-18左仓电池仓
/// </summary>
public ModbusProperty<ushort> EntrySelection2 { get; set; } = new(40117);
/// <summary>
/// 除换电任务外取仓位选择
/// 站控直接下发仓位1-8右侧电池仓
/// 站控直接下发仓位11-18左仓电池仓
/// </summary>
public ModbusProperty<ushort> ExitSelection2 { get; set; } = new(40118);
}
}

@ -67,7 +67,7 @@ namespace Service.Plc.Msg
/// </summary>
//public ModbusProperty<1> value09 { get; set; } = new(40211, length: 30);
#region 舱位状态 bit0:有料检测 Bit1有料检测开关故障
#region 右仓电池在位状态 舱位状态 bit0:有料检测 Bit1有料检测开关故障
public ModbusProperty<byte> MaterialDetec01 { get; set; } = new(40241);
@ -93,12 +93,37 @@ namespace Service.Plc.Msg
#endregion 舱位状态
#region 右仓电池在位状态 舱位状态 bit0:有料检测 Bit1有料检测开关故障
public ModbusProperty<byte> MaterialDetec21 { get; set; } = new(40261);
public ModbusProperty<byte> MaterialDetec22 { get; set; } = new(40262);
public ModbusProperty<byte> MaterialDetec23 { get; set; } = new(40263);
public ModbusProperty<byte> MaterialDetec24 { get; set; } = new(40264);
public ModbusProperty<byte> MaterialDetec25 { get; set; } = new(40265);
public ModbusProperty<byte> MaterialDetec26 { get; set; } = new(40266);
public ModbusProperty<byte> MaterialDetec27 { get; set; } = new(40267);
public ModbusProperty<byte> MaterialDetec28 { get; set; } = new(40268);
public ModbusProperty<byte> MaterialDetec29 { get; set; } = new(40269);
public ModbusProperty<byte> MaterialDetec30 { get; set; } = new(40270);
public ModbusProperty<byte> MaterialDetec31 { get; set; } = new(40271);
public ModbusProperty<byte> MaterialDetec32 { get; set; } = new(40272);
public ModbusProperty<byte> MaterialDetec33 { get; set; } = new(40273);
public ModbusProperty<byte> MaterialDetec34 { get; set; } = new(40274);
public ModbusProperty<byte> MaterialDetec35 { get; set; } = new(40275);
public ModbusProperty<byte> MaterialDetec36 { get; set; } = new(40276);
public ModbusProperty<byte> MaterialDetec37 { get; set; } = new(40277);
public ModbusProperty<byte> MaterialDetec38 { get; set; } = new(40278);
public ModbusProperty<byte> MaterialDetec39 { get; set; } = new(40279);
public ModbusProperty<byte> MaterialDetec40 { get; set; } = new(40280);
#endregion 舱位状态
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<string> value11 { get; set; } = new(40281, length: 20);
public ModbusProperty<string> value1 { get; set; } = new(40281, length: 20);
/// <summary>
/// 载行车设备状态
/// 右侧载行车设备状态
/// <para>0无效值</para>
/// <para>1000:待机中</para>
/// <para>1001:定位识别中</para>
@ -111,23 +136,71 @@ namespace Service.Plc.Msg
/// </summary>
public ModbusProperty<ushort> CarStatus { get; set; } = new(40301);
public ModbusProperty<ushort> value13 { get; set; } = new(40302); // 备用
public ModbusProperty<ushort> value14 { get; set; } = new(40303); // 备用
public ModbusProperty<ushort> value15 { get; set; } = new(40304); // 备用
public ModbusProperty<ushort> value16 { get; set; } = new(40305); // 备用
public ModbusProperty<ushort> value2 { get; set; } = new(40302); // 备用
public ModbusProperty<ushort> value3 { get; set; } = new(40303); // 备用
public ModbusProperty<ushort> value4 { get; set; } = new(40304); // 备用
public ModbusProperty<ushort> value5 { get; set; } = new(40305); // 备用
/// <summary>
/// x轴扭矩百分比
/// 右侧x轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueX { get; set; } = new(40306);
/// <summary>
/// y轴扭矩百分比
/// 右侧y轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueY { get; set; } = new(40307);
/// <summary>
/// z轴扭矩百分比
/// 右侧z轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueZ { get; set; } = new(40308);
//public ModbusProperty<string> value20 { get; set; } = new(40309, length: 92); // 备用
/// <summary>
/// 右侧R轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueR { get; set; } = new(40309);
/// <summary>
/// 卷帘门状态
/// <para>0:无操作</para>
/// <para>1000请求开启</para>
/// <para>1010请求关闭</para>
/// </summary>
public ModbusProperty<ushort> RollerShutter { get; set; } = new(40116);
//public ModbusProperty<ushort> value6 { get; set; } = new(40116,length:12);
/// <summary>
/// 左侧载行车设备状态
/// <para>0无效值</para>
/// <para>1000:待机中</para>
/// <para>1001:定位识别中</para>
/// <para>1100:取电池中</para>
/// <para>1101:取电池完成</para>
/// <para>1102:取电池动作故障</para>
/// <para>1200:放电池中</para>
/// <para>1201:放电池完成</para>
/// <para>1202:放电池动作故障</para>
/// </summary>
public ModbusProperty<ushort> CarStatus2 { get; set; } = new(40321);
public ModbusProperty<ushort> value6 { get; set; } = new(40322); // 备用
public ModbusProperty<ushort> value7 { get; set; } = new(40323); // 备用
public ModbusProperty<ushort> value8 { get; set; } = new(40324); // 备用
public ModbusProperty<ushort> value9 { get; set; } = new(40325); // 备用
/// <summary>
/// 左侧x轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueX2 { get; set; } = new(40326);
/// <summary>
/// 左侧y轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueY2 { get; set; } = new(40327);
/// <summary>
/// 左侧z轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueZ2 { get; set; } = new(40328);
/// <summary>
/// 左侧R轴扭矩百分比
/// </summary>
public ModbusProperty<short> PercentageTorqueR2 { get; set; } = new(40329);
//public ModbusProperty<ushort> value6 { get; set; } = new(40116,length:71);
/// <summary>
/// 入口雷达状态
/// 0未触发
@ -177,17 +250,19 @@ namespace Service.Plc.Msg
/// </summary>
public ModbusProperty<ushort> LightOut { get; set; } = new(40406);
/// <summary>
/// 任务类型状态(是否允许允许执行任务)
/// <para>0.无任务 (不允许换电)</para>
/// <para>1.换电任务</para>
/// <para>2.移舱任务</para>
/// <para>3.移出任务</para>
/// <para>4.移入任务</para>
/// <para>5.消防任务</para>
/// </summary>
/// 任务类型状态
/// <para>0.待机</para>
/// <para>1.任务异常结束</para>
/// <para>2.换电任务</para>
/// <para>3.入库任务</para>
/// <para>4.出库任务</para>
/// <para>5.维护任务</para>
/// <para>6.调库任务</para>
/// <para>7.消防任务</para>
/// <summary>
public ModbusProperty<ushort> TaskType { get; set; } = new(40407);
/// <summary>
/// 任务状态
/// 堆垛机任务状态
/// <para>0无效值</para>
/// <para>1000准备中Not Ready</para>
/// <para>1001待机中Ready</para>
@ -205,12 +280,10 @@ namespace Service.Plc.Msg
/// <para>9000任务完成</para>
/// </summary>
public ModbusProperty<ushort> TaskStates { get; set; } = new(40408);
public ModbusProperty<ushort> value10 { get; set; } = new(40409);
/// <summary>
/// 执行任务行车号
/// </summary>
public ModbusProperty<ushort> OperationalTrainNumber { get; set; } = new(40409);
/// <summary>
/// 通道定位状态
/// 右侧堆垛机相机定位状态
/// <para>0无效值</para>
/// <para>1000;拍照OK</para>
/// <para>1010;拍照NG</para>
@ -218,20 +291,47 @@ namespace Service.Plc.Msg
/// </summary>
public ModbusProperty<ushort> ChannelLocationState { get; set; } = new(40410);
/// <summary>
/// x偏差
/// 右侧堆垛机相机x偏差
/// </summary>
public ModbusProperty<short> DeviationX { get; set; } = new(40411);
/// <summary>
/// y偏差
/// 右侧堆垛机相机y偏差
/// </summary>
public ModbusProperty<short> DeviationY { get; set; } = new(40412);
/// <summary>
/// z偏差
/// 右侧堆垛机相机z偏差
/// </summary>
public ModbusProperty<short> DeviationZ { get; set; } = new(40413);
//public ModbusProperty<string> value44 { get; set; } = new(40414, length: 7); // 备用
/// <summary>
/// 右侧堆垛机相机R偏差
/// </summary>
public ModbusProperty<short> DeviationR { get; set; } = new(40414);
public ModbusProperty<ushort> value11 { get; set; } = new(40409,length:13);
/// <summary>
/// 左侧堆垛机相机定位状态
/// <para>0无效值</para>
/// <para>1000;拍照OK</para>
/// <para>1010;拍照NG</para>
/// <para>1020;拍照超限,请移车</para>
/// </summary>
public ModbusProperty<ushort> ChannelLocationState2 { get; set; } = new(40428);
/// <summary>
/// 左侧堆垛机相机x偏差
/// </summary>
public ModbusProperty<short> DeviationX2 { get; set; } = new(40429);
/// <summary>
/// 左侧堆垛机相机y偏差
/// </summary>
public ModbusProperty<short> DeviationY2 { get; set; } = new(40430);
/// <summary>
/// 左侧堆垛机相机z偏差
/// </summary>
public ModbusProperty<short> DeviationZ2 { get; set; } = new(40431);
/// <summary>
/// 左侧堆垛机相机R偏差
/// </summary>
public ModbusProperty<short> DeviationR2 { get; set; } = new(40432);
}
}

Loading…
Cancel
Save