Help with logic

  • Place your Ad here!
  • You need add a Timeout in the WAIT and use Labels. You can configure this timeout in "System > Config > WAIT timeout"


    Example program:


    LBL[1]

    J P[1] ....

    WAIT DI[1]=ON Timeout LBL[100] (This wait is for boxes for example)

    [Here instructions for do things with the box]

    JPM LBL[101]


    LBL[100] (From timeout)

    J P[x]....

    [Turn off the blower]

    WAIT DI[1]=ON (This wait is for boxes for example)

    JMP LBL[1]


    LBL[101]

    /END PROGRAM



    In this program, what the code does is that it goes to the point of waiting for boxes, and when it is waiting, when the configured timeout passes, it will jump to the programmed label and you can do other things. And from the timeout we return to where we were. Now you can do the movement how more you like.

    Edited once, last by theRoach ().

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

Advertising from our partners