ime limit

My team is using an ime in order to stop the loft at a certain point but we don’t know how to can someone help us with the code? Thnks.

There is some "getting started’ information on IME’s here.
http://www.robotc.net/blog/2012/03/07/programming-with-the-new-vex-integrated-motor-encoders/

There are many examples of using IMEs, with code, on the forum.