User Manual

Table Of Contents
Closed Loop Relative and Tracking Position Modes
148 Advanced Digital Motor Controller User Manual V2.0 July 8, 2019
Determining the right polarity is best done experimentally using the Roborun utility (see
“Roborun+ Utility User Manual”) and following these steps:
1. Configure the controller in Open Loop Speed mode.
2. Configure the position sensor input channel as position feedback for the desired mo-
tor channel.
3. Click on the Run tab.
4. Enable the Feedback channel in the chart recorder.
5. Move the slider slowly in the positive direction and verify that the Feedback in the chart
increases in value. If the Feedback value decreases, then the sensor is backward and
you should either invert using configuration commands, invert the sensor physically, it
or swap the motor wires so that the motor turns in the opposite direction.
6. Move the sensor off the center position and observe the motor’s direction of rotation.
7. Go to the max position and verify that the feedback value reaches 1000 a little before
the end of the physical travel. Modify the min and max limits for the sensor input if
needed.
8. Repeat the steps in the opposite direction and verify that the -1000 is reached a little
before the end of the physical travel limit.
Important Safety Warning
Never apply a command that is lower than the sensor’s minimum output value or
higher than the sensor’s maximum output value as the motor would turn forever
trying to reach a position it cannot. Configure the Min/Max parameter for the sen-
sor input so that a value of -1000 to +1000 is produced at both ends of the sensor
travel.
Adding Safety Limit Switches
The Position mode depends on the position sensor providing accurate position informa-
tion. If the sensor is damaged or one of its wires is cut, the motor may spin continuously
in an attempt to reach a fictitious position. In many applications, this may lead to serious
mechanical damage.
To limit the risk of such breakage, it is recommended to add limit switches that will
cause the motor to stop if unsafe positions have been reached independently of the
sensor reading. Any of the controller’s digital inputs can be used as a limit switch for any
motor channel.
An alternate method is shown in Figure 11-2. This circuit uses Normally Closed limit
switches in series on each of the motor terminals. As the motor reaches one of the
switches, the lever is pressed, cutting the power to the motor. The diode in parallel with
the switch allows the current to flow in the reverse position so that the motor may be re-
started and moved away from that limit.
The diode polarity depends on the particular wiring and motor orientation used in the ap-
plication. If the diode is mounted backwards, the motor will not stop once the limit switch
lever is pressed. If this is the case, reverse the diode polarity.