RMPBufferedMessage (STRUCT) ¶ TYPE RMPBufferedMessage : STRUCT The structure representing a message buffered in the RMP (Reliable Message Protocoll) InOut: Name Type Comment udiReceiverID UDINT Receiver ApplicationID+ModuleID udiSenderID UDINT Sender ApplicationID+ModuleID uiHandle UINT Is unique handle and indicates send order; only Bit0-14 are used byStatusBits BYTE Bit0: TRUE: this buffer entry is unused Bit1: TRUE: this buffer entry is locked and may not be freed or deleted by anyone except the owner THIS ENTRY MUST BE SET WITH TESTANDSET Bit2: TRUE: editing is ongoing tValidity TIME Time distance, how long this message will bevalid tExpirationTime TIME time,(TIME()), when message expires mdData ARRAY [0..63] OF BYTE data
RMPConnection (FB) ¶ FUNCTION_BLOCK FINAL RMPConnection This function block is used internally by the application composer during generation. This function block represents a connection between different composer applications using the RMP (Reliable Message Protocoll). InOut: Scope Name Type Comment Input uiRemoteAppID UINT Application ID of receiver pMessage POINTER TO RMPExchangeData Pointer to the message that is transmitted between the 2 apps xTransmitConnection BOOL Signals if this instance is managing a transmit or receive connection Properties: ActiveIndexInQueue IsActive IsUp Methods: Activate CheckConnectivity Deactivate Structure: Activate (Method) ActiveIndexInQueue (Property) CheckConnectivity (Method) Deactivate (Method) IsActive (Property) IsUp (Property)
RMPConnection.Activate (METH) ¶ METHOD PUBLIC FINAL Activate Activates the connection InOut: Scope Name Type Comment Input uiIndexInQueue UINT The index of the connection to be placed in the connection queue
RMPConnection.ActiveIndexInQueue (PROP) ¶ PROPERTY FINAL ActiveIndexInQueue : UINT The queue index of the current active connection
RMPConnection.CheckConnectivity (METH) ¶ METHOD PUBLIC FINAL CheckConnectivity Checks whether this connection is actibe InOut: Scope Name Type Comment Input xToggleMirror BOOL The current value of the local toggle bit used to check the connection
RMPConnection.Deactivate (METH) ¶ METHOD PUBLIC FINAL Deactivate Deactivates the connection
RMPConnection.IsActive (PROP) ¶ PROPERTY FINAL IsActive : BOOL Returns whether the connection is active or not
GetInstancePath (FUN) ¶ FUNCTION GetInstancePath : STRING(255) Returns the instance path of a module instance. The instance path is built by concatenating the instance names of all ancestors, starting from the toplevel module down until to the given instance. The instance names are separated by dots.l If the resulting instance name is longer than 255 characters, an empty string is returned. InOut: Scope Name Type Comment Return GetInstancePath STRING(255) Input itfM IModule The module instance for which the instance path is computed (must not be 0)
GetLastChild (FUN) ¶ FUNCTION GetLastChild : IModule Returns the last child module instance of a given instance. Returns 0 if (and only if) itfM has no children. InOut: Scope Name Type Comment Return GetLastChild IModule Input itfM IModule The instance that is queried for the last child (must not be 0)
GetLastInRange (FUN) ¶ FUNCTION GetLastInRange : IModule Returns the last element of a given range. Returns 0 if (and only if) the last element of the range is 0 or the range is empty. Note: after the call, the range will be empty. InOut: Scope Name Type Comment Return GetLastInRange IModule Input rng IModuleRangeForward The forward range (i.e. AncestorRange , DepthFirstRange or SiblingRange ) for which the last element shall be returned for