|
|
@ -45,28 +45,37 @@ public class LiquidAdditionInstance { |
|
|
|
|
|
|
|
for ( int batchIndex=0; batchIndex<4; batchIndex++ ) { |
|
|
|
// 外圈 |
|
|
|
UfCmdSnippetExecutor.execute("LiquidAdditionPrepare.Out." + batchIndex); |
|
|
|
if ( this.checkTubeExists("GOUT", batchIndex, "TOUT", tubes) ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupOutIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
} |
|
|
|
if ( this.checkTubeExists("GOUT", batchIndex, "TIN", tubes) ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupInIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
Boolean hasGoutTout = this.checkTubeExists("GOUT", batchIndex, "TOUT", tubes); |
|
|
|
Boolean hasGoutTin = this.checkTubeExists("GOUT", batchIndex, "TIN", tubes); |
|
|
|
if ( hasGoutTout || hasGoutTin ) { |
|
|
|
UfCmdSnippetExecutor.execute("LiquidAdditionPrepare.Out." + batchIndex); |
|
|
|
if ( hasGoutTout ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupOutIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
} |
|
|
|
if ( hasGoutTin ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupInIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 内圈 |
|
|
|
UfCmdSnippetExecutor.execute("LiquidAdditionPrepare.In." + batchIndex); |
|
|
|
if ( this.checkTubeExists("GIN", batchIndex, "TOUT", tubes) ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupOutIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
} |
|
|
|
if ( this.checkTubeExists("GIN", batchIndex, "TIN", tubes) ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupInIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
Boolean hasGinTout = this.checkTubeExists("GIN", batchIndex, "TOUT", tubes); |
|
|
|
Boolean hasGinTin = this.checkTubeExists("GIN", batchIndex, "TIN", tubes); |
|
|
|
if ( hasGinTout || hasGinTin ) { |
|
|
|
UfCmdSnippetExecutor.execute("LiquidAdditionPrepare.In." + batchIndex); |
|
|
|
if ( hasGinTout ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupOutIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
} |
|
|
|
if ( hasGinTin ) { |
|
|
|
var snippetKey = "LiquidAdditionPump." + pumpGroupInIndex; |
|
|
|
Map<String,Object> snippetParams = Map.of("volume", rotateDistance); |
|
|
|
UfCmdSnippetExecutor.execute(snippetKey, snippetParams); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|