Cách sử dụng matlab trình bày bằng tiếng Anh cho bậc Thạc Sĩ. Chỉ việc tải xuống và nộp. Standard bar (Standard) includes: File, Edit, View, Subcircuit, Element, Simulate, Option, Window, Help. All operations in PSIM can be performed from this standard bar. Toolbar includes: New, Save, Open ...And commonly used commands such as Wire (wire), Zoom, Run Simulation (run simulation) ... The bottom bar is commonly used components such as resistors, inductors, capacitors, diodes, thyristors … • Parameter representation of elements The parameters of each element and part of the circuit that are discussed on the three windows of the PSIM include: Parameters (Parameters). Other information (Orther Info). Color (Color). The Parameters window is used during simulation, and the Orther Info window is not used for simulation but only for the user, this information will be displayed in the ViewElement List section. For example, the device type parameters, manufacturers name, production number ... And the Color window to determine the color for each element. On the Parameters window, parameters are entered as decimal numbers or as mathematical expressions. For example, a potential resistor can be represented in the following form: 12.5; 12.5 k; 12.5 Ohm; 12.5 kOhm; 252 Ohm. The following powers use letters to represent: The following mathematical functions are used: +addition Subtraction multiplication division exponential SQRT square root function SIN function sin COS function cos TAN function tang LOG function logarithmic base natural 2. Some force circuit elements 2.1. Resistance, Inductance and Capacitance (RLC) With PSIM, discrete R, L, C elements or an RLC branch can all be described with defined initial conditions (current across L, voltage across C). In addition to the symmetric threephase circuit, the RLC branch is also described with the initial conditions defined as zero by the symbols “R3”, “RL3”, “RC3” and “RLC3”.
Trang 1HOW TO USE MATLAB
阮阮阮 – F111152170
Trang 2ABOUT US SOFTWARE
1 General introduction
When starting the program, PSIM Schematic will run first, you go to File -> New, the interface is as follows:
Interface of the program PSIM
Standard bar (Standard) includes: File, Edit, View, Subcircuit, Element, Simulate, Option, Window, Help All operations in PSIM can be performed from this standard bar
Toolbar includes: New, Save, Open And commonly used commands such as Wire (wire), Zoom, Run Simulation (run simulation)
The bottom bar is commonly used components such as resistors, inductors,
capacitors, diodes, thyristors …
• Parameter representation of elements
The parameters of each element and part of the circuit that are discussed on the three windows of the PSIM include:
window
Trang 3Parameter exchange window on PSIM
The Parameters window is used during simulation, and the Orther Info window is not used for simulation but only for the user, this information will be displayed in the View/Element List section For example, the device type parameters, manufacturer's name, production number And the Color window to determine the color for each element
On the Parameters window, parameters are entered as decimal numbers or as mathematical expressions For example, a potential resistor can be represented in the following form:
12.5; 12.5 k; 12.5 Ohm; 12.5 kOhm; 25/2 Ohm
The following powers use letters to represent:
SQRT square root function
SIN function sin
COS function cos
TAN function tang
LOG function logarithmic base natural
2 Some force circuit elements
With PSIM, discrete R, L, C elements or an RLC branch can all be described with defined initial conditions (current across L, voltage across C)
Trang 4In addition to the symmetric three-phase circuit, the RLC branch is also described with the initial conditions defined as zero by the symbols “R3”, “RL3”, “RC3” and
Two-state locking includes: diode (DIODE), diac (DIAC), tiristor (THY), triac (TRIAC), GTO, npn (NPN) or pnp (PNP) power transistor, IGBT, n-channel MOSFET (MOSFET_n) and p-channel (MOSFET_p), and bidirectional locking (SSWI) These elements are described as ideal keys, that is, in the closed state (for current flow) the key has an internal resistance of 10 µ Ω
, and in the open state (no currents) it will have the value 1M Ω.
symbol of diode, diac and thyristor in PSIM
The tri-state key consists of two types of transistors pnp (PNP_1) and npn
(NPN_1)
three-state transistor symbol
This block is only connected to the control terminal of the above two-state
electronic keys and is directly determined by the Gating block
Description of a Gating block:
Trang 5Frequency: working frequency when connected to electronic keys.
Number of points: number of impacts in a cycle
Switching points: Angle of impact in a cycle
There are types such as: Ideal transformers, single phase and three phase transformers with wiring patterns
On Psim the following types of single-phase transformers are used:
- One primary and one secondary (TF_1F/TF_1F_1)
- One primary and two secondary (TF_1F_3W)
- Two primary windings and two secondary windings (TF_1F_4W)
- One primary and four secondary coils (TF_1F_5W)
- One primary and six secondary coils (TF_1F_7W)
symbols for types of single-phase transformers
On Psim, there are three types of cylindrical three-phase transformers:
- 3-phase 2-winding transformer with winding output terminals (TF_3F)
- 3-phase transformer connecting Y/Y and Y/ ∆(TF_3YY/TF_3YD)
- 3 phase 3 winding transformer connecting Y/Y/ ∆and Y/∆ / ∆
- (TF_3YYD/TF_3YDD)
Trang 6Symbols of three-phase transformers
The single-phase converter modules consisting of a single-phase diode rectifier bridge and a thyristor are represented as follows:
Single-phase bridge rectifier module
Three-phase converter modules include: three-phase diode bridge rectifier
BDIODE3, three-phase bridge rectifier tiristo BTHY3, three-phase beam rectifier tiristo BTHY3H :
Three-phase bridge rectifier module
3 Some control circuit elements
The transfer function block is expressed as the ratio of two polynomials of the numerator and denominator as follows:
B s B s B s
B
n n
n n
0
1 1
2 2
0
1 1
2 2
++
++
++
++
Trang 7There are two types of transfer function blocks on PSIM: the first for initial "zero" values (TFCTN), the second for initial input parameters (TFCTN1).
Includes blocks such as: proportional block, integral block, differential block, integral-scale block and filter block
Figure 3.11 Scale block symbol
Figure 3.12 Integral volume symbol
Figure 3.13 Proportional block symbol - integral
Includes blocks such as addition block, multiplication and division block, square root, exponent, exponentiation, logarithmic, RMS effective value function block, sign and absolute value function block, trigonometric function block and variable block fast Fourier transform FFT
Symbols of plus blocks
Symbols for multiplication and division blocks
Figure 3.16 Symbols for blocks of roots, exponents, powers, and logarithms
Trang 83.3. Other function blocks
• Comparator block
The output signal of the comparator block will have a positive value when the input signal at the (+) terminal is larger than the (-) terminal, there will be zero output when the (+) signal is smaller When the input value at the two poles is equal, the output signal always holds the value at that time
exceeds the limit signal, the output signal will be at the highest or lowest limit
Restriction block symbol
• Trapezoidal and rectangular pulse blocks
Two blocks, trapezoidal pulse block (LKUP_TZ) and rectangular pulse block (LKUP_SQ)
Symbols for trapezoidal and rectangular impulses
• Time delay block
This block will delay the input waveforms for a period of time, for example they are used in the modeling of delay waveforms or logic elements To describe the block time delay simply specify the delay time in seconds(s)
Figure 3.20 Time delay block symbol.
Trang 9• Logical Elements
• Logic gates
Those are logic gates: AND, OR, XOR, NOT, NAND and NOR gates
Figure 3.21 Logic gate symbols
• A/D and D/A converter blocks
These are analog/digital (analog/digital) and vice versa, with 2 types in 8-bit and 10-bit digital signals
Figure 3.22 symbols for A/D and D/A converter blocks
Trang 10• Image source Sin
The sinusoidal source also includes two types of current and voltage sources, represented in Figure 2.25 for single-phase source and three-phase sine voltage source symmetrically connected (Y) is denoted as shown in Figure 2.26, with phase A having a dot symbol on the source
Symbol of single-phase sinusoidal source three-phase sine source
• Rectangular wave source
There are two types of rectangular wave source: voltage source (VSQU) and current source (ISQU) with symbols as shown in Figure 2.27
Figure 3.25 Rectangular wave source symbol
• On-off switch controller
The controller acts as an interface between the control signal and the power circuitswitch: the input signal of the block is 0 or 1 from the control circuit, which will be sent
to the control terminal of the dynamic lock
Figure 3.27 on-off switch controller symbol.
Trang 114.3. Open angle controllerα
The controller is used to control the opening angle of the tiristor, the input symbols
of the controller include: angle α , synchronous signal and enable signal (enable/disable
signal) The transition of the synchronous signal from 0 to 1 will provide the
synchronization moment at angle 0 0 While the opening angle α is determined from the
instantaneous signal, alpha is calculated in degrees
Figure 3.28 alpha controller symbol.
Description:
Frequency: frequency of action of the set, Hz
Pulse width: control pulse width, degrees
The steps to operate a sub-circuit are as follows:
- New subcircuit: Set up a new subcircuit
- Load subcircuit: Download an existing subcircuit, this subcircuit will display
on the screen as a block
- Edit subcircuit: Edit the file name size of the subcircuit
- Set size: Set the size of the auxiliary circuit
- Place port: Set the position of the connection port between the main circuit and the auxiliary circuit
- Display port: Displays the connection port of the auxiliary circuit
- Edit default variable list: Edit the list of default parameters on the auxiliary circuit
- Edit image: Edit the image of the auxiliary circuit
- Display subcircuit name: Displays the name of the subcircuit
Trang 12- Show subcircuit ports: Displays the port name of the subcircuit in the main circuit.
- Hide subcircuit ports: do not display the port name of the subcircuit in the main circuit
- Subcircuit list: List of file names of the main circuit and the
• Create auxiliary circuit in main circuit
The steps to create a sub-circuit with the file name "mach-phu.sch" in the main circuit with the address "mach-chinh.sch" are as follows:
- Create “mach-chinh.sch”
- In “mach-chinh.sch” select the subcircuit menu to select new subcircuit
- A square block will appear on the screen to create a sub-circuit
• Connect auxiliary circuit in main circuit
Once the auxiliary circuit has been established with its connection ports defined, the auxiliary circuit should be connected to the main circuit according to the following steps:
- In the main circuit, the connection points of the auxiliary circuit block will appearwith hollow circles
- Select the subcircuit block and select Show subcircuit ports on the Subcircuit menu to display the port names defined above
- Use the connecting wire to the corresponding connection points
5 Steps to simulate power electronic circuits
To conduct a survey of a power electronic circuit, it is necessary to perform the following steps:
1 Determine the model of semiconductor elements required to set up the circuit to
be investigated, especially the power semiconductor valves
2 Set up the schematic diagram of the circuit to be studied Usually consists of two parts: power circuit diagram and control circuit diagram
Trang 133 Convert from schematic diagram to modeling program according to the
software's specialized language
4 Enter the parameters of the diagram and survey data
5 Conduct a survey, usually divided into two steps:
a) Run the program in a familiar mode with known results to check the accuracy
of the model
b) When the model is reliable, conduct research with the modes to be surveyed according to the requirements set forth
6 Simulation example
Design a DC hashing circuit using two control blocks for the IGBT: a Gating block
or a switch controller with a hashing frequency of 5 kHz
To set parameters to an element, first double-click the element with the left mouse button, a dialogue window will appear on the screen so that the user can enter the
parameter
Design of a DC voltage hash circuit
Parameter setting of control circuit elements
* Control circuit using Gating block:
- Control block name n: Go
- Working frequency c: 5000 Hz
- Number of impacts in a cycle: 2
Trang 14- Angle of impact in one cycle: 180o
Figure 3.30 Gating block description dialog box
* Control circuit using switch controller:
The input signal of this block is the COMP comparator signal, which compares two signals: a DC source VDC and a triangular pulse source VTR1
Figure 3.31 Parameter dialog of control circuit elements using switch controller
After designing the circuit, describing and setting the parameters for all the elements in the circuit, we proceed to simulate the circuit by pressing the left mouse button on the symbol to start the simulation (Run Psim) on the toolbar of the circuit design window then Psim will start and run the circuit simulation program (Psim
simulator)
On the screen, a window to select simulated curves will appear (Figure 2.34): the left window is the display curve, the right window is the curve to be displayed Where
Trang 15curves I (L1) and V1 are for the circuit on the left (Figure 2.31) and I (L2) and V2 are for the circuit shown on the right.
Figure 3.32 Selection window showing the resulting curves
Figure 3.33 I(L1) V1 simulation result curve with f=5000 Hz
Trang 16- Complete electrical isolation between the motor and the power circuit Thisensures the safety of the user as well as the control components.
Trang 176.6. Stage of generating voltage reciprocating (saw-tooth form
downwards)
In the rectifier control circuit using the upward sawtooth form, the relationshipbetween sawtooth voltage and control angle is α proportional: this voltage is large,the angle is α also large On the other hand, we know that the relationship between
the control angle α and the rectified voltage received on the reload follows theinverse proportional law, leading to α an increase, then Ud decreases Thus,
correspondingly increasing the control voltage will lead to a decrease in the rectifiervoltage, which is often not favorable for the automatic adjustment circuit In order forthis relationship to be positive, that is, corresponding to the control voltage, therectifier voltage is also large, it is necessary to create a downward-shaped sawtooth
R1 15k
+ +
+ VS6 12
Z1
Urc D5 1N1200
Udb
Calculate
The co-phase voltage U dp usually has an r.m.s value of about 10 ÷ 12 ¿ V , so the
resistor R value is about 10 (10 ÷ 12 ¿ kΩ to allow the current through the diodes D 1 , D 2
to be 1mA Capacitor C selects (0.1 ÷ 0.2)μF The voltage stabilizer diode Dz is
selected according to the sawtooth voltage amplitude and R 3 is calculated according tothe above formula with the condition that after half a cycle of the AC mains voltage, thevoltage on the capacitor decreases from the value U Dz down to 0, ie is the discharge time
of capacitor C equal to t p = T/2
Trang 18This stage has the function of comparing the control voltage with the reference voltage
to determine the timing of the control pulse, usually the time when the two voltages areequal In other words, this is the stage that determines the control angle α Thecomparison stage can be done by elements such as transistors or OA algorithmamplifiers The most used today are the OA because it allows to ensure high accuracy.Schematic diagram of the two-door comparison principle:
+ +
We choose R 8 = R 9 = 15 k
Trang 196.8. Dual pulse generator
The input of the KDX pulse amplifier is a transistor, so we can couple a single pulse to
a double pulse by diodes to save control energy because the transistors of the pulseamplifier only have to conduct current for a very short time, moreover the load of Theforce circuit is an inductive load, so there is nothing to worry about This type is suitablefor many different types of TDX, including the needle pulse generator circuit, so it isused quite a lot in practice
a) Generate single pulse using RC differential circuit
C
R
Rb
T D
Generate single pulse using RC differential circuitb) Diode pulse multiplexing to generate dual pulses
R4 47k + VS1 12
Xung don
xung kep
Generate dual pulses with single pulse diodes
a) Pulse amplification by control pulse transformer
Working principle
This coupling method is most commonly used today because it is easy to isolate thecontrol and power circuits, but due to the differential nature of the transformer, it does notallow the transmission of pulses several milliseconds wide It is because of this propertythat people transmit wide pulses in the form of beam pulses to make the pulsetransformer work properly To simplify the circuit, while still ensuring the necessarycurrent gain, amplifier stage or Dalinton connection