Commit f25e4c2d 张东亮

折叠门速度不减

1 个父辈 7793f08d
...@@ -17,6 +17,7 @@ namespace DeviceLibrary ...@@ -17,6 +17,7 @@ namespace DeviceLibrary
/// </summary> /// </summary>
public int DownOverTimeMS = 0; public int DownOverTimeMS = 0;
public int UpOverTimeMS = 0; public int UpOverTimeMS = 0;
public bool SlowAftPause = false;
string up; string up;
string down; string down;
string saftylight; string saftylight;
...@@ -72,7 +73,7 @@ namespace DeviceLibrary ...@@ -72,7 +73,7 @@ namespace DeviceLibrary
return; return;
} }
double speed = (double)upspeed; double speed = (double)upspeed;
if(paused) if (paused && SlowAftPause)
{ {
speed = speed / 3.0; speed = speed / 3.0;
moveInfo.log($"上一次有暂停,速度降为{speed}"); moveInfo.log($"上一次有暂停,速度降为{speed}");
...@@ -169,7 +170,7 @@ namespace DeviceLibrary ...@@ -169,7 +170,7 @@ namespace DeviceLibrary
return; return;
} }
double speed = (double)downspeed; double speed = (double)downspeed;
if (paused) if (paused && SlowAftPause)
{ {
speed = speed / 3.0; speed = speed / 3.0;
moveInfo.log($"上一次有暂停,速度降为{speed}"); moveInfo.log($"上一次有暂停,速度降为{speed}");
......
...@@ -126,6 +126,8 @@ namespace DeviceLibrary ...@@ -126,6 +126,8 @@ namespace DeviceLibrary
RobotManage.Config.DOList.Remove(IO_Type.ReelFlipDoor_Home); RobotManage.Config.DOList.Remove(IO_Type.ReelFlipDoor_Home);
MotorFlipDoorB = new LiftMonitor(IO_Type.ReelFlipDoor_L_Home, IO_Type.ReelFlipDoor_L_Work, IO_Type.SafetyLightCurtains, null, new AxisBean(Config.FlipDoor_L_Axis, Name), Config.FlipDoorLength, Config.FlipDoorLength_speed); MotorFlipDoorB = new LiftMonitor(IO_Type.ReelFlipDoor_L_Home, IO_Type.ReelFlipDoor_L_Work, IO_Type.SafetyLightCurtains, null, new AxisBean(Config.FlipDoor_L_Axis, Name), Config.FlipDoorLength, Config.FlipDoorLength_speed);
MotorFlipDoorA = new LiftMonitor(IO_Type.ReelFlipDoor_R_Home, IO_Type.ReelFlipDoor_R_Work, IO_Type.SafetyLightCurtains, null, new AxisBean(Config.FlipDoor_R_Axis, Name), Config.FlipDoorLength, Config.FlipDoorLength_speed); MotorFlipDoorA = new LiftMonitor(IO_Type.ReelFlipDoor_R_Home, IO_Type.ReelFlipDoor_R_Work, IO_Type.SafetyLightCurtains, null, new AxisBean(Config.FlipDoor_R_Axis, Name), Config.FlipDoorLength, Config.FlipDoorLength_speed);
MotorFlipDoorB.SlowAftPause = true;
MotorFlipDoorB.SlowAftPause = true;
LogUtil.info("加载翻板门类型为:步进"); LogUtil.info("加载翻板门类型为:步进");
} }
else else
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!