Shifting multiple times [XRC SV3X]

  • Hello,


    I would like to shift a job multiple times. So it executes a job shifts by e.g. 100mm on the x axis executes the same job and shifts again by 100mm and again and again...

    I tried:

    NOP

    Sfton P100 (P100: X: 100mm rest: 0)

    Call Job

    Sftoff

    END


    NOP

    Sfton P100

    Call Job

    Sfton P100

    Call Job

    Sftoff

    END


    None worked it just shifted once by 100mm..


    Can somebody tell me what I do wrong?


    Thank you very much!

  • Place your Ad here!
  • For correct working do same as below:

    Define two P variable, P099 (X=100, other =0) and P100 (all items zero)


    NOP

    SET B000 0 // reset counter

    SET P100 P099

    *LOOP

    SFTON P100

    CALL JOB:JOB ( your job that will shift)

    ADD P100 P099

    INC B000 // this is a counter

    JUMP *LOOP IF B000<3 // the job will shift for 3 times.

    SFTOFF

    END

  • You are not able to shift on multiple position variables in the same frame. If you have multiple base frame shift on, the system takes the last one shifted on. You could shift on data in base frame, robot frame and user frame all at once and would work as well.

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