From 93148b11a5f426c8214f110bbfb7fb58487ddba7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=80=E6=B3=93=E7=A7=8B=E6=B0=B4?= <1090698674@qq.com>
Date: Wed, 30 Jul 2025 12:04:53 +0800
Subject: [PATCH] Delete Net462DllTest directory
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
需要重写
---
Net462DllTest/Enums/FromValue.cs | 12 -
Net462DllTest/Enums/PlcState.cs | 28 --
Net462DllTest/Enums/PlcVarName.cs | 129 -----
.../LogicControl/ParkingLogicControl.cs | 52 --
Net462DllTest/LogicControl/PlcLogicControl.cs | 152 ------
Net462DllTest/Main.cs | 46 --
Net462DllTest/Model/PlcVarModel.cs | 229 ---------
Net462DllTest/Net462DllTest.csproj | 98 ----
Net462DllTest/Signal/CommandSignal.cs | 15 -
Net462DllTest/Signal/PLCVarSignal.cs | 96 ----
Net462DllTest/Trigger/PrakingDevice.cs | 12 -
Net462DllTest/Trigger/SiemensPlcDevice.cs | 463 ------------------
Net462DllTest/Trigger/ViewManagement.cs | 84 ----
Net462DllTest/Utils/GSModel.cs | 157 ------
Net462DllTest/Utils/RelayCommand.cs | 41 --
Net462DllTest/Web/FlowController.cs | 80 ---
Net462DllTest/Web/PlcSocketService.cs | 166 -------
Net462DllTest/app.config | 11 -
Net462DllTest/packages.config | 7 -
19 files changed, 1878 deletions(-)
delete mode 100644 Net462DllTest/Enums/FromValue.cs
delete mode 100644 Net462DllTest/Enums/PlcState.cs
delete mode 100644 Net462DllTest/Enums/PlcVarName.cs
delete mode 100644 Net462DllTest/LogicControl/ParkingLogicControl.cs
delete mode 100644 Net462DllTest/LogicControl/PlcLogicControl.cs
delete mode 100644 Net462DllTest/Main.cs
delete mode 100644 Net462DllTest/Model/PlcVarModel.cs
delete mode 100644 Net462DllTest/Net462DllTest.csproj
delete mode 100644 Net462DllTest/Signal/CommandSignal.cs
delete mode 100644 Net462DllTest/Signal/PLCVarSignal.cs
delete mode 100644 Net462DllTest/Trigger/PrakingDevice.cs
delete mode 100644 Net462DllTest/Trigger/SiemensPlcDevice.cs
delete mode 100644 Net462DllTest/Trigger/ViewManagement.cs
delete mode 100644 Net462DllTest/Utils/GSModel.cs
delete mode 100644 Net462DllTest/Utils/RelayCommand.cs
delete mode 100644 Net462DllTest/Web/FlowController.cs
delete mode 100644 Net462DllTest/Web/PlcSocketService.cs
delete mode 100644 Net462DllTest/app.config
delete mode 100644 Net462DllTest/packages.config
diff --git a/Net462DllTest/Enums/FromValue.cs b/Net462DllTest/Enums/FromValue.cs
deleted file mode 100644
index 2c0a3f9..0000000
--- a/Net462DllTest/Enums/FromValue.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using Serein.Library;
-
-namespace Net462DllTest.Signal
-{
- /*public enum FromValue
- {
- [BindValue(typeof(FromWorkBenchView))]
- FromWorkBenchView,
- [BindValue(typeof(TestFormView))]
- TestFormView,
- }*/
-}
diff --git a/Net462DllTest/Enums/PlcState.cs b/Net462DllTest/Enums/PlcState.cs
deleted file mode 100644
index 52a7be5..0000000
--- a/Net462DllTest/Enums/PlcState.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Net462DllTest.Enums
-{
- public enum PlcState
- {
- ///
- /// 关机
- ///
- PowerOff,
- ///
- /// 正在运行
- ///
- Runing,
- ///
- /// 发生异常
- ///
- Error,
- ///
- /// 维护中
- ///
- Maintenance,
- }
-}
diff --git a/Net462DllTest/Enums/PlcVarName.cs b/Net462DllTest/Enums/PlcVarName.cs
deleted file mode 100644
index 17a9ba7..0000000
--- a/Net462DllTest/Enums/PlcVarName.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-using IoTClient.Enums;
-using Net462DllTest.Signal;
-using static Net462DllTest.Signal.PlcVarInfo;
-
-namespace Net462DllTest.Enums
-{
-
-
-
- ///
- /// PLC变量信息
- ///
- public enum PlcVarName
- {
- ///
- /// 车位号
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V100", OnNotificationType.OnChanged)]
- SpaceNum,
-
- ///
- /// 上位机指令
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V102", OnNotificationType.OnChanged)]
- CmdForPLC,
-
- ///
- /// PLC当前存取车位号
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V110", OnNotificationType.OnChanged)]
- DoingSpaceNum,
-
- ///
- /// 下位机状态
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V112", OnNotificationType.OnChanged)]
- PLCState,
-
- ///
- /// 门1正常待机车位号,存车完成地面车位0
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V114", OnNotificationType.OnChanged)]
- Door1CurSpaceNum,
-
- ///
- /// 门2正常待机车位号,存车完成地面车位0
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V124", OnNotificationType.OnChanged)]
- Door2CurSpaceNum,
-
- ///
- /// 下位机运行模式
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V116", OnNotificationType.OnChanged)]
- PLCRunMode,
-
- ///
- /// 执行的门号
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V104", OnNotificationType.OnChanged)]
- DoorVar,
-
- ///
- /// 门1是否开到位
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V207.0", OnNotificationType.OnChanged)]
- IsDoor1OpenDone,
-
- ///
- /// 门1是否关到位
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V207.1", OnNotificationType.OnChanged)]
- IsDoor1ClosedDone,
-
-
- ///
- /// 门2是否开到位
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V207.3", OnNotificationType.OnChanged)]
- IsDoor2OpenDone,
-
- ///
- /// 门2是否关到位
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V207.4", OnNotificationType.OnChanged)]
- IsDoor2ClosedDone,
-
- ///
- /// 通道1是否有车
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V284.7", OnNotificationType.OnChanged)]
- HasCarInTone1,
-
- ///
- /// 通道2是否有车
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V286.7", OnNotificationType.OnChanged)]
- HasCarInTone2,
-
- ///
- /// 下位机异常代码
- ///
- [PlcVarInfo(DataTypeEnum.Int16, "V2", OnNotificationType.OnChanged)]
- ErrorCode,
-
- ///
- /// 2层以上的空板是否在待机
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "V200.7", OnNotificationType.OnChanged)]
- IsOver2FlowStanded,
-
- ///
- /// 1号门指示灯
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "Q17.0", OnNotificationType.OnChanged)]
- Gate1Light,
-
- ///
- /// 2号门指示灯
- ///
- [PlcVarInfo(DataTypeEnum.Bool, "Q17.3", OnNotificationType.OnChanged)]
- Gate2Light,
- }
-
-
-
-
-
-}
diff --git a/Net462DllTest/LogicControl/ParkingLogicControl.cs b/Net462DllTest/LogicControl/ParkingLogicControl.cs
deleted file mode 100644
index 70b9260..0000000
--- a/Net462DllTest/LogicControl/ParkingLogicControl.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using Net462DllTest.Trigger;
-using Serein.Library;
-using Serein.Library.Api;
-using System;
-using System.Threading.Tasks;
-
-namespace Net462DllTest.LogicControl
-{
-
- public enum ParkingCommand
- {
- GetPparkingSpace,
- }
-
- [AutoRegister]
- [DynamicFlow("[Parking]")]
- public class ParkingLogicControl
- {
- private readonly PrakingDevice PrakingDevice;
-
- public ParkingLogicControl(PrakingDevice PrakingDevice)
- {
- this.PrakingDevice = PrakingDevice;
- }
-
-
- [NodeAction(NodeType.Flipflop, "等待车位调取命令")]
- public async Task> GetPparkingSpace(ParkingCommand parkingCommand = ParkingCommand.GetPparkingSpace)
- {
- var result = await PrakingDevice.WaitTriggerAsync(parkingCommand);
- await Console.Out.WriteLineAsync("收到命令:调取车位,车位号" + result.Value);
- return new FlipflopContext(FlipflopStateType.Succeed, result.Value);
- }
-
-
- [NodeAction(NodeType.Action, "调取指定车位")]
- public async Task Storage(string spaceNum = "101")
- {
- if (await PrakingDevice.InvokeTriggerAsync(ParkingCommand.GetPparkingSpace, spaceNum))
- {
- Console.WriteLine("发送命令成功:调取车位" + spaceNum);
-
- }
- else
- {
- Console.WriteLine("发送命令失败:调取车位" + spaceNum);
- }
- }
-
-
- }
-}
diff --git a/Net462DllTest/LogicControl/PlcLogicControl.cs b/Net462DllTest/LogicControl/PlcLogicControl.cs
deleted file mode 100644
index d17a0d0..0000000
--- a/Net462DllTest/LogicControl/PlcLogicControl.cs
+++ /dev/null
@@ -1,152 +0,0 @@
-using IoTClient.Common.Enums;
-using Net462DllTest.Enums;
-using Net462DllTest.Model;
-using Net462DllTest.Trigger;
-using Serein.Library;
-using Serein.Library.Api;
-using System;
-using System.Threading.Tasks;
-
-namespace Net462DllTest.LogicControl
-{
- [AutoRegister]
- [DynamicFlow("[SiemensPlc]")]
- public class PlcLogicControl
- {
- public Guid HandleGuid { get; } = new Guid();
-
- private readonly SiemensPlcDevice MyPlc;
- private readonly PlcVarModelDataProxy plcVarModelDataProxy;
-
- public PlcLogicControl(SiemensPlcDevice MyPlc,
- PlcVarModelDataProxy plcVarModelDataProxy)
- {
- this.MyPlc = MyPlc;
- this.plcVarModelDataProxy = plcVarModelDataProxy;
- }
-
- #region 初始化
- [NodeAction(NodeType.Loading)] // Loading 初始化完成已注入依赖项,可以开始逻辑上的操作
- public void Loading(IFlowContext context)
- {
-
-
- }
-
- [NodeAction(NodeType.Exit)] // 流程结束时自动执行
- public void Exit(IFlowContext context)
- {
- MyPlc.Close();
- MyPlc.CancelAllTrigger();
- }
-
- #endregion
-
- #region 触发器节点
-
- [NodeAction(NodeType.Flipflop, "等待变量更新")]
- public async Task> WaitTask(PlcVarName varName = PlcVarName.ErrorCode)
- {
- try
- {
- var triggerData = await MyPlc.WaitTriggerAsync