Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
4c2a03d7
Commit
4c2a03d7
authored
Jan 07, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 辅助代码生成 单例对象的 寄存器地址没写,也不会提示出错
parent
d8fb684b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
Autogen_WS.exe
Resource/Autogen_WS.exe
+0
-0
DataInfos.cs
...Project.FLY.Autogen_WS/Autogen_WS/Autogen_WS/DataInfos.cs
+9
-12
No files found.
Resource/Autogen_WS.exe
View file @
4c2a03d7
No preview for this file type
Resource/辅助代码生成/Project.FLY.Autogen_WS/Autogen_WS/Autogen_WS/DataInfos.cs
View file @
4c2a03d7
...
...
@@ -213,17 +213,14 @@ namespace Autogen_WS
return
false
;
}
string
plc_addr
;
try
{
plc_addr
=
sheet
.
Cells
[
iRow
,
i_plcAddr
].
Value
.
ToString
();
}
catch
{
//空的
ErrorMsgbox
?.
Invoke
(
"没有PLC地址 描述="
+
ii
.
propDescription
);
return
false
;
}
string
plc_addr
=
sheet
.
Cells
[
iRow
,
i_plcAddr
].
GetValue
<
string
>();
if
(
string
.
IsNullOrEmpty
(
plc_addr
))
//没有填写地址,这个寄存器不需要
goto
_next
;
plc_addr
=
plc_addr
.
Trim
();
if
(
string
.
IsNullOrEmpty
(
plc_addr
))
goto
_next
;
if
(!
analysisAddr
.
Resolve
(
plc_addr
,
out
ii
.
plcIndex
,
out
ii
.
regType
,
out
ii
.
mbAddr
))
{
...
...
@@ -266,7 +263,7 @@ namespace Autogen_WS
}
_next
:
iRow
++;
Progress
+=
1
;
if
(
Progress
>=
100
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment