Commit 610be971 authored by 潘栩锋's avatar 潘栩锋 🚴

添加 模拟器添加拉伸前辊速模拟

修改 编码器1比例默认值改为 0.0943
parent 26d99f02
...@@ -23,6 +23,11 @@ namespace FLY.Simulation.Casting ...@@ -23,6 +23,11 @@ namespace FLY.Simulation.Casting
const double Mmpp2 = 0.25; const double Mmpp2 = 0.25;
const double RLen = 120 * 3.14; const double RLen = 120 * 3.14;
/// <summary>
/// 拉伸前 大辊直径
/// </summary>
const double RLenBeforeStretching = 800 * 3.14;
/// <summary> /// <summary>
/// 1脉冲 = ? mm /// 1脉冲 = ? mm
/// </summary> /// </summary>
...@@ -33,6 +38,16 @@ namespace FLY.Simulation.Casting ...@@ -33,6 +38,16 @@ namespace FLY.Simulation.Casting
/// </summary> /// </summary>
public double FilmVelocity { get; set; } = 23; public double FilmVelocity { get; set; } = 23;
/// <summary>
/// 拉伸前膜速度 m/min
/// </summary>
public double FilmVelocityBeforeStretching { get; set; } = 10;
/// <summary>
/// 拉伸前膜长 m
/// </summary>
public double FilmLengthBeforeStretching { get; set; }
/// <summary> /// <summary>
/// 膜长 m /// 膜长 m
/// </summary> /// </summary>
...@@ -87,6 +102,8 @@ namespace FLY.Simulation.Casting ...@@ -87,6 +102,8 @@ namespace FLY.Simulation.Casting
{ {
double min = (now - dtlast).TotalMinutes; double min = (now - dtlast).TotalMinutes;
FilmLength += min * FilmVelocity; FilmLength += min * FilmVelocity;
FilmLengthBeforeStretching += min * FilmLengthBeforeStretching;
} }
...@@ -101,6 +118,10 @@ namespace FLY.Simulation.Casting ...@@ -101,6 +118,10 @@ namespace FLY.Simulation.Casting
if(p<RLen/10) if(p<RLen/10)
Misc.MyBase.CLEARBIT(ref istatus, IODefinition.IN_RSENSOR); Misc.MyBase.CLEARBIT(ref istatus, IODefinition.IN_RSENSOR);
p = FilmLengthBeforeStretching * 1000 % RLenBeforeStretching;
if (p < RLen / 10)
Misc.MyBase.CLEARBIT(ref istatus, IODefinition.IN_RSENSOR2);
return istatus; return istatus;
} }
......
...@@ -66,6 +66,11 @@ namespace FLY.Simulation ...@@ -66,6 +66,11 @@ namespace FLY.Simulation
/// </summary> /// </summary>
public const int IN_RSENSOR = 11 - 1; public const int IN_RSENSOR = 11 - 1;
/// <summary>
/// 拉伸前线速度
/// </summary>
public const int IN_RSENSOR2 = 12 - 1;
/// <summary> /// <summary>
/// 纵向边界信号 上 /// 纵向边界信号 上
/// </summary> /// </summary>
......
...@@ -67,7 +67,7 @@ namespace FLY.Thick.Base.Server ...@@ -67,7 +67,7 @@ namespace FLY.Thick.Base.Server
/// <summary> /// <summary>
/// 编码器1 mm/pulse /// 编码器1 mm/pulse
/// </summary> /// </summary>
public double Encoder1_mmpp { get; set; } = 0.1; public double Encoder1_mmpp { get; set; } = 0.0943;
......
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