Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update event types to EInit on INIT/INITO #918

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions data/typelibrary/events-1.0.0/typelib/E_TABLE_CTRL.fbt
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<FBType Name="E_TABLE_CTRL" Comment="Support function block for E_TABLE">
<Identification Standard="61499-1 Annex A" Description="&lt;p&gt;Copyright (c) 2017 fortiss GmbH This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0&lt;/p&gt;&#10;" >
<FBType Name="E_TABLE_CTRL" Comment="Support function block for E_TABLE" >
<Identification Standard="61499-1 Annex A" Description="Copyright (c) 2017 fortiss GmbH &#10; &#10;This program and the accompanying materials are made &#10;available under the terms of the Eclipse Public License 2.0 &#10;which is available at https://www.eclipse.org/legal/epl-2.0/ &#10; &#10;SPDX-License-Identifier: EPL-2.0 &#10;" >
</Identification>
<VersionInfo Organization="fortiss GmbH" Version="1.0" Author="Alois Zoitl" Date="2017-09-22" Remarks="initial API and implementation and/or initial documentation">
</VersionInfo>
<InterfaceList>
<EventInputs>
<Event Name="INIT" Type="Event" Comment="">
<Event Name="INIT" Type="EInit">
<With Var="DT"/>
<With Var="N"/>
</Event>
<Event Name="CLK" Type="Event" Comment="">
<Event Name="CLK" Type="Event">
</Event>
</EventInputs>
<EventOutputs>
<Event Name="CLKO" Type="Event" Comment="">
<Event Name="CLKO" Type="Event">
<With Var="DTO"/>
<With Var="CV"/>
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Name="DT" Type="TIME" Comment="" ArraySize="4"/>
<VarDeclaration Name="N" Type="UINT" Comment="Actual number of time steps"/>
<VarDeclaration Name="DT" Type="TIME" ArraySize="4"/>
<VarDeclaration Name="N" Type="UINT" Comment="Actual number of time steps" />
</InputVars>
<OutputVars>
<VarDeclaration Name="DTO" Type="TIME" Comment="Current delay interval"/>
<VarDeclaration Name="CV" Type="UINT" Comment="Current event index, 0..N-1"/>
<VarDeclaration Name="DTO" Type="TIME" Comment="Current delay interval" />
<VarDeclaration Name="CV" Type="UINT" Comment="Current event index, 0..N-1" />
</OutputVars>
</InterfaceList>
<BasicFB>
<ECC>
<ECState Name="START" Comment="Initial State" x="400.0" y="700.0">
<ECState Name="START" Comment="Initial State" x="400" y="700">
</ECState>
<ECState Name="INIT" Comment="" x="736.8421052631579" y="84.21052631578948">
<ECState Name="INIT" x="736.84" y="84.21">
<ECAction Algorithm="INIT"/>
</ECState>
<ECState Name="INIT1" Comment="" x="1284.2105263157894" y="457.89473684210526">
<ECState Name="INIT1" x="1284.21" y="457.89">
<ECAction Output="CLKO"/>
</ECState>
<ECState Name="NEXT_STEP" Comment="" x="1000.0" y="1273.6842105263158">
<ECState Name="NEXT_STEP" x="1000" y="1273.68">
<ECAction Algorithm="NEXT_STEP" Output="CLKO"/>
</ECState>
<ECTransition Source="START" Destination="INIT" Condition="INIT" Comment="" x="684.2105263157895" y="431.57894736842104"/>
<ECTransition Source="INIT" Destination="START" Condition="[N = 0]" Comment="" x="400.0" y="342.10526315789474"/>
<ECTransition Source="INIT" Destination="INIT1" Condition="[N &gt; 0]" Comment="" x="1078.9473684210527" y="310.5263157894737"/>
<ECTransition Source="INIT1" Destination="START" Condition="1" Comment="" x="952.6315789473684" y="647.3684210526316"/>
<ECTransition Source="START" Destination="NEXT_STEP" Condition="CLK[CV &lt; MIN(3, N-1)]" Comment="" x="1078.9473684210527" y="936.8421052631579"/>
<ECTransition Source="NEXT_STEP" Destination="START" Condition="1" Comment="" x="473.6842105263158" y="1310.5263157894738"/>
<ECTransition Source="START" Destination="INIT" Condition="INIT" Comment="" x="684.21" y="431.58"/>
<ECTransition Source="INIT" Destination="START" Condition="[N = 0]" Comment="" x="400" y="342.11"/>
<ECTransition Source="INIT" Destination="INIT1" Condition="[N &gt; 0]" Comment="" x="1078.95" y="310.53"/>
<ECTransition Source="INIT1" Destination="START" Condition="1" Comment="" x="952.63" y="647.37"/>
<ECTransition Source="START" Destination="NEXT_STEP" Condition="CLK[CV &lt; MIN(3, N-1)]" Comment="" x="1078.95" y="936.84"/>
<ECTransition Source="NEXT_STEP" Destination="START" Condition="1" Comment="" x="473.68" y="1310.53"/>
</ECC>
<Algorithm Name="INIT" Comment="">
<Algorithm Name="INIT">
<ST><![CDATA[ALGORITHM INIT
CV := 0;
DTO := DT[0];
END_ALGORITHM]]></ST>
</Algorithm>
<Algorithm Name="NEXT_STEP" Comment="">
<Algorithm Name="NEXT_STEP">
<ST><![CDATA[

ALGORITHM NEXT_STEP
Expand Down
Loading