Skip to main content

NodeControlDTO

Short Summary

This class serves as a data object for global control signals. The reference assignment is part of the composition mechanism of the nodes.

AccessAbstractFinalExtendsImplements
INTERNALNoNoCNM_AbstractObject.ObjectCNM_OpModeHandlingInterfaces.INodeControl

UML Diagram

Parameters

none

Properties

className

Type: CNM_AbstractObject.ClassName

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

override

Type: LREAL

This property returns the effective override for a node, which is the result of the multiplication of global and local override.

stopRequest

Type: BOOL

This property represents the stop request signal which either the operator triggers from the HMI or which is set by an error.

Methods

assignGlobalReferences

  • Parameters:
    • data (REFERENCE TO CNM_OpModeHandlingInterfaces.NodeHandlerControlStruct)
  • Return type: VOID

This method is used during the initialization of the nodes to receive the mode data references from the parent node.

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)
    • localOverride (REFERENCE TO LREAL)
  • Return type: BOOL

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

Code

Declaration

FUNCTION_BLOCK INTERNAL NodeControlDTO EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_OpModeHandlingInterfaces.INodeControl
VAR
nodeControlData :REFERENCE TO CNM_OpModeHandlingInterfaces.NodeHandlerControlStruct;
{attribute 'no_copy'}
localOverride :REFERENCE TO LREAL;
END_VAR