Does someone help me with the code?
Eventually, once I enter CASE 0, I wait for 3 conditions to be met, otherwise, after 5 seconds, the error manager of the "MaxTime" instruction starts. But to include "TimeFlag" (line 15 and 25), to differentiate (what I want to write as TPWrite, lines 36 and 40) the CASE 0 of CASE 1, the cursor passes by the "SearchPallet" procedure in the first one "defValue" in the second case, not respecting that the "WaitUntil" condition is fulfilled when retrying with "RETRY".
Something I'm doing wrong? I appreciate your comments ...
0
Answers
-
Just to clarify: It skips SearchPallet and goes right into running DejaPallet OR it skips the remainder of the CASE statement?1
-
It does not wait for the logical conditions of "WaitUntil" to be met and goes directly to "SearchPallet" ...
0 -
And you never see the TPWrite in the error handler?
0 -
-
Remove the TimeFlag optional argument so the real error handler gets used, then replace the use of the "flagSearch" bool with "nRecipe=0" in the error handler IF statement. And uncomment the "RETRY" on line 37 if you haven't already.
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings