25111801 添加PLC屏蔽交互

This commit is contained in:
moxiliang
2025-11-18 09:09:43 +08:00
parent de7adcb3ae
commit cb825c5c8e
24 changed files with 185 additions and 57 deletions

Binary file not shown.

View File

@@ -2,24 +2,13 @@
"Version": 1, "Version": 1,
"WorkspaceRootPath": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\", "WorkspaceRootPath": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\",
"Documents": [ "Documents": [
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|d:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{00000000-0000-0000-0000-000000000000}|\u003CSolution\u003E|SLC1-N||{04B8AB82-A572-4FEF-95CE-5222444B6B64}|"
},
{ {
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", "AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" "RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
}, },
{ {
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", "AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|d:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" "RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}, },
{ {
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
@@ -29,6 +18,17 @@
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", "AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" "RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
}, },
{
"AbsoluteMoniker": "D:0:0:{00000000-0000-0000-0000-000000000000}|\u003CSolution\u003E|SLC1-N||{04B8AB82-A572-4FEF-95CE-5222444B6B64}|"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{ {
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" "RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
@@ -212,9 +212,6 @@
{ {
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\configini.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\configini.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\configini.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" "RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\configini.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|d:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\slc1-n\\||{B270807C-D8C6-49EB-8EBE-8E8D566637A1}|5e9a8ac2-4f34-4521-858f-4c248ba31532"
} }
], ],
"DocumentGroupContainers": [ "DocumentGroupContainers": [
@@ -224,17 +221,17 @@
"DocumentGroups": [ "DocumentGroups": [
{ {
"DockedWidth": 396, "DockedWidth": 396,
"SelectedChildIndex": 0, "SelectedChildIndex": 14,
"Children": [ "Children": [
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 0, "DocumentIndex": 1,
"Title": "Form1.cs", "Title": "Form1.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form1.cs", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form1.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form1.cs", "RelativeDocumentMoniker": "SLC1-N\\Form1.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form1.cs", "ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form1.cs",
"RelativeToolTip": "SLC1-N\\Form1.cs", "RelativeToolTip": "SLC1-N\\Form1.cs",
"ViewState": "AQIAANMEAAAAAAAAAAAzwO0EAAAAAAAA", "ViewState": "AQIAAJQBAAAAAAAAAAAqwJoBAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-10-18T01:41:29.412Z", "WhenOpened": "2025-10-18T01:41:29.412Z",
"IsPinned": true, "IsPinned": true,
@@ -274,7 +271,7 @@
}, },
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 4, "DocumentIndex": 6,
"Title": "Form_BatchSave.cs", "Title": "Form_BatchSave.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form_BatchSave.cs", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form_BatchSave.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs", "RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs",
@@ -286,7 +283,7 @@
}, },
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 3, "DocumentIndex": 5,
"Title": "Form_BatchSave.cs [\u8BBE\u8BA1]", "Title": "Form_BatchSave.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form_BatchSave.cs", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form_BatchSave.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs", "RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs",
@@ -309,30 +306,32 @@
}, },
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 6, "DocumentIndex": 3,
"Title": "Electricity.cs [\u8BBE\u8BA1]", "Title": "Electricity.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs",
"RelativeDocumentMoniker": "SLC1-N\\Electricity.cs", "RelativeDocumentMoniker": "SLC1-N\\Electricity.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs [\u8BBE\u8BA1]", "ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs [\u8BBE\u8BA1]",
"RelativeToolTip": "SLC1-N\\Electricity.cs [\u8BBE\u8BA1]", "RelativeToolTip": "SLC1-N\\Electricity.cs [\u8BBE\u8BA1]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-18T01:03:21.678Z" "WhenOpened": "2025-08-18T01:03:21.678Z",
"EditorCaption": " [\u8BBE\u8BA1]"
}, },
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 5, "DocumentIndex": 2,
"Title": "Electricity.cs", "Title": "Electricity.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs",
"RelativeDocumentMoniker": "SLC1-N\\Electricity.cs", "RelativeDocumentMoniker": "SLC1-N\\Electricity.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs", "ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Electricity.cs",
"RelativeToolTip": "SLC1-N\\Electricity.cs", "RelativeToolTip": "SLC1-N\\Electricity.cs",
"ViewState": "AQIAALQCAAAAAAAAAAA0wNECAAAyAAAA", "ViewState": "AQIAAGEAAAAAAAAAAADwv4MAAAAgAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-10-30T02:55:49.085Z" "WhenOpened": "2025-10-30T02:55:49.085Z",
"EditorCaption": ""
}, },
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 2, "DocumentIndex": 0,
"Title": "Form1.cs [\u8BBE\u8BA1]", "Title": "Form1.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form1.cs", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\Form1.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form1.cs", "RelativeDocumentMoniker": "SLC1-N\\Form1.cs",
@@ -344,15 +343,14 @@
}, },
{ {
"$type": "Document", "$type": "Document",
"DocumentIndex": 1, "DocumentIndex": 4,
"Title": "SLC1-N", "Title": "SLC1-N",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\SLC1-N.csproj", "DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\SLC1-N.csproj",
"RelativeDocumentMoniker": "SLC1-N\\SLC1-N.csproj", "RelativeDocumentMoniker": "SLC1-N\\SLC1-N.csproj",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\SLC1-N.csproj", "ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u76F4\u538B28\\huabei4tongdao\\SLC1-N\\SLC1-N.csproj",
"RelativeToolTip": "SLC1-N\\SLC1-N.csproj", "RelativeToolTip": "SLC1-N\\SLC1-N.csproj",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2025-11-11T02:49:54.535Z", "WhenOpened": "2025-11-11T02:49:54.535Z"
"EditorCaption": ""
}, },
{ {
"$type": "Document", "$type": "Document",
@@ -376,7 +374,8 @@
"RelativeToolTip": "SLC1-N\\Electricity.Designer.cs", "RelativeToolTip": "SLC1-N\\Electricity.Designer.cs",
"ViewState": "AQIAANMCAAAAAAAAAAA1wOoCAAAAAAAA", "ViewState": "AQIAANMCAAAAAAAAAAA1wOoCAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-10-28T09:46:39.581Z" "WhenOpened": "2025-10-28T09:46:39.581Z",
"EditorCaption": ""
}, },
{ {
"$type": "Document", "$type": "Document",

View File

@@ -28,6 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Electricity)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Electricity));
this.tabPage3 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage();
this.lb_PLCsaomamsg = new System.Windows.Forms.Label(); this.lb_PLCsaomamsg = new System.Windows.Forms.Label();
@@ -65,6 +66,7 @@
this.SaveConfig = new Sunny.UI.UISymbolButton(); this.SaveConfig = new Sunny.UI.UISymbolButton();
this.label33 = new System.Windows.Forms.Label(); this.label33 = new System.Windows.Forms.Label();
this.uiGroupBox13 = new Sunny.UI.UIGroupBox(); this.uiGroupBox13 = new Sunny.UI.UIGroupBox();
this.bt_BatchParamSave = new Sunny.UI.UISymbolButton();
this.chk_ChkBee = new System.Windows.Forms.CheckBox(); this.chk_ChkBee = new System.Windows.Forms.CheckBox();
this.rbt_NpressureMode = new System.Windows.Forms.RadioButton(); this.rbt_NpressureMode = new System.Windows.Forms.RadioButton();
this.tb_ParaName = new Sunny.UI.UITextBox(); this.tb_ParaName = new Sunny.UI.UITextBox();
@@ -129,7 +131,12 @@
this.label89 = new System.Windows.Forms.Label(); this.label89 = new System.Windows.Forms.Label();
this.SendText = new System.Windows.Forms.TextBox(); this.SendText = new System.Windows.Forms.TextBox();
this.uiTabControlMenu1 = new Sunny.UI.UITabControlMenu(); this.uiTabControlMenu1 = new Sunny.UI.UITabControlMenu();
this.bt_BatchParamSave = new Sunny.UI.UISymbolButton(); this.chk_SafetyDoor = new System.Windows.Forms.CheckBox();
this.chk_CH4Grating = new System.Windows.Forms.CheckBox();
this.chk_CH3Grating = new System.Windows.Forms.CheckBox();
this.chk_CH2Grating = new System.Windows.Forms.CheckBox();
this.chk_CH1Grating = new System.Windows.Forms.CheckBox();
this.timer_Block = new System.Windows.Forms.Timer(this.components);
this.tabPage3.SuspendLayout(); this.tabPage3.SuspendLayout();
this.uiGroupBox2.SuspendLayout(); this.uiGroupBox2.SuspendLayout();
this.uiGroupBox1.SuspendLayout(); this.uiGroupBox1.SuspendLayout();
@@ -142,6 +149,11 @@
// tabPage3 // tabPage3
// //
this.tabPage3.BackColor = System.Drawing.Color.LightBlue; this.tabPage3.BackColor = System.Drawing.Color.LightBlue;
this.tabPage3.Controls.Add(this.chk_SafetyDoor);
this.tabPage3.Controls.Add(this.chk_CH4Grating);
this.tabPage3.Controls.Add(this.chk_CH3Grating);
this.tabPage3.Controls.Add(this.chk_CH2Grating);
this.tabPage3.Controls.Add(this.chk_CH1Grating);
this.tabPage3.Controls.Add(this.lb_PLCsaomamsg); this.tabPage3.Controls.Add(this.lb_PLCsaomamsg);
this.tabPage3.Controls.Add(this.label17); this.tabPage3.Controls.Add(this.label17);
this.tabPage3.Controls.Add(this.tb_ContinueTestCount); this.tabPage3.Controls.Add(this.tb_ContinueTestCount);
@@ -164,7 +176,7 @@
// //
this.lb_PLCsaomamsg.AutoSize = true; this.lb_PLCsaomamsg.AutoSize = true;
this.lb_PLCsaomamsg.Font = new System.Drawing.Font("宋体", 15F); this.lb_PLCsaomamsg.Font = new System.Drawing.Font("宋体", 15F);
this.lb_PLCsaomamsg.Location = new System.Drawing.Point(758, 569); this.lb_PLCsaomamsg.Location = new System.Drawing.Point(505, 466);
this.lb_PLCsaomamsg.Name = "lb_PLCsaomamsg"; this.lb_PLCsaomamsg.Name = "lb_PLCsaomamsg";
this.lb_PLCsaomamsg.Size = new System.Drawing.Size(29, 20); this.lb_PLCsaomamsg.Size = new System.Drawing.Size(29, 20);
this.lb_PLCsaomamsg.TabIndex = 483; this.lb_PLCsaomamsg.TabIndex = 483;
@@ -174,7 +186,7 @@
// //
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("宋体", 15F); this.label17.Font = new System.Drawing.Font("宋体", 15F);
this.label17.Location = new System.Drawing.Point(789, 530); this.label17.Location = new System.Drawing.Point(847, 534);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(59, 20); this.label17.Size = new System.Drawing.Size(59, 20);
this.label17.TabIndex = 482; this.label17.TabIndex = 482;
@@ -186,7 +198,7 @@
this.tb_ContinueTestCount.Cursor = System.Windows.Forms.Cursors.IBeam; this.tb_ContinueTestCount.Cursor = System.Windows.Forms.Cursors.IBeam;
this.tb_ContinueTestCount.FillColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); this.tb_ContinueTestCount.FillColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.tb_ContinueTestCount.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tb_ContinueTestCount.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tb_ContinueTestCount.Location = new System.Drawing.Point(851, 526); this.tb_ContinueTestCount.Location = new System.Drawing.Point(909, 530);
this.tb_ContinueTestCount.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tb_ContinueTestCount.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tb_ContinueTestCount.Maximum = 2147483647D; this.tb_ContinueTestCount.Maximum = 2147483647D;
this.tb_ContinueTestCount.Minimum = -2147483648D; this.tb_ContinueTestCount.Minimum = -2147483648D;
@@ -203,7 +215,7 @@
this.chk_ContinueTest.AutoSize = true; this.chk_ContinueTest.AutoSize = true;
this.chk_ContinueTest.BackColor = System.Drawing.Color.LightBlue; this.chk_ContinueTest.BackColor = System.Drawing.Color.LightBlue;
this.chk_ContinueTest.Font = new System.Drawing.Font("宋体", 15F); this.chk_ContinueTest.Font = new System.Drawing.Font("宋体", 15F);
this.chk_ContinueTest.Location = new System.Drawing.Point(791, 494); this.chk_ContinueTest.Location = new System.Drawing.Point(849, 498);
this.chk_ContinueTest.Name = "chk_ContinueTest"; this.chk_ContinueTest.Name = "chk_ContinueTest";
this.chk_ContinueTest.Size = new System.Drawing.Size(108, 24); this.chk_ContinueTest.Size = new System.Drawing.Size(108, 24);
this.chk_ContinueTest.TabIndex = 481; this.chk_ContinueTest.TabIndex = 481;
@@ -216,7 +228,7 @@
this.chk_ch4saoma.AutoSize = true; this.chk_ch4saoma.AutoSize = true;
this.chk_ch4saoma.BackColor = System.Drawing.Color.LightBlue; this.chk_ch4saoma.BackColor = System.Drawing.Color.LightBlue;
this.chk_ch4saoma.Font = new System.Drawing.Font("宋体", 15F); this.chk_ch4saoma.Font = new System.Drawing.Font("宋体", 15F);
this.chk_ch4saoma.Location = new System.Drawing.Point(887, 638); this.chk_ch4saoma.Location = new System.Drawing.Point(509, 601);
this.chk_ch4saoma.Name = "chk_ch4saoma"; this.chk_ch4saoma.Name = "chk_ch4saoma";
this.chk_ch4saoma.Size = new System.Drawing.Size(118, 24); this.chk_ch4saoma.Size = new System.Drawing.Size(118, 24);
this.chk_ch4saoma.TabIndex = 480; this.chk_ch4saoma.TabIndex = 480;
@@ -229,7 +241,7 @@
this.chk_ch3saoma.AutoSize = true; this.chk_ch3saoma.AutoSize = true;
this.chk_ch3saoma.BackColor = System.Drawing.Color.LightBlue; this.chk_ch3saoma.BackColor = System.Drawing.Color.LightBlue;
this.chk_ch3saoma.Font = new System.Drawing.Font("宋体", 15F); this.chk_ch3saoma.Font = new System.Drawing.Font("宋体", 15F);
this.chk_ch3saoma.Location = new System.Drawing.Point(763, 638); this.chk_ch3saoma.Location = new System.Drawing.Point(509, 567);
this.chk_ch3saoma.Name = "chk_ch3saoma"; this.chk_ch3saoma.Name = "chk_ch3saoma";
this.chk_ch3saoma.Size = new System.Drawing.Size(118, 24); this.chk_ch3saoma.Size = new System.Drawing.Size(118, 24);
this.chk_ch3saoma.TabIndex = 479; this.chk_ch3saoma.TabIndex = 479;
@@ -242,7 +254,7 @@
this.chk_ch2saoma.AutoSize = true; this.chk_ch2saoma.AutoSize = true;
this.chk_ch2saoma.BackColor = System.Drawing.Color.LightBlue; this.chk_ch2saoma.BackColor = System.Drawing.Color.LightBlue;
this.chk_ch2saoma.Font = new System.Drawing.Font("宋体", 15F); this.chk_ch2saoma.Font = new System.Drawing.Font("宋体", 15F);
this.chk_ch2saoma.Location = new System.Drawing.Point(887, 601); this.chk_ch2saoma.Location = new System.Drawing.Point(509, 532);
this.chk_ch2saoma.Name = "chk_ch2saoma"; this.chk_ch2saoma.Name = "chk_ch2saoma";
this.chk_ch2saoma.Size = new System.Drawing.Size(118, 24); this.chk_ch2saoma.Size = new System.Drawing.Size(118, 24);
this.chk_ch2saoma.TabIndex = 478; this.chk_ch2saoma.TabIndex = 478;
@@ -255,7 +267,7 @@
this.chk_ch1saoma.AutoSize = true; this.chk_ch1saoma.AutoSize = true;
this.chk_ch1saoma.BackColor = System.Drawing.Color.LightBlue; this.chk_ch1saoma.BackColor = System.Drawing.Color.LightBlue;
this.chk_ch1saoma.Font = new System.Drawing.Font("宋体", 15F); this.chk_ch1saoma.Font = new System.Drawing.Font("宋体", 15F);
this.chk_ch1saoma.Location = new System.Drawing.Point(763, 601); this.chk_ch1saoma.Location = new System.Drawing.Point(510, 498);
this.chk_ch1saoma.Name = "chk_ch1saoma"; this.chk_ch1saoma.Name = "chk_ch1saoma";
this.chk_ch1saoma.Size = new System.Drawing.Size(118, 24); this.chk_ch1saoma.Size = new System.Drawing.Size(118, 24);
this.chk_ch1saoma.TabIndex = 477; this.chk_ch1saoma.TabIndex = 477;
@@ -677,6 +689,21 @@
this.uiGroupBox13.Text = "仪器参数设置"; this.uiGroupBox13.Text = "仪器参数设置";
this.uiGroupBox13.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; this.uiGroupBox13.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
// //
// bt_BatchParamSave
//
this.bt_BatchParamSave.Cursor = System.Windows.Forms.Cursors.Hand;
this.bt_BatchParamSave.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.bt_BatchParamSave.Location = new System.Drawing.Point(600, 385);
this.bt_BatchParamSave.MinimumSize = new System.Drawing.Size(1, 1);
this.bt_BatchParamSave.Name = "bt_BatchParamSave";
this.bt_BatchParamSave.Size = new System.Drawing.Size(149, 35);
this.bt_BatchParamSave.Style = Sunny.UI.UIStyle.Custom;
this.bt_BatchParamSave.Symbol = 61678;
this.bt_BatchParamSave.TabIndex = 476;
this.bt_BatchParamSave.Text = "批量保存参数";
this.bt_BatchParamSave.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.bt_BatchParamSave.Click += new System.EventHandler(this.bt_BatchParamSave_Click);
//
// chk_ChkBee // chk_ChkBee
// //
this.chk_ChkBee.AutoSize = true; this.chk_ChkBee.AutoSize = true;
@@ -1582,20 +1609,74 @@
this.uiTabControlMenu1.TabSelectedForeColor = System.Drawing.Color.Black; this.uiTabControlMenu1.TabSelectedForeColor = System.Drawing.Color.Black;
this.uiTabControlMenu1.TabUnSelectedForeColor = System.Drawing.Color.Black; this.uiTabControlMenu1.TabUnSelectedForeColor = System.Drawing.Color.Black;
// //
// bt_BatchParamSave // chk_SafetyDoor
// //
this.bt_BatchParamSave.Cursor = System.Windows.Forms.Cursors.Hand; this.chk_SafetyDoor.AutoSize = true;
this.bt_BatchParamSave.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.chk_SafetyDoor.BackColor = System.Drawing.Color.LightBlue;
this.bt_BatchParamSave.Location = new System.Drawing.Point(600, 385); this.chk_SafetyDoor.Font = new System.Drawing.Font("宋体", 15F);
this.bt_BatchParamSave.MinimumSize = new System.Drawing.Size(1, 1); this.chk_SafetyDoor.Location = new System.Drawing.Point(659, 634);
this.bt_BatchParamSave.Name = "bt_BatchParamSave"; this.chk_SafetyDoor.Name = "chk_SafetyDoor";
this.bt_BatchParamSave.Size = new System.Drawing.Size(149, 35); this.chk_SafetyDoor.Size = new System.Drawing.Size(128, 24);
this.bt_BatchParamSave.Style = Sunny.UI.UIStyle.Custom; this.chk_SafetyDoor.TabIndex = 493;
this.bt_BatchParamSave.Symbol = 61678; this.chk_SafetyDoor.Text = "安全门屏蔽";
this.bt_BatchParamSave.TabIndex = 476; this.chk_SafetyDoor.UseVisualStyleBackColor = false;
this.bt_BatchParamSave.Text = "批量保存参数"; this.chk_SafetyDoor.CheckedChanged += new System.EventHandler(this.chk_SafetyDoor_CheckedChanged);
this.bt_BatchParamSave.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); //
this.bt_BatchParamSave.Click += new System.EventHandler(this.bt_BatchParamSave_Click); // chk_CH4Grating
//
this.chk_CH4Grating.AutoSize = true;
this.chk_CH4Grating.BackColor = System.Drawing.Color.LightBlue;
this.chk_CH4Grating.Font = new System.Drawing.Font("宋体", 15F);
this.chk_CH4Grating.Location = new System.Drawing.Point(659, 601);
this.chk_CH4Grating.Name = "chk_CH4Grating";
this.chk_CH4Grating.Size = new System.Drawing.Size(158, 24);
this.chk_CH4Grating.TabIndex = 492;
this.chk_CH4Grating.Text = "通道4光栅屏蔽";
this.chk_CH4Grating.UseVisualStyleBackColor = false;
this.chk_CH4Grating.CheckedChanged += new System.EventHandler(this.chk_CH4Grating_CheckedChanged);
//
// chk_CH3Grating
//
this.chk_CH3Grating.AutoSize = true;
this.chk_CH3Grating.BackColor = System.Drawing.Color.LightBlue;
this.chk_CH3Grating.Font = new System.Drawing.Font("宋体", 15F);
this.chk_CH3Grating.Location = new System.Drawing.Point(659, 567);
this.chk_CH3Grating.Name = "chk_CH3Grating";
this.chk_CH3Grating.Size = new System.Drawing.Size(158, 24);
this.chk_CH3Grating.TabIndex = 491;
this.chk_CH3Grating.Text = "通道3光栅屏蔽";
this.chk_CH3Grating.UseVisualStyleBackColor = false;
this.chk_CH3Grating.CheckedChanged += new System.EventHandler(this.chk_CH3Grating_CheckedChanged);
//
// chk_CH2Grating
//
this.chk_CH2Grating.AutoSize = true;
this.chk_CH2Grating.BackColor = System.Drawing.Color.LightBlue;
this.chk_CH2Grating.Font = new System.Drawing.Font("宋体", 15F);
this.chk_CH2Grating.Location = new System.Drawing.Point(659, 532);
this.chk_CH2Grating.Name = "chk_CH2Grating";
this.chk_CH2Grating.Size = new System.Drawing.Size(158, 24);
this.chk_CH2Grating.TabIndex = 490;
this.chk_CH2Grating.Text = "通道2光栅屏蔽";
this.chk_CH2Grating.UseVisualStyleBackColor = false;
this.chk_CH2Grating.CheckedChanged += new System.EventHandler(this.chk_CH2Grating_CheckedChanged);
//
// chk_CH1Grating
//
this.chk_CH1Grating.AutoSize = true;
this.chk_CH1Grating.BackColor = System.Drawing.Color.LightBlue;
this.chk_CH1Grating.Font = new System.Drawing.Font("宋体", 15F);
this.chk_CH1Grating.Location = new System.Drawing.Point(659, 498);
this.chk_CH1Grating.Name = "chk_CH1Grating";
this.chk_CH1Grating.Size = new System.Drawing.Size(158, 24);
this.chk_CH1Grating.TabIndex = 489;
this.chk_CH1Grating.Text = "通道1光栅屏蔽";
this.chk_CH1Grating.UseVisualStyleBackColor = false;
this.chk_CH1Grating.CheckedChanged += new System.EventHandler(this.chk_CH1Grating_CheckedChanged);
//
// timer_Block
//
this.timer_Block.Tick += new System.EventHandler(this.timer_Block_Tick);
// //
// Electricity // Electricity
// //
@@ -1727,5 +1808,11 @@
private Sunny.UI.UITextBox tb_ContinueTestCount; private Sunny.UI.UITextBox tb_ContinueTestCount;
private System.Windows.Forms.Label lb_PLCsaomamsg; private System.Windows.Forms.Label lb_PLCsaomamsg;
private Sunny.UI.UISymbolButton bt_BatchParamSave; private Sunny.UI.UISymbolButton bt_BatchParamSave;
private System.Windows.Forms.CheckBox chk_SafetyDoor;
private System.Windows.Forms.CheckBox chk_CH4Grating;
private System.Windows.Forms.CheckBox chk_CH3Grating;
private System.Windows.Forms.CheckBox chk_CH2Grating;
private System.Windows.Forms.CheckBox chk_CH1Grating;
private System.Windows.Forms.Timer timer_Block;
} }
} }

View File

@@ -126,6 +126,10 @@ namespace SLC1_N
chk_ContinueTest.Checked = config.GetValue<bool>("chk_ContinueTest", true); chk_ContinueTest.Checked = config.GetValue<bool>("chk_ContinueTest", true);
tb_ContinueTestCount.Enabled = chk_ContinueTest.Checked; tb_ContinueTestCount.Enabled = chk_ContinueTest.Checked;
tb_ContinueTestCount.Text = config.GetValue<int>("tb_ContinueTestCount", 1).ToString(); tb_ContinueTestCount.Text = config.GetValue<int>("tb_ContinueTestCount", 1).ToString();
// 刷新屏蔽状态
timer_Block.Interval = 1000;
timer_Block.Start();
} }
//上传参数 //上传参数
@@ -747,5 +751,39 @@ namespace SLC1_N
} }
} }
} }
private void chk_CH1Grating_CheckedChanged(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1040, chk_CH1Grating.Checked);
}
private void chk_CH2Grating_CheckedChanged(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1041, chk_CH2Grating.Checked);
}
private void chk_CH3Grating_CheckedChanged(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1042, chk_CH3Grating.Checked);
}
private void chk_CH4Grating_CheckedChanged(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1043, chk_CH4Grating.Checked);
}
private void chk_SafetyDoor_CheckedChanged(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1044, chk_SafetyDoor.Checked);
}
private void timer_Block_Tick(object sender, EventArgs e)
{
chk_CH1Grating.Checked = Form1.f1.coilBlock[0];
chk_CH2Grating.Checked = Form1.f1.coilBlock[1];
chk_CH3Grating.Checked = Form1.f1.coilBlock[2];
chk_CH4Grating.Checked = Form1.f1.coilBlock[3];
chk_SafetyDoor.Checked = Form1.f1.coilBlock[4];
}
} }
} }

View File

@@ -117,6 +117,9 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="timer_Block.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>138</value> <value>138</value>
</metadata> </metadata>

View File

@@ -1050,7 +1050,7 @@
// chk_SaomaFocus // chk_SaomaFocus
// //
this.chk_SaomaFocus.AutoSize = true; this.chk_SaomaFocus.AutoSize = true;
this.chk_SaomaFocus.Location = new System.Drawing.Point(642, 16); this.chk_SaomaFocus.Location = new System.Drawing.Point(612, 16);
this.chk_SaomaFocus.Name = "chk_SaomaFocus"; this.chk_SaomaFocus.Name = "chk_SaomaFocus";
this.chk_SaomaFocus.Size = new System.Drawing.Size(90, 20); this.chk_SaomaFocus.Size = new System.Drawing.Size(90, 20);
this.chk_SaomaFocus.TabIndex = 474; this.chk_SaomaFocus.TabIndex = 474;
@@ -3067,7 +3067,7 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true; this.KeyPreview = true;
this.Name = "Form1"; this.Name = "Form1";
this.Text = " LL28-C_V25111701"; this.Text = " LL28-C_V25111801";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
this.uiGroupBox5.ResumeLayout(false); this.uiGroupBox5.ResumeLayout(false);

View File

@@ -202,6 +202,7 @@ namespace SLC1_N
bool[] coil1100 = new bool[14]; bool[] coil1100 = new bool[14];
bool[] coil1032 = new bool[8]; bool[] coil1032 = new bool[8];
public bool[] coilSaoma = new bool[4]; public bool[] coilSaoma = new bool[4];
public bool[] coilBlock = new bool[5];
// PLC警报 // PLC警报
void PLC_Alarm() void PLC_Alarm()
@@ -431,8 +432,8 @@ namespace SLC1_N
} }
else else
{ {
HCPLC_client.ReadHoldingRegisters(1, 1); // 如果失败,会抛异常 coilBlock = HCPLC_client.ReadCoils(1040, 5); // 如果失败,会抛异常
Thread.Sleep(10); Thread.Sleep(100);
Signal_PLCStatus?.Invoke(0, true); // 更新PLC连接状态UI Signal_PLCStatus?.Invoke(0, true); // 更新PLC连接状态UI
coilSaoma = HCPLC_client.ReadCoils(1012, 4); coilSaoma = HCPLC_client.ReadCoils(1012, 4);

Binary file not shown.

Binary file not shown.

Binary file not shown.