Does someone help me with the code?
Options
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.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings