blob: a707553f17a075d3f9e4cf038c7d39d7016c6fe6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE FBType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<FBType Comment="Toggle flip flop" Name="E_T_FF">
<Identification Description="Copyright (c) 2017 fortiss GmbH&#13;&#10; &#13;&#10;This program and the accompanying materials are made&#13;&#10;available under the terms of the Eclipse Public License 2.0&#13;&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#13;&#10;&#13;&#10;SPDX-License-Identifier: EPL-2.0" Standard="61499-1 Annex A"/>
<VersionInfo Author="Alois Zoitl" Date="2017-09-22" Organization="fortiss GmbH" Remarks="initial API and implementation and/or initial documentation" Version="1.0"/>
<InterfaceList>
<EventInputs>
<Event Comment="Clock for triggering a output toggle" Name="CLK" Type="Event"/>
</EventInputs>
<EventOutputs>
<Event Comment="inform of toggled output" Name="EO" Type="Event">
<With Var="Q"/>
</Event>
</EventOutputs>
<InputVars/>
<OutputVars>
<VarDeclaration Comment="value of flip flop" Name="Q" Type="BOOL"/>
</OutputVars>
</InterfaceList>
<BasicFB>
<ECC>
<ECState Comment="Initial State" Name="START" x="400.0" y="700.0"/>
<ECState Comment="Initialization" Name="SET" x="1235.0" y="665.0">
<ECAction Algorithm="TOGGLE" Output="EO"/>
</ECState>
<ECTransition Comment="" Condition="CLK" Destination="SET" Source="START" x="860.0" y="590.0"/>
<ECTransition Comment="" Condition="1" Destination="START" Source="SET" x="940.0" y="985.0"/>
</ECC>
<Algorithm Comment="new algorithm" Name="TOGGLE">
<ST Text="Q := NOT Q;"/>
</Algorithm>
</BasicFB>
</FBType>