RobotStudio event

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 ...


Answers

  • soup
    soup ✭✭✭
    Options
    Just to clarify: It skips SearchPallet and goes right into running DejaPallet OR it skips the remainder of the CASE statement?
  • It does not wait for the logical conditions of "WaitUntil" to be met and goes directly to "SearchPallet" ...
  • soup
    soup ✭✭✭
    Options
    And you never see the TPWrite in the error handler?
  • soup
    soup ✭✭✭
    Options
    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.