| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE FBType SYSTEM "../LibraryElement.dtd" > |
| <FBType Name="PUBLISH_2" Comment="Two-Variable Publisher" > |
| <Identification Standard="61499-1" Classification="Communications" Function="2-variable publisher" /> |
| <VersionInfo Organization="Rockwell Automation" Version="0.0" Author="JHC" Date="2001-04-14" Remarks="First XML version" /> |
| <CompilerInfo header="package fb.rt.net;" > |
| <Compiler Language="Java" Vendor="IBM" Product="VisualAge" Version="3.0" /> |
| </CompilerInfo> |
| <InterfaceList> |
| <EventInputs> |
| <Event Name="INIT" Comment="Service Initialization" > |
| <With Var="QI" /> |
| <With Var="ID" /> |
| </Event> |
| <Event Name="REQ" Comment="Service Request" > |
| <With Var="QI" /> |
| <With Var="SD_1" /> |
| <With Var="SD_2" /> |
| </Event> |
| </EventInputs> |
| <EventOutputs> |
| <Event Name="INITO" Comment="Initialization Confirm" > |
| <With Var="QO" /> |
| <With Var="STATUS" /> |
| </Event> |
| <Event Name="CNF" Comment="Service Confirmation" > |
| <With Var="QO" /> |
| <With Var="STATUS" /> |
| </Event> |
| </EventOutputs> |
| <InputVars> |
| <VarDeclaration Name="QI" Type="BOOL" Comment="Event Input Qualifier" /> |
| <VarDeclaration Name="ID" Type="WSTRING" Comment="Connection Identifier" /> |
| <VarDeclaration Name="SD_1" Type="ANY" Comment="Data to Send" /> |
| <VarDeclaration Name="SD_2" Type="ANY" Comment="Data to Send" /> |
| </InputVars> |
| <OutputVars> |
| <VarDeclaration Name="QO" Type="BOOL" Comment="Event Output Qualifier" /> |
| <VarDeclaration Name="STATUS" Type="WSTRING" Comment="Service Status" /> |
| </OutputVars> |
| </InterfaceList> |
| <Service RightInterface="SUBSCRIBE_2" LeftInterface="PUBLISH_2" Comment="Data Publication Service" > |
| <ServiceSequence Name="normal_establishment" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="PUBLISH_2" Event="INIT+" Parameters="ID" /> |
| <OutputPrimitive Interface="PUBLISH_2" Event="INITO+" /> |
| </ServiceTransaction> |
| <ServiceTransaction > |
| <InputPrimitive Interface="SUBSCRIBE_2" Event="INIT+" Parameters="ID" /> |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="INITO+" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="publisher_rejected_establishment" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="PUBLISH_2" Event="INIT+" Parameters="ID" /> |
| <OutputPrimitive Interface="PUBLISH_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="subscriber_rejected_establishment" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="SUBSCRIBE_2" Event="INIT+" Parameters="ID" /> |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="normal_data_transfer" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="PUBLISH_2" Event="REQ+" Parameters="SD_1,SD_2" /> |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="IND+" Parameters="RD_1,RD_2" /> |
| </ServiceTransaction> |
| <ServiceTransaction > |
| <OutputPrimitive Interface="PUBLISH_2" Event="CNF+" /> |
| </ServiceTransaction> |
| <ServiceTransaction > |
| <InputPrimitive Interface="SUBSCRIBE_2" Event="RSP+" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="data_transfer_error" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="PUBLISH_2" Event="REQ+" Parameters="SD_1,SD_2" /> |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="IND-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| <ServiceTransaction > |
| <OutputPrimitive Interface="PUBLISH_2" Event="CNF+" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="publisher_initiated_disconnect" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="PUBLISH_2" Event="INIT-" /> |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| <ServiceTransaction > |
| <OutputPrimitive Interface="PUBLISH_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="subscriber_initiated_disconnect" > |
| <ServiceTransaction > |
| <InputPrimitive Interface="SUBSCRIBE_2" Event="INIT-" /> |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="system_publisher_disconnect" > |
| <ServiceTransaction > |
| <OutputPrimitive Interface="PUBLISH_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| <ServiceTransaction > |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| <ServiceSequence Name="system_subscriber_disconnect" > |
| <ServiceTransaction > |
| <OutputPrimitive Interface="SUBSCRIBE_2" Event="INITO-" Parameters="STATUS" /> |
| </ServiceTransaction> |
| </ServiceSequence> |
| </Service> |
| </FBType> |