Professional Documents
Culture Documents
University Of Manitoba
EPEC 2011
Content
Introduction
Background
PSCAD Code Generator (PSCADCG)
Example System
Validation Testing
Conclusion
EPEC 2011
INTRODUCTION
EPEC 2011
Introduction
Software based design in power systems
Grown in popularity with computer processing
power
- Electromagnetic Transient (EMT) simulation
models the network in the greatest detail
- Application: Flexible Alternating Current
Transmission System (FACTS), High Voltage
Direct Current (HVDC)
- Exhaustive simulations are done to confirm the
controls operate in an appropriate manner
- However the control model must still be
transferred into a useable control code for infield use
EPEC 2011
Introduction
Solution to Problem
Automatic code
generation from
simulation control
elements
PSCAD Code
Generator
(PSCADCG)
MATLABs Real-time
Workshop
EPEC 2011
BACKGROUND
EPEC 2011
Background
Library
EPEC 2011
Workspace
Background
PSCAD/EMTDC power system simulator
2 main types of Library components:
Electrical
passive electrical components, power electronic
components, machines, transformers, application
specific components (EX: HVDC, FACTS)
Control
arithmetic operations, logical operations, filters,
application specific controls and more
Background
To allow for prototyping of the controls
the PSCAD Code Generator
(PSCADCG) is used
PSCADCG reads the graphic model and
develops embedded software compatible
code from the model
EPEC 2011
PSCADCG
The PSCADCG contains 3 main parts involved in the rapid prototyping
process
Network generation
C function generation
C interface generation
EPEC 2011
EPEC 2011
EPEC 2011
EPEC 2011
EXAMPLE SYSTEM
EPEC 2011
Example System
Step Down converter
Reduces voltage from input to output using pulse width modulation
Parameters
EPEC 2011
Input = 10 Volts
Output = 5 Volts
Voltage Ripple = 0.2%
Current Ripple = 2.0%
EPEC 2011
Controls must be
converted to a real
time controller
EPEC 2011
80 MHz
32-bit memory.
PWM
digital and analog I/O
(Input and outputs)
8 peripheral ports
VALIDATION TESTING
EPEC 2011
Validation Testing
5 volt output test
Calculated: 5.00
Simulated: 5.00
Blue signal represents the
PWM signal (Top)
Green signal represents PI
control signal (Top)
Blue signal represents the
output voltages (Bottom)
Green signal represents
the input voltages
(Bottom)
Hardware: 5.10
Blue signal represents the
PWM signal
Green signal represents
the input voltages
Orange signal represents
the output voltages
EPEC 2011
Validation Testing
9.90 volt output test
Calculated: 9.90
Simulated: 9.90
Blue signal represents the
PWM signal (Top)
Green signal represents PI
control signal (Top)
Blue signal represents the
output voltages (Bottom)
Green signal represents
the input voltages
(Bottom)
Hardware: 9.53
Blue signal represents the
PWM signal
Green signal represents
the input voltages
Orange signal represents
the output voltages
EPEC 2011
Validation Testing
EPEC 2011
Duty
Cycle
(%)
Calc.
(V)
PSCAD
(V)
Actual
Hardware
(V)
50
5.00
5.00
5.10
Error
PSCAD
VS
Hardware
(%)
1.00
99
9.90
9.90
9.53
3.70
CONCLUSION
EPEC 2011
Conclusion
PSCADCG capable of:
generating control systems for a PSCAD system
generating most any control system generated by PSCAD
Future work
Support for multiple page modules
Support for FPGA platforms
EPEC 2011
QUESTIONS
EPEC 2011