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
51dc32ec
Commit
51dc32ec
authored
Sep 02, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.添加 吸料的寄存器地址表
2.修改 称重服务器画面
parent
05ac8097
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
45 deletions
+50
-45
MainWindow.xaml
Project.FLY.Weight/FLY.Weight.UI.Server/MainWindow.xaml
+1
-1
PgMain.xaml
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml
+41
-39
PgMain.xaml.cs
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml.cs
+8
-5
plcgroup.json
...er_plcgroups/设备连接变量表_666666666_v1/Generated/plcgroup.json
+0
-0
No files found.
Project.FLY.Weight/FLY.Weight.UI.Server/MainWindow.xaml
View file @
51dc32ec
<NavigationWindow x:Class="FLY.Weight.UI.Server.MainWindow"
<NavigationWindow x:Class="FLY.Weight.UI.Server.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight" MinWidth="400" MinHeight="200"
Title="MainWindow" SizeToContent="WidthAndHeight" MinWidth="400" MinHeight="200"
ShowsNavigationUI="False"
ShowsNavigationUI="False"
Loaded="NavigationWindow_Loaded">
Loaded="NavigationWindow_Loaded">
</NavigationWindow>
</NavigationWindow>
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml
View file @
51dc32ec
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FLY.Weight.UI.Server"
xmlns:local="clr-namespace:FLY.Weight.UI.Server"
mc:Ignorable="d"
mc:Ignorable="d"
Title="PgMain" Height="270" Width="765">
Title="PgMain"
Min
Height="270" Width="765">
<Page.Resources>
<Page.Resources>
<local:PgMainVmUt x:Key="viewModel"/>
<local:PgMainVmUt x:Key="viewModel"/>
</Page.Resources>
</Page.Resources>
...
@@ -15,8 +15,6 @@
...
@@ -15,8 +15,6 @@
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid x:Name="grid_plc"/>
<Grid x:Name="grid_plcos"/>
<Grid x:Name="grid_WeightSystem"/>
<Grid x:Name="grid_WeightSystem"/>
<Grid Margin="5">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
...
@@ -36,8 +34,8 @@
...
@@ -36,8 +34,8 @@
</Grid>
</Grid>
<Grid Grid.Row="1">
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition
/>
<ColumnDefinition/>
<ColumnDefinition
Width="auto"
/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<GroupBox Header="称重">
<GroupBox Header="称重">
<Grid>
<Grid>
...
@@ -45,54 +43,57 @@
...
@@ -45,54 +43,57 @@
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<ItemsControl x:Name="itemcontrol" ItemsSource="{Binding PLCs}">
<ScrollViewer>
<ItemsControl.ItemTemplate>
<ItemsControl x:Name="itemcontrol_weighter" >
<DataTemplate>
<ItemsControl.ItemTemplate>
<StackPanel>
<DataTemplate>
<StackPanel Orientation="Horizontal" >
<StackPanel>
<StackPanel Margin="4" >
<StackPanel Orientation="Horizontal" >
<TextBlock Text="更新速度" />
<StackPanel Margin="4" >
<TextBlock FontSize="20">
<TextBlock Text="更新速度" />
<TextBlock FontSize="20">
<Run Text="{Binding ActUpdateInterval,StringFormat=\{0:sfff\}, Mode=OneWay}" />
<Run Text="{Binding ActUpdateInterval,StringFormat=\{0:sfff\}, Mode=OneWay}" />
<Run Text="ms" FontSize="15"/>
<Run Text="ms" FontSize="15"/>
</TextBlock>
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel Margin="4" >
<StackPanel Margin="4" >
<TextBlock Text="{Binding Client.RemoteAddr,Mode=OneWay}" />
<TextBlock Text="{Binding Client.RemoteAddr,Mode=OneWay}" />
<TextBlock >
<TextBlock >
连接状态[<Run Text="{Binding Client.IsConnected,Mode=OneWay}" FontSize="20"/>]
连接状态[<Run Text="{Binding Client.IsConnected,Mode=OneWay}" FontSize="20"/>]
</TextBlock>
</StackPanel>
<StackPanel Margin="4" >
<TextBlock Text="异常次数" />
<TextBlock Text="{Binding ErrorCnt}" FontSize="20"/>
</StackPanel>
<StackPanel Margin="4" >
<TextBlock Text="寄存器更新数" />
<StackPanel Orientation="Horizontal">
<TextBlock FontSize="20">
<Run Text="{Binding DRNeedUpdateCnt,Mode=OneWay}"/>/<Run Text="{Binding DRCnt,Mode=OneWay}"/>
</TextBlock>
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel Margin="4" >
<TextBlock Text="异常次数" />
<TextBlock Text="{Binding ErrorCnt}" FontSize="20"/>
</StackPanel>
<StackPanel Margin="4" >
<TextBlock Text="寄存器更新数" />
<StackPanel Orientation="Horizontal">
<TextBlock FontSize="20">
<Run Text="{Binding DRNeedUpdateCnt,Mode=OneWay}"/>/<Run Text="{Binding DRCnt,Mode=OneWay}"/>
</TextBlock>
</StackPanel>
</StackPanel>
<Button Margin="4" Padding="5,2" Content="..." Tag="{Binding .}" Click="btnMoreClick"/>
</StackPanel>
</StackPanel>
<Button Margin="4" Padding="5,2" Content="..." Tag="{Binding .}" Click="btnMoreClick"/>
</StackPanel>
</StackPanel>
</
StackPanel
>
</
DataTemplate
>
</
Data
Template>
</
ItemsControl.Item
Template>
</ItemsControl
.ItemTemplate
>
</ItemsControl>
</
ItemsControl
>
</
ScrollViewer
>
<StackPanel Grid.Row="1" Orientation="Horizontal">
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Button Content="配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnSetupClick"></Button>
<Button Content="称重配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnSetupClick"></Button>
<Button x:Name="btnFeederSetup" Content="吸料配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnFeederSetupClick"></Button>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</GroupBox>
<GroupBox Header="吸料" Grid.Column="1">
<GroupBox
x:Name="grpFeeder"
Header="吸料" Grid.Column="1">
<Grid>
<Grid>
<Grid.RowDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<ItemsControl x:Name="itemcontrol_feeder"
ItemsSource="{Binding PLCs}"
>
<ItemsControl x:Name="itemcontrol_feeder" >
<ItemsControl.ItemTemplate>
<ItemsControl.ItemTemplate>
<DataTemplate>
<DataTemplate>
<StackPanel>
<StackPanel>
...
@@ -128,9 +129,10 @@
...
@@ -128,9 +129,10 @@
</DataTemplate>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ItemsControl>
<Button Grid.Row="1" Content="配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnFeederSetupClick"></Button>
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Button Grid.Row="1" Content="吸料配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnFeederSetupClick"></Button>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</GroupBox>
</Grid>
</Grid>
...
...
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml.cs
View file @
51dc32ec
...
@@ -30,16 +30,19 @@ namespace FLY.Weight.UI.Server
...
@@ -30,16 +30,19 @@ namespace FLY.Weight.UI.Server
public
void
Init
(
TDGage
gage
)
public
void
Init
(
TDGage
gage
)
{
{
this
.
gage
=
gage
;
this
.
gage
=
gage
;
var
plsos
=
gage
.
mData
.
PLCos
as
FLY
.
OBJComponents
.
Server
.
PLCProxySystem
;
//grid_plcos.DataContext = plsos;
//grid_plc.DataContext = plsos.PLCs[0];
grid_WeightSystem
.
DataContext
=
gage
.
mData
;
grid_WeightSystem
.
DataContext
=
gage
.
mData
;
this
.
itemcontrol
.
ItemsSource
=
plsos
.
PLCs
;
sp_sysParam
.
DataContext
=
gage
.
mSysParam
;
sp_sysParam
.
DataContext
=
gage
.
mSysParam
;
itemcontrol_weighter
.
ItemsSource
=
gage
.
mData
.
plcos
.
PLCs
;
if
(
gage
.
mFeederSystem
!=
null
)
{
if
(
gage
.
mFeederSystem
!=
null
)
{
btnFeederSetup
.
Visibility
=
Visibility
.
Collapsed
;
this
.
itemcontrol_feeder
.
ItemsSource
=
gage
.
mFeederSystem
.
plcos
.
PLCs
;
this
.
itemcontrol_feeder
.
ItemsSource
=
gage
.
mFeederSystem
.
plcos
.
PLCs
;
}
}
else
{
grpFeeder
.
Visibility
=
Visibility
.
Collapsed
;
}
}
}
private
void
btnSetupClick
(
object
sender
,
RoutedEventArgs
e
)
private
void
btnSetupClick
(
object
sender
,
RoutedEventArgs
e
)
{
{
...
...
脚本/release_conf/FLY.Weight.UI.Server/Gage1/feeder_plcgroups/设备连接变量表_666666666_v1/Generated/plcgroup.json
0 → 100644
View file @
51dc32ec
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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