16-bit microcontrollers and digital signal controllers with high-speed pwm, op amps and advanced analog (546 pages)
Summary of Contents for Microchip Technology PLECS
Page 1
PLECS Model Quick Start Guide for Vienna PFC 2020 Microchip Technology Inc. DS50002997A...
Page 2
Technology, and Symmcom are registered trademarks of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies.
Select the Help menu, and then Topics to open a list of available online help files. INTRODUCTION This chapter contains general information that will be useful to know before using the PLECS Model Quick Start Guide for Vienna PFC . Items discussed in this chapter include: •...
Page 5
Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1} character: { | } arguments; an OR selection Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... 2020 Microchip Technology Inc. DS50002997A-page 5...
Page 6
Preface RECOMMENDED READING This quick start guide describes how to use the Vienna PFC PLECS. Another useful document is listed below. The following Microchip document is available and recommended as a supplemental reference resource: • MSCICPFC/REF5 User's Guide - “MSCSICPFC/REF5 3-Phase 30 kW Vienna PFC Reference Design”...
This document describes the procedure for installing PLECS simulation software, configuring the simulation settings, simulating the Vienna Power Factor Correction (PFC) model, and tutorial for using PLECS features used in the Vienna PFC model. PLECS (Piecewise-Linear Electrical Circuit Simulation) is a simulation tool for power electronics circuits and systems.
The Vienna PFC Reference Design was modeled using PLECS Standalone. For a trial version of PLECS Standalone, follow the instructions at the Plexim link at the end of this section to download, install, and request trial license. Without a license, PLECS Standalone operates in demo mode, allowing users to build and simulate models.
Page 9
PLECS Model Quick Start Guide for Vienna PFC When requesting a license, select the 'PLECs PIL' checkbox to include Processor-In-the-Loop capability, as illustrated in Figure 1-2. FIGURE 1-2: Requesting Standalone Trial License. For a video walk-through of the PLECS Standalone installation, see: •...
Processor-In-the-Loop. The Component Models folder contains the thermal descriptions for the Microchip SiC Schottky barrier diode and SiC MOSFET used in the Vienna PFC reference design. FIGURE 2-2: Folder Structure. 2020 Microchip Technology Inc. DS50002997A-page 10...
PLECS MODEL QUICK START GUIDE FOR VIENNA PFC Chapter 3. PLECS Settings Double-click on the model file, Vienna-PFC rev1.plecs, which is found within the Vienna-PFC project folder. The model and library browser will open. FIGURE 3-1: Vienna PFC Top-Level. Model.
Page 12
FIGURE 3-3: PIL License Warning. Under File/PLECS Preferences in the General tab, increase the cache size limit preferably to 4 GBytes but no more than one-third of the physical memory of the computer. The user may adjust other preferences such as DIN or ANSI schematic symbol.
Page 13
PLECS Settings FIGURE 3-5: Adding Paths to the Thermal Descriptions. 2020 Microchip Technology Inc. DS50002997A-page 13...
The syntax used to define the variables is the same used in a Matlab or Octave script. In PLECS, all component values are purely numerical without any units specified. Volts is used for voltage, Hertz for frequency, and Ohms for resistance. Matlab e-notation (scientific notation) can be used to define values.
Page 15
PLECS Model Quick Start Guide for Vienna PFC FIGURE 4-2: Model Initialization. The three-phase voltage source component used in the model accepts parameters: Amplitude, Frequency, and Phase offset. As shown below, the variables defined in the initialization are passed to the voltage source. This approach allows the line conditions to be available to the other model blocks.
FOR VIENNA PFC Chapter 5. Model Configurations PLECS allows a model block to be associated with multiple schematics or configurations. In PLECS, blocks are referred to as subsystems and subsystems with multiple configurations are referred to as configurable subsystems. Configurable subsystems are used for the Front-End Input, Power Stage, and Controller stages.
PLECS Model Quick Start Guide for Vienna PFC FIGURE 5-2: Front-End Input Subsystem Selection. POWER STAGE The model contains two power stage configurations: Power Stage and Power Stage with Thermal Model. The thermal model includes: • Boost inductor core loss •...
Chapter 6. Modifying Control Parameters and Component Values At the start of simulation, PLECS executes the initialization commands under the Simulation Parameters Initialization tab. The variables are available as global variables to components and subsystems. It also executes the initialization commands contained in the mask of each subsystem.
Page 21
• Right-click the subsystem, select Subsystem/Look under mask • Select the subsystem with a single-click, followed by Ctrl+U PLECS protects subsystems to prevent inadvertent modifications. To unprotect a subsystem, right-click the subsystem (Ctrl+U), select Subsystem/Unprotect. Adjusting the gain block of a PI controller during simulation is easily done by opening the controller subsystem and double-click of the gain block.
Page 22
FIGURE 6-5: Block Parameters Vienna PFC. PLECS includes switches that can be operated during the simulation. The following subsystem is the third-harmonic injection for balancing the voltage on the output capacitors. To disable this feature, the user may double-click the Manual Switch.
FOR VIENNA PFC Chapter 7. Monitoring Signals In PLECS, a scope or display may be used to monitor signals real-time while the simulation is running. Signals are only monitored in the control domain. Signals in the electrical, magnetic, thermal, or mechanical domain cannot be monitored directly.
To monitor the voltage across two nodes, for example, use a voltmeter from the library browser. The library browser automatically opens on PLECS start-up. It also be accessed by selecting Window/Library Browser from the menu or by Ctrl+L. Drag it from the library browser onto the schematic by clicking on the component and holding down the mouse button.
Page 25
Next, drag a Scope from the library browser to the schematic. You can find it under the System or type in scope in the search bar. Connect the green terminal of the Voltmeter to the Scope. FIGURE 7-5: Library Browser Scope. 2020 Microchip Technology Inc. DS50002997A-page 25...
Page 26
PLECS Model Quick Start Guide for Vienna PFC FIGURE 7-6: Power Meter. Run the simulation (Simulation / Start or Ctrl+T). Double-click the scope to see the signal trace. To zoom in on the time-axis, click on the plot and drag the mouse horizontally.
Page 27
Monitoring Signals FIGURE 7-8: Zoomed in Time-Axis. Measuring current is done is a similar way, except the Ammeter connects inline with the electrical signal: FIGURE 7-9: Ammeter. 2020 Microchip Technology Inc. DS50002997A-page 27...
PLECS Model Quick Start Guide for Vienna PFC MONITORING SIGNALS ON MULTIPLE PLOTS Scopes can have multiple plots by adjusting the number of plots in the Scope Parameters window. The scope will have a green terminal for each plot: FIGURE 7-10: Multiple Plot Selection.
Monitoring Signals MONITORING SIGNALS ON A SINGLE PLOT Multiple signals can be multiplexed together using a Signal Multiplexer: FIGURE 7-13: Signal Multiplexer. FIGURE 7-14: Signals Multiplexed to a Scope. 2020 Microchip Technology Inc. DS50002997A-page 29...
PLECS Model Quick Start Guide for Vienna PFC FIGURE 7-15: Multiple Signals on Single Scope Plot. MONITORING COMPONENT SIGNALS WITH PROBE Components and some subsystems have signals available that do not require access through a meter. Instead, it is accessible with the Probe component found in the library browser.
Additionally, the top-level subsystems have signals available that only require a probe and scope. For example, the PWM input and output signals of the Modulator are accessible by dragging the Modulator onto a Probe window. FIGURE 7-20: Available Subsystem Signals in Probe Dialog Window. 2020 Microchip Technology Inc. DS50002997A-page 31...
Page 32
PLECS Model Quick Start Guide for Vienna PFC FIGURE 7-21: Probe Signals Plotted in Scope. 2020 Microchip Technology Inc. DS50002997A-page 32...
FOR VIENNA PFC Chapter 8. Saving and Exporting Scope Traces Data plot in a Scope can be saved to a PLECS *.trace file by selecting File/Save trace data. It can be loaded in subsequent simulation runs using File/Load trace data.
Page 34
PLECS Model Quick Start Guide for Vienna PFC FIGURE 8-3: Hold Current Trace. FIGURE 8-4: Traces Window. 2020 Microchip Technology Inc. DS50002997A-page 34...
FIGURE 9-1: Power Meter. In PLECS, switch and core losses are not simulated in the electrical domain. The SBD (Schottky barrier diode) and MOSFET conduction and switching losses are based on the thermal descriptions of the devices. The core losses are based on the core data sheet core-loss graph.
Page 36
PLECS Model Quick Start Guide for Vienna PFC FIGURE 9-2: Power Meter Subsystem. 2020 Microchip Technology Inc. DS50002997A-page 36...
New York, NY Tel: 46-31-704-60-40 Tel: 631-435-6000 Sweden - Stockholm San Jose, CA Tel: 46-8-5090-4654 Tel: 408-735-9110 UK - Wokingham Tel: 408-436-4270 Tel: 44-118-921-5800 Canada - Toronto Fax: 44-118-921-5820 Tel: 905-695-1980 Fax: 905-695-2078 2020 Microchip Technology Inc. DS50002997A-page 37 02/28/20...
Need help?
Do you have a question about the PLECS and is the answer not in the manual?
Questions and answers