Plecs { Name "PLL" Version "4.1" CircuitModel "ContStateSpace" StartTime "0.0" StopTime "0.75" Timeout "" Solver "radau" MaxStep "1e-4" InitStep "-1" FixedStep "1e-3" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "3" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AssertionAction "1" InitializationCommands "Kp=6\na=50;" 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 "" AlgebraicLoopMethod "1" AlgebraicLoopTolerance "1e-6" Schematic { Location [138, 154; 1412, 832] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Function Name "sin" Show on Position [195, 150] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "f(u)" Value "220*sin(u)" Show off } } Component { Type Function Name "sin(u-120)" Show on Position [195, 195] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "f(u)" Value "225*sin(u-2*pi/3)" Show off } } Component { Type Function Name "sin(u+120)" Show on Position [195, 240] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "f(u)" Value "215*sin(u+2*pi/3)" Show off } } Component { Type Constant Name "Constant" Show on Position [30, 135] Direction right Flipped off Frame [-25, -10; 25, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "2*pi*50" Show off } } Component { Type Reference SrcComponent "Components/Control/Transformations/3ph->SRF" Name "3ph->SRF" Show on Position [310, 195] Direction up Flipped off Frame [-15, -15; 15, 15] LabelPosition [0, 18] LabelAlign up Terminal { Type Input Position [-15, 0] Direction left } Terminal { Type Output Position [19, 0] Direction right } } Component { Type SignalMux Name "Mux" Show off Position [250, 195] Direction right Flipped off Parameter { Variable "Width" Value "3" Show off } } Component { Type SignalDemux Name "Demux" Show off Position [360, 195] Direction right Flipped on Parameter { Variable "Width" Value "2" Show off } } Component { Type Product Name "Product" Show on Position [435, 160] Direction up Flipped off Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Product Name "Product1" Show on Position [435, 220] Direction up Flipped off Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Sum Name "Sum1" Show off Position [500, 185] Direction up Flipped off Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "-+" Show off } } Component { Type TransferFunction Name "PLL PI" Show on Position [595, 185] Direction right Flipped off Frame [-30, -15; 30, 15] LabelPosition [0, 18] LabelAlign up Parameter { Variable "Numerator" Value "Kp*[1 a]" Show off } Parameter { Variable "Denominator" Value "[1 0]" Show off } Parameter { Variable "X0" Value "0" Show off } } Component { Type Integrator Name "Integrator" Show on Position [585, 380] Direction left Flipped off Parameter { Variable "ExternalReset" Value "1" 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 Trigonometry Name "Trigonometric\nFunction" Show on Position [455, 335] Direction left Flipped off Parameter { Variable "Operator" Value "1" Show off } Parameter { Variable "Unit" Value "1" Show off } } Component { Type Trigonometry Name "Trigonometric\nFunction1" Show on Position [455, 415] Direction left Flipped off Parameter { Variable "Operator" Value "2" Show off } Parameter { Variable "Unit" Value "1" Show off } } Component { Type Scope Name "Scope" Show on Position [790, 75] Direction up Flipped off Location [226, 39; 1469, 778] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAJ0A////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAH4A////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAAB+AP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABbAP///wAABhIAAAN9AAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB" "AAAAH0AAAAFAAAAfQAAAAYAAAB9AAAABwAAAH0AAAABAAAAfQAAAAIAAAB9AAAAAwAAAH0AAAAIAA" "AAfQAAAAkAAAB9AAAA5wAAAAsBAAABAAAAAAAAAAAAAAAAff////8AAACBAAAAAAAAAAsAAABqAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AB9AAAAAQAAAAAAAAPoAA==" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" 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 Trigonometry Name "atan2" Show on Position [505, 60] Direction left Flipped on Parameter { Variable "Operator" Value "7" Show off } Parameter { Variable "Unit" Value "1" Show off } } Component { Type SignalDemux Name "Demux1" Show off Position [410, 60] Direction right Flipped on Parameter { Variable "Width" Value "2" Show off } } Component { Type Clock Name "Clock" Show on Position [35, 235] Direction right Flipped off } Component { Type Product Name "Product2" Show on Position [110, 195] Direction up Flipped off Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Trigonometry Name "atan3" Show on Position [460, 475] Direction left Flipped on Parameter { Variable "Operator" Value "7" Show off } Parameter { Variable "Unit" Value "1" Show off } } Component { Type Goto Name "Goto" Show off Position [520, 475] Direction right Flipped off Parameter { Variable "Tag" Value "angle" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type SignalMux Name "Mux1" Show off Position [595, 65] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type From Name "From" Show off Position [560, 120] Direction right Flipped off Parameter { Variable "Tag" Value "angle" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Product Name "Product3" Show on Position [95, 130] Direction up Flipped off Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Step Name "Step" Show on Position [45, 45] Direction right Flipped off Parameter { Variable "Time" Value "0.5" Show off } Parameter { Variable "Before" Value "1" Show off } Parameter { Variable "After" Value "2" Show off } } Component { Type Gain Name "Gain" Show on Position [670, 110] Direction right Flipped off Parameter { Variable "K" Value "1/(2*pi)" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type Goto Name "Goto1" Show off Position [580, 235] Direction right Flipped off Parameter { Variable "Tag" Value "error" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type From Name "From1" Show off Position [745, 120] Direction right Flipped off Parameter { Variable "Tag" Value "error" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Scope Name "Scope1" Show on Position [735, 30] Direction up Flipped off Location [1186, 469; 1536, 808] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAJ0A////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAH4A////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAAB+AP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABbAP///wAAAbYAAAGJAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB" "AAAAGQAAAAFAAAAZAAAAAYAAABkAAAABwAAAGQAAAABAAAAZAAAAAIAAABkAAAAAwAAAGQAAAAIAA" "AAZAAAAAkAAABkAAAAmwAAAAsBAAABAAAAAAAAAAAAAAAAff////8AAACBAAAAAAAAAAsAAABqAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAxAAAAAQAAAAAAAAPoAA==" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" 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 } } } Connection { Type Signal SrcComponent "sin" SrcTerminal 2 Points [225, 150; 225, 185] DstComponent "Mux" DstTerminal 2 } Connection { Type Signal SrcComponent "sin(u-120)" SrcTerminal 2 DstComponent "Mux" DstTerminal 3 } Connection { Type Signal SrcComponent "sin(u+120)" SrcTerminal 2 Points [225, 240; 225, 205] DstComponent "Mux" DstTerminal 4 } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 DstComponent "3ph->SRF" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 2 Points [385, 190; 385, 155] DstComponent "Product" DstTerminal 2 } Connection { Type Signal SrcComponent "Demux" SrcTerminal 3 Points [385, 200; 385, 215] DstComponent "Product1" DstTerminal 2 } Connection { Type Signal SrcComponent "Product" SrcTerminal 1 Points [460, 160; 460, 180] DstComponent "Sum1" DstTerminal 2 } Connection { Type Signal SrcComponent "Product1" SrcTerminal 1 Points [460, 220; 460, 190] DstComponent "Sum1" DstTerminal 3 } Connection { Type Signal SrcComponent "3ph->SRF" SrcTerminal 2 Points [335, 195] Branch { DstComponent "Demux" DstTerminal 1 } Branch { Points [335, 60] DstComponent "Demux1" DstTerminal 1 } } Connection { Type Signal SrcComponent "Clock" SrcTerminal 1 Points [80, 235] DstComponent "Product2" DstTerminal 3 } Connection { Type Signal SrcComponent "Product2" SrcTerminal 1 Points [145, 195] Branch { Points [145, 195] Branch { DstComponent "sin(u-120)" DstTerminal 1 } Branch { Points [145, 150] DstComponent "sin" DstTerminal 1 } } Branch { Points [145, 240] DstComponent "sin(u+120)" DstTerminal 1 } } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 2 Points [525, 380] Branch { Points [525, 335] DstComponent "Trigonometric\nFunction" DstTerminal 1 } Branch { Points [525, 415] DstComponent "Trigonometric\nFunction1" DstTerminal 1 } } Connection { Type Signal SrcComponent "atan3" SrcTerminal 2 DstComponent "Goto" DstTerminal 1 } Connection { Type Signal SrcComponent "From" SrcTerminal 1 Points [575, 120; 575, 70] DstComponent "Mux1" DstTerminal 3 } Connection { Type Signal SrcComponent "Mux1" SrcTerminal 1 DstComponent "Scope" DstTerminal 1 } Connection { Type Signal SrcComponent "Constant" SrcTerminal 1 DstComponent "Product3" DstTerminal 3 } Connection { Type Signal SrcComponent "Step" SrcTerminal 1 DstComponent "Product3" DstTerminal 2 } Connection { Type Signal SrcComponent "Product3" SrcTerminal 1 Points [135, 130; 135, 170; 70, 170; 70, 190] DstComponent "Product2" DstTerminal 2 } Connection { Type Signal SrcComponent "PLL PI" SrcTerminal 2 Points [640, 185] Branch { Points [655, 185; 655, 380] DstComponent "Integrator" DstTerminal 1 } Branch { DstComponent "Gain" DstTerminal 1 } } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 Points [700, 110; 700, 75] DstComponent "Scope" DstTerminal 2 } Connection { Type Signal SrcComponent "Sum1" SrcTerminal 1 Points [525, 185] Branch { DstComponent "PLL PI" DstTerminal 1 } Branch { Points [525, 235] DstComponent "Goto1" DstTerminal 1 } } Connection { Type Signal SrcComponent "From1" SrcTerminal 1 Points [755, 120; 755, 85] DstComponent "Scope" DstTerminal 3 } Connection { Type Signal SrcComponent "Demux1" SrcTerminal 2 DstComponent "atan2" DstTerminal 3 } Connection { Type Signal SrcComponent "Demux1" SrcTerminal 3 DstComponent "atan2" DstTerminal 1 } Connection { Type Signal SrcComponent "Trigonometric\nFunction1" SrcTerminal 2 Points [420, 415] Branch { Points [390, 415; 390, 225] DstComponent "Product1" DstTerminal 3 } Branch { Points [420, 470] DstComponent "atan3" DstTerminal 3 } } Connection { Type Signal SrcComponent "Trigonometric\nFunction" SrcTerminal 2 Points [405, 335] Branch { DstComponent "Product" DstTerminal 3 } Branch { Points [405, 480] DstComponent "atan3" DstTerminal 1 } } Connection { Type Signal SrcComponent "atan2" SrcTerminal 2 Points [575, 60] Branch { DstComponent "Mux1" DstTerminal 2 } Branch { Points [575, 20] DstComponent "Scope1" DstTerminal 1 } } Annotation { Name "Fuente Trifasica" Position [195, 125] } Annotation { Name "angulo" Position [550, 45] } Annotation { Name "angulo estimado" Position [540, 320] } Annotation { Name "error" Position [540, 195] } Annotation { Name base64 "RWwgY29udHJvbGFkb3IgZGVsIFBMTCBuZWNlc2l0YSByZWRpc2" "XDsW8=" Position [170, 300] } Annotation { Name "we" Position [120, 115] } Annotation { Name "Ejemplo de PLL" Position [280, 35] } } } DemoSignature "W4KQXbfVg20nx91Y9YJa2e2PCbQIlhE9tJx0HXp+CeY="