|
|
@@ -100,7 +100,7 @@ namespace PunkHPX8_RT.Modules.PlatingCell
|
|
|
//Angle tilt 操作
|
|
|
.Run(RunRecipeStep.AngleTilt, _device.HeadtTiltAction, () => { return _device.PlatingCellDeviceData.IsHeadTilt; }, _delay_1s)
|
|
|
//vertical goto plate
|
|
|
- .Run(RunRecipeStep.VerticalGotoPlate, () => { return StartVertical("Plate", _recipe.EntryZoffset); }, _delay_1ms)
|
|
|
+ .Run(RunRecipeStep.VerticalGotoPlate, () => { return StartVertical("Plate", _recipe.DepSteps[0].PlatingZoffset); }, _delay_1ms)
|
|
|
//vertical 到达entry位置前110ms (多10ms)
|
|
|
.Delay(RunRecipeStep.WaitEntryCurrentProtectedFromRinse, CalculatePowerDelayTime())
|
|
|
//有上电保护,此刻给电
|
|
|
@@ -110,7 +110,7 @@ namespace PunkHPX8_RT.Modules.PlatingCell
|
|
|
//Angle vertical操作
|
|
|
.Run(RunRecipeStep.AngleVertical, _device.HeadtVerticalAction, () => { return _device.PlatingCellDeviceData.IsHeadVertical; }, _delay_1s)
|
|
|
//如果不需要上电保护,执行plating delay
|
|
|
- .RunIf(RunRecipeStep.WaitPlatingDelay, _recipe.IsEntryTypeCold, NullFun, _recipe.PlatingDelay)
|
|
|
+ .DelayIf(RunRecipeStep.WaitPlatingDelay, _recipe.IsEntryTypeCold, _recipe.PlatingDelay * 1000)
|
|
|
.End(RunRecipeStep.End, NullFun);
|
|
|
return Runner.Status;
|
|
|
}
|
|
|
@@ -121,13 +121,13 @@ namespace PunkHPX8_RT.Modules.PlatingCell
|
|
|
private int CalculatePowerDelayTime()
|
|
|
{
|
|
|
int delayTime = 0;
|
|
|
- if (!_recipe.RinseBeforeEntryEnable)
|
|
|
+ if (_recipe.RinseBeforeEntryEnable)
|
|
|
{
|
|
|
- delayTime = _verticalAxis.CalculateVerticaMoveTime($"{_verticalAxis.Module}.Vertical", "Rinse", "Entry") - 110;
|
|
|
+ delayTime = _verticalAxis.CalculateVerticaMoveTime($"{_verticalAxis.Module}.Vertical", "Rinse", "Entry", 0 ,_recipe.EntryZoffset) - 110;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- delayTime = _verticalAxis.CalculateVerticaMoveTime($"{_verticalAxis.Module}.Vertical", "Home", "Entry") - 110;
|
|
|
+ delayTime = _verticalAxis.CalculateVerticaMoveTime($"{_verticalAxis.Module}.Vertical", "Load", "Entry", 0, _recipe.EntryZoffset) - 110;
|
|
|
|
|
|
}
|
|
|
return delayTime;
|