Analog Speed and Position ControlIt is possible to configure the analog input on the Cool Muscle to directly control speed or position without having to write a program. There are five parameters which will affect this behavior:
Parameter | Description |
---|
K38 | Analog Interface (Set speed or position control) | K39 | Voltage Filter Gain | K40 | Max Speed (only used for speed control) | K41 | Travel Range (only used for position control) | K64 | Analog Input Function |
The parameter K64 allows us to set a number of different functions for the analog input. For instance, we can have register P25 always equal to the analog input value, or use the analog input as a multiplier for position values. In order to use the speed and position control, we set K64=9. This sets the analog input to analog control only mode. Once we have done this, we set K38. If K38=0 we are using speed control, if K38=1 we are using position control. The next step is to set our limits. If we are using speed control, we will set our max speed value in K40 in RPM. For example, if we set K40=300 the motors speed would vary from 0RPM to 300RPM when the analog input voltage varies from 0VDC to 4.8VDC respectively. If we are using position control, we set the max travel range in K41 in pulses. This means that if we set K41=1000, the motors position would vary from 0pulses to 1000pulses as the analog input voltage varies from 0VDC to 4.8VDC respectively. The final parameter to set would be K39. This is a voltage filter. You will use this if there is lots of ripple or bounce in your analog signal that you don’t want the motor to respond to. The higher the value of K39, the less sensitive the analog input will be to small disturbances.
|