AC_RMP_FBCommunication ¶ IRMPFBCommunication (Interface) CyclicCall (Method) InitializeCommunicationFBConnections (Method) InitializeCommunicationParameters (Method) InitializeReceiveBuffers (Method) InitializeSendBuffers (Method) ReceiveComAdress (Property) ReceiveCounter (Property) SendCounter (Property) SendToComAdress (Property) RMPVarData (Struct)
IRMPFBCommunication.SendToComAdress (PROP) ¶ PROPERTY SendToComAdress : UDINT This property returns the ComAddress of the application messages are send to (given via InitializeCommunicationParameters).
RMPVarData (STRUCT) ¶ TYPE RMPVarData : STRUCT Structure holding one set of mirror variable data to be transmitted InOut: Name Type Comment pVarData POINTER TO BYTE Pointer to the variable to be mirrored byVarDataSize BYTE Size of the variable to be mirrored
IRMPService (ITF) ¶ INTERFACE IRmpService EXTENDS __SYSTEM.IQueryInterface Interface implemented by the RMP (Reliable Message Protocoll) service Properties: LocalAppID Methods: IsMessageSent QueueSendMessage Receive Structure: IsMessageSent (Method) LocalAppID (Property) QueueSendMessage (Method) Receive (Method)
IRMPService.IsMessageSent (METH) ¶ METHOD IsMessageSent : BOOL This method is used internally. Checks if a send message has been sent and acknowledged; InOut: Scope Name Type Comment Return IsMessageSent BOOL Input uiHandle UINT The message to check for if it was sent
IRMPService.LocalAppID (PROP) ¶ PROPERTY LocalAppID : UINT The ID of the application the current RMP (Reliable Message Protocoll) service belongs to
IRMPService.QueueSendMessage (METH) ¶ METHOD QueueSendMessage : UINT This method is used internally. Use the function block RMPSendMessage instead. This method adds a message to send into the send queue and returns a handle, that enables to check if the transmission was successful FFFF indicates that the buffer is full and the message was not transmitted FFFE indicates that the receiver module is in the same application and that the transmission was successful InOut: Scope Name Type Comment Return QueueSendMessage UINT Input udiSenderID UDINT The sender ID of the message (see function description for details) udiReceiverID UDINT The receiver ID of the message (see function description for details) tValidity TIME The time this message remains valid pmdData POINTER TO ARRAY [0..63] OF BYTE Data
IRMPService.Receive (METH) ¶ METHOD Receive : UDINT This method is called by each module that is able to receive a message it takes the oldest received message for uiReceiverID and acknowledges it. Returns 16#FFFFFFFF if there is no message waiting for the receiver. Returns 16#FFFFFFFE if there is at least one message waiting for the receiver, if the oldest message is currently locked by a different task. In all other cases, the communication address of the sender is returned. A possible call semantic could be: udiRec := Environment^.rmps.Receive(uiReceiverModuleID:=UDINT_TO_UINT(ComAddress AND 16#FFFF), pmd:=ADR(mdData)); Where udiRec returns the address of the module/communicator from which the message was received. Accesing this function was done using the environemin any module implementing IModule . InOut: Scope Name Type Comment Return Receive UDINT Input uiReceiverModuleID UINT The (local) address of the receiver, which equals the first 16bit of the ComAddress (see AND 16#FFFF) pmd POINTER TO ARRAY [0..63] OF BYTE The message data buffer to write to
IRmpService2 (ITF) ¶ INTERFACE IRmpService2 EXTENDS IRmpService Interface implemented by the RMP (Reliable Message Protocoll) service Methods: GetIsActionOngoing SetIsActionOngoing Structure: GetIsActionOngoing (Method) SetIsActionOngoing (Method)
IRmpService3.GetComFBForComAddress (METH) ¶ METHOD GetComFBForComAddress : IRMPFBCommunication This functions returns the communication FB used to communicate to or from a given Module ComAddress of a Module. ..note: If communication FBs are not used for communication this function will always return 0! ..return: If FB communication was used and a FB communicating to or from the given ComAddress exists the correspnding FB/Interface is returned If no communication FB is available 0 is reutnred. InOut: Scope Name Type Comment Return GetComFBForComAddress IRMPFBCommunication Input udiModuleComAddress UDINT The ComAddress of the Module for which the CommunicationFB shall be received