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
0f79d20c
Commit
0f79d20c
authored
Jun 05, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加624X输出限制开关
parent
b0741b9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
17 deletions
+32
-17
PCBuffer.cs
GcDevicePc/GCBuffer/PCBuffer.cs
+1
-1
MDIBase.cs
GcDevicePc/MDIBase.cs
+6
-4
DataOutput.cs
GcDevicePc/ProThread/DataOutput.cs
+25
-12
No files found.
GcDevicePc/GCBuffer/PCBuffer.cs
View file @
0f79d20c
...
...
@@ -91,7 +91,7 @@ namespace GcDevicePc.GCBuffer
gcpcinfo
.
pcworkinfo
.
system_Statue
=
false
;
gcpcinfo
.
pcworkinfo
.
work_Statue
=
0
;
gcpcinfo
.
moduleinfo
.
ip
=
"
192.168.1.54
"
;
gcpcinfo
.
moduleinfo
.
ip
=
""
;
string
file
=
System
.
Windows
.
Forms
.
Application
.
StartupPath
+
"\\startup.ini"
;
...
...
GcDevicePc/MDIBase.cs
View file @
0f79d20c
...
...
@@ -369,7 +369,7 @@ namespace GcDevicePc
if
(
i
!=
99
)
{
worker
.
ReportProgress
(
i
);
break
;
//
break;
}
}
...
...
@@ -585,7 +585,8 @@ namespace GcDevicePc
dataVOC
.
CKvocUpdataStart
();
mytcptest
.
DataRcvStart
();
wtd624xOutput
.
DataOutStart
();
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
moduleinfo
.
ip
))
wtd624xOutput
.
DataOutStart
();
}
private
void
Stop_Thread
()
...
...
@@ -601,7 +602,8 @@ namespace GcDevicePc
mymodbus
.
ChannelDataStop
();
}
wtd624xOutput
.
DataOutStop
();
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
moduleinfo
.
ip
))
wtd624xOutput
.
DataOutStop
();
}
/// <summary>
...
...
@@ -998,7 +1000,7 @@ namespace GcDevicePc
conmre
.
Set
();
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcthreadinfo
.
HMI_Monitor_TH
=
1
;
Thread
.
Sleep
(
1
5
00
);
Thread
.
Sleep
(
1
0
00
);
count
=
0
;
...
...
GcDevicePc/ProThread/DataOutput.cs
View file @
0f79d20c
...
...
@@ -15,7 +15,7 @@ namespace GcDevicePc.ProThread
ManualResetEvent
outputmre
=
new
ManualResetEvent
(
false
);
Thread
t_DataOut
;
private
WTD624X
wtd624x
=
new
WTD624X
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
moduleinfo
.
ip
,
502
)
;
private
WTD624X
wtd624x
;
private
bool
c6h6
=
false
;
private
bool
c7h8
=
false
;
...
...
@@ -157,28 +157,41 @@ namespace GcDevicePc.ProThread
public
void
DataOutStart
()
{
if
(
outputmre
!=
null
)
if
(
!
String
.
IsNullOrEmpty
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
moduleinfo
.
ip
)
)
{
outputmre
.
Reset
(
);
wtd624x
=
new
WTD624X
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
moduleinfo
.
ip
,
502
);
}
t_DataOut
=
new
Thread
(
OutPut_DataList
);
t_DataOut
.
IsBackground
=
true
;
t_DataOut
.
Start
();
if
(!
wtd624x
.
GetWorkFlag
())
if
(
wtd624x
!=
null
)
{
wtd624x
.
WTD624X_Open
();
if
(
outputmre
!=
null
)
{
outputmre
.
Reset
();
}
t_DataOut
=
new
Thread
(
OutPut_DataList
);
t_DataOut
.
IsBackground
=
true
;
t_DataOut
.
Start
();
if
(!
wtd624x
.
GetWorkFlag
())
{
wtd624x
.
WTD624X_Open
();
}
}
}
public
void
DataOutStop
()
{
outputmre
.
Set
();
if
(
wtd624x
.
GetWorkFlag
())
if
(
wtd624x
!=
null
)
{
wtd624x
.
WTD624X_Open
();
outputmre
.
Set
();
if
(
wtd624x
.
GetWorkFlag
())
{
wtd624x
.
WTD624X_Open
();
}
}
}
}
...
...
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