text: <s>[INST] Re: Cut to length Flying Shear Hi,A couple of years ago,I made a very similar application, only using Ultra 5000 and ANSI C programming, and also instead of CAM , I used gearAfter comparing the number of pulses provided by the Aux encoder with the LenghtCount variable, it geared the motor to the encoder, after the motor position was greater or equal than the Distance variable, it disabled the gear and returned the motor to its start positioncheck the attached file, for the calculation I used to set the the variables Hope it helps Gilberto Aranha [/INST] Note for Moderators: this is a reply supposed to be posted to the following topic: http://forums.rockwellautomation.com/t5/forums/forumtopicpage/board-id/Motion/thread-id/818 - fuzzy logic \\n </s>