Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
GC_Branch
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
周磊
GC_Branch
Commits
6b7f5145
Commit
6b7f5145
authored
Aug 10, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加moudbus控制自动校准
parent
6635628f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
GCModbusSlave.cs
GcDevicePc/Common/GCModbusSlave.cs
+13
-1
No files found.
GcDevicePc/Common/GCModbusSlave.cs
View file @
6b7f5145
...
...
@@ -566,7 +566,19 @@ namespace GcDevicePc.Common
static
void
slavewirtehreg
(
ushort
address
,
ushort
value
)
{
// Console.WriteLine("MoudbusSlave Wirte adder:" + address.ToString() + " value:" + value.ToString());
if
(
address
==
100
||
address
==
99
||
address
==
101
)
{
if
(
value
==
1
)
{
CurveDisPlay
.
curdisp
.
SetAutoAdjust
();
}
else
if
(
value
==
0
)
{
CurveDisPlay
.
curdisp
.
StopAutoAdjust
();
}
}
Log
.
Info
(
"MoudbusSlave Wirte adder:"
+
address
.
ToString
()
+
" value:"
+
value
.
ToString
());
}
SlaveReadCoilsRegister
MySlaveReadCoilsRegister
;
...
...
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