05-14-2009 03:54 PM - edited 05-14-2009 03:55 PM
Hello,
I have a linear ball screw run by a motor/controller setup. I would like to use a Slider to essentially "jog" the platform mounted on the screw forwards or backwards a certain distance. However, the controller has its own language to control the movement of the motor. For example, /1P10000R would move the motor addressed as "1" 10000 steps in the positive direction and /1D10000R would move the motor 10000 steps in the negative direction. My question is this: If I set the slider to range from -100 to 100 mm, how can I get the output to have a "P" in front for numbers ranging from 0 to 100 and a "D" in frontfor numbers ranging from -100 to 0? I guess, fundamentally, how does the slider handle negatives? I have a vi to convert the numbers from mm to steps.
Thanks.
Solved! Go to Solution.
05-14-2009 04:00 PM - edited 05-14-2009 04:03 PM
05-14-2009 05:22 PM
That worked well. Thanks so much!
manchmal2