Advertising

TP Job Exist

  • AD
  • I don't think, but you can make this verification in karel if you have the option installed.

    1) Hallo, With Karel, how can I get a program exists or not, I hope default folder is MD:\,



    PROGRAM Kareltest

    %NOLOCKGROUP

    BEGIN


    IF (MD:\Test_Name) THEN

    DOUT[238]= TRUE

    ELSE

    DOUT[238]= FALSE

    ENDIF

    END Kareltest


    ---------------------------------------------------------


    2) Does karel logic runs as BGLOGIC or does it raises mixed logic error?


    Thanks

  • You can not run it in BG logic but you can make it loop with GO TO ex:


    loop::

    --Program section

    DELAY 100

    GO TO loop

    %NOABORT=ERROR+COMMAND will be useful in this case


    Personally, I recommend you to call this program only when you want to make the verfication.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now