Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
thick-casting
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
潘栩锋
thick-casting
Commits
72bf88b1
Commit
72bf88b1
authored
Feb 18, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 自动模头服务器主界面添加 显示连接测厚仪服务器 状态
parent
4d8f0717
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
PgMain.xaml
...ing.AutoDie/FLY.FilmCasting.AutoDie.UI.Server/PgMain.xaml
+4
-0
PgMain.xaml.cs
....AutoDie/FLY.FilmCasting.AutoDie.UI.Server/PgMain.xaml.cs
+1
-0
FeedbackHeat.cs
...ng.AutoDie/FLY.FilmCasting.AutoDie/Server/FeedbackHeat.cs
+10
-13
TDGage.cs
...mCasting.AutoDie/FLY.FilmCasting.AutoDie/Server/TDGage.cs
+1
-1
No files found.
Project.FLY.FilmCasting.AutoDie/FLY.FilmCasting.AutoDie.UI.Server/PgMain.xaml
View file @
72bf88b1
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
<TextBlock Text="PLC连接状态" />
<TextBlock Text="PLC连接状态" />
<TextBlock Text="{Binding IsConnectedWithPLC}" FontSize="20"/>
<TextBlock Text="{Binding IsConnectedWithPLC}" FontSize="20"/>
</StackPanel>
</StackPanel>
<StackPanel Margin="4" Name="spBulkDb">
<TextBlock Text="测厚服务连接状态" />
<TextBlock Text="{Binding IsConnected}" FontSize="20"/>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
...
...
Project.FLY.FilmCasting.AutoDie/FLY.FilmCasting.AutoDie.UI.Server/PgMain.xaml.cs
View file @
72bf88b1
...
@@ -31,6 +31,7 @@ namespace FLY.FilmCasting.AutoDie.UI.Server
...
@@ -31,6 +31,7 @@ namespace FLY.FilmCasting.AutoDie.UI.Server
{
{
this
.
gage
=
gage
;
this
.
gage
=
gage
;
this
.
DataContext
=
gage
.
mfeedback
;
this
.
DataContext
=
gage
.
mfeedback
;
this
.
spBulkDb
.
DataContext
=
gage
.
bulkDb
;
}
}
}
}
}
}
Project.FLY.FilmCasting.AutoDie/FLY.FilmCasting.AutoDie/Server/FeedbackHeat.cs
View file @
72bf88b1
...
@@ -31,7 +31,8 @@ namespace FLY.FilmCasting.AutoDie.Server
...
@@ -31,7 +31,8 @@ namespace FLY.FilmCasting.AutoDie.Server
#
region
IFeedbackHeat
成员
#
region
IFeedbackHeat
成员
#
region
参数
#
region
参数
public
IPEndPoint
PLCep
{
get
;
set
;
}
public
string
PLCep
{
get
;
set
;
}
=
"192.168.50.60:502"
;
/// <summary>
/// <summary>
/// 自动控制使能
/// 自动控制使能
/// </summary>
/// </summary>
...
@@ -177,10 +178,9 @@ namespace FLY.FilmCasting.AutoDie.Server
...
@@ -177,10 +178,9 @@ namespace FLY.FilmCasting.AutoDie.Server
public
FeedbackHeat
()
public
FeedbackHeat
()
{
{
PLCep
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"192.168.50.60:502"
);
Load
();
Load
();
plc
=
new
PLCLink
(
PLCep
);
plc
=
new
PLCLink
(
Misc
.
StringConverter
.
ToIPEndPoint
(
"192.168.50.60:502"
)
);
}
}
...
@@ -315,11 +315,8 @@ namespace FLY.FilmCasting.AutoDie.Server
...
@@ -315,11 +315,8 @@ namespace FLY.FilmCasting.AutoDie.Server
InitError
();
InitError
();
if
(
plc
is
PLCLink
)
{
((
PLCLink
)
plc
).
Start
();
((
PLCLink
)
plc
).
Start
();
}
}
}
private
void
DynArea_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
private
void
DynArea_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
{
{
...
@@ -720,16 +717,16 @@ namespace FLY.FilmCasting.AutoDie.Server
...
@@ -720,16 +717,16 @@ namespace FLY.FilmCasting.AutoDie.Server
);
);
//工作的螺丝数
//工作的螺丝数
int
workBolts
=
lc_ScanData
.
BoltMapInfo
.
BoltCnt
-
lc_ScanData
.
BoltMapInfo
.
LeftEmptyBolts
+
lc_ScanData
.
BoltMapInfo
.
RightEmptyBolts
;
int
workBolts
=
lc_ScanData
.
BoltMapInfo
.
BoltCnt
-
(
lc_ScanData
.
BoltMapInfo
.
LeftEmptyBolts
+
lc_ScanData
.
BoltMapInfo
.
RightEmptyBolts
)
;
if
(
invalid_cnt
>
workBolts
/
2
)
//有一半数据都是无效的
if
(
invalid_cnt
>
workBolts
/
2
)
//有一半数据都是无效的
return
;
return
;
if
(
lc_ScanData
.
FilmVelocity
<
INVALID_VELOCITY
)
//
if (lc_ScanData.FilmVelocity < INVALID_VELOCITY)
{
//
{
//速度太慢,异常
//
//速度太慢,异常
return
;
//
return;
}
//
}
var
lcThickHeat
=
new
Lc_ThickHeat
()
var
lcThickHeat
=
new
Lc_ThickHeat
()
{
{
...
...
Project.FLY.FilmCasting.AutoDie/FLY.FilmCasting.AutoDie/Server/TDGage.cs
View file @
72bf88b1
...
@@ -27,7 +27,7 @@ namespace FLY.FilmCasting.AutoDie.Server
...
@@ -27,7 +27,7 @@ namespace FLY.FilmCasting.AutoDie.Server
#
region
服务器数据
--------------------------------------------------------------
#
region
服务器数据
--------------------------------------------------------------
FLY
.
Thick
.
FilmCasting
.
IService
.
IBoltMapFilmCastingService
boltMapFilmCasting
;
FLY
.
Thick
.
FilmCasting
.
IService
.
IBoltMapFilmCastingService
boltMapFilmCasting
;
FLY
.
Thick
.
FilmCasting
.
IService
.
IBulkDbService
bulkDb
;
public
FLY
.
Thick
.
FilmCasting
.
IService
.
IBulkDbService
bulkDb
;
FLY
.
Thick
.
Base
.
IService
.
ITDGageService
gageService
;
FLY
.
Thick
.
Base
.
IService
.
ITDGageService
gageService
;
/// <summary>
/// <summary>
/// 报警系统
/// 报警系统
...
...
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