RoboteQ Dual Channel Digital Motor Controller AX2550 Скачать руководство пользователя страница 67

AX1500 Motor Controller User’s Manual

67

Optical Incremental Encoders Overview

SECTION 7

Installing, 
Connecting and 
Using the 
Encoder Module

This section describes the Encoder input module that may be added to the AX1500.

Optical Incremental Encoders Overview

Optical incremental encoders are a means for capturing speed and travelled distance on a 
motor. Unlike absolute encoders which give out a multi-bit number (depending on the reso-
lution), incremental encoders output pulses as they rotate. Counting the pulses tells the 
application how many revolutions, or fractions of, the motor has turned. Rotation velocity 
can be determined from the time interval between pulses or by the number of pulses 
within a given time period. Because they are digital devices, incremental encoders will 
measure distance and speed with perfect accuracy.

Since motors can move in forward and reverse directions, it is necessary to differentiate 
the manner that pulses are counted so that they can increment or decrement a position 
counter in the application. Quadrature encoders have dual channels, A and B, which are 
electrically phased 90° apart. Thus, direction of rotation can be determined by monitoring 
the phase relationship between the two channels. In addition, with a dual-channel encoder, 
a four-time multiplication of resolution can be achieved by counting the rising and falling 
edges of each channel (A and B). For example, an encoder that produces 250 Pulses per 
Revolution (PPR) can generate 1,000 Counts per Revolution (CPR) after quadrature.

Содержание Dual Channel Digital Motor Controller AX2550

Страница 1: ...AX1500 Dual Channel Digital Motor Controller User s Manual v1 9b June 1 2007 visit www roboteq com to download the latest revision of this manual Copyright 2003 2007 Roboteq Inc...

Страница 2: ...2 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 3: ...odified Flashing Pattern Separate PID Gains for Ch1 and C2 changeable on the fly Miscellaneous additions and correction Added Amps Calibration option January 10 2007 1 9 Changed Amps Limit Algorithm M...

Страница 4: ...4 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 5: ...n 20 Connecting the controller to your PC using Roborun 21 Obtaining the Controller s Software Revision Number 22 Exploring further 22 SECTION 3 AX1500 Motor Controller Overview 23 Product Description...

Страница 6: ...s 50 Using the Inputs to Activate the Buffered Output 50 Using the Inputs to turn Off On the Power MOSFET transistors 50 SECTION 6 Connecting Sensors and Actuators to Input Outputs 51 AX1500 Connectio...

Страница 7: ...scription 81 Selecting the Position Mode 81 Position Sensor Selection 82 Sensor Mounting 82 Feedback Potentiometer wiring 83 Feedback Potentiometer wiring in RC or RS232 Mode 83 Feedback Potentiometer...

Страница 8: ...ecting to a Separately Powered Radio 106 Operating the Controller in R C mode 106 Reception Watchdog 107 R C Transmitter Receiver Quality Considerations 108 Joystick Deadband Programming 108 Command C...

Страница 9: ...ed to Motors 130 Query Amps from Battery to each Motor Channel 130 Query Analog Inputs 131 Query Heatsink Temperatures 131 Query Battery Voltages 131 Query Digital Inputs 132 Reset Controller 132 Acce...

Страница 10: ...ase 1 and 2 152 Encoder Threshold 152 Distance Divider 152 Counter Read Data Format 153 Encoder Testing and Setting Using the PC Utility 153 Automatic Switching from RS232 to RC Mode 155 Analog and R...

Страница 11: ...k 176 Operating the AX1500 over a Wired or Wireless LAN 176 Updating the Controller s Software 178 Updating the Encoder Software 178 Creating Customized Object Files 179 SECTION 15 Mechanical Specific...

Страница 12: ...12 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 13: ...e Power Regeneration Consid erations on page 35 of the Users Manual Always keep the controller connected to the Battery Use the Power Control input to turn On Off Avoid Shorts when Mounting Board agai...

Страница 14: ...Important Safety Warnings 14 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 15: ...l configuration What you will need For a minimal installation gather the following components One AX1500 Controller and its provided cables 12V to 40V high capacity high current battery One or two bru...

Страница 16: ...ches and sensors At the back of the controller shown in the figure below are located all the terminals that must be connected to the batteries and the motors Status LED FIGURE 1 AX1500 Controller Fron...

Страница 17: ...side of the controller is not harmful The two VMot terminals are connected to each other inside the controller The same is true for the Ground Terminals You should wire each pair together as shown in...

Страница 18: ...es a spark will be generated at the connection point This is a normal occurrence and should be expected Connecting to the 15 pin Connector The controller s I O are located on it s standard 15 pin D Su...

Страница 19: ...th the wire loop uncut assumes that the R C radio will be powered by the AX1500 controller Other wiring options are described in R C Operation on page 101 of the User s Manual Important Warning Do not...

Страница 20: ...in the table below Although Roboteq strives to keep the same parameters and values from one version to the next changes may occur from one revision to the next Make sure that you have the matching ma...

Страница 21: ...ion value Save captured parameters onto disk for later analysis to update the controller s software To connect the controller to your PC use the provided cable Connect the 15 pin connector to the cont...

Страница 22: ...Obtaining this number can be done using the PC connection discussed previously Now that you know your controller s software version number you will be able to see if a new version is available for do...

Страница 23: ...wireless modem The controller s two channels can be operated independently or can be combined to set the forward reverse direction and steering of a vehicle by coordinating the motion on each side of...

Страница 24: ...ultiple operating modes Fully programmable through connection to a PC Non volatile storage of user configurable settings Simple operation Software upgradable with new features Multiple Command Modes R...

Страница 25: ...he heat sink of each power output stage Sensor information readable via RS232 port Low Power Consumption On board DC DC converter for single 12 to 40V battery system operation Optional backup power in...

Страница 26: ...Overvoltage and Undervoltage protection Regeneration current limiting Watchdog for automatic motor shutdown in case of command loss R C and RS232 modes Diagnostic LED Programmable motor acceleration...

Страница 27: ...this section very carefully Any problem due to wir ing errors may have very serious consequences and will not be covered by the prod uct s warranty Power Connections The AX1500 has three Ground two Vm...

Страница 28: ...is of the motor drivers The microcomputer circuit is connected to a DC DC converter which takes power from either the Power Control wire or the VMot input The diode circuit is designed to automaticall...

Страница 29: ...e to keep the controller logic solidly On You may use a separate battery to keep the controller alive as the main Motor battery dis charges The table below shows the state of the controller depending...

Страница 30: ...sed to power the motors Connect the two VMot terminals to the plus terminal of the battery The motor battery may be of 12 to 40 Volts 10 5V to 40V 0V Controller is On Power Stage is Off 10 5V to 40V 1...

Страница 31: ...ade to run through external force electric vehicle going downhill for example and generate 40V or more a diode should be placed across the fuse emergency switch to provide a path under all circumstanc...

Страница 32: ...oller output is typically determined empirically After connecting the motors apply a minimal amount of power using the Roborun PC util ity with the controller configured in Open Loop speed mode Verify...

Страница 33: ...e Channel suffix This version incorpo rates a hardware setting inside the controller which ensures that both channels switch in a synchronized manner and respond to commands sent to channel 1 Converti...

Страница 34: ...protect the wiring and battery against after the controller has failed Important Warning Fuses are typically slow to blow and will thus allow temporary excess current to flow through them for a time...

Страница 35: ...f techniques you can try to keep noise emission low Keep wires as short as possible Loop wires through ferrite cores Add snubber R C circuit at motor terminals Keep controller wires and battery enclos...

Страница 36: ...voltage drops below 43V Undervoltage Protection In order to ensure that the power MOSFET transistors are switched properly the AX1500 monitors the internal 12V power supply that is used by the MOSFET...

Страница 37: ...a reservoir into which regeneration current can flow It will also be very helpful for delivering high current surges during motor acceleration making it possible to use a lower current power supply Ba...

Страница 38: ...Connecting Power and Motors to the Controller 38 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 39: ...ble for each of the above listed functions which can be combined to produce practically any desired mobile robot configuration Input Command Modes The controller will accept commands from one of the f...

Страница 40: ...stacle and change in slope This mode is adequate for most applications where the operator maintains a visual contact with the robot In the separate speed control mode channel 1 commands affect only mo...

Страница 41: ...control operation is described in Closed Loop Speed Mode on page 93 Close Loop Position Control In this mode illustrated in Figure 16 the axle of a geared down motor is coupled to a potentiometer that...

Страница 42: ...tures active current limitation that uses a combination of a user defined preset value discussed above which in turn may be reduced automatically based on mea sured operating temperature This capabili...

Страница 43: ...ontroller measures and limits the current that flows from the battery Current that flows through the motor is typically higher This counter intuitive phenomenon is due to the flyback current in the mo...

Страница 44: ...PWM cycle lower than 100 resulting in a higher and potentially unsafe level through the motor and the controller Regeneration Current Limiting The AX1500 s current sensor is capable of measuring curr...

Страница 45: ...alue in the MCU s configuration EEPROM Table 4 shows the corresponding acceleration for all Switch and RS232 settings Numerically speaking each acceleration value corresponds to a fixed percentage spe...

Страница 46: ...ge proportionally to the joy stick position Two exponential curves a weak and a strong are supported Using these curves and after the joystick has moved past the deadband the motor speed will first in...

Страница 47: ...n than the other In most situ ations this is not noticeable In others however it can be an inconvenience When operat ing in open loop speed control the AX1500 can be configured to correct the speed in...

Страница 48: ...may be used to make the robot go straight in case of a natural ten dency to steer slightly to the left or to the right The Left Right adjustment parameter can be set from 5 25 to 5 25 in seven steps...

Страница 49: ...ices to EStop Invert Input on page 57 The switch must be such that it is in the open state in the normal situa tion and closed to signal an emergency stop command After and Emergency Stop condition th...

Страница 50: ...detailed below Using the Inputs to Activate the Buffered Output When this setting is selected the buffered Output C will be On when the Input line is pulled to Ground 0V The Output will be Off when th...

Страница 51: ...ws a typical wir ing diagram of a mobile robot using the AX1500 controller The wires are used for connection to the batteries and motors and will typically carry large current loads Details on the con...

Страница 52: ...on the selected oper ating mode some of these I Os provide feedback and or safety information to the controller 5 6 7 9 8 4 3 1 2 1 DC Motors 2 Optional sensors Tachometers Closed loop Speed mode Pote...

Страница 53: ...t Inp E Digital Input Same as Input F Not available when encoder module present EStop Invert Digital Input Emer gency stop When Input is configured as Emergency Stop switch input Invert Controls When...

Страница 54: ...ata Logging Output 3 Input R C Ch 1 R C radio Channel 1 pulses RS232 Data In RS232 Data In from PC MCU Analog Unused Unused 4 Input R C Ch 2 R C radio Channel 2 pulses RS232 Analog Input F Digital Inp...

Страница 55: ...ands and Queries on page 128 for more information 10 Analog in RC RS232 Ana in 2 Channel 2 speed or position feedback input Analog Command 2 Analog command for channel 2 11 Analog in RC RS232 Ana in 1...

Страница 56: ...ead in the RS232 mode with the i command string The con troller will respond with three sets of 2 digit numbers The status of Input E is contained in the first set of numbers and may be 00 to indicate...

Страница 57: ...ut becomes a gen eral purpose input like the other two described above This input is a high impedance input with a pull up resistor built into the controller There fore it will report an On state no e...

Страница 58: ...r types of analog sensors These inputs can be read at any time using the p query for Analog inputs 1 and 2 and the r query for Inputs 3 and 4 The fol lowing section show the various uses for these inp...

Страница 59: ...t Note that while you are doing these tests the potentiometer must be loosely attached to the motor s axle so that it will not be forced and broken by the motor s uncontrolled rotation in case it was...

Страница 60: ...ing during the first installation Since in closed loop control the measured speed is the basis for the controller s power out put i e deliver more power if slower than desired speed less if higher an...

Страница 61: ...Ohm Negative Coefficient Thermistor NTC with the temperature resistance characteristics shown in the table below Thermistors are non linear devices Using the circuit described on Figure 30 the control...

Страница 62: ...the voltage information but merely makes it avail able to the host microcomputer via the RS232 port The recommended schematic is shown in Figure 32 Using these resistor values it is possible to measur...

Страница 63: ...f the analog inputs can be read through the controller s RS232 port Internal Voltage Monitoring Sensors The AX1500 incorporates voltage sensors that monitor the Main Battery voltage and the Internal 1...

Страница 64: ...ntroller and that it may be temporarily be different than the temperature measured outside the case Temperature Conversion C Source Code The code below can be used to convert the analog reading into t...

Страница 65: ...r Controller User s Manual 65 Internal Heatsink Temperature Sensors else LoTemp i 5 40 HiTemp LoTemp 5 lobound TempTable i hibound TempTable i 1 temp LoTemp 5 AnaValue lobound 100 hibound lobound 100...

Страница 66: ...Connecting Sensors and Actuators to Input Outputs 66 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 67: ...n pulses or by the number of pulses within a given time period Because they are digital devices incremental encoders will measure distance and speed with perfect accuracy Since motors can move in forw...

Страница 68: ...the zero reference for all subsequent moves Recommended Encoder Types The module may be used with most incremental encoder module as long as they include the following features Two quadrature outputs...

Страница 69: ...larger than the first one The formula below gives the pulse frequency at a given RPM and encoder resolution in Pulses per Revolution Pulse Frequency in Hz RPM 60 PPR 4 Example a motor spinning at 10 0...

Страница 70: ...next to one of the two header and solder the other en inside the matching hole on the encoder module as shown on Figure 39 Connecting the Encoder The Encoder module uses a widely available 8 pin RJ45...

Страница 71: ...d on the power supply TABLE 12 Encoder Connector Pinout Pin Name Cable Color when using standard network cable 1 Encoder 2 Channel B Optional Limit Switch 4 Orange White 2 Encoder 2 Channel A Optional...

Страница 72: ...tor This will cause the motor to rotate in the opposite direction Voltage Levels Thresholds and Limit Switches The encoder module s input uses a comparator to reshape the encoder s output signal If th...

Страница 73: ...ection condition Important Warning When a limit switch is activated the encoder signal that is shared with the switch is no longer visible by the encoder module and pulse counting and speed measure me...

Страница 74: ...eter and or oscilloscope be used to verify that the right volt age levels are created as the encoder rotates and the switches activate You may also use the Encoder setup test function in the Roborun u...

Страница 75: ...f stopping the motor when a limit is reached while allowing motion in the other direction away for that limit TABLE 13 Effects of Limit Switches 1 and 2 on Motor 1 SW1 SW2 Motor 1 Fwd Motor 1 Rev OFF...

Страница 76: ...via the controller s serial port See RS232 Encoder Com mand Set on page 145 on page 78 Using the Encoder to Measure Speed The encoder module will automatically compute rotation speed for each encoder...

Страница 77: ...sponds to the following measurable min actual RPM values RPM at Min Measurable Speed Value 1 58593 75 4 1 200 58 6 RPM The Roborun Utility automatically makes the above calculations when setting up th...

Страница 78: ...e point where the motor shaft was at power up It is typically necessary to have the motors moved to a home position and reset the counters at that reference point RS232 Communication with the Encoder...

Страница 79: ...e PC Utility Encoder Testing and Setting Using the PC Utility Extensive diagnostic calibration setting and testing support is provided in the Roborun PC utility Basic instructions on how to install an...

Страница 80: ...Installing Connecting and Using the Encoder Mod 80 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 81: ...rive steering columns robotic arms life size models and other heavy loads The AX1500 incorporates a full featured Proportional Integral Differential PID control algorithm for quick and stable position...

Страница 82: ...g Proper mounting of the sensor is critical for an effective and accurate position mode opera tion Figure 48 shows a typical motor gear box and sensor assembly The sensor is composed of two parts a bo...

Страница 83: ...itical applications Optical encoders may also be used when operated as discussed in Using the Encoder to Measure Speed on page 76 Feedback Potentiometer wiring When using a potentiometer it must be wi...

Страница 84: ...lay Rev B on the screen Analog inputs 3 and 4 have different characteristics than inputs 1 and 2 and so require a lower resistance potentiometer in order to guarantee accuracy Important Notice This wi...

Страница 85: ...g of the feedback must be done as shown in the figure below Feedback Wiring in Analog Mode on Single Channel Controllers When the controller is configured in Analog mode the analog input 1 is used for...

Страница 86: ...pping it other than cutting the power or hitting the Emergency Stop button Determining the right polarity is best done experimentally using the Roborun utility see Using the Roborun Configuration Util...

Страница 87: ...motor If such an error occurs the controller will halt permanently until its power is cycled or it is reset An Encoder error is one of the conditions that is sig nalled by the diagnostic LED rapidly...

Страница 88: ...nly for the short time needed for the motor to move away from the limit switches Another method uses the AX1500 s Emergency Stop input to shut down the controller if any of the limit switches is tripp...

Страница 89: ...justments to the Power Output based on the difference measured between the desired position set by the user and the actual position captured by the position sensor Figure 55 shows a representation of...

Страница 90: ...value The differential component will also help dampen any overshoot and oscillation The Integral component of the algorithm performs a sum of the error over time In the posi tion mode this component...

Страница 91: ...the Applied Power should be Applied Power Command Value Actual Position Proportional Gain Experiment first with the motor electrically or mechanically disconnected and verify that the controller is m...

Страница 92: ...Closed Loop Position Mode 92 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 93: ...Integral Differential PID control algorithm for quick and stable speed control Selecting the Speed Mode The speed mode is selected by changing the Motor Control parameter in the controller to either...

Страница 94: ...al for an effective and accurate speed mode operation Figure 56 shows a typical motor and tachometer or encoder assembly Tachometer wiring The tachometer must be wired so that it creates a voltage at...

Страница 95: ...e using the PC utility This will cause the motors to run in Open Loop for now 3 Launch the Roborun utility and click on the Run tab Click the Start button to begin communication with the controller Th...

Страница 96: ...and its wiring be extremely robust If the tachometer reports an erroneous voltage or no voltage at all the controller will con sider that the motor has not reached the desired speed value and will gr...

Страница 97: ...i e measured speed is near to or at the desired value PID tuning in Speed Mode As discussed above three parameters Proportional Gain Integral Gain and Differential Gain can be adjusted to tune the Cl...

Страница 98: ...ved by the motor is not fixed tune the PID with the mini mum expected load and tune it again with the maximum expected load Then try to find values that will work in both conditions If the disparity b...

Страница 99: ...on board DC DC converter is functioning It provides no infor mation regarding the controller s operation Diagnostic LED The AX1500 features a single diagnostic LED which helps determine the controller...

Страница 100: ...s A rapid continuously flashing pattern indicates that the controller s output is Off and will remain off until reset or power is cycled Activating the emergency stop will cause the con troller to sto...

Страница 101: ...compatible with all popular brands of R C transmitters A third R C channel can be used to control the On Off state of two outputs that may be con nected to electrical accessories valves lights weapons...

Страница 102: ...5 connector are mapped as described in the table below TABLE 16 Connector pin out in R C mode Pin Number Input or Output Signal Description 1 and 9 Output Output C 2A Accessory Output C 2 Output RS232...

Страница 103: ...ied Cable Description The AX1500 is delivered with a custom cable with the following wiring diagram 14 Power Out 5V 5V Power Output 100mA max 15 Input Input EStop Inv Emergency Stop or Invert Switch i...

Страница 104: ...e controller s connector may be used to power the R C radio The wire loop is used to bring the controller s power to the the radio as well as for powering the optocoupler stage Figure 66 below shows t...

Страница 105: ...one wired in the R C cable deliv ered with the controller 8 9 15 Pin 1 Channel 1 Wire loop bringing power from controller to RC radio Channel 2 3 Channel 1 Command Pulses 4 Channel 2 Command Pulses 6...

Страница 106: ...ntroller in R C mode In this operating mode the AX1500 will accept commands from a Radio Control receiver used for R C models remote controls The speed or position information is communicated to the A...

Страница 107: ...lse width values From this is generated a number ranging from 127 when the joystick is in the min position to 0 when the joystick is in the center position to 127 when the joystick is in the max posit...

Страница 108: ...deration is the R C receiver s ability to operate in an electrically noisy environment the AX1500 switches high current at very high frequencies Such tran sients along long battery and motor wires wil...

Страница 109: ...ves The AX1500 can also be set to translate the joystick motor commands so that the motors respond differently depending on whether the joystick is near the center or near the extremes Five different...

Страница 110: ...e full travel of your joystick i e minimum 100 reverse maximum 100 for ward It also ensures that the joystick s center position does indeed correspond to a 0 motor command value Joystick calibration i...

Страница 111: ...ing the fol lowing operating parameters Captured R C Command 1 and 2 Power Applied to Controller s output stage Values applied to Analog inputs 1 and 2 Amps on channel 1 and 2 Internal Heat Sink tempe...

Страница 112: ...output wire and connector that will be connected to the PC s communication port Figure 74 and below shows the wiring diagram of the modified R C cable for connection to a PC 1 2 3 4 7 8 9 5 1 2 3 4 5...

Страница 113: ...0 at 2 5V and 127 at 5V This value in turn becomes the com mand input used by the controller This command input is subject to deadband threshold and exponentiation adjustment Analog commands can be us...

Страница 114: ...the PC for data logging 3 Data In Input unused 4 Input F Input See Special Use of Accessory Digital Inputs on page 50 5 Ground Out Power Output Controller ground 6 Unused Unused 7 Unused Unused 8 Inpu...

Страница 115: ...ition in case the input is not connected The applied voltage must have suffi cient current low impedance so that it is not affected by these resistors Connecting a Potentiometer Figure 76 shows how to...

Страница 116: ...stance at its two extremes For a 1K potentiometer the current is I U R 5V 1000 Ohms 0 005A 5mA For all practical purposes a 1K potentiometer is a good minimal value If the value of the potentiometer i...

Страница 117: ...f the potentiometer s position This is to ensure that 100 motor speed is achieved in all circumstances Table 19 below shows the effect of the different deadband parameter val ues Changing the deadband...

Страница 118: ...led until the analog commands are centered to the midpoint 2 5V on each input Data Logging in Analog Mode While in Analog Mode the AX1500 will continuously send a string of characters on the RS232 out...

Страница 119: ...cable must be modified to add an RS232 output wire and connector that will be connected to the PC s communication port Figure 78 below shows the wiring diagram of the modified cable for connection to...

Страница 120: ...Analog Control and Operation 120 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 121: ...less modems This connection can be used to both send commands and read various status information in real time from the controller The serial mode enables the design of autono mous robots or more soph...

Страница 122: ...t Data In RS232 Data In from PC 4 Input Input F Digital Input F readable RS232 mode Dead man switch activation 5 and 13 Power Out Ground Controller ground 6 Unused Unused Unused 7 Unused Unused Unused...

Страница 123: ...232 Cable The AX1500 is delivered with a 4 foot cable adapter which may be too short particularly if you wish to run and monitor the controller inside a moving robot RS232 extension cables are availab...

Страница 124: ...connector Once connected you will need a Terminal Emulation program to display the data received from the controller on the PC s screen and to send characters typed on the keyboard to the controller...

Страница 125: ...e hardware and can be ignored RS232 Communication with the Encoder Module The Encoder Module contains its own Microcontroller and firmware in Flash The Encoder s MCU communicates with the one on the m...

Страница 126: ...ode and that it is now ready to accept commands Note that for improved safety the RS232 watchdog is automatically enabled when entering the RS232 in this way See RS 232 Watchdog on page 128 When reset...

Страница 127: ...ller is not in the RS232 mode the controller is Off the controller may be defective Command Acknowledgement The AX1500 will acknowledge commands in one of two ways For commands that cause a reply such...

Страница 128: ...and queries are composed of a series of 2 or 4 characters followed by the enter carriage return code The controller will send back echo every character it is receiving By checking that the returned ch...

Страница 129: ...l digits from 00 to 7F Examples A00 channel 1 to 0 B7F channel 2 100 forward a3F channel 1 50 reverse Notes The hexadecimal number must always contain two digits For example a5 will not be recognized...

Страница 130: ...rheat detection or mixed mode is currently active No forward or reverse direction information is returned by this query This query is most useful for providing feedback to a microcontroller commanding...

Страница 131: ...a signed hexadecimal number where 0 to 127 is represented by 00 to 7F and 1 to 127 is represented by FF to 80 respectively Query Heatsink Temperatures Description This query will cause the controller...

Страница 132: ...oller to return the state of the controller s two accessory inputs inputs E and F and the state of the Emergency Stop Inverted input See Connect ing Sensors and Actuators to Input Outputs on page 51 f...

Страница 133: ...from RS232 to RC Mode on page 155 Reading and writing parameters is done using the fol lowing commands Read parameter Syntax mm Reply DD Where mm parameter number DD current parameter value Example 00...

Страница 134: ...r FF 05 reserved 06 Joystick Deadband or Analog Deadband Reset or FF 07 Exponentiation on channel 1 Instant 08 Exponentiation on channel 2 Instant 09 Reserved 0A Left Right Adjust Reset or FF 0B Encod...

Страница 135: ...he fly All parameters in Flash except for the Amps calibration are reset to their default values every time new firmware is loaded into the controller Input Control Mode Address 00 Access Read Write E...

Страница 136: ...ugh the motors may be higher Bit Definition See pages 2 0 Motor Control Mode 0 A B separate speed open loop default 1 A B mixed speed open loop 2 A speed open loop B position 3 A B position 4 A B sepa...

Страница 137: ...ect of the controller s Digital Inputs and other settings Bit Definition See pages 7 0 0 very slow 1 slow 2 medium slow default 3 medium 4 fast 5 fastest See Programmable Acceleration on page 45 for c...

Страница 138: ...1 and Channel 2 Address 08 Channel 1 09 Channel 2 Access Read Write Effective Instantly 5 4 Input E Unavailable when Encoder Module is present 00 No action default 01 Cut FET power when Input E is Lo...

Страница 139: ...e Encoder Time base values that are loaded after the controller is reset or powered on Time Bases are used to determine rotation speed depending on the Encoder s resolution Time Bases can be changed a...

Страница 140: ...n Access Read Write Effective After Reset or FF These parameters are the Gains values that are loaded after the controller is reset or pow ered on These Gains apply to both channels Gains can be chang...

Страница 141: ...at are stored in Flash see above the Operating Parameters are stored in RAM and can be changed indefinitely After reset the Operating Parameters are loaded with the values stored in the Configuration...

Страница 142: ...6ms iteration loop After reset these bits get initialized according to the configuration contained in Flash Values are in Hexadecimal Example 00000101 Hex 05 Read Change PID Values Address 82 P1 83 I1...

Страница 143: ...The frequency is 15 625 Hz 255 Register Value The controller s default frequency provides the best efficiency and should be changed only if absolutely required and only if operating the controller in...

Страница 144: ...ent time This limit normally is the one that is preset by the user except when the controller is operating at high temperature in which case the allowable current drops as temperature rises See Temper...

Страница 145: ...can be read as Absolute or Relative An Absolute counter read will return the full counter value after every read query In a Relative counter read the counter value is immediately cleared immediately...

Страница 146: ...rly received and executed if an error occurred Examples Q2 Reset both counters Q5 Load value contained in buffer into counter 2 Q0 followed by Q1 Read counter 1 and copy its value into counter 2 Read...

Страница 147: ...ll cause the controller to return either the speed or the distance computed by the Encoder module depending on the operating mode that is selected This command is similar to either of the two previous...

Страница 148: ...stored in the Encoder s module MCU RAM While this command provides unrestricted access to up to 256 memory locations a small number of these locations should never be read or altered Parameter addres...

Страница 149: ...Code 1 byte Full 85 Switches Status 1 byte Full 86 Speed or Distance 1 depending on operating mode 1 byte Full 87 Speed or Distance 2 depending on operating mode 1 byte Full 88 Counter Read Write Mail...

Страница 150: ...Distance 1 or 2 Address 86 Channel 1 87 Channel 2 98 Destination Register 1 MSB bits 31 to 24 4 bytes Full 99 Destination Register 1 bits 23 to 16 9A Destination Register 1 bits 15 to 8 9B Destinatio...

Страница 151: ...e which then copies the counter value into the mailbox The mailbox system can be used in the same way for reading and writing the des tination register In practice reading a counter is done by a singl...

Страница 152: ...ned 8 bit value 127 to 127 that represents the motor speed relative to a maximum speed which in turn depends on the number of encoder counts and time base settings as described in Using the Encoder to...

Страница 153: ...igher than 7 i e 8 to F to signify that the number is positive For negative numbers the Encoder module will insert an F ahead of any number string starting with a digit value lower than 8 i e 0 to 7 T...

Страница 154: ...154 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 155: ...l 3 is activated the relay turns On and brings the RC radio signal 1 to the shared input The second relay contact brings a discharged capacitor onto the Power Control wire causing the controller to re...

Страница 156: ...the R C mode and on page 119 for the Analog mode This string is composed of a start character delimiter followed by two digit Hexadecimal numbers representing internal parameter values and ending wit...

Страница 157: ...exadecimal is related to the binary system that is used at the very heart of micro computers Functions for converting from decimal to hexadecimal are readily available in high level languages such as...

Страница 158: ...24 18 56 38 88 58 120 78 25 19 57 39 89 59 121 79 26 1A 58 3A 90 5A 122 7A 27 1B 59 3B 91 5B 123 7B 28 1C 60 3C 92 5C 124 7C 29 1D 61 3D 93 5D 125 7D 30 1E 62 3E 94 5E 126 7E 31 1F 63 3F 95 5F 127 7F...

Страница 159: ...9 D1 15 241 F1 110 146 92 78 178 B2 46 210 D2 14 242 F2 109 147 93 77 179 B3 45 211 D3 13 243 F3 108 148 94 76 180 B4 44 212 D4 12 244 F4 107 149 95 75 181 B5 43 213 D5 11 245 F5 106 150 96 74 182 B6...

Страница 160: ...160 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Страница 161: ...with a 9 pin female connector An Internet connection for downloading the latest version of the Roborun Utility or the Controller s Software 5 Megabytes of free disk space If there is no free serial po...

Страница 162: ...ting and Testing on page 168 Most computers have at least one but often times two serial ports Look for one or two connectors resembling the illustration in Figure 87 If a serial port connector is alr...

Страница 163: ...will automatically be updated with an indication that a free communication port was found and opened by the utility If no free communication port is available on your computer it will be indicated in...

Страница 164: ...ame also contains the button needed to initiate a software update to the controller 5 View Controller Connector Pinout Clicking on this link will conveniently pop a window containing the Controller s...

Страница 165: ...le from this screen 1 Controller Input This pull down menu allows the user to select the RS232 R C or Analog mode of opera tion If the RS232 mode is selected a check box will appear allowing you to en...

Страница 166: ...e Motor Excitation on page 49 Power Settings The screen shown in Figure 91 is used to view and change the power parameters of the controller 1 Amps limit This slider will let you select the max amps t...

Страница 167: ...some of these menus will turn gray but will remain active 1 Deadband This slider will let you set the amount of joystick motion off its center position before the motors start moving The slider will...

Страница 168: ...commands These parameters are used in the Position mode see page 81 and the Closed Loop speed mode see page page 93 Encoder Setting and Testing Extensive diagnostic calibration setting and testing su...

Страница 169: ...speed computation 3 Setting Divider for computing relative distance 4 Measure and display speed and relative distance 5 Measure and display counter values 6 Detect and display optional limit switch st...

Страница 170: ...he threshold level parameter and its operation is described in Voltage Levels Thresholds and Limit Switches on page 72 Exercising the Motors A set of buttons and sliders is provided to start stop comm...

Страница 171: ...elow the slider The stop button will cause the slider to return to the middle stop position and a 0 value command to be sent to the controller The and buttons will cause the slider to move by 1 or 10...

Страница 172: ...Transistors for each channel The Bat Volt field displays the main battery s voltage voltage applied at the Vmot tabs The Ctrler Volt field displays the controller s internal regulated 12V voltage 4 Re...

Страница 173: ...on can be pressed at any time to clear the local RAM from its content Clearing the log also has the effect of resetting the timer 3 Log Fill Status This gray text box indicates whether the local RAM l...

Страница 174: ...her verify that the joystick is properly installed in the PC and is fully operational Using the Console The console screen allows you to communicate with the controller using raw ASCII data This funct...

Страница 175: ...haracters for data logging If in RS232 mode the controller will output an OK prompt and is ready to accept com mands 2 Command Entry This window is used to prepare up to 3 command string and send them...

Страница 176: ...gnize the controller as being present However when in the Run tab and the Run button activated Roborun will be receiving the strings sent by the controller and display the various parameters in the ri...

Страница 177: ...nuously move data between the network and the COM port When launched the screen shown below appears The second computer runs the Roborun utility To establish contact with the server pro gram click on...

Страница 178: ...be asked to reset it while connected 5 Press the Program button to start programming Do not interrupt or cut the power to the controller while the new program is loading into Flash memory 6 After a ve...

Страница 179: ...required by the application Creating a custom object file can easily be done using the Objectmaker utility This short program is automatically installed in the Start menu when installing the Roborun...

Страница 180: ...Using the Roborun Configuration Utility 180 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007 8 Install the new object file in the controller using the Roborun utility...

Страница 181: ...t Board The board includes connectors for direct connection to the Optical Encoders and to the Radio Joy stick or microcomputer on one side On the other side can be found Fast on tabs for high current...

Страница 182: ...ing sufficient heat dissipation for operation without a fan in most applications When mounting the board and if current is expected to be above 15A on average ensure that there can be a natural or for...

Страница 183: ...rculate air around the controller Attaching the Controller Directly to a Chassis The AX1500 can be attached to a metal chassis to improve heat dissipation For this pur pose the board has holes at the...

Страница 184: ...uching the heat sinks of the power MOS an from damaging the PCB and making contact with the copper layers underneath Should the board be expected to experience heavy vibrations then use plastic should...

Страница 185: ...s These connectors are rated to support the controller s maximum specified current It is rec ommended that you use AWG12 wire for all power connections to ground batteries and motors The Power Control...

Страница 186: ...Mechanical Specifications 186 AX1500 Motor Controller User s Manual Version 1 9b June 1 2007...

Отзывы: