Commit Graph

87 Commits

Author SHA1 Message Date
SL a0c00f0292 [Common]
ModuleName枚举中新增Diagnosis项。
修改DeviceEntityT对象中的诊断数据路径为System.Diagnosis
2024-01-09 10:05:25 +08:00
SL 50d91cb066 [Common]
优化系统Monitor()线程执行频率,可通过参数调节系统Monitor线程的调度时间,避免过快扫描系统设备造成的系统开销。

[RT.Equipment]
优化IoTC的Monitor()线程,避免高频写AO操作。
2024-01-08 16:33:45 +08:00
SL 6b35835014 [Common]
DataHolder对象增加ValueType属性,指示当前数据的类型。
新增CacheDiagnosisInfo对象,用于DataRecorderManager的ImmediateCache()方法输出诊断信息。
AOAccessor和DOAccessor调用ImmediateCache()方法时输出诊断信息。
2024-01-08 16:29:53 +08:00
SL 4e0e21c8b9 [Common]
优化DataRecorderCache和DataRecorderManager对象中的变量名称。
2024-01-07 11:45:22 +08:00
SL 151b293483 [Common]
优化IOAccessor及其子类的构造函数,传入IsSimulator参数以指示当前对象是否用于模拟器。
新增SimulatorIoManager对象,专用于模拟器中构造IoManager。
修正DataRecorderManager中没有正确分表的问题。
修改DataRecorderCache中的MAX_SIZE_SQL_EXPR常量,从5MB变更为50MB,以优化构造SQL语句超过200ms的问题。
2024-01-07 11:29:22 +08:00
auvkk c8848e60c9 导入Commit 42b498f IO相关对象的优化。 2024-01-05 13:44:53 +08:00
SL 54034593f5 Merge branch 'develop' into feature/high-performance-data-collector 2024-01-05 10:16:03 +08:00
SL 558af89d22 修正InterlockManager中的INTLK动作列表正在加载时,其它线程已经开始遍历该列表,导致异常的问题。
优化InterlockManager中的变量名称。
2023-12-27 16:13:36 +08:00
SL 66ddf8b742 优化三色灯代码。
三色灯数据交换文件中新增事件名称属性。
2023-12-27 15:12:26 +08:00
SL 0cfe77d1aa 修正JobDone蜂鸣器鸣响循环结束后,仍然继续鸣响的问题。
优化三色灯代码。
2023-12-27 10:42:19 +08:00
hanqiangqiang 7aa17480e5 [Common]
InterlockManager中Monitor扫描忽略翻转时,键值对集合中不包含对象时,continue当前循环
2023-12-15 08:53:48 +08:00
auvkk 094abb37c9 [Common]
IoManager启动Monitor线程的时机从构造函数移至Initialize()方法。
BoolDataPollProvider中增加断言,方便调试时发现数据注册问题。

[UI.Client]
优化RecipeData的GetXmlString()方法,修正当ComboBox类型参数的Option不存在于格式模板文件中是,输出错误信息,而不是直接抛异常导致难以定位错误的问题。
2023-10-25 16:40:36 +08:00
auvkk baed3056ac Merge branch 'develop' into feature/high-performance-data-collector 2023-10-23 08:49:34 +08:00
SIC1016\caipeilun 2f0e6197e2 Merge branch 'develop' of http://118.31.5.210:65000/Sic-Software/Sic.Framework into develop_configChangedV2 2023-10-20 14:48:54 +08:00
SL 82721f7a35 [Common]
日志系统增加输出Debug信息的方法。

[UI.Client]
RecipeEditorViewModel的OnActive方法输出Debug信息用于调试视图无法打开时程序卡死的问题。
2023-10-14 10:13:30 +08:00
SIC1016\caipeilun 952261ed51 不关心隐藏配置:配置对比时若配置不可视则不进行对比 2023-10-09 17:26:45 +08:00
SL 5521325263 [Common]
增加DataRecorderManager及其相关对象。
2023-10-08 21:18:59 +08:00
SIC1016\caipeilun 79b642b871 Merge branch 'develop' of http://118.31.5.210:65000/Sic-Software/Sic.Framework into develop_configChangedV2 2023-10-04 16:11:59 +08:00
SIC1016\caipeilun c6533050c5 配置文件对比功能V2
1.启动时与上次软件配置做对比,若存在差异,将生成新的备份文件,并将差异进行提示
2.配置界面右上角按钮可以过滤差异项,树状图有高亮提示
3.右上角按钮可以直接恢复上次配置软件参数,需要确认
4.config文件夹中有配置备份,可以复制出来替换掉配置文件,重启后生效
2023-10-04 16:10:17 +08:00
SL 47863a000d Merge branch 'develop' into feature/single-session-login
# Conflicts:
#	MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessViewModel.cs
2023-09-30 17:36:10 +08:00
SL ed26bf6bd1 [Common]
移除EV.PostLoginBySameUser方法,改为UI端轮训LoginRequest状态凭据。
优化CredentialManager对于Requesting凭据字典的处理,在OnTimer方法中检测KeepAlive时移除RequestCanceled和Rejected状态的凭据。
2023-09-18 14:17:34 +08:00
SL 56bbd2e440 [Common]
继续完善RT登录逻辑。
已在SicManual中测试,以前的登录逻辑没有问题,新的踢出逻辑还未测试。

[UI.Client]
移除未使用的登录控件。
2023-09-13 17:31:22 +08:00
SL 45bb9e7bf7 [Common]
继续优化用户管理器相关代码,并修正错误,编译通过。(未调试)
2023-09-12 18:11:47 +08:00
SL cbb7c732ac [Common]
完成LoginbySameUser事件测试。
2023-09-02 00:58:20 +08:00
SL 2a6fbb7179 [Common]
新增PostLoginBySameUser方法,当同一用户异地登录时,通知已登录的客户端下线。
2023-09-01 17:52:02 +08:00
SIC1016\caipeilun 8f66a4d067 Limit类新增ignoreReverse属性,=true忽略单项limit反转Action 2023-09-01 17:47:09 +08:00
DESKTOP-OKMOOJ9\MK 86af260ad6 [Common]
InterlockManagerBase的Initialize()方法新增对配置文件的Action节点ignoreReverse属性的支持,允许将Action配置为忽略Limit命中后翻转电平动作。
2023-08-30 23:06:49 +08:00
SL 75c5abf732 [Common]
新增Credential对象,准备用于WCF访问验证。
2023-08-29 18:02:30 +08:00
SL 788333d6e6 Merge branch 'develop' into feature/bind-interlock-manager-to-module 2023-08-25 17:23:53 +08:00
SL 0aad2d5852 [RT.Equipment]
IoMFC增加两个配置:Valve和DisableFbSpErrMonWhenValveClosed,允许仅当Valve打开时进行Feedback-SetPoint误差监测。
优化ErrorDetectableBaseDevice、IoMFC代码结构。
2023-08-25 16:05:19 +08:00
SL e7ad49b615 [Common]
修正LOG消息中缺少Level信息的问题。

(cherry picked from commit 48480ad733)
2023-08-22 10:32:51 +08:00
SL eb4925f5ec [Common]
修正InterlockManagerBase的Initialize方法中,如果Action重复,Debug.Assert判断逻辑错误导致没有提示的问题。
优化InterlockActionBase的IsSame方法,忽略DO名称大小写。
2023-08-21 11:51:09 +08:00
SL fe947f0e5a [Common]
InterlockManagerBase对象的Initialize方法中增加Action是否已经存在的判断,同一个Action仅允许定义一次。
2023-08-21 11:33:12 +08:00
SL 2b2b2e2051 [Common]
优化IInterlockAction和InterlockActionBase代码,整理注释。
2023-08-21 11:32:01 +08:00
SL f59093980c [Common]
InterlockDaemonAction对象Monitor方法中输出信息的等级修改为Info。
InterlockDaemonAction对象Monitor方法中如果SetDo失败,输出错误信息到日志,而不是PostWarningLog。
2023-08-18 10:06:41 +08:00
SL 07d4c4b792 [Common]
修正InterlockDaemonManager的Monitor方法输出Limit命中信息时错误使用Limit.Description属性的问题。
2023-08-17 17:39:50 +08:00
SL 48480ad733 [Common]
修正LOG消息中缺少Level信息的问题。
2023-08-17 17:21:04 +08:00
SL 8e55cb9782 [Common]
修正AiLimit返回CurrentValue产生转换异常的问题。
修正InterlockDaemonAction的Monitor方法输出的信息缩进错误的问题。
2023-08-17 16:38:08 +08:00
SL 9690d35a11 [Common]
修正BoolDataPollLimit和DoubleDataPollLimit中CurrentValue的处理逻辑,当Data.Poll返回null时,CurrentValue强制返回无法使当前Limit命中的值,以避免Limit意外触发。
IInterlockLimit接口增加Description属性。
IInterlockLimitDataProvider接口中增加Description属性。
从InterlockManagerBase中移除_dicLimit字段。
IoValueProviderBase中的Name属性返回IO名称,包含地址的IO全名通过Description属性返回。
2023-08-17 15:44:38 +08:00
SL 74c2f66484 [Common]
将字段_dicLimitToActionMap、_dicLimitPerModule从InterlockManager对象移至InterlockManagerBase对象。
优化InterlockManager对象的Initialize方法,精简代码。
优化Interlock相关对象的目录结构和命名空间。
2023-08-17 09:43:24 +08:00
SL 75a3a81bc7 [Common]
InterlockManagerBase新增_dicLimits字段,确保相同条件的Limit仅创建一个实例。
修正InterlockManager对象创建_dicLimitToActionMap字典错误的问题。
2023-08-17 01:24:28 +08:00
SL babf55f5d8 [Common]
修正InterlockManagerBase的Initialize方法判断配置文件的Root节点名称时,不同派生类使用不同名称导致加载失败的问题。
修改InterlockManager对象的基类为InterlockManagerBase,并删减重复的代码。
2023-08-17 01:10:47 +08:00
SL 243d9a89fb [Common]
新增IInterlockAction接口。
新增InterlockManagerBase对象,整合InterlockManager和InterlockDaemonManager公共代码。
2023-08-16 15:21:02 +08:00
SL a018001cac [Common]
优化InterlockDaemonManager对象,增加Limit OR逻辑定义的支持。
新增InterlockActionBase对象,简化代码。
2023-08-16 15:06:29 +08:00
SL 168fc69d6f [Common]
InterlockManager初始化时检查传入的配置文件是否不存在。
修正InterlockDaemonManager中Daemon节点拼写错误的问题。
2023-08-15 18:10:11 +08:00
SL 65cc498516 [Common]
整理InterlockDaemonManager代码结构。
2023-08-15 17:36:37 +08:00
SL 4ba62bfbbf [UI.Core]
移除EngMode相关的Converters。

[UI.Client]
ModuleStatusIndicator对象增加Warning图标和Warning图标Tips。

[RT.Equipment]
PMModuleBase对象新增IsInterlockBypassed属性,用于指示PM模组是否旁路互锁。
2023-08-15 15:36:38 +08:00
SL 7ae695656b 优化Interlock系统,增加Interlock Daemon相关对象,用于在后台监测数据,并自动设置DO输出。 2023-08-10 16:44:46 +08:00
SL 742726ae32 移除全局BypassInterlock系统参数,现在可针对每个Module单独配置。
InterlockManager中增加SetEventLevel()方法,当PM进入Service模式时,允许将Interlock事件打印信息的等级降为Info。
移除BypassEnableTable系统参数。
2023-08-09 17:57:50 +08:00
hanqiangqiang d87dc6460d [Common]
ErrorDetectableBaseDevice类中添加参数设置后添加回调功能
2023-08-08 11:24:51 +08:00