Skip to content

Commit

Permalink
changed invocation of parkEndProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
ursl committed Apr 1, 2022
1 parent bc7706f commit ab49fc1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 32 deletions.
38 changes: 10 additions & 28 deletions Controller1/usr/usrapp/CMS_Module/doAirex.pgx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
<Code><![CDATA[begin
vacuumCheckDone = false
while true
if bEndProgram==true
statusDoAirex = colorError
call parkEndProgram()
return
endIf
call parkEndProgram()
if bDoAirex==true
call selectedCheck()
Expand All @@ -23,7 +19,7 @@
if !bSelectItem
// -- check all
call print("check vacuum on all")
delay(waitGlue)
delay(waitShort)
for nAirexIdx = 0 to 5
// -- check only the sensor valves, not the AIREX frame valves (don't care about those)
if statusValves[sensorValve[nAirexIdx]] == 0
Expand All @@ -35,7 +31,7 @@
else
// -- check only those that are selected
call print("check vacuum on selection")
delay(waitGlue)
delay(waitShort)
for nAirexIdx = 0 to 5
if statusValves[sensorValve[nAirexIdx]] == 0 and (bSelectedItems[nAirexIdx]==true)
bDoAirex = false
Expand Down Expand Up @@ -67,11 +63,7 @@
switchMagnet=true
movel(appro(airexGlueStampHome, trZsafe), tTool, mSlow)
if bEndProgram==true
statusDoAirex = colorError
call parkEndProgram()
return
endIf
call parkEndProgram()
// -- double-dip stamp into glue before starting the normal procedure
call moveDown(glueFirstPoint[1], mSlow, trZero, false)
Expand All @@ -81,11 +73,8 @@
delay(waitGlue)
call moveStampUp(glueFirstPoint[0], mVerySlow)
if bEndProgram==true
statusDoAirex = colorError
call parkEndProgram()
return
endIf
call parkEndProgram()
// -- apply glue stamp to all positions:
// divide approach onto /from glue position into two steps
// (1) slowly to trApproach above it
Expand All @@ -95,24 +84,15 @@
call setSpeed()
if bDoAirex==true
if bEndProgram==true
statusDoAirex = colorError
call parkEndProgram()
return
endIf
call parkEndProgram()
call print("getting glue for position " + toString("1.0", nAirexIdx))
call moveDown(gluePickPoint[nAirexIdx], mSlow, trZero, false)
delay(waitGlue)
call moveStampUp(gluePickPoint[nAirexIdx], mVerySlow)
if bEndProgram==true
statusDoAirex = colorError
call parkEndProgram()
return
endIf
call parkEndProgram()
// -- move to where the glue should be applied (the final airex position)
call print("applying glue to position " + toString("1.0", nAirexIdx))
Expand Down Expand Up @@ -172,6 +152,8 @@
call print("placing airex frame " + toString("1.0", nAirexIdx))
movel(appro(airexInitial[nAirexIdx], trZclose), tTool, mSlow)
movel(appro(airexInitial[nAirexIdx], trZsafe), tTool, mNomSpeed)
call parkEndProgram()
// -- move to final airex position and put down
call moveDown(airexFinal[nAirexIdx], mVerySlow, trZero, false)
Expand Down
4 changes: 2 additions & 2 deletions Controller1/usr/usrapp/CMS_Module/doModules.pgx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if !bSelectItem
// -- check all
call print("check vacuum on all")
delay(waitGlue)
delay(waitShort)
for nIdx = 0 to 5
if statusValves[sensorValve[nIdx]] == 0
bDoModules = false
Expand All @@ -29,7 +29,7 @@
else
// -- check only those that are selected
call print("check vacuum on selection")
delay(waitGlue)
delay(waitShort)
for nIdx = 0 to 5
if statusValves[sensorValve[nIdx]] == 0 and bSelectedItems[nIdx] == true
bDoModules = false
Expand Down
18 changes: 16 additions & 2 deletions Controller1/usr/usrapp/CMS_Module/glueGlass.pgx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if !bSelectItem
// -- check all
call print("check vacuum on all")
delay(waitGlue)
delay(waitShort)
for nIdx = 0 to 5
if statusValves[hdiValve[nIdx]] == 0
bGlueGlass = false
Expand All @@ -29,7 +29,7 @@
else
// -- check only those that are selected
call print("check vacuum on selection")
delay(waitGlue)
delay(waitShort)
for nIdx = 0 to 5
if statusValves[hdiValve[nIdx]] == 0 and (bSelectedItems[nIdx]==true)
bGlueGlass = false
Expand Down Expand Up @@ -62,6 +62,8 @@
switchMagnet=true
movel(appro(moduleGlueStampHome, trZsafe), tTool, mSlow)
call parkEndProgram()
// -- double-dip stamp into glue before starting the normal procedure
call print("pre-dip glue stamp")
call moveDown(glueFirstPoint[1], mSlow, trZero, false)
Expand All @@ -71,6 +73,8 @@
delay(waitGlue)
call moveStampUp(glueFirstPoint[0], mSlow)
call parkEndProgram()
// -- apply glue stamp to all positions:
// divide approach onto /from glue position into two steps
// (1) slowly to trApproach above it
Expand All @@ -85,6 +89,8 @@
call moveStampUp(gluePickPoint2[nIdx], mVerySlow)
call parkEndProgram()
// -- move to where the glue should be applied (the final hdi position)
call print("applying glue to position " + toString("1.0", nIdx))
call moveDown(hdiFinal[nIdx], mVerySlow, trStamp, false)
Expand Down Expand Up @@ -121,12 +127,16 @@
movel(appro(chuck2[nIdx], trPressTwo), tTool, mVerySlow)
waitEndMove()
call parkEndProgram()
// -- pick chuck and move up
switchMagnet=true
delay(waitShort)
call print("picking module frame " + toString("1.0", nIdx))
movel(appro(chuck2[nIdx], trZsafe), tTool, mSlow)
call parkEndProgram()
// -- move with chuck to hdi glass position
call moveDown(airexFinal[nIdx], mSlow, trZero, true)
Expand All @@ -144,6 +154,8 @@
movel(appro(airexFinal[nIdx], trZclose), tTool, mSlow)
movel(appro(airexFinal[nIdx], trZsafe), tTool, mNomSpeed)
call parkEndProgram()
// -- move to final airex position and put down
call moveDown(hdiFinal[nIdx], mVerySlow, trZero, true)
switchVac0 = false
Expand All @@ -155,6 +167,8 @@
// -- move up again
movel(appro(hdiFinal[nIdx], trZclose), tTool, mSlow)
movel(appro(hdiFinal[nIdx], trZsafe), tTool, mNomSpeed)
call parkEndProgram()
endIf
endIf
endFor
Expand Down

0 comments on commit ab49fc1

Please sign in to comment.