Is this is what you mean?
Yval=GetXin("LTH_Y_Val")
if Yval > 25 or Yval < -25 then
if Yval >25 then
mcJogVelocityStart(mInst,mc.Y_AXIS,MC_JOG_POS)
else
mcJogVelocityStart(mInst,mc.Y_AXIS,MC_JOG_NEG)
end
else
mcJogVelocityStart(mInst,mc.Y_AXIS,MC_JOG_STOP)
end
Something must be missing, nothing moves.