ACP_OPEN_MODE (ENUM) ¶ TYPE ACP_OPEN_MODE : InOut: Name ACP_OM_READ ACP_OM_WRITE
RMPConnection.IsUp (PROP) ¶ PROPERTY FINAL IsUp : BOOL Return whether the connection is working; TRUE: data connection is working
RMPExchangeData (STRUCT) ¶ TYPE RMPExchangeData : STRUCT Data structure used to transfer the data in the RMP (Reliable Message Protocoll) InOut: Name Type Comment usiLastReceivedCounter USINT Bit0-6: acknowledgement mechanism: tells remote MH, which message (usiMessageSendCounter) was received as last Bit7: toggle bit (mirror of usiMessageSendCounter.7) mdData ARRAY [0..63] OF BYTE Data uiReceiverModuleID UINT ModuleID on receiver application uiSenderModuleID UINT ModuleID on sender application tValidity TIME Validity of this message in ms usiMessageSendCounter USINT Bit0-6: counter that is increased with each sent message (Bit0-6) Bit7: toggle-bit to check connection
RMPMessageBuffer (FB) ¶ FUNCTION_BLOCK FINAL RMPMessageBuffer This FB represents a queue of messages that are stored in a RMPService; it is used both for sending and receiving Methods: AddMessage ClearExpiredMessages Delete EnlargeExpirationTime ExistsMessageWithHandle GetMessage GetMessageForReceiver GetMessageToApplication Lock Unlock Structure: AddMessage (Method) ClearExpiredMessages (Method) Delete (Method) EnlargeExpirationTime (Method) ExistsMessageWithHandle (Method) GetMessage (Method) GetMessageForReceiver (Method) GetMessageToApplication (Method) Lock (Method) Unlock (Method)
RMPMessageBuffer.AddMessage (METH) ¶ METHOD FINAL AddMessage : UINT Queues message and returns the handle of this message or 16#FFFF, if the buffer was full InOut: Scope Name Type Comment Return AddMessage UINT Input udiSenderID UDINT The sender ID of the message udiReceiverID UDINT The receiver ID of the message tValidity TIME For send lists: tExpirationTime is the time distance, how long this message shall be kept in the receive queue for receive lists: tExpirationTime is the point in time, when it hat to be deleted if not acknowledged pmdData POINTER TO ARRAY [0..63] OF BYTE Data
RMPMessageBuffer.ClearExpiredMessages (METH) ¶ METHOD PUBLIC FINAL ClearExpiredMessages Clears the expired messages out of the buffer
RMPMessageBuffer.Delete (METH) ¶ METHOD FINAL Delete : BOOL This method frees a queue entry and may only be called on lockes messages InOut: Scope Name Type Comment Return Delete BOOL Input uiIndex UINT The index of the buffered message to be deleted
RMPMessageBuffer.EnlargeExpirationTime (METH) ¶ METHOD PUBLIC FINAL EnlargeExpirationTime Enlarges the expiration time of all messages InOut: Scope Name Type Comment Input tShift TIME The time by which the expiration times shall be increased
RMPMessageBuffer.ExistsMessageWithHandle (METH) ¶ METHOD FINAL ExistsMessageWithHandle : BOOL Checks if message with handle uiHandle exists InOut: Scope Name Type Comment Return ExistsMessageWithHandle BOOL Input uiHandle UINT Handle associated with the message
RMPMessageBuffer.GetMessage (METH) ¶ METHOD FINAL GetMessage : POINTER TO RMPBufferedMessage Returns pointer to message number uiIndex [0..] of buffer InOut: Scope Name Type Comment Return GetMessage POINTER TO RMPBufferedMessage Input uiIndex UINT The index of the message to get from the buffer