. |
MechaWare Case Study Tutorial This case study describes the steps of developing a new control algorithm to help you obtain a better understanding. The major steps are highlighted below.
Performance SpecificationBefore designing a new filter algorithm it is important to know what type of machine performance you are trying to achieve. A detailed performance specification will help determine whether or not a new control algorithm is effective. System MeasurementThe next step is to diagnose the current system when no control algorithm is being used. You can use the Bode Tool to generate the necessary data to accurately measure the plant. The data collected by the Bode Tool can then be used to generate the following plot. System ModelAfter you have accurately measured the system, create a system model of the plant using Simulink or any other program that can be used to create a system model. You will likely need the following data to create a system model:
Here is an example of a system model (of the same plant as above) that has been generated using Microsoft Excel. Design Control AlgorithmYou are now ready to start designing a control algorithm. Create Block Diagram in Simulink The new algorithm is stored in a MechaWare model. To create a block diagram, simply drag any of the blocks found in the Matlab MechaWare Library into the MechaWare model window. It is helpful to think of the design process as two steps:
For example, we will start by dragging in the Command, Sum, and Actual Position blocks. Equation: Double-click on any block to see the block's configurable parameters. Under the Command Block Parameters box, you can specifiy the axis number. Under the Actual Position Block Parameters box, you can specifiy the axis number. Under the Sum (2 Input) Block Parameters box, you can change the gains (k1, k2). Equation: Add a PID with Reset block. Add a BiQuad Filter block. Add a Torque Output block. Under the Output Block Parameters box, you can specifiy the axis/motor number. Now that we have specified the new control law and have established the relationship between each of the blocks, we can now define the specific coefficients and parameters for each block. Specifiy the PID parameters under the PID with Reset Block Parameters box. Specifiy the filter characteristics under the Biquad Parameters box. Design a Low Pass Filter The Low Pass Filter above has the following filter characteristics:
Model Validation Against Actual SystemOnce you have designed a new control algorithm, you will need to validate the effectiveness of the new algorithm by testing it on the actual plant. The first step is to download the firmware to the ZMP-SynqNet controller. Is Performance Acceptable?When evaluating a control algorithm, it is important to compare the machine's performance to the original performance specification. You may have to do several iterations of the control algorithm before the resulting machine performance meets the specific requirements.
|
| | Copyright © 2001-2009 Motion Engineering |