Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
PastureGateway
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
steven.sha
PastureGateway
Commits
c72d7fa8
Commit
c72d7fa8
authored
Jun 21, 2019
by
leon.huang
Browse files
Options
Browse Files
Download
Plain Diff
merge origin master
parents
5e2f988a
4d5dd796
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Form1.cs
ModbusDemo/windows/Form1.cs
+12
-0
No files found.
ModbusDemo/windows/Form1.cs
View file @
c72d7fa8
...
...
@@ -1039,10 +1039,18 @@ namespace ModbusDemo
ModbusComm
.
Modbus
.
Transport
.
WriteTimeout
=
1000
;
ModbusComm
.
Modbus
.
Transport
.
WaitToRetryMilliseconds
=
0
;
<<<<<<<
HEAD
t_AutoControl
=
new
Thread
(
AtuoControl_run
);
t_AutoControl
.
IsBackground
=
true
;
t_AutoControl
.
Start
();
=======
t_AutoControl
=
new
Thread
(
AtuoControl_run
)
{
IsBackground
=
true
};
t_AutoControl
.
Start
();
>>>>>>>
origin
/
master
modbus_Timer
.
Enabled
=
true
;
btOpenCOM
.
Enabled
=
false
;
...
...
@@ -1081,6 +1089,7 @@ namespace ModbusDemo
}
private
async
void
run
()
{
<<<<<<<
HEAD
if
(
LOCALDEBUG
==
true
)
{
comPort
.
PortName
=
"COM6"
;
...
...
@@ -1089,6 +1098,9 @@ namespace ModbusDemo
{
comPort
.
PortName
=
"COM6"
;
}
=======
comPort
.
PortName
=
"COM1"
;
>>>>>>>
origin
/
master
comPort
.
BaudRate
=
9600
;
comPort
.
Parity
=
Parity
.
None
;
comPort
.
StopBits
=
StopBits
.
One
;
...
...
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