blob: daaa1021863df1a6aa0bb0fb892d1f4afb883dc4 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE FBType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<FBType Comment="Output service interface function block for word output data" Name="QW">
<Identification Description="Copyright (c) 2015, 2016 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" />
<VersionInfo Author="Gerd Kainz" Date="2015-09-22" Organization="fortiss GmbH" Version="1.0"/>
<VersionInfo Author="Alois Zoitl" Date="2016-07-18" Organization="fortiss GmbH" Version="1.1"/>
<InterfaceList>
<EventInputs>
<Event Comment="Service Initialization" Name="INIT" Type="Event">
<With Var="QI"/>
<With Var="PARAMS"/>
</Event>
<Event Comment="Service Request" Name="REQ" Type="Event">
<With Var="QI"/>
<With Var="OUT"/>
</Event>
</EventInputs>
<EventOutputs>
<Event Comment="Initialization Confirm" Name="INITO" Type="Event">
<With Var="QO"/>
<With Var="STATUS"/>
</Event>
<Event Comment="Confirmation of Requested Service" Name="CNF" Type="Event">
<With Var="QO"/>
<With Var="STATUS"/>
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Comment="Event Input Qualifier" Name="QI" Type="BOOL"/>
<VarDeclaration Comment="Service Parameters" Name="PARAMS" Type="STRING"/>
<VarDeclaration Comment="Output data to resource" Name="OUT" Type="WORD"/>
</InputVars>
<OutputVars>
<VarDeclaration Comment="Event Output Qualifier" Name="QO" Type="BOOL"/>
<VarDeclaration Comment="Service Status" Name="STATUS" Type="STRING"/>
</OutputVars>
</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="INITO+" Interface="APPLICATION" Parameters="PARAMS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="unsuccessful_establishment">
<ServiceTransaction>
<InputPrimitive Event="INIT+" Interface="APPLICATION" 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="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="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="INITO-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Name="resource_initiated_termination">
<ServiceTransaction>
<OutputPrimitive Event="INITO-" Interface="APPLICATION" Parameters="STATUS"/>
</ServiceTransaction>
</ServiceSequence>
</Service>
</FBType>