Quellcode durchsuchen

Merge branch 'master' of http://49.235.130.76/XXF_1122/DaisyNPILine

wanghan vor 7 Monaten
Ursprung
Commit
4c3f7e4c63

+ 6 - 4
TeamAAS-VM/Core/Management.cs

@@ -114,7 +114,6 @@ namespace TeamAAS_VP.Core
         /// 超时自动停止秒数
         /// </summary>
         private int _pressureMaxDurationSeconds = 30; //超时自动停止秒数
-        Stopwatch swCT = new Stopwatch();
         List<LockResult> lockResultsAll = new List<LockResult>();//一个产品的总结果
         #endregion
 
@@ -1889,7 +1888,6 @@ namespace TeamAAS_VP.Core
                                 //询问mes
                                 if (state == 1)
                                 {
-                                    swCT.Restart();
                                     //这里缺少从MES获取产品配方的内容,需要补充
 
                                     _LastMesCheckTime[i] = DateTime.UtcNow;
@@ -1925,12 +1923,16 @@ namespace TeamAAS_VP.Core
 
                                     //这里缺少上传MES的本站数据结果及开始和结束时间,需要补充
 
+                                    //if (i==0)
+                                    //{
+                                        CTtime= DateTime.UtcNow.Subtract(_LastMesCheckTime[i]).TotalSeconds;
+                                    //}
+
                                     (bool isSuccess, string response) = await _mesService.SubmitGetAsync(code, true, _LastMesCheckTime[i], DateTime.UtcNow);
                                     //假设上传成功,这里缺少上传失败的处理
 
                                     await plc.WriteNodeAsync(string.Format(addressConfig.Out_MesStatus.Address, i), (Int16)3);
-                                    swCT.Stop();
-                                    CTtime = Math.Round(swCT.Elapsed.TotalSeconds, 3);
+
                                     WriteProductLog(lockResultsAll, code, CTtime);
                                     lockResultsAll.Clear();
                                 }

+ 2 - 2
TeamAAS-VM/Views/Product/PlcPointParams.xaml

@@ -702,8 +702,8 @@
                                                            Margin="5,0,0,0"
                                                            VerticalAlignment="Center" />
                                                 <mah:NumericUpDown Value="{Binding LockZDepth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
-                                                                   Minimum="-9999.000"
-                                                                   Maximum="9999.000"
+                                                                   Minimum="0.000"
+                                                                   Maximum="10.000"
                                                                    Interval="0.1"
                                                                    StringFormat="F3"
                                                                    MinWidth="60"

+ 1 - 1
TeamAAS-VM/Views/SettingView.xaml

@@ -2377,7 +2377,7 @@
                                     Grid.ColumnSpan="2"
                                     Orientation="Horizontal"
                                     VerticalAlignment="Center"
-                                    IsEnabled="{Binding IsSaveScrewCurve,Converter={StaticResource InvertBooleanConverter}}">
+                                    IsEnabled="{Binding IsSaveScrewCurve}">
                             <TextBox MinWidth="200"
                                      Text="{Binding ScrewCurvePath,Mode=TwoWay}" />
                             <Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"