Skip to main content

MessageServiceProvider

Short summary

This class extends the AbstractMessageServiceProvider with an FB_Init where a message service can be injected.

AccessAbstractFinalExtendsImplements
-NoNoCNM_MessageInterfaces.AbstractMessageServiceProvider-

UML Diagram

Properties

className

Type: CNM_AbstractObject.ClassName

This abstract property returns the class name of the concrete object,

Methods

FB_init

  • Parameters:
    • bInitRetains (BOOL): if TRUE, the retain variables are initialized (warm start / cold start)
    • bInCopyCode (BOOL): if TRUE, the instance afterwards gets moved into the copy code (online change)
    • messageService (CNM_MessageInterfaces.IMessageService): the message service this provider instance should use instead of the global service, can be 0 if not used
  • Return type: BOOL

The constructor FB_init is needed to create an unique hash code.

Code

Declaration

FUNCTION_BLOCK MessageServiceProvider EXTENDS CNM_MessageInterfaces.AbstractMessageServiceProvider