blob: d762613970de79b77db9c04356e127ffe839da4a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE FBType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<FBType Comment="Service Interface Function Block Type" Name="EBSlave2301">
<Identification Standard="61499-2"/>
<VersionInfo Author="4DIAC-IDE" Date="2016-11-30" Organization="4DIAC-Consortium" Version="0.0"/>
<InterfaceList>
<EventInputs>
<Event Comment="Map Pins" Name="MAP" Type="Event">
<With Var="Relay_1"/>
<With Var="Relay_2"/>
<With Var="Relay_3"/>
<With Var="Relay_4"/>
<With Var="Relay_5"/>
<With Var="Relay_6"/>
<With Var="QI"/>
</Event>
</EventInputs>
<EventOutputs>
<Event Comment="Confirm Pin Mapping" Name="MAPO" Type="Event">
<With Var="QO"/>
</Event>
<Event Comment="Indication from Resource" Name="IND" Type="Event">
<With Var="QO"/>
<With Var="STATUS"/>
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Comment="Event Input Qualifier" Name="QI" Type="BOOL"/>
<VarDeclaration Name="Relay_1" Type="WSTRING"/>
<VarDeclaration Name="Relay_2" Type="WSTRING"/>
<VarDeclaration Name="Relay_3" Type="WSTRING"/>
<VarDeclaration Name="Relay_4" Type="WSTRING"/>
<VarDeclaration Name="Relay_5" Type="WSTRING"/>
<VarDeclaration Name="Relay_6" Type="WSTRING"/>
<VarDeclaration Comment="Update interval of slave module in Hz (inherited from Master)" Name="UpdateInterval" Type="UINT"/>
</InputVars>
<OutputVars>
<VarDeclaration Comment="Event Output Qualifier" Name="QO" Type="BOOL"/>
<VarDeclaration Comment="Service Status" Name="STATUS" Type="WSTRING"/>
</OutputVars>
<Sockets>
<AdapterDeclaration Name="BusAdapterIn" Type="EBBusAdapter"/>
</Sockets>
<Plugs>
<AdapterDeclaration Name="BusAdapterOut" Type="EBBusAdapter"/>
</Plugs>
</InterfaceList>
<Service Comment="Service Interface Function Block Type" LeftInterface="APPLICATION" RightInterface="RESOURCE">
<ServiceSequence Name="normal_establishment">
<ServiceTransaction>
<InputPrimitive Event="INIT+" Interface="APPLICATION" Parameters="PARAMS"/>
<OutputPrimitive Event="initialize" Interface="RESOURCE" Parameters="PARAMS"/>
<OutputPrimitive Event="INITO+" Interface="APPLICATION"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="unsuccessful_establishment">
<ServiceTransaction>
<InputPrimitive Event="INIT+" Interface="APPLICATION" Parameters="PARAMS"/>
<OutputPrimitive Event="initialize" Interface="RESOURCE" Parameters="PARAMS"/>
<OutputPrimitive Event="INITO-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="request_confirm">
<ServiceTransaction>
<InputPrimitive Event="REQ+" Interface="APPLICATION" Parameters="SD"/>
<OutputPrimitive Event="request" Interface="RESOURCE" Parameters="SD"/>
<OutputPrimitive Event="CNF+" Interface="APPLICATION" Parameters="RD"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="request_inhibited">
<ServiceTransaction>
<InputPrimitive Event="REQ-" Interface="APPLICATION" Parameters="SD"/>
<OutputPrimitive Event="CNF-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="request_error">
<ServiceTransaction>
<InputPrimitive Event="REQ+" Interface="APPLICATION" Parameters="SD"/>
<OutputPrimitive Event="request" Interface="RESOURCE" Parameters="SD"/>
<OutputPrimitive Event="CNF-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="indication_response">
<ServiceTransaction>
<InputPrimitive Event="indicate" Interface="RESOURCE" Parameters="RD"/>
<OutputPrimitive Event="IND+" Interface="APPLICATION" Parameters="RD"/>
</ServiceTransaction>
<ServiceTransaction>
<InputPrimitive Event="RSP" Interface="APPLICATION" Parameters="QI,SD"/>
<OutputPrimitive Event="response" Interface="RESOURCE" Parameters="QI,SD"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="indication_inhibited">
<ServiceTransaction>
<InputPrimitive Event="indicate" Interface="RESOURCE" Parameters="RD,QI=FALSE"/>
<OutputPrimitive Event="inhibited" Interface="RESOURCE"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="error_indication">
<ServiceTransaction>
<InputPrimitive Event="error" Interface="RESOURCE" Parameters="STATUS"/>
<OutputPrimitive Event="IND-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="application_initiated_termination">
<ServiceTransaction>
<InputPrimitive Event="INIT-" Interface="APPLICATION"/>
<OutputPrimitive Event="terminate" Interface="RESOURCE"/>
<OutputPrimitive Event="INITO-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="resource_initiated_termination">
<ServiceTransaction>
<OutputPrimitive Event="INITO-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
</Service>
</FBType>