ACP_LineBuffer (FB) ¶ FUNCTION_BLOCK FINAL ACP_LineBuffer A line buffer that is filled from a BufferedFileStream. implemented as a fixed size ring buffer. Methods: FB_EXIT GetCount Init Init2 ReadLine Structure: FB_EXIT (Method) GetCount (Method) Init (Method) Init2 (Method) ReadLine (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
RMPMessageBuffer.GetMessageForReceiver (METH) ¶ METHOD FINAL GetMessageForReceiver : UINT Returns position of oldest message treceived for uireceiverID (16#FFFF if no message received) InOut: Scope Name Type Comment Return GetMessageForReceiver UINT Input uiReceiverModuleID UINT The id of the receiver to get the message from the buffer for
RMPMessageBuffer.GetMessageToApplication (METH) ¶ METHOD FINAL GetMessageToApplication : UINT Returns position of oldest message to be transmitted to uiApplicationID (16#FFFF if no message to transmit) InOut: Scope Name Type Comment Return GetMessageToApplication UINT Input uiReceiverAppID UINT The ID of the receiver application to get the message from the buffer for
RMPMessageBuffer.Lock (METH) ¶ METHOD FINAL Lock : BOOL Locks a certain message InOut: Scope Name Type Comment Return Lock BOOL Input uiIndex UINT The index of the message to be locked in the buffer