feedback control gui familiarity level required: lower estimated time required: 40 minutes

Post on 06-Jan-2016

28 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Feedback Control GUI Familiarity Level Required: Lower Estimated Time Required: 40 minutes. MSC.ADAMS 2005 r2. Topics Covered. In this tutorial you will learn how to:. Create cylinder Create frustum Rename part Modify orientation Modify mass properties - PowerPoint PPT Presentation

TRANSCRIPT

1

Feedback Control

GUI Familiarity Level Required: LowerEstimated Time Required: 40 minutes

MSC.ADAMS 2005 r2

2

Topics CoveredTopics Covered

In this tutorial you will learn how to:

If you have any difficulties, import the “Pulley_System_shortcut_1.cmd” file and proceed from pg 13

If you have any difficulties, import the “Pulley_System_shortcut_2.cmd” file and proceed from pg 16

If you have any difficulties, import the “Pulley_System_shortcut_3.cmd” file and proceed from pg 19

If you have any difficulties, import the “Pulley_System_complete.cmd” file and proceed from pg 24

1. Create cylinder

2. Create frustum

3. Rename part

4. Modify orientation

5. Modify mass properties

6. Create distance along axis (DX) function

7. Create velocity along axis (VX) function

8. Add translational joint

9. Create simple harmonic function

10. Add translational joint motion

11. Add torque

3

Feedback Control ProblemFeedback Control Problem

This example shows how you can simply model a closed-loop feedback control system using standard modeling functionality, such as measures. The model does not require any controls specific entities such as state variables or

transfer functions. The model introduces how ADAMS can be useful in understanding the effects that a control system will have on your physical system.

4

What You Should AccomplishWhat You Should Accomplish

When you complete this tutorial you will have a model that illustrates an object

following the motion of a second motion

5

This particular model simulates a pointer that is attempting to follow the movement of a translating block. This task could easily be accomplished imposing a motion on the pointer that matches the motion of the block. However, many physical systems use a control system to act as an imposed motion. Control systems are not perfect and do induce error when compared to the ideal motion of the system.

The control system in this model uses two measures as input and outputs one torque value. The control system emulates a proportional-derivative (PD) type controller. Thus, we can use a distance measure to calculate the proportional portion and a velocity measure to find the derivative portion of the controller.

 

6

Getting StartedGetting Started

a. Start ADAMS

b. Create new model (Model Name = Feedback_Control, Gravity = No Gravity, Units MKS)

c. Turn on Length checkbox, enter (0.1m) in text field

d. Turn on Radius checkbox, enter (0.1m) in text field

e. Click (0,0,0) (1,0,0)

ed

c

b

a

7

RenameRename

a. Right-click on cylinder, select Part: PART_2 Rename

b. Enter .Feedback_Control.Pointer in New name text field

c. Click OK

a

b

c

8

Modify OrientationModify Orientation

a. Right click cylinder, select Marker: MARKER_1 Modify

b. Enter (0.0,0.0,0.0) in Orientation text field

c. Click OK

a

b

c

9

Create FrustumCreate Frustum

a. Select Frustum from Rigid Body tool stack

b. Select Add to Part from Frustum pull down menu

c. Turn on Length checkbox, enter (1.0m) in text field

d. Turn on Bottom Radius checkbox, enter (5.0E-002m) in text field

e. Turn on Top Radius checkbox, enter (1.0E-002m) in text field

f. Click Pointer (1.0. 0.0. 0.0) (1.0. 0.0. 0.0) Pointer.MARKER_1

a

b

e

d

cf

10

Modify Mass PropertiesModify Mass Properties

a. Right click on Pointer, select Part: Pointer Modify

b. Select User Input from Define Mass by pull down menu

c. Enter 1.0 in Mass text field

d. Enter 1.0 in Ixx, Iyy, Izz text field

e. Enter cm in Center of Mass Marker text field

f. Click OK

a

b

c

d

e

f

11

Create SliderCreate Slider

a. Create a cylinder (Length = (0.4m), Radius = (0.1m)), from (1.25, -0.2, 0.0) to (1.25, 0.2, 0.0)

b. Rename .Feedback_Control.Slider

c. Modify Slider properties: Mass =1.0, Ixx = Iyy = Izz = 1.0

d. Enter Slider.cm in Center of Mass Marker text field

e. Enter Slider.cm in Inertia Reference Marker text field

f. Rename Slider cm to .Feedback_Control.Slider.slider_center

g. Rename MARKER_2 at tip of Frustum to .Feedback_Control.Pointer.tip

12

Create MeasuresCreate Measures

a. Click Build menu Measure Function New

b. Enter .Feedback_Conrol_Displacement_Error in Measure Name text field

c. Select Diplacement from pull down menu

d. Click Distance along X

e. Click Assist

f. Enter slider_center in To Marker text field

g. Enter tip in From Marker text field

h. Enter tip in Along Marker text field

i. Verify that the Create a Function Measure text field reads: DX(slider_center, tip, tip)

j. Click OK

a

efg

bcd

h

i

j

13

Create MeasureCreate Measure

Create another measure with name .Feedback_Control.Velocity_Error. The function should read:

VX(slider_center, tip, tip)

14

Add Translational JointAdd Translational Joint

a. Select Translational joint from joint tool stack

b. Select 1 Location from Construction pull down menu

c. Click Slider.slider_center Positive Y direction (slider_center.Z)

d. Select Translational joint motion from Motion Driver tool stack

e. Click JOINT_1

15

Modify Translational Joint MotionModify Translational Joint Motion

a

b

c

d

a. Right-click JOINT_1, select Motion: MOTION_1 Modify

b. Click button next to Function (time text) field

c. Enter:

SHF(TIME,0,.5,6.28,0,0)

+SHF(time, 0.0, 0.1, 6.28*4, 0.0, 0.0)

In Define a runtime function

d. Click OK

16

Add TorqueAdd Torque

a. Select Torque from Force tool stack

b. Click Pointer Pointer.MARKER_1

c. Rename .Feedback_Control.Plant

a a

17

Modify Torque FunctionModify Torque Function

a. Right-click torque, select Torque: SFORCE_1 Modify

b. Click button next to Function text field

a

b

18

Modify Torque FunctionModify Torque Function

Enter 10*Displacement_Error+ 10*Velocity_Error in Define a runtime function text field

19

ModelModel

This is what your screen should look like whenyour model is complete

20

Verify Your ModelVerify Your Model

Run simulation (Duration = 5, Step Size = 0.01)

Verify your model, should have 6 degrees of freedom and no redundant constraints

21

ResultsResults

22

Topics CoveredTopics Covered

In this tutorial you will learn how to:

1. Create cylinder

2. Create frustum

3. Rename part

4. Modify orientation

5. Modify mass properties

6. Create distance along axis (DX) function

7. Create velocity along axis (VX) function

8. Add translational joint

9. Create simple harmonic function

10. Add translational joint motion

11. Add torque

23

Best PracticesBest Practices

• Make sure that the units are MKS

• Make sure that gravity is turned off

• Check location of parts

• Check orientation of joints

• Verify that the functions are calling values

• Verify model

top related