From 3cba54c4ee8d29d33ed21a2c749a9d2f2d03e22d Mon Sep 17 00:00:00 2001 From: xcd <834800634@qq.com> Date: 星期五, 03 七月 2020 18:33:30 +0800 Subject: [PATCH] 板卡IO定义修改。板卡预定义操作功能实现 --- src/Bro.Common.Model/Helper/EnumHelper.cs | 73 ++++++++++++++++++------------------ 1 files changed, 37 insertions(+), 36 deletions(-) diff --git a/src/Bro.Common.Model/Helper/EnumHelper.cs b/src/Bro.Common.Model/Helper/EnumHelper.cs index a264b4a..703be4a 100644 --- a/src/Bro.Common.Model/Helper/EnumHelper.cs +++ b/src/Bro.Common.Model/Helper/EnumHelper.cs @@ -523,44 +523,26 @@ } /// <summary> - /// IO瀹氫箟绫诲瀷 + /// IO棰勫畾涔夌被鍨� 涓昏閽堝杈撳嚭 /// </summary> - public enum IODefine + public enum IOPrestatement { - Nothing, - InputStartLeft, - InputStartRight, - InputCurtainLeft, - InputCurtainRight, - InputSafeDoor, - InputEmergency, - InputReset, - InputScrew1, - InputScrew2, - InputSuckLeft, - InputSuckRight, - InputSuckXYZ, - InputCylinderLeftLimitFront, - InputCylinderLeftLimitBack, - InputCylinderRightLimitFront, - InputCylinderRightLimitBack, + [Description("鑷畾涔�")] + Customized = 0, + [Description("鎸囩ず鐏�-榛�")] + Light_Yellow = 1, + [Description("鎸囩ず鐏�-绾�")] + Light_Green = 2, + [Description("鎸囩ず鐏�-缁�")] + Light_Red = 3, + [Description("铚傞福鍣�")] + Beep = 4, + [Description("鐓ф槑鐏�")] + Light = 5, - OutputYellow, - OutputGreen, - OutputRed, - OutputBeep, - OutputLight, - OutputMotorPower, - OutputInitOK, - OutputZLock, - OutputLeftCylinder, - OutputRightCylinder, - OutputLeftSuck, - OutputRightSuck, - OutputScrewBlow, - OutputCamera, - OutputScrewSuck, + [Description("鎬ュ仠")] + EmergencyStop = 99, } /// <summary> @@ -590,9 +572,19 @@ public enum IOType { [Description("INPUT")] - In = 0, + INPUT = 0, [Description("OUTPUT")] - Out = 1 + OUTPUT = 1 + } + + public enum IOValue + { + [Description("鍏抽棴")] + FALSE = 0, + [Description("寮�鍚�")] + TRUE = 1, + [Description("鍙嶈浆")] + REVERSE = 2, } /// <summary> @@ -611,5 +603,14 @@ //[Description("鏇存柊鏁版嵁")] //UpdateData, } + + public enum MachineState + { + Unknown, + Ready, + Running, + Alarm, + Pause, + } } } -- Gitblit v1.8.0