IRMPFBCommunication (ITF)ΒΆ

INTERFACE IRMPFBCommunication EXTENDS __SYSTEM.IQueryInterface

Implement this interface for a custom FB in the POU-Pool (or a library in the POU Pool), so be available as FB used for the RMP-Communication accross the network. For each App1-App2 connection a pair of two FBs (one in App1 and one in App2) is instantiated.

FBs implementing this interface have to transmit and receive given data via some kind of network connection connection two applications of modules running on the latter. The following functions a comprised by this interface:

  • IRMPFBCommunication.InitializeCommunicationParameters is called before the Cyclic-RMP-Communication and provides you with the communication addresses of the application to receive messages from and to send messages to; this methods functionallity is mandatory

  • IRMPFBCommunication.InitializeReceiveBuffers provides you with pointers to the buffers holding the RMP data and mirrored variables to be received; this methods functionallity is mandatory

  • IRMPFBCommunication.InitializeSendBuffers provides you with pointers to the buffers holding the RMP data and mirrored variables to be sent; this methods functionallity is mandatory

  • IRMPFBCommunication.CyclicCall is called cyclically after the initialization functions have been called; use this method to implement all the communcational need for ina network connection, receiving via this connection and sending sending via this connection in respect to the given communication addresses. Directly read/write from/to the given buffers; this methods functionallity is mandatory

  • The property IRMPFBCommunication.ReceiveCounter returns the count of received full data sets; as long as no data was received, this property shall return 0; this methods functionallity is mandatory for a working RMP communication using custom FBs

  • The property IRMPFBCommunication.SendCounter returns the count of sent full data sets and sent via any network; this methods functionallity is mandatory for a working RMP communication using custom FBs

Properties:

Methods:

Structure: