within AIDAModelica; model SelectControlMode "[SF4.3] Select control mode" Modelica.Blocks.Interfaces.BooleanOutput SelectedControlMode "0 == AP, 1 == SAC" annotation(Placement( visible = true,transformation(origin = {53, -15}, extent = {{-21, -21}, {21, 21}}, rotation = 0), iconTransformation(extent = {{90, -10}, {110, 10}}, rotation = 0))); Modelica.Blocks.Interfaces.BooleanInput APEngagement "0 ==AP, 1 == SAC" annotation(Placement( visible = true,transformation(extent = {{-96, -38}, {-56, 2}}, rotation = 0), iconTransformation(extent = {{-120, -20}, {-80, 20}}, rotation = 0))); type Main_StateT = enumeration( InActive "InActive(1)", InitialState2 "InitialState2(2)", WaitingForDeploy "WaitingForDeploy(3)", APControlMode "APControlMode(4)", SACControlMode "SACControlMode(5)"); Main_StateT Main_State(start=Main_StateT.InitialState2) "Main_State"; protected type TransT = enumeration( InActive "InActive(1)", Main_Transition3 "Main_Transition3(2)", Main_Transition4 "Main_Transition4(3)", Main_Transition6 "Main_Transition6(4)", Main_Transition5 "Main_Transition5(5)", Main_Transition2 "Main_Transition2(6)"); type StateT = enumeration( InActive "InActive(1)", Main_InitialState2 "Main_InitialState2(2)", Main_WaitingForDeploy "Main_WaitingForDeploy(3)", Main_APControlMode "Main_APControlMode(4)", Main_SACControlMode "Main_SACControlMode(5)"); //Main_StateT Onto_Main_State(start=Main_StateT.WaitingForDeploy) "Onto_Main_State"; TransT Last_Trans(start=TransT.InActive) "Last_Trans" annotation(HideResult=false); StateT Last_State(start=StateT.InActive) "Last_State" annotation(HideResult=false); algorithm // State Chart Algorithm // /////////////////////////////////////////////////////////////////////////// // Copyright (C) 2008-2010 by Fraunhofer-Gesellschaft. All rights reserved. // Fraunhofer Institute for Integrated Circuits, Design Automation Division // Fraunhofer Statechartcompiler 20100219 // CompilerFlags: SimulationX, - // Generation time: 14/08/2018 14:46:30 // /////////////////////////////////////////////////////////////////////////// // Event Generation Block // Entry Activity Blocks // Entry Activity Block of Main_ when (Main_State == Main_StateT.APControlMode) then SelectedControlMode:=true; elsewhen (Main_State == Main_StateT.SACControlMode) then SelectedControlMode:=false; end when; // Transition Blocks // Transition Block of Main_ when ( pre(Main_State) == Main_StateT.WaitingForDeploy ) and ( APEngagement==true ) then Main_State := Main_StateT.APControlMode; Last_Trans := TransT.Main_Transition3; Last_State := StateT.Main_WaitingForDeploy; elsewhen ( pre(Main_State) == Main_StateT.WaitingForDeploy ) and ( APEngagement == false ) then Main_State := Main_StateT.SACControlMode; Last_Trans := TransT.Main_Transition4; Last_State := StateT.Main_WaitingForDeploy; elsewhen ( pre(Main_State) == Main_StateT.APControlMode ) and ( APEngagement==false ) then Main_State := Main_StateT.SACControlMode; Last_Trans := TransT.Main_Transition6; Last_State := StateT.Main_APControlMode; elsewhen ( pre(Main_State) == Main_StateT.SACControlMode ) and ( APEngagement==true ) then Main_State := Main_StateT.APControlMode; Last_Trans := TransT.Main_Transition5; Last_State := StateT.Main_SACControlMode; elsewhen initial() then Main_State := Main_StateT.WaitingForDeploy; SelectedControlMode:=false; Last_Trans := TransT.Main_Transition2; Last_State := StateT.Main_InitialState2; end when; // End of Statechart annotation( viewinfo( statechart="AAEAAAD/////AQAAAAAAAAAMAgAAAEVTdGF0ZUNoYXJ0VmlldywgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwMAwAAAEhTdGF0ZUNoYXJ0TGlicmFyeSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwFAQAAACBTdGF0ZUNoYXJ0Vmlldy5TdGF0ZUNoYXJ0V3JhcHBlcgEAAAAKc3RhdGVDaGFydAQcU3RhdGVDaGFydExpYnJhcnkuU3RhdGVDaGFydAMAAAACAAAACQQAAAAFBAAAABxTdGF0ZUNoYXJ0TGlicmFyeS5TdGF0ZUNoYXJ0BwAAAAh2ZXJ0aWNlcwl0YWJsZVNFRFQQZGVmaW5lZFZhcmlhYmxlcwthY3R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YXdpbmcuQ29sb3JyAAAAFFN5c3RlbS5EcmF3aW5nLkNvbG9ycgAAAA8BCAgBAgAAAAkTAAAAAX7///+M////3QAAAGIAAACMAAAAVwAAAAF9////jP///90AAABhAAAAjAAAAFcAAAAAAAAAAXz///+M////3QAAAGIAAACMAAAAVwAAAAF7////jP///90AAABhAAAAjAAAAFcAAAAAAAAAAXr///+M////3QAAAGEAAACMAAAAVwAAAAAAAAAAAXn///+F////CgAAAAAAAAAAIwABAAF4////hf///wr/5sz/AAAAAAAAAgABAAAAAAAAAAC2dAV8AAFBAAAAOAAAAAaJAAAAF1NlbGVjdGVkQ29udHJvbE1vZGU6PTE7AUIAAAA4AAAACX0AAAABQwAAADMAAAAJiwAAAAAAAAAAAAAAAUUAAAAzAAAACYwAAAACAAAAAgAAAAFGAAAAMwAAAAmNAAAAAQAAAAEAAAABSAAAAD8AAAAJFAAAAAFx////jP///6sBAADvAAAAjAAAAG0AAAABcP///4z///+rAQAA7wAAAIwAAABtAAAAAAAAAAFv////jP///6sBAADvAAAAjAAAAG0AAAABbv///4z///+rAQAA7wAAAIwAAABtAAAAAAAAAAFt////jP///6sBAADvAAAAjAAAAG0AAAAAAAAAAAFs////hf///woAAAAAAAAAACMAAQABa////4X///8K/+bM/wAAAAAAAAIAAQAAAAAAAAAAhHQFfAABSgAAADgAAAAGlgAAABdTZWxlY3RlZENvbnRyb2xNb2RlOj0wOwFLAAAAOAAAAAl9AAAAAUwAAAAzAAAACZgAAAAAAAAAAAAAAAFOAAAAMwAAAAmZAAAAAgAAAAIAAAABTwAAADMAAAAJmgAAAAEAAAABAAAAAVEAAAA/AAAACRUAAAABZP///4z///8+AAAA6wAAAIwAAAB1AAAAAWP///+M////PgAAAOsAAACMAAAAdQAAAAAAAAABYv///4z///8+AAAA6wAAAIwAAAB1AAAAAWH///+M////PgAAAOsAAACMAAAAdQAAAAAAAAABYP///4z///8+AAAA6wAAAIwAAAB1AAAAAAAAAAABX////4X///8KAAAAAAAAAAAjAAEA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AAAkkAAAACbQAAAABS////1n///9iAQAAjAAAAAFK////Wf///2MBAACNAAAAJAAAAN7///+kAAAAEQAAAAAAAUn///9X////AwAAAAFI////Wf///2kBAACRAAAAAUf///9Z////ygEAAO8AAAAAAAAAAUb///9Z////aQEAAJEAAAABRf///1n////KAQAA7wAAAAAAAAAAAUT///+F////CgAAAAAAAAAAIwABAAFD////hf///woAAAAAAAAAABsAAQABAAAAAAAAAABAdKudAAFeAAAAWAAAAAm+AAAABr8AAAANQ2hhbmdlVHJpZ2dlcgm/AAAACb8AAAABXwAAADgAAAAJfQAAAAFiAAAAVgAAAAkqAAAACcIAAAABPf///1n///9HAgAAuQAAAAE8////Wf///+4AAACWAAAAS////9z///+nAAAADgAAAAAAATv///9X////AwAAAAE6////Wf///90AAACWAAAAATn///9Z////ewAAAOsAAAAAAAAAATj///9Z////3QAAAJYAAAABN////1n///97AAAA6wAAAAAAAAAAATb///+F////CgAAAAAAAAAAIwABAAE1////hf///woAAAAAAAAAABsAAQABAAAAAAAAAABzdKudAAFkAAAAWAAAAAnMAAAACb8AAAAJvwAAAAm/AAAAAWUAAAA4AAAACX0AAAABaAAAAFYAAAAJLQAAAAnQAAAAAS////9Z////vgAAABMBAAABLv///1n///+/AAAAFAEAACUAAADn////nwAAABAAAAAAAAEt////V////wMAAAABLP///1n////KAAAAEwEAAAEr////Wf///6sBAAATAQAAAAAAAAEq////Wf///8oAAAATAQAAASn///9Z////qwEAABMBAAAAAAAAAAEo////hf///woAAAAAAAAAACMAAQABJ////4X///8KAAAAAAAAAAAbAAEAAQAAAAAAAAAAwXWrnQABagAAAFgAAAAJ2gAAAAm/AAAACb8AAAAJvwAAAAFrAAAAOAAAAAl9AAAAAW4AAABWAAAACTAAAAAJ3gAAAAEh////Wf///8cBAABEAQAAASD///9Z////yAEAAEUBAABG////6f///6AAAAAUAAAAAAABH////1f///8DAAAAAR7///9Z////qwEAAEMBAAABHf///1n////KAAAAQwEAAAAAAAABHP///1n///+rAQAAQwEAAAE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LlBvaW50cgAAAAs=", statechartsymbols={"Main_StateT","Main_State","TransT","StateT","Onto_Main_State","Last_Trans","Last_State"}, typename="TypeInfo"), Icon(graphics={ Rectangle( fillColor={255,255,255}, fillPattern=FillPattern.Solid, extent={{-100,100},{100,-100}})}), Diagram(graphics={ Ellipse( lineColor=DynamicSelect({0,0,0},if Last_State==StateT.Main_InitialState2 then{255,0,0}else{0,0,0}), fillColor=DynamicSelect({0,0,0},if Main_State==Main_StateT.InitialState2 then{255,128,128}else{0,0,0}), fillPattern=FillPattern.Solid, extent={{-30,90},{-26,86}}), Rectangle( radius=4, lineColor=DynamicSelect({0,0,0},if Last_State==StateT.Main_WaitingForDeploy then{255,0,0}else{0,0,0}), fillColor=DynamicSelect({255,255,255},if Main_State==Main_StateT.WaitingForDeploy then{255,128,128}else{255,255,255}), fillPattern=FillPattern.Solid, extent={{-45,76},{-10,55}}), Text( textString="WaitingForDeploy", fillPattern=FillPattern.Solid, extent={{-45,74},{-10,68}}), Line( points={{-45,66},{-10,66}}, color=DynamicSelect({0,0,0},if Last_State==StateT.Main_WaitingForDeploy then{255,0,0}else{0,0,0})), Rectangle( radius=4, lineColor=DynamicSelect({0,0,0},if Last_State==StateT.Main_APControlMode then{255,0,0}else{0,0,0}), fillColor=DynamicSelect({255,255,255},if Main_State==Main_StateT.APControlMode then{255,128,128}else{255,255,255}), fillPattern=FillPattern.Solid, extent={{6,41},{41,14}}), Text( textString="APControlMode", fillPattern=FillPattern.Solid, extent={{6,39},{41,33}}), Line( points={{6,31},{41,31}}, color=DynamicSelect({0,0,0},if Last_State==StateT.Main_APControlMode then{255,0,0}else{0,0,0})), Rectangle( radius=4, lineColor=DynamicSelect({0,0,0},if Last_State==StateT.Main_SACControlMode then{255,0,0}else{0,0,0}), fillColor=DynamicSelect({255,255,255},if Main_State==Main_StateT.SACControlMode then{255,128,128}else{255,255,255}), fillPattern=FillPattern.Solid, extent={{-85,42},{-50,13}}), Text( textString="SACControlMode", fillPattern=FillPattern.Solid, extent={{-85,40},{-50,34}}), Line( points={{-85,32},{-50,32}}, color=DynamicSelect({0,0,0},if Last_State==StateT.Main_SACControlMode then{255,0,0}else{0,0,0})), Line( points={{-28,86},{-28,82},{-28,80},{-28,76}}, color=DynamicSelect({0,0,0},if Last_Trans==TransT.Main_Transition2 then{255,0,0}else{0,0,0}), arrow={Arrow.None,Arrow.Filled}), Line( points={{-10,64},{14,64},{14,41}}, color=DynamicSelect({0,0,0},if Last_Trans==TransT.Main_Transition3 then{255,0,0}else{0,0,0}), arrow={Arrow.None,Arrow.Filled}), Line( points={{-45,63},{-70,63},{-70,42}}, color=DynamicSelect({0,0,0},if Last_Trans==TransT.Main_Transition4 then{255,0,0}else{0,0,0}), arrow={Arrow.None,Arrow.Filled}), Line( points={{6,20},{-50,20}}, color=DynamicSelect({0,0,0},if Last_Trans==TransT.Main_Transition6 then{255,0,0}else{0,0,0}), arrow={Arrow.None,Arrow.Filled}), Line( points={{-50,32},{-13,32},{6,32}}, color=DynamicSelect({0,0,0},if Last_Trans==TransT.Main_Transition5 then{255,0,0}else{0,0,0}), arrow={Arrow.None,Arrow.Filled})})); end SelectControlMode;