ms2000_optimal_alignment_procedures
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ms2000_optimal_alignment_procedures [2016/09/07 18:29] – ↷ Links adapted because of a move operation asiadmin | ms2000_optimal_alignment_procedures [2024/08/30 17:24] (current) – [Drive Card Alignment] jon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== MS-2000 Controller Optimal Alignment Procedures ====== | ||
| + | <WRAP center round important 60%> | ||
| + | This page is largely obsolete, especially details about setting AA which is set at the factory and does not normally need to be changed. | ||
| + | </ | ||
| + | |||
| + | |||
| + | MS-2000 controllers with firmware Version 8.0 and later may use the procedures outlined below to obtain optimal performance of the MS-2000 stage and/or Z-drive. | ||
| + | |||
| + | ===== Alignment Overview ===== | ||
| + | |||
| + | The MS-2000 controllers with Version 8.0+ firmware are highly configurable. | ||
| + | |||
| + | Proper calibration of the analog driver is required to get smooth, very slow speed operation of the stage with the digital closed-loop control. | ||
| + | |||
| + | ===== Drive Card Alignment ===== | ||
| + | |||
| + | The purpose of aligning the analog feed back for the drivers is to reduce the dead zone near zero speed when low voltage is applied to the motor. | ||
| + | |||
| + | [{{ ms2k_optimal_alignment_1.jpg? | ||
| + | |||
| + | As you can see, without any feedback, (blue diamonds, '' | ||
| + | |||
| + | ===== Adjusting the Feedback Alignment (AA) ===== | ||
| + | |||
| + | All of the steps below require a connection to a computer terminal program. Refer to [[tech_note_rs232_comm|RS-232 Communication]] | ||
| + | |||
| + | |||
| + | <WRAP center round important 60%> | ||
| + | WARNING: When doing the alignment of the motors, be sure there is room for the stage to travel a few centimeters and that there is no objective lens in place. | ||
| + | </ | ||
| + | |||
| + | |||
| + | The following example will show alignment of the X axis. Alignment of the Y axis and Z drive channels is analogous. | ||
| + | |||
| + | Before we change anything we need to know the current feedback parameter setting. | ||
| + | |||
| + | <asi> $ User’s typing shown in this typeface | ||
| + | MS-2000 responses are shown in red</ | ||
| + | |||
| + | <asi> $ AA X? | ||
| + | X= 82 | ||
| + | : | ||
| + | |||
| + | If you think the feedback is a little low (stage sluggish on landing) you can just increase the present value by a few counts using: | ||
| + | |||
| + | <asi> $ AA X=85 | ||
| + | : | ||
| + | |||
| + | Always issue the auto-zero command after changing the AA value to re-balance the output amplifiers. | ||
| + | |||
| + | <asi> $ AZ X | ||
| + | Zero C:0 | ||
| + | C C:0 H:0 L:101 | ||
| + | D C:1 H:0 L:109 | ||
| + | Bracket H:125 L:109 | ||
| + | E C:1 H:125 L:109 | ||
| + | E C:1 H:117 L:109 | ||
| + | Zerod at: 110</ | ||
| + | |||
| + | The procedure re-balances the amplifier now with the new Feedback value. | ||
| + | |||
| + | If you don’t get good results the first time, you can try higher or lower feedback values and re-test the motion. | ||
| + | |||
| + | Too much feedback can result in unstable jerky motion, the motor may tend to buzz, and the [[commands: | ||
| + | Too little feedback can result in no motion. | ||
| + | |||
| + | ===== Checking the Feedback Alignment (AA) ===== | ||
| + | |||
| + | <WRAP center round important 60%> | ||
| + | This built-in alignment routine hasn't worked since ~2015 or maybe even earlier | ||
| + | </ | ||
| + | |||
| + | The alignment routine contains a built-in self-test that generates the data used in the chart above. | ||
| + | |||
| + | <asi> $ AA X=500 | ||
| + | : | ||
| + | The number 500 triggers this test. | ||
| + | |||
| + | The data from this test are saved in the controller and must be dumped to the screen for you to evaluate. | ||
| + | |||
| + | <asi> $ DU | ||
| + | idmp = 52 | ||
| + | pos err spd | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | -112 0 0 | ||
| + | -140 0 0 | ||
| + | -175 0 0 | ||
| + | -218 | ||
| + | -272 -11 0 | ||
| + | -340 -32 0 | ||
| + | -425 -46 0 | ||
| + | -531 | ||
| + | -663 | ||
| + | -828 | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | 25 0 0 | ||
| + | 31 0 0 | ||
| + | 38 0 0 | ||
| + | 47 0 0 | ||
| + | 58 0 0 | ||
| + | 72 0 0 | ||
| + | 90 0 0 | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | 1035 932 0 | ||
| + | 1293 | ||
| + | 1616 | ||
| + | 2020 | ||
| + | 2525 | ||
| + | 3156 | ||
| + | 3945 | ||
| + | 4931 | ||
| + | 6163 | ||
| + | </ | ||
| + | |||
| + | The numbers show the results for moves in both directions. | ||
| + | |||
| + | If you see very slow, usually zero, movement for drive values < 500, you could increase the AA value. | ||
| + | |||
| + | ===== Setting Speed and Configuration Parameters ===== | ||
| + | |||
| + | The discrete nature of encoders and timing cycles place a few limits on acceptable speed and up/down ramp settings. | ||
| + | |||
| + | '' | ||
| + | |||
| + | Then, ask for those values to be read back: | ||
| + | |||
| + | <asi> $ S X? Y? | ||
| + | : X=0.088110 Y=0.088110 A</ | ||
| + | |||
| + | We see that the controller has adjusted our choices somewhat. | ||
| + | You can quickly see many of the controller parameter settings by issuing the info command: | ||
| + | |||
| + | <asi> $ I X | ||
| + | Axis Name : X Error Status | ||
| + | Input Device | ||
| + | Max Lim : 110.947 [SU] Min Lim : -109.053 [SL] | ||
| + | Ramp Time : 36 (ms)[AC] | ||
| + | Run Speed : 0.08811 (mm/s)[S] vmax_enc | ||
| + | dv_enc | ||
| + | Drift Error : 0.000500 (mm)[E] | ||
| + | Finish Error : 0.000097 (mm)[PC] | ||
| + | Backlash | ||
| + | Kp : | ||
| + | Kv : | ||
| + | Axis Enable | ||
| + | CMD_stat | ||
| + | Current pos : 0.00000 | ||
| + | Target pos : | ||
| + | enc pos error : | ||
| + | Lst Settle Time: 54 (ms) Ave Settle Time: 84 (ms)</ | ||
| + | |||
| + | The parameters that are user-changeable are indicated by the presence of their command shortcut in the listing above. | ||
| + | |||
| + | '' | ||
| + | |||
| + | Subsequent info requests would show the change to the **Drift Error** as well as to its corresponding parameter **enc_drift_err**, | ||
| + | |||
| + | Setting the appropriate error tolerances can have a dramatic effect on stage performance. | ||
| + | |||
| + | In some instances, final positioning is very important so you may wish to reduce the **Drift Error** to one or two encoder counts. | ||
| + | |||
| + | On stages without linear encoders, we recommend using the built-in anti-backlash routine to improve the repeatability of the stage movement. | ||
| + | |||
| + | ===== Setting Servo Parameters ===== | ||
| + | |||
| + | Changing the servo parameters should be done only if drive card alignment still doesn' | ||
| + | |||
| + | <asi> $ KP X? | ||
| + | A: X=50 | ||
| + | $ KI X? | ||
| + | A: X=5</ | ||
| + | |||
| + | In general, increasing the KP parameter increases the stiffness of the motion; the stage more closely follows the desired command trajectory. | ||
| + | |||
| + | * Start with KI X=0. Increase KP value until unstable motion is detected on long moves. Back off KP value until motion is smooth. | ||
| + | * Start with KI approximately 10% of the KP value obtained above. | ||
| + | |||
| + | Once you have made changes, be sure to save the settings as discussed below. | ||
| + | |||
| + | ===== Saving Settings to Non-Volatile Memory ===== | ||
| + | |||
| + | Once you are happy with your settings, you can save them to flash EPROM so they will be used on subsequent start-ups. | ||
| + | |||
| + | ===== Testing and Error Checking Servo Motion ===== | ||
| + | |||
| + | ==== Testing the Motion ==== | ||
| + | |||
| + | The MS-2000 controller has several built-in diagnostic capabilities that are useful for troubleshooting difficulties and for tuning the servo motion parameters. | ||
| + | |||
| + | **DU X ** | ||
| + | |||
| + | Then make a short move, e.g.: | ||
| + | |||
| + | **M X=12345** | ||
| + | After the move is complete, you can dump the buffer to the screen: | ||
| + | |||
| + | <asi> $ DU | ||
| + | idmp = 121 | ||
| + | pos err spd | ||
| + | 0 , 45 , 2250 | ||
| + | 45 , 135 , 6310 | ||
| + | 114 , 270 , 11348 | ||
| + | 169 , 450 , 15840 | ||
| + | 196 , 675 , 19218 | ||
| + | 184 , 945 , 21034 | ||
| + | 169 , 1215 , 20476 | ||
| + | 118 , 1485 , 18464 | ||
| + | 59 , 1755 , 16118 | ||
| + | 18 , 2025 , 14482 | ||
| + | -1 , 2295 , 13722 | ||
| + | 2 , 2565 , 13842 | ||
| + | 22 , 2835 , 14646 | ||
| + | 27 , 3105 , 14852 | ||
| + | 50 , 3375 , 15784 | ||
| + | 70 , 3645 , 16600 | ||
| + | 74 , 3915 , 16778 | ||
| + | 53 , 4185 , 15950 | ||
| + | 45 , 4455 , 15640 | ||
| + | 41 , 4725 , 15490 | ||
| + | 39 , 4995 , 15418 | ||
| + | 42 , 5265 , 15548 | ||
| + | 42 , 5535 , 15558 | ||
| + | -5 , 5805 , 13678 | ||
| + | 44 , 6075 , 15648 | ||
| + | 61 , 6345 , 16342 | ||
| + | 66 , 6615 , 16558 | ||
| + | 59 , 6885 , 16292 | ||
| + | 28 , 7155 , 15058 | ||
| + | 27 , 7425 , 15024 | ||
| + | 35 , 7695 , 15352 | ||
| + | 47 , 7965 , 15842 | ||
| + | 53 , 8235 , 16094 | ||
| + | 41 , 8505 , 15624 | ||
| + | 42 , 8775 , 15674 | ||
| + | 44 , 9045 , 15764 | ||
| + | 45 , 9315 , 15814 | ||
| + | 40 , 9585 , 15624 | ||
| + | 12 , 9855 , 14506 | ||
| + | 22 , 10125 , 14910 | ||
| + | 37 , 10395 , 15518 | ||
| + | 52 , 10665 , 16130 | ||
| + | 61 , 10935 , 16504 | ||
| + | 57 , 11205 , 16358 | ||
| + | 34 , 11475 , 15446 | ||
| + | 29 , 11745 , 15252 | ||
| + | 32 , 12015 , 15380 | ||
| + | 38 , 12285 , 15628 | ||
| + | 40 , 12555 , 15718 | ||
| + | 38 , 12825 , 15646 | ||
| + | 16 , 13095 , 14770 | ||
| + | 23 , 13365 , 15054 | ||
| + | 47 , 13635 , 16024 | ||
| + | -83 , 13790 , 10160 | ||
| + | -57 , 14015 , 8936 | ||
| + | -31 , 14195 , 7720 | ||
| + | -19 , 14330 , 5946 | ||
| + | -27 , 14420 , 3370 | ||
| + | -54 , 14433 , -4422 | ||
| + | -107 , 14343 , -8818 | ||
| + | -142 , 14208 , -12502 | ||
| + | -87 , 14190 , -8072 | ||
| + | -24 , 14145 , -3308 | ||
| + | -77 , 14010 , -3098 | ||
| + | 11 , 14010 , 424 | ||
| + | 78 , 14010 , 3122 | ||
| + | 91 , 14010 , 3664 | ||
| + | 71 , 14010 , 2880 | ||
| + | 36 , 14010 , 1488 | ||
| + | 7 , 14010 , 328 | ||
| + | -2 , 14010 , -32 | ||
| + | -9 , 14010 , -314 | ||
| + | -8 , 14010 , -276 | ||
| + | -5 , 14010 , -156 | ||
| + | -2 , 14010 , -36 | ||
| + | -2 , 14010 , -36 | ||
| + | 0 , 14010 , 44 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 3 , 14010 , 120 | ||
| + | 0 , 14010 , 0 | ||
| + | -2 , 14010 , -80 | ||
| + | -2 , 14010 , -80 | ||
| + | -2 , 14010 , -80 | ||
| + | -2 , 14010 , -80 | ||
| + | -2 , 14010 , -80 | ||
| + | -2 , 14010 , -80 | ||
| + | -2 , 14010 , -80 | ||
| + | 0 , 14010 , 0 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 4 , 14010 , 160 | ||
| + | 1 , 14010 , 40</ | ||
| + | |||
| + | All those numbers may not look particularly useful, but they have a lot of information about the system dynamics in them. Using // | ||
| + | |||
| + | [{{ ms2k_optimal_alignment_2.jpg? | ||
| + | |||
| + | The data shows the move trajectory, the error from desired path, as well as the drive signal given to the motor mover. | ||
| + | |||
| + | The user is advised that servo tuning can be a painstaking process, so only try new settings if you are unhappy with the default ones shipped from the factory. | ||
| + | |||
| + | ==== Checking Internal Errors ==== | ||
| + | |||
| + | |||
| + | The controller is designed to work with a wide variety of parameter settings, but there certainly could be conditions where the choice of parameters causes motion errors of one sort or another. | ||
| + | |||
| + | **DU Y ** [dump error codes] | ||
| + | The buffer is cleared with: | ||
| + | |||
| + | **DU X** [clear buffers] | ||
| + | Error codes are dumped to the screen with the last error code shown first. | ||
| + | |||
| + | |||
| + | |||
| + | {{page> | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | {{tag> | ||
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
