添加项目文件。
This commit is contained in:
46
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVCommand.cs
Normal file
46
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVCommand.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.CircleRGV
|
||||
{
|
||||
public partial class CircleRGVCommand:ObservableObject
|
||||
{
|
||||
//*************************************************写入*************************************************
|
||||
/// <summary>
|
||||
/// 下发任务号
|
||||
/// </summary>
|
||||
public int Write_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 下发穿梭车编号
|
||||
/// </summary>
|
||||
public int Write_DeviceNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public int Write_TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
/// </summary>
|
||||
public int Write_DeviceState { get; set; }
|
||||
/// <summary>
|
||||
/// 下发取货站点
|
||||
/// </summary>
|
||||
public string? Write_SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发放货站点
|
||||
/// </summary>
|
||||
public string? Write_TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发完成
|
||||
/// </summary>
|
||||
public int Write_SendFinish { get; set; }
|
||||
/// <summary>
|
||||
/// 下发校验码
|
||||
/// </summary>
|
||||
public int Write_Checksum { get; set; }
|
||||
}
|
||||
}
|
||||
109
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVState.cs
Normal file
109
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVState.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.CircleRGV
|
||||
{
|
||||
public class CircleRGVState : IDisposable
|
||||
{
|
||||
//*************************************************读取*************************************************
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string? Title { get; set; }
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
public int Number { get; set; }
|
||||
/// <summary>
|
||||
/// 操作模式 0-未知 1-工作 2-手动
|
||||
/// </summary>
|
||||
public short Read_Mode { get; set; }
|
||||
/// <summary>
|
||||
/// 设备状态 0-未知 1-工作 2-手动 3-自动待机 100-报警
|
||||
/// </summary>
|
||||
public short Read_DeviceState { get; set; }
|
||||
/// <summary>
|
||||
/// 执行阶段 1-取货途中,2-取货,3-送货途中,4-送货,5-完成
|
||||
/// </summary>
|
||||
public short Read_Phase { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public int Read_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 允许下发 false-禁止 true-允许
|
||||
/// </summary>
|
||||
public bool Read_Permission { get; set; }
|
||||
/// <summary>
|
||||
/// 当前站点
|
||||
/// </summary>
|
||||
public string? Read_CurrentLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 取货站点
|
||||
/// </summary>
|
||||
public string? Read_SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 放货站点
|
||||
/// </summary>
|
||||
public string? Read_TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public byte Read_TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// BPS
|
||||
/// </summary>
|
||||
public int Read_BPSNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 运行里程
|
||||
/// </summary>
|
||||
public double Read_Mileage { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private bool disposedValue;
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!disposedValue)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
// TODO: 释放托管状态(托管对象)
|
||||
}
|
||||
|
||||
// TODO: 释放未托管的资源(未托管的对象)并重写终结器
|
||||
// TODO: 将大型字段设置为 null
|
||||
disposedValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
// // TODO: 仅当“Dispose(bool disposing)”拥有用于释放未托管资源的代码时才替代终结器
|
||||
// ~CircleRGVState()
|
||||
// {
|
||||
// // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
// Dispose(disposing: false);
|
||||
// }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
Dispose(disposing: true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.CircleRGVStation
|
||||
{
|
||||
public class CircleRGVStationCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// 下发任务号
|
||||
/// </summary>
|
||||
public int Write_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 下发穿梭车编号 常规任务-0 其他任务-环穿编号
|
||||
/// </summary>
|
||||
public int Write_DeviceNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型 1-常规任务 2-小车回休息区 3-休息区小车上轨道
|
||||
/// </summary>
|
||||
public int Write_TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 下发取货站点
|
||||
/// </summary>
|
||||
public int Write_SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发放货站点
|
||||
/// </summary>
|
||||
public int Write_TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发完成
|
||||
/// </summary>
|
||||
public int Write_SendFinish { get; set; }
|
||||
/// <summary>
|
||||
/// 下发校验码-所有字节求和
|
||||
/// </summary>
|
||||
public short Write_Checksum { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.CircleRGVStation
|
||||
{
|
||||
public class CircleRGVStationState : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 允许下发 0-禁止下发 1-允许下发
|
||||
/// </summary>
|
||||
public int Read_Permission { get; set; }
|
||||
/// <summary>
|
||||
/// 下发状态 0-其他,1-正常接收,2-接收异常
|
||||
/// </summary>
|
||||
public int Read_SendState { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public int Read_TaskNumber { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//---------------------------------供实垛侧站点---------------------------------
|
||||
//---------------------------------供实垛侧站点---------------------------------
|
||||
//---------------------------------供实垛侧站点---------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---供实垛-1001
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1001 { get; set; }
|
||||
/// <summary>
|
||||
/// 1001供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1001 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---供实垛-1003
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1003 { get; set; }
|
||||
/// <summary>
|
||||
/// 1003供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1003 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---供实垛-1005
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1005 { get; set; }
|
||||
/// <summary>
|
||||
/// 1005供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1005 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---D线供实垛-1007
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1007 { get; set; }
|
||||
/// <summary>
|
||||
/// 1007供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1007 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---D线供实垛-1008
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1008 { get; set; }
|
||||
/// <summary>
|
||||
/// 1008供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1008 { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---立库入口1供实垛-1009
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1009 { get; set; }
|
||||
/// <summary>
|
||||
/// 1009供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1009 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---立库入口2供实垛-1010
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1010 { get; set; }
|
||||
/// <summary>
|
||||
/// 1010供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1010 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---供实垛-1011
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1011 { get; set; }
|
||||
/// <summary>
|
||||
/// 1011供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1011 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---供实垛-1012
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1012 { get; set; }
|
||||
/// <summary>
|
||||
/// 1012供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1012 { get; set; }
|
||||
|
||||
//==========================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---供空托-1013
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1013 { get; set; }
|
||||
/// <summary>
|
||||
/// 1013供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1013 { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---放空托-1002
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1002 { get; set; }
|
||||
/// <summary>
|
||||
/// 1002供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1002 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---放空托-1004
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1004 { get; set; }
|
||||
/// <summary>
|
||||
/// 1004供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1004 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---放空托-1006
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1006 { get; set; }
|
||||
/// <summary>
|
||||
/// 1006供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1006 { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private bool disposedValue;
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!disposedValue)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
// TODO: 释放托管状态(托管对象)
|
||||
}
|
||||
|
||||
// TODO: 释放未托管的资源(未托管的对象)并重写终结器
|
||||
// TODO: 将大型字段设置为 null
|
||||
disposedValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
// // TODO: 仅当“Dispose(bool disposing)”拥有用于释放未托管资源的代码时才替代终结器
|
||||
// ~CircleRGVStationState()
|
||||
// {
|
||||
// // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
// Dispose(disposing: false);
|
||||
// }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
Dispose(disposing: true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
WPFWCSDemo/Models/Devices/Conv/ConvCommand.cs
Normal file
13
WPFWCSDemo/Models/Devices/Conv/ConvCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv
|
||||
{
|
||||
public class ConvCommand
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
13
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetCommand.cs
Normal file
13
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvGet
|
||||
{
|
||||
public class ConvGetCommand
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
58
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetState.cs
Normal file
58
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetState.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvGet
|
||||
{
|
||||
public class ConvGetState
|
||||
{
|
||||
/// <summary>
|
||||
/// A线取货请求
|
||||
/// </summary>
|
||||
public bool A_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// A线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool A_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// B线取货请求
|
||||
/// </summary>
|
||||
public bool B_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// B线回空托请求
|
||||
/// </summary>
|
||||
public bool B_BackRequest { get; set; }
|
||||
/// <summary>
|
||||
/// B线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool B_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// C线取货请求
|
||||
/// </summary>
|
||||
public bool C_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// C线回空托请求
|
||||
/// </summary>
|
||||
public bool C_BackRequest { get; set; }
|
||||
/// <summary>
|
||||
/// C线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool C_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// D线取货请求
|
||||
/// </summary>
|
||||
public bool D_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// D线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool D_Exception { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
13
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutCommand.cs
Normal file
13
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvPut
|
||||
{
|
||||
public class ConvPutCommand
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
31
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutState.cs
Normal file
31
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutState.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvPut
|
||||
{
|
||||
|
||||
public class ConvPutState
|
||||
{
|
||||
/// <summary>
|
||||
/// AB口请求出空托
|
||||
/// </summary>
|
||||
public bool AB_OutRequest { get; set; }
|
||||
/// <summary>
|
||||
/// AB输送机无故障
|
||||
/// </summary>
|
||||
public bool AB_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CD口请求出空托
|
||||
/// </summary>
|
||||
public bool CD_OutRequest { get; set; }
|
||||
/// <summary>
|
||||
/// CD输送机无故障
|
||||
/// </summary>
|
||||
public bool CD_Exception { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
24
WPFWCSDemo/Models/Devices/Conv/ConvState.cs
Normal file
24
WPFWCSDemo/Models/Devices/Conv/ConvState.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv
|
||||
{
|
||||
public class ConvState
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public int Read_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 输送到位
|
||||
/// </summary>
|
||||
public int Read_InPosition { get; set; }
|
||||
/// <summary>
|
||||
/// 输送请求
|
||||
/// </summary>
|
||||
public int Read_TransRequest { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user