Commit 488d9865 authored by 潘栩锋's avatar 潘栩锋 🚴

优化 优化查加热棒坏的逻辑

parent dce5e262
......@@ -130,13 +130,16 @@ namespace FLY.FeedbackRenZiJia.Server
/// </summary>
public bool CheckEnable { get; set; } = false;
/// <summary>
/// 1块加热控制板 接多少路加热
/// </summary>
public int HeatsOfGroup { get; set; } = 12;
#endregion
#endregion
private IPLCLink plc;
FLY.Thick.Blowing.IService.IBlowingService blowingService;
......@@ -255,7 +258,7 @@ namespace FLY.FeedbackRenZiJia.Server
Misc.BindingOperations.SetBinding(mHeatCheck, nameof(mHeatCheck.Enable), this, nameof(CheckEnable), Misc.BindingOperations.BindingMode.TwoWay);
Misc.BindingOperations.SetBinding(mHeatCheck, nameof(mHeatCheck.CheckNo), this, nameof(CheckNo));
Misc.BindingOperations.SetBinding(mHeatCheck, nameof(mHeatCheck.Bads), this, nameof(Bads));
Misc.BindingOperations.SetBinding(this, nameof(HeatsOfGroup), mHeatCheck, nameof(mHeatCheck.HeatsOfGroup));
if (plc is PLCLink)
{
((PLCLink)plc).Start();
......@@ -994,6 +997,11 @@ namespace FLY.FeedbackRenZiJia.Server
/// 检测线速度 使能
/// </summary>
public bool HasCheckFilmVelocity;
/// <summary>
/// 1块加热控制板 接多少路加热
/// </summary>
public int HeatsOfGroup = 12;
#endregion
}
......
......@@ -635,7 +635,7 @@ namespace FLY.FeedbackRenZiJia.Server
/// </summary>
public void Cal()
{
var thickpercents = Common.MyMath.ZoomOut(ThickPercents, BoltCnt / ChannelCnt);
var thickpercents = ThickPercents;// Common.MyMath.ZoomOut(ThickPercents, BoltCnt / ChannelCnt);
int[] offsets = new int[ChannelCnt];
for (int i = 0; i < ChannelCnt; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment