Plecs { Name "3phPWM_RT_Test" Version "4.1" CircuitModel "ContStateSpace" StartTime "0.0" StopTime "0.2" Timeout "" Solver "FixedStepDiscrete" MaxStep "1e-3" InitStep "-1" FixedStep "1e-6" Refine "2" ZCStepSize "1e-9" RelTol "1e-6" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "2" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AssertionAction "1" InitializationCommands "" InitialState "1" SystemState "" CodeGenParameterInlining "2" CodeGenInliningExceptions "AAAACwAAAAAA" CodeGenFloatingPointFormat "2" CodeGenIntegerWordSize "32" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" CodeGenTarget "Generic" CodeGenTargetSettings "" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" EnableStateSpaceSplitting "2" DisplayStateSpaceSplitting "1" DiscretizationMethod "2" ExternalModeSettings "AAAAfwAAAAAWUU1hcDxRU3RyaW5nLFFTdHJpbmc+AAAAAAYAAAAYAF" "QAcgBpAGcAZwBlAHIAVgBhAGwAdQBlAAAAAgAwAAAAGABUAHIAaQBnAGcAZQByAEQAZQBsAGEAeQA" "AAAIAMAAAABYAUwBlAG4AcwBpAHQAaQB2AGkAdAB5AAAAAgAwAAAAFgBSAGUAZgByAGUAcwBoAFIA" "YQB0AGUAAAAEADIAMAAAABQATgB1AG0AUwBhAG0AcABsAGUAcwAAAAgAOAAxADkAMgAAABQARABlA" "GMAaQBtAGEAdABpAG8AbgAAAAIAMQ==" AlgebraicLoopMethod "1" AlgebraicLoopTolerance "1e-6" Schematic { Location [0, 26; 1366, 691] ZoomFactor 1 SliderPosition [0, 101] ShowBrowser off BrowserWidth 100 Component { Type Inductor Name "L1" Show off Position [105, 110] Direction left Flipped on Parameter { Variable "L" Value "0.01" Show off } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Inductor Name "L2" Show off Position [105, 135] Direction left Flipped on Parameter { Variable "L" Value "0.01" Show off } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Inductor Name "L3" Show off Position [105, 160] Direction left Flipped on Parameter { Variable "L" Value "0.01" Show on } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Ammeter Name "Am7" Show off Position [315, 80] Direction right Flipped on } Component { Type Voltmeter Name "Vm1" Show off Position [500, 135] Direction up Flipped off } Component { Type Capacitor Name "C1" Show on Position [370, 135] Direction down Flipped on Parameter { Variable "C" Value "1e-3" Show off } Parameter { Variable "v_init" Value "400" Show off } } Component { Type CurrentSource Name "I_l" Show off Position [410, 135] Direction up Flipped on Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "2" Show off } } Component { Type Reference SrcComponent "Components/Electrical/Converters/2-Level\\nIGBT\\nConv." Name "2-Level\nIGBT\nConv." Show on Position [265, 135] Direction up Flipped off Frame [-25, -25; 25, 25] LabelPosition [27, 0] LabelAlign left Parameter { Variable "therm" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } Terminal { Type Port Position [-30, -10] Direction left } Terminal { Type Port Position [-30, 0] Direction left } Terminal { Type Port Position [-30, 10] Direction left } Terminal { Type Input Position [-15, -25] Direction up } Terminal { Type Port Position [0, -30] Direction up } Terminal { Type Port Position [0, 30] Direction down } } Component { Type PulseGenerator Name "i_load" Show on Position [455, 135] Direction right Flipped on Parameter { Variable "Hi" Value "20" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "10" Show off } Parameter { Variable "DutyCycle" Value "0.4" Show off } Parameter { Variable "Delay" Value "0.06" Show off } } Component { Type Step Name "Enable control" Show on Position [385, 360] Direction right Flipped off Parameter { Variable "Time" Value "0.03" Show off } Parameter { Variable "Before" Value "0" Show off } Parameter { Variable "After" Value "1" Show off } } Component { Type Constant Name "v_dc_ref" Show on Position [415, 415] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "700" Show off } } Component { Type Constant Name "Constant" Show off Position [435, 45] Direction right Flipped off Frame [-30, -10; 30, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "[3 0 -3]" Show off } } Component { Type Sum Name "Sum" Show off Position [505, 60] Direction up Flipped off Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "++" Show off } } Component { Type ThreePhaseVoltageSource Name "V_3ph" Show on Position [30, 135] Direction up Flipped off Parameter { Variable "V" Value "325" Show off } Parameter { Variable "w" Value "50" Show off } Parameter { Variable "phi" Value "0" Show off } Parameter { Variable "neutral" Value "2" Show off } } Component { Type ThreePhaseMeter Name "3ph Meter" Show off Position [185, 135] Direction down Flipped on Parameter { Variable "voltage" Value "2" Show off } } Component { Type From Name "From1" Show off Position [475, 210] Direction right Flipped off Parameter { Variable "Tag" Value "i_vsi" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Goto Name "Goto1" Show off Position [205, 95] Direction right Flipped off Parameter { Variable "Tag" Value "i_vsi" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Scope Name "Pulses" Show on Position [560, 60] Direction up Flipped off Location [801, 44; 1201, 229] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAADQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABQAP///wAAAZAAAACeAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB" "QAAAGQAAAAEAAAAZAAAAAcAAABkAAAABgAAAGQAAAABAAAAZAAAAAMAAABkAAAAAgAAAGQAAAAJAA" "AAZAAAAAgAAABkAAAAjwAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAABwAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAfAAAAAQAAAAAAAAPoAA==" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" Axes "1" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "1" Ts "-1" SampleLimit "0" XAxisLabel "" Axis { Name "Pulses" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Fourier { SingleXAxis on AxisLabel "Frequency" Scaling 0 PhaseDisplay 0 Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } } } Component { Type Scope Name "i_d,\nv_d,\ni_vsi" Show on Position [560, 135] Direction up Flipped off Location [801, 207; 1201, 576] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAIQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABQAP///wAAAZAAAAFWAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB" "QAAAGQAAAAEAAAAZAAAAAcAAABkAAAABgAAAGQAAAABAAAAZAAAAAMAAABkAAAAAgAAAGQAAAAJAA" "AAZAAAAAgAAABkAAAA4QAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAADCAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAfAAAAAQAAAAAAAAPoAA==" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "1" Ts "-1" SampleLimit "0" XAxisLabel "" Axis { Name "Diode current" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "DC Link Voltage" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "VSI current" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Fourier { SingleXAxis on AxisLabel "Frequency" Scaling 0 PhaseDisplay 0 Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } } } Component { Type Subsystem Name "Controller" Show on Position [625, 430] Direction up Flipped off Frame [-80, -55; 80, 55] LabelPosition [0, 0] TreatAsAtomicUnit on SampleTime "-1" CodeGenEnable on CodeGenSampleTime "1e-6" CodeGenTarget "PLECS RT Box 1" CodeGenTargetSettings "AAAAfwAAAAAWUU1hcDxRU3RyaW5nLFFTdHJpbmc+AAAAAA4AA" "AAeAHMAeQBuAGMAaAByAG8AbgBpAHoAZQBUAGkAbQBlAAAAAgAwAAAAGABzAHQAYQByAHQAdQBwAF" "MARgBQAF8ARAAAAAIAMAAAABgAcwB0AGEAcgB0AHUAcABTAEYAUABfAEMAAAACADAAAAAYAHMAdAB" "hAHIAdAB1AHAAUwBGAFAAXwBCAAAAAgAwAAAAGABzAHQAYQByAHQAdQBwAFMARgBQAF8AQQAAAAIA" "MAAAABoAcwBhAG0AcABsAGkAbgBnAEQAZQBsAGEAeQAAAAIAMAAAABIAbQBhAHMAdABlAHIAUwBGA" "FAAAAACADEAAAAkAGQAaQBnAGkAdABhAGwATwB1AHQAcAB1AHQATABlAHYAZQBsAAAAAgAxAAAAHA" "BhAG4AYQBsAG8AZwBTAGEAbQBwAGwAaQBuAGcAAAACADEAAAAiAGEAbgBhAGwAbwBnAE8AdQB0AHA" "AdQB0AFIAYQBuAGcAZQAAAAIAMQAAACAAYQBuAGEAbABvAGcASQBuAHAAdQB0AFIAYQBuAGcAZQAA" "AAIAMQAAABoAVABBAFIARwBFAFQAXwBEAEUAVgBJAEMARQAAADIAcgB0AGIAbwB4AC0AMgAwAGIAM" "ABmADcAMAAzADYAMQBkADQALgBsAG8AYwBhAGwALgAAABgATQBBAFgAXwBPAFYARQBSAFIAVQBOAF" "MAAAACADUAAAAaAEUAWABUAEUAUgBOAEEATABfAE0ATwBEAEUAAAACADE=" ExternalModeSettings "AAAAfwAAAAAWUU1hcDxRU3RyaW5nLFFTdHJpbmc+AAAAAAYAAA" "AYAFQAcgBpAGcAZwBlAHIAVgBhAGwAdQBlAAAAAgAwAAAAGABUAHIAaQBnAGcAZQByAEQAZQBsAGE" "AeQAAAAIAMAAAABYAUwBlAG4AcwBpAHQAaQB2AGkAdAB5AAAAAgAwAAAAFgBSAGUAZgByAGUAcwBo" "AFIAYQB0AGUAAAAEADIAMAAAABQATgB1AG0AUwBhAG0AcABsAGUAcwAAAAgAOAAxADkAMgAAABQAR" "ABlAGMAaQBtAGEAdABpAG8AbgAAAAIAMQ==" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Input Position [-80, -45] Direction left Index "1" } Terminal { Type Input Position [-80, -35] Direction left Index "2" } Terminal { Type Output Position [84, -45] Direction right Index "1" } Terminal { Type Input Position [-80, -25] Direction left Index "3" } Terminal { Type Input Position [-80, -15] Direction left Index "4" } Terminal { Type Input Position [-80, -5] Direction left Index "5" } Terminal { Type Input Position [-80, 5] Direction left Index "6" } Terminal { Type Output Position [84, -35] Direction right Index "2" } Terminal { Type Output Position [84, -25] Direction right Index "3" } Schematic { Location [640, 241; 1358, 601] ZoomFactor 1 SliderPosition [44, 0] ShowBrowser off BrowserWidth 100 Component { Type Subsystem Name "Voltage\ncontrol" Show on Position [140, 125] Direction up Flipped off Frame [-30, -20; 30, 20] LabelPosition [0, 23] LabelAlign up SampleTime "-1" CodeGenTarget "Generic" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Input Position [-30, -10] Direction left } Terminal { Type Input Position [-30, 10] Direction left } Terminal { Type Input Position [0, -20] Direction up } Terminal { Type Output Position [34, 0] Direction right } Schematic { Location [201, 507; 614, 725] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Gain Name "P" Show on Position [165, 30] Direction right Flipped off Parameter { Variable "K" Value ".2" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type Integrator Name "Integrator" Show on Position [220, 95] Direction right Flipped off Parameter { Variable "ExternalReset" Value "5" Show off } Parameter { Variable "InitialConditionSource" Value "1" Show off } Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "ShowStatePort" Value "1" Show off } Parameter { Variable "UpperLimit" Value "inf" Show off } Parameter { Variable "LowerLimit" Value "-inf" Show off } } Component { Type Sum Name "Sum" Show off Position [280, 60] Direction up Flipped off Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "++" Show off } } Component { Type Gain Name "I" Show on Position [165, 90] Direction right Flipped off Parameter { Variable "K" Value "20" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type LogicalOperator Name "Logical\nOperator" Show off Position [165, 140] Direction up Flipped off Parameter { Variable "Operator" Value "6" Show off } Parameter { Variable "Inputs" Value "1" Show off } } Component { Type Input Name "v_ref" Show on Position [45, 40] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Sum Name "Sum1" Show off Position [105, 60] Direction up Flipped off Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "-+" Show off } } Component { Type Input Name "v_dc" Show on Position [45, 80] Direction right Flipped off Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "enable" Show on Position [105, 140] Direction right Flipped off Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Output Name "i_ref" Show on Position [340, 60] Direction right Flipped off Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Connection { Type Signal SrcComponent "P" SrcTerminal 2 Points [245, 30; 245, 55] DstComponent "Sum" DstTerminal 2 } Connection { Type Signal SrcComponent "I" SrcTerminal 2 DstComponent "Integrator" DstTerminal 1 } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 2 Points [245, 95; 245, 65] DstComponent "Sum" DstTerminal 3 } Connection { Type Signal SrcComponent "Logical\nOperator" SrcTerminal 1 Points [190, 140] DstComponent "Integrator" DstTerminal 3 } Connection { Type Signal SrcComponent "Sum1" SrcTerminal 1 Points [130, 60] Branch { Points [130, 30] DstComponent "P" DstTerminal 1 } Branch { Points [130, 90] DstComponent "I" DstTerminal 1 } } Connection { Type Signal SrcComponent "v_dc" SrcTerminal 1 Points [70, 80; 70, 65] DstComponent "Sum1" DstTerminal 3 } Connection { Type Signal SrcComponent "v_ref" SrcTerminal 1 Points [70, 40; 70, 55] DstComponent "Sum1" DstTerminal 2 } Connection { Type Signal SrcComponent "enable" SrcTerminal 1 DstComponent "Logical\nOperator" DstTerminal 2 } Connection { Type Signal SrcComponent "Sum" SrcTerminal 1 DstComponent "i_ref" DstTerminal 1 } } } Component { Type Subsystem Name "Current\ncontrol" Show on Position [290, 140] Direction up Flipped off Frame [-30, -20; 30, 20] LabelPosition [0, 23] LabelAlign up SampleTime "-1" CodeGenTarget "Generic" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Input Position [-30, -10] Direction left } Terminal { Type Input Position [-30, 10] Direction left } Terminal { Type Input Position [0, -20] Direction up } Terminal { Type Output Position [34, 0] Direction right } Schematic { Location [469, 463; 854, 724] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Gain Name "P" Show on Position [165, 60] Direction right Flipped off Parameter { Variable "K" Value "10" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type Integrator Name "Integrator" Show on Position [220, 125] Direction right Flipped off Parameter { Variable "ExternalReset" Value "5" Show off } Parameter { Variable "InitialConditionSource" Value "1" Show off } Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "ShowStatePort" Value "1" Show off } Parameter { Variable "UpperLimit" Value "inf" Show off } Parameter { Variable "LowerLimit" Value "-inf" Show off } } Component { Type Sum Name "Sum" Show off Position [290, 90] Direction up Flipped off Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "+++-" Show off } } Component { Type Gain Name "I" Show on Position [165, 120] Direction right Flipped off Parameter { Variable "K" Value "1000" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type LogicalOperator Name "Logical\nOperator" Show off Position [165, 170] Direction up Flipped off Parameter { Variable "Operator" Value "6" Show off } Parameter { Variable "Inputs" Value "1" Show off } } Component { Type Input Name "i_ref" Show on Position [45, 85] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Sum Name "Sum1" Show off Position [105, 90] Direction up Flipped off Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "+-" Show off } } Component { Type Input Name "i" Show on Position [45, 210] Direction right Flipped off Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "enable" Show on Position [105, 170] Direction right Flipped off Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Output Name "m" Show on Position [340, 90] Direction right Flipped off Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Constant Name "v_N" Show on Position [210, 20] Direction right Flipped off Frame [-30, -10; 30, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "[350 0]" Show off } } Component { Type Gain Name "Gain" Show on Position [220, 210] Direction right Flipped off Parameter { Variable "K" Value "[0, 1; -1 0]*2*pi*50*0.01" Show off } Parameter { Variable "Multiplication" Value "2" Show off } } Connection { Type Signal SrcComponent "I" SrcTerminal 2 DstComponent "Integrator" DstTerminal 1 } Connection { Type Signal SrcComponent "Logical\nOperator" SrcTerminal 1 Points [190, 170] DstComponent "Integrator" DstTerminal 3 } Connection { Type Signal SrcComponent "Sum1" SrcTerminal 1 Points [130, 90] Branch { Points [130, 60] DstComponent "P" DstTerminal 1 } Branch { Points [130, 120] DstComponent "I" DstTerminal 1 } } Connection { Type Signal SrcComponent "i_ref" SrcTerminal 1 DstComponent "Sum1" DstTerminal 2 } Connection { Type Signal SrcComponent "enable" SrcTerminal 1 DstComponent "Logical\nOperator" DstTerminal 2 } Connection { Type Signal SrcComponent "Sum" SrcTerminal 1 DstComponent "m" DstTerminal 1 } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 2 Points [245, 125; 245, 95] DstComponent "Sum" DstTerminal 4 } Connection { Type Signal SrcComponent "P" SrcTerminal 2 Points [245, 60; 245, 85] DstComponent "Sum" DstTerminal 3 } Connection { Type Signal SrcComponent "v_N" SrcTerminal 1 Points [255, 20; 255, 75] DstComponent "Sum" DstTerminal 2 } Connection { Type Signal SrcComponent "i" SrcTerminal 1 Points [70, 210] Branch { Points [70, 95] DstComponent "Sum1" DstTerminal 3 } Branch { DstComponent "Gain" DstTerminal 1 } } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 Points [255, 210; 255, 105] DstComponent "Sum" DstTerminal 5 } } } Component { Type TriangleGenerator Name "Phi" Show on Position [290, 210] Direction right Flipped off Parameter { Variable "Min" Value "-pi/2" Show off } Parameter { Variable "Max" Value "3/2*pi" Show off } Parameter { Variable "f" Value "50" Show off } Parameter { Variable "DutyCycle" Value "1" Show off } Parameter { Variable "Delay" Value "0" Show off } } Component { Type Reference SrcComponent "Components/Control/Transformations/3ph->RRF" Name "3ph->RRF" Show on Position [365, 245] Direction down Flipped on Frame [-15, -15; 15, 15] LabelPosition [0, 18] LabelAlign up Terminal { Type Input Position [-15, -5] Direction left } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 5] Direction left } } Component { Type Reference SrcComponent "Components/Control/Transformations/RRF->3ph" Name "RRF->3ph" Show on Position [365, 145] Direction up Flipped off Frame [-15, -15; 15, 15] LabelPosition [0, 18] LabelAlign up Terminal { Type Input Position [-15, -5] Direction left } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 5] Direction left } } Component { Type SignalMux Name "Mux" Show off Position [225, 130] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type Constant Name "i_ref\nreactive" Show on Position [195, 160] Direction right Flipped off Frame [-10, -10; 10, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "0" Show off } } Component { Type Subsystem Name "PWM" Show on Position [455, 155] Direction up Flipped off Frame [-30, -20; 30, 20] LabelPosition [0, 23] LabelAlign up SampleTime "-1" CodeGenTarget "Generic" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Input Position [0, -20] Direction up } Terminal { Type Input Position [-30, -10] Direction left } Terminal { Type Input Position [-30, 10] Direction left } Terminal { Type Output Position [34, 0] Direction right } Schematic { Location [683, 463; 1268, 652] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Reference SrcComponent "Components/Control/Modulators/Symmetrical PWM" Name "Symmetrical PWM" Show on Position [370, 80] Direction up Flipped off Frame [-20, -20; 20, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "sampling" Value "1" Show off } Parameter { Variable "fc" Value "1000" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "input_limits" Value "[-1 1]" Show off } Parameter { Variable "output_values" Value "[-1 1]" Show off } Terminal { Type Output Position [24, 0] Direction right } Terminal { Type Input Position [-20, 0] Direction left } } Component { Type Product Name "Product" Show on Position [445, 75] Direction up Flipped off Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Reference SrcComponent "Components/Control/Modulators/3-Phase\\nOvermodul" "ation" Name "3-Phase\nOvermodulation" Show on Position [290, 80] Direction up Flipped off Frame [-20, -20; 20, 20] LabelPosition [0, 23] LabelAlign up Terminal { Type Output Position [24, 0] Direction right } Terminal { Type Input Position [-20, 0] Direction left } } Component { Type Product Name "Scale\nModulation\nIndex" Show on Position [215, 80] Direction up Flipped off Parameter { Variable "Inputs" Value "*/" Show off } } Component { Type Saturation Name "Saturation" Show on Position [150, 120] Direction right Flipped off Parameter { Variable "UpperLimit" Value "inf" Show off } Parameter { Variable "LowerLimit" Value "1" Show off } } Component { Type Gain Name "Gain" Show on Position [95, 120] Direction right Flipped off Parameter { Variable "K" Value "1/2" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type Input Name "enable" Show on Position [370, 25] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "m" Show on Position [40, 75] Direction right Flipped off Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "v_dc" Show on Position [40, 120] Direction right Flipped off Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Output Name "s" Show on Position [505, 75] Direction right Flipped off Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Connection { Type Signal SrcComponent "Symmetrical PWM" SrcTerminal 1 DstComponent "Product" DstTerminal 3 } Connection { Type Signal SrcComponent "3-Phase\nOvermodulation" SrcTerminal 1 DstComponent "Symmetrical PWM" DstTerminal 2 } Connection { Type Signal SrcComponent "Scale\nModulation\nIndex" SrcTerminal 1 DstComponent "3-Phase\nOvermodulation" DstTerminal 2 } Connection { Type Signal SrcComponent "Saturation" SrcTerminal 2 Points [175, 120; 175, 85] DstComponent "Scale\nModulation\nIndex" DstTerminal 3 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 DstComponent "Saturation" DstTerminal 1 } Connection { Type Signal SrcComponent "m" SrcTerminal 1 DstComponent "Scale\nModulation\nIndex" DstTerminal 2 } Connection { Type Signal SrcComponent "v_dc" SrcTerminal 1 DstComponent "Gain" DstTerminal 1 } Connection { Type Signal SrcComponent "enable" SrcTerminal 1 Points [405, 25; 405, 70] DstComponent "Product" DstTerminal 2 } Connection { Type Signal SrcComponent "Product" SrcTerminal 1 DstComponent "s" DstTerminal 1 } } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Digital In1" Name "Enable" Show on Position [65, 60] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "channel" Value "0" Show off } Parameter { Variable "TargetPortIndices" Value "1" Show off } Terminal { Type Output Position [29, 0] Direction right } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Analog In1" Name "V_dc_ref" Show on Position [35, 135] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "channel" Value "1" Show off } Parameter { Variable "scale" Value "1" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "TargetPortIndices" Value "2" Show off } Terminal { Type Output Position [29, 0] Direction right } } Component { Type Reference SrcComponent "PLECSRTBoxLib/PWM Out1" Name "Pulses" Show on Position [610, 25] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "channel" Value "1" Show off } Parameter { Variable "type" Value "2" Show off } Parameter { Variable "fc" Value "10000" Show off } Parameter { Variable "shft_pu" Value "0" Show off } Parameter { Variable "limits" Value "[-1 1]" Show off } Parameter { Variable "delay_sec" Value "1e-6" Show off } Parameter { Variable "polar" Value "1" Show off } Parameter { Variable "update" Value "1" Show off } Parameter { Variable "sync" Value "1" Show off } Parameter { Variable "TargetPortIndices" Value "3" Show off } Terminal { Type Input Position [-25, 0] Direction left } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Analog In1" Name "i_vsi" Show on Position [565, 210] Direction down Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, -23] LabelAlign down Parameter { Variable "channel" Value "2" Show off } Parameter { Variable "scale" Value "1" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "TargetPortIndices" Value "4" Show off } Terminal { Type Output Position [29, 0] Direction right } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Analog In1" Name "v_dc" Show on Position [475, 325] Direction down Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, -23] LabelAlign down Parameter { Variable "channel" Value "5" Show off } Parameter { Variable "scale" Value "1" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "TargetPortIndices" Value "5" Show off } Terminal { Type Output Position [29, 0] Direction right } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Analog In1" Name "i_vsi1" Show on Position [575, 265] Direction down Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, -23] LabelAlign down Parameter { Variable "channel" Value "3" Show off } Parameter { Variable "scale" Value "1" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "TargetPortIndices" Value "6" Show off } Terminal { Type Output Position [29, 0] Direction right } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Analog In1" Name "i_vsi2" Show on Position [580, 315] Direction down Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, -23] LabelAlign down Parameter { Variable "channel" Value "4" Show off } Parameter { Variable "scale" Value "1" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "TargetPortIndices" Value "7" Show off } Terminal { Type Output Position [29, 0] Direction right } } Component { Type SignalMux Name "Mux1" Show off Position [480, 240] Direction left Flipped off Parameter { Variable "Width" Value "3" Show off } } Component { Type SignalDemux Name "Demux" Show off Position [525, 145] Direction right Flipped on Parameter { Variable "Width" Value "3" Show off } } Component { Type Reference SrcComponent "PLECSRTBoxLib/PWM Out1" Name "Pulses1" Show on Position [625, 85] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "channel" Value "2" Show off } Parameter { Variable "type" Value "2" Show off } Parameter { Variable "fc" Value "10000" Show off } Parameter { Variable "shft_pu" Value "0" Show off } Parameter { Variable "limits" Value "[-1 1]" Show off } Parameter { Variable "delay_sec" Value "1e-6" Show off } Parameter { Variable "polar" Value "1" Show off } Parameter { Variable "update" Value "1" Show off } Parameter { Variable "sync" Value "1" Show off } Parameter { Variable "TargetPortIndices" Value "8" Show off } Terminal { Type Input Position [-25, 0] Direction left } } Component { Type Reference SrcComponent "PLECSRTBoxLib/PWM Out1" Name "Pulses2" Show on Position [675, 125] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "channel" Value "3" Show off } Parameter { Variable "type" Value "2" Show off } Parameter { Variable "fc" Value "10000" Show off } Parameter { Variable "shft_pu" Value "0" Show off } Parameter { Variable "limits" Value "[-1 1]" Show off } Parameter { Variable "delay_sec" Value "1e-6" Show off } Parameter { Variable "polar" Value "1" Show off } Parameter { Variable "update" Value "1" Show off } Parameter { Variable "sync" Value "1" Show off } Parameter { Variable "TargetPortIndices" Value "9" Show off } Terminal { Type Input Position [-25, 0] Direction left } } Connection { Type Signal SrcComponent "Voltage\ncontrol" SrcTerminal 4 DstComponent "Mux" DstTerminal 2 } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 DstComponent "Current\ncontrol" DstTerminal 1 } Connection { Type Signal SrcComponent "3ph->RRF" SrcTerminal 2 Points [245, 245] DstComponent "Current\ncontrol" DstTerminal 2 } Connection { Type Signal SrcComponent "Current\ncontrol" SrcTerminal 4 DstComponent "RRF->3ph" DstTerminal 1 } Connection { Type Signal SrcComponent "Phi" SrcTerminal 1 Points [330, 210] Branch { Points [330, 150] DstComponent "RRF->3ph" DstTerminal 3 } Branch { Points [395, 210] DstComponent "3ph->RRF" DstTerminal 3 } } Connection { Type Signal SrcComponent "RRF->3ph" SrcTerminal 2 DstComponent "PWM" DstTerminal 2 } Connection { Type Signal SrcComponent "i_ref\nreactive" SrcTerminal 1 DstComponent "Mux" DstTerminal 3 } Connection { Type Signal SrcComponent "Enable" SrcTerminal 1 Points [140, 60; 140, 65] Branch { DstComponent "Voltage\ncontrol" DstTerminal 3 } Branch { Points [290, 65] Branch { DstComponent "Current\ncontrol" DstTerminal 3 } Branch { Points [455, 65] DstComponent "PWM" DstTerminal 1 } } } Connection { Type Signal SrcComponent "V_dc_ref" SrcTerminal 1 Points [80, 135; 80, 115] DstComponent "Voltage\ncontrol" DstTerminal 1 } Connection { Type Signal SrcComponent "v_dc" SrcTerminal 1 Points [410, 325; 410, 285] Branch { Points [95, 285] DstComponent "Voltage\ncontrol" DstTerminal 2 } Branch { DstComponent "PWM" DstTerminal 3 } } Connection { Type Signal SrcComponent "Mux1" SrcTerminal 1 DstComponent "3ph->RRF" DstTerminal 1 } Connection { Type Signal SrcComponent "i_vsi" SrcTerminal 1 Points [515, 210; 515, 230] DstComponent "Mux1" DstTerminal 4 } Connection { Type Signal SrcComponent "i_vsi1" SrcTerminal 1 Points [520, 265; 520, 240] DstComponent "Mux1" DstTerminal 3 } Connection { Type Signal SrcComponent "i_vsi2" SrcTerminal 1 Points [510, 315; 510, 250] DstComponent "Mux1" DstTerminal 2 } Connection { Type Signal SrcComponent "PWM" SrcTerminal 4 Points [500, 155; 500, 145] DstComponent "Demux" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 2 Points [550, 135; 550, 25] DstComponent "Pulses" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 3 Points [555, 145; 555, 85] DstComponent "Pulses1" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 4 Points [585, 155; 585, 125] DstComponent "Pulses2" DstTerminal 1 } } } Component { Type SignalDemux Name "Demux" Show off Position [495, 330] Direction right Flipped on Parameter { Variable "Width" Value "3" Show off } } Component { Type SignalMux Name "Mux" Show off Position [770, 390] Direction right Flipped off Parameter { Variable "Width" Value "3" Show off } } Connection { Type Wire SrcComponent "2-Level\nIGBT\nConv." SrcTerminal 5 Points [265, 80] DstComponent "Am7" DstTerminal 1 } Connection { Type Signal SrcComponent "i_load" SrcTerminal 1 DstComponent "I_l" DstTerminal 3 } Connection { Type Wire SrcComponent "C1" SrcTerminal 1 Points [370, 80] Branch { DstComponent "Am7" DstTerminal 2 } Branch { Points [410, 80] Branch { Points [500, 80] DstComponent "Vm1" DstTerminal 1 } Branch { DstComponent "I_l" DstTerminal 1 } } } Connection { Type Wire SrcComponent "C1" SrcTerminal 2 Points [370, 185] Branch { Points [265, 185] DstComponent "2-Level\nIGBT\nConv." DstTerminal 6 } Branch { Points [410, 185] Branch { Points [500, 185] DstComponent "Vm1" DstTerminal 2 } Branch { DstComponent "I_l" DstTerminal 2 } } } Connection { Type Signal SrcComponent "Am7" SrcTerminal 3 Points [315, 100; 530, 100] DstComponent "i_d,\nv_d,\ni_vsi" DstTerminal 1 } Connection { Type Signal SrcComponent "Sum" SrcTerminal 1 DstComponent "Pulses" DstTerminal 1 } Connection { Type Signal SrcComponent "Constant" SrcTerminal 1 Points [475, 45] DstComponent "Sum" DstTerminal 2 } Connection { Type Wire SrcComponent "V_3ph" SrcTerminal 2 DstComponent "L2" DstTerminal 2 } Connection { Type Wire SrcComponent "V_3ph" SrcTerminal 1 Points [55, 125; 55, 110] DstComponent "L1" DstTerminal 2 } Connection { Type Wire SrcComponent "V_3ph" SrcTerminal 3 Points [55, 145; 55, 160] DstComponent "L3" DstTerminal 2 } Connection { Type Wire SrcComponent "3ph Meter" SrcTerminal 1 DstComponent "2-Level\nIGBT\nConv." DstTerminal 1 } Connection { Type Wire SrcComponent "3ph Meter" SrcTerminal 4 Points [150, 125; 150, 110] DstComponent "L1" DstTerminal 1 } Connection { Type Wire SrcComponent "3ph Meter" SrcTerminal 5 DstComponent "L2" DstTerminal 1 } Connection { Type Wire SrcComponent "3ph Meter" SrcTerminal 2 DstComponent "2-Level\nIGBT\nConv." DstTerminal 2 } Connection { Type Wire SrcComponent "3ph Meter" SrcTerminal 6 Points [150, 145; 150, 160] DstComponent "L3" DstTerminal 1 } Connection { Type Wire SrcComponent "3ph Meter" SrcTerminal 3 DstComponent "2-Level\nIGBT\nConv." DstTerminal 3 } Connection { Type Signal SrcComponent "3ph Meter" SrcTerminal 8 Points [180, 95] DstComponent "Goto1" DstTerminal 1 } Connection { Type Signal SrcComponent "Enable control" SrcTerminal 1 Points [465, 360; 465, 385] DstComponent "Controller" DstTerminal 1 } Connection { Type Signal SrcComponent "v_dc_ref" SrcTerminal 1 Points [455, 415; 455, 395] DstComponent "Controller" DstTerminal 2 } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 Points [515, 135] Branch { DstComponent "i_d,\nv_d,\ni_vsi" DstTerminal 2 } Branch { Points [515, 415] DstComponent "Controller" DstTerminal 5 } } Connection { Type Signal SrcComponent "From1" SrcTerminal 1 Points [490, 210] Branch { Points [530, 210] DstComponent "i_d,\nv_d,\ni_vsi" DstTerminal 3 } Branch { Points [490, 275; 475, 275] DstComponent "Demux" DstTerminal 1 } } Connection { Type Signal SrcComponent "Demux" SrcTerminal 2 Points [520, 320; 520, 405] DstComponent "Controller" DstTerminal 4 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 3 Points [520, 330; 520, 425] DstComponent "Controller" DstTerminal 6 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 4 Points [520, 340; 520, 435] DstComponent "Controller" DstTerminal 7 } Connection { Type Signal SrcComponent "Controller" SrcTerminal 3 Points [740, 385; 740, 380] DstComponent "Mux" DstTerminal 2 } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 Points [795, 390; 795, 25; 250, 25; 250, 65] Branch { DstComponent "2-Level\nIGBT\nConv." DstTerminal 4 } Branch { DstComponent "Sum" DstTerminal 3 } } Connection { Type Signal SrcComponent "Controller" SrcTerminal 8 Points [735, 395; 735, 390] DstComponent "Mux" DstTerminal 3 } Connection { Type Signal SrcComponent "Controller" SrcTerminal 9 Points [735, 405; 735, 400] DstComponent "Mux" DstTerminal 4 } Annotation { Name "Closed-loop controlled 3-phase voltage source inverter" Position [190, 20] } } } DemoSignature "DRd8zIYadWvxiCDWwU7x8luZHrRLzCJUj3CakMKAXuo="