System modelling using Open Modelica

Similar documents
Digital Control Lab Exp#8: PID CONTROLLER

ArbStudio Triggers. Using Both Input & Output Trigger With ArbStudio APPLICATION BRIEF LAB912

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Elmo HARmonica Hands-on Tuning Guide

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

Software Operational Manual

QuickBuilder PID Reference

EC-3: Capacitors and RC-Decay

5 Lab 5: Position Control Systems - Week 2

EXPERIMENT NO. 4 EXPERIMENTS ON LADDER PROGRAMMING FOR MECHATRONICS SYSTEM

Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

How To Graphically Analyze Production History Data

AN294. Si825X FREQUENCY COMPENSATION SIMULATOR FOR D IGITAL BUCK CONVERTERS

Moving Man Introduction Motion in 1 Direction

SCATT Biathlon shooting trainer User s Manual

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006

7 Lab: Motor control for orientation and angular speed

COPYRIGHT NATIONAL DESIGN ACADEMY

Excel Tool: Plots of Data Sets

Ver. 4/5/2002, 1:11 PM 1

Lab 2: Introduction to Real Time Workshop

Hands-on Lab. PID Closed-Loop Control

Use of the LTI Viewer and MUX Block in Simulink

Experiment P20: Driven Harmonic Motion - Mass on a Spring (Force Sensor, Motion Sensor, Power Amplifier)

Engine Control Workstation Using Simulink / DSP. Platform. Mark Bright, Mike Donaldson. Advisor: Dr. Dempsey

Activity P07: Acceleration of a Cart (Acceleration Sensor, Motion Sensor)

Motion Simulation - The Moving Man

MAE106 Laboratory Exercises Lab # 5 - PD Control of DC motor position

FACULTY OF ENGINEERING LAB SHEET ENT 3036 SEMICONDUCTOR DEVICES TRIMESTER

Dept. of Electrical, Computer and Biomedical Engineering. Inverting and non inverting amplifier

Example Application C H A P T E R 4. Contents

Laboratory Experiment #1 Introduction to Spectral Analysis

LIGHT-SCENE ENGINE MANAGER GUIDE

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

Create a Flowchart in Word

Pan-Tilt Signature System

K-band Waveguide BPF Design using Agilent EMPro Anurag Bhargava Application Consultant Agilent EEsof EDA

Sensors and Sensing Motors, Encoders and Motor Control

SIGNALS AND SYSTEMS: 3C1 LABORATORY 1. 1 Dr. David Corrigan Electronic and Electrical Engineering Dept.

Magnitude and Phase Measurements. Analog Discovery

Sound Waves and Beats

DC Operating Point, I-V Curve Trace. Author: Nate Turner

Worksheet for the afternoon course Tune measurements simulated with a DSP card

After you launch StoryO, you will see 5 sample projects in the Projects screen. To sample a project, click on the name of the project.

The DC Machine Laboration 3

Page 21 GRAPHING OBJECTIVES:

Designing PID for Disturbance Rejection

Experiment 1 Introduction to Simulink

6.270 Lecture. Control Systems

Lab-Report Control Engineering. Real Water tank

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

Experiment 8: An AC Circuit

Design of PID Control System Assisted using LabVIEW in Biomedical Application

Active Clamp Forward Step-by-Step Guide

Experiment 13: LR Circuit

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

Experiment 7: PID Motor Speed Control

Determining the Dynamic Characteristics of a Process

LabVIEW Basics Peter Avitabile,Jeffrey Hodgkins Mechanical Engineering Department University of Massachusetts Lowell

MicroLab 500-series Getting Started

Introduction to the Analog Discovery

Introduction to programming with Fable

Lab 1B LabVIEW Filter Signal

Graphical Control Panel User Manual

Ansoft Designer Tutorial ECE 584 October, 2004

EXPERIMENT 8: LRC CIRCUITS

Excel Lab 2: Plots of Data Sets

PID-CONTROL FUNCTION AND APPLICATION

DC Motor Speed Control for a Plant Based On PID Controller

SonoLab Echo-I User Manual

Motomatic Servo Control

Introduction to NetLab ECT practical # 1

Volume of Revolution Investigation

Experiment P01: Understanding Motion I Distance and Time (Motion Sensor)

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

Basic Guidelines for Tuning With The XPS Motion Controller

Basic Tuning for the SERVOSTAR 400/600

HIL Simulation Lab Work

SINGLE SENSOR LINE FOLLOWER

Determining the Dynamic Characteristics of a Process

Software User Manual

InstaSPIN-BLDC Lab. DRV8312 Setup Jumpers and switches must be setup properly or the kit will not function correctly!

Fundamentals of Servo Motion Control

Introduction to R Software Prof. Shalabh Department of Mathematics and Statistics Indian Institute of Technology, Kanpur

MultiSim and Analog Discovery 2 Manual

AreaSketch Pro Overview for ClickForms Users

An Introduction to Programming using the NXT Robot:

Lab 3 Introduction to SolidWorks I Silas Bernardoni 10/9/2008

Experiment P24: Motor Efficiency (Photogate, Power Amplifier, Voltage Sensor)

Experiment P10: Acceleration of a Dynamics Cart II (Motion Sensor)

EE 461 Experiment #1 Digital Control of DC Servomotor

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

Moving Man - Velocity vs. Time Graphs

(1) Identify individual entries in a Control Loop Diagram. (2) Sketch Bode Plots by hand (when we could have used a computer

What is an EQ? Subtract Hz to fix a problem Add Hz to cover up / hide a problem

Adding Fireworks To A Photo With Photoshop

Control System Circuits with Opamps

ECE 5670/ Lab 5. Closed-Loop Control of a Stepper Motor. Objectives

Part 1: DC Concepts and Measurement

AC : A STUDENT-ORIENTED CONTROL LABORATORY US- ING PROGRAM CC

Transcription:

System modelling using Open Modelica Maine Maritime Academy ET401, Automation and Control Fall semester 2018 by Prof Frank Owen, PhD, PE Create a model of a first-order system in Modelica then subject it to a step input to get a first-order step response (this will be used later to tune a PID controller for this system)

First you need to download and install the open-source modelling package OMEdit (Open-source Modelica GUI), available for both the Windows and ios environments

New model First order Second order

Create a first-order model You can name this whatever you want

Drag the FirstOrder out into the workspace First order now get a step input

Hook the two together with your mouse: click and drag away from the output arrow on step1; then let loose the mouse; then click on the input arrow to firstorder1 Set the starttime to 1

Set the steady-state gain to 200 F Set the time constant to 75 seconds

On the buttons across the top, this is Simulation setup Set the simulation stop time to 400 seconds When you press this button, you will get a prompt for a name to save this too. Enter a meaningful name, then the simlation will start.

If all goes well (you did everything right), you will get a success report like this

and an output window like this. To see the step response, you will need to check y here; y is the output from the firstorder block

You can go back and forth between the model and the result (Plotting) using these buttons in the lower right corner of OMEdit

See more about first- and second-order step responses in Chapter 4 of Control Systems Engineering: A Practical Approach

Two identical DC motors, mechanically coupled together. Step input of 5 VDC applied to one motor, voltage out of second motor captured on an oscilloscope.

The resulting step response is very noisy. It could be filtered, but the first-order nature of the response is evident, even with the noise. This is the extracted data from the noise curve at right. Can you get the transfer function for this motor/generator set?

Homework problem 1 Create a simulation where the time constant is 8 seconds and the gain is -5 Show the time constant graphically on the graph Use electronic cut-and-paste into Word Use the Word call-outs to point this out Show the gain using the Word call-outs How long does it take the system to reach its new equilibrium after the step? Show this on your diagram.

Homework problem 2 Create a simulation of a second-order, underdamped system with: A natural frequency of 1 Hz A steady-state gain of 8 A 20% overshoot A step response with a size of 2, triggered at t = 1 sec Show in Word with call-outs: The 20%OS The (approximate) period of 1 second The peak time

Homework problem 3 Create a simulation of a PID controller with KP = 10 KI = 1 KD = 2 A step response with a size of 2, triggered at t = 1 sec Show the response to a unit step input, triggered at 1 sec, running for 11 sec with: The effect of KP The effect of KI The effect of KD (the derivative kick )

Acknowledgement: My thanks to the Università degli studi di Bergamo, Laboratorio di Automatica, whose generous support allowed me to find Modelica and then develop my skills in system modelling using that software