{\rtf1\ansi\ansicpg1252\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fmodern\fprq1 Swiss;}} {\colortbl\red0\green0\blue0;\red0\green240\blue240;\red0\green0\blue255;\red0\green128\blue128;} \deflang1033\pard\plain\f2\fs26\cf2 'This code gives an example of homing to the Index pulse of the Smartmotor's Encoder \par i=I\tab \tab 'This clears out the Index register \par V=160000\tab \par A=2500 \par MV \par G\tab \tab 'Start moving in Velocity Mode \par \plain\f2\fs26\cf3 WHILE\plain\f2\fs26\cf2 i==I \par \plain\f2\fs26\cf3 LOOP\plain\f2\fs26\cf2 \tab \par MP \par P=I \par G \par TWAIT \par WAIT=200 \par O=0 \par END \par \par }