Skip to main content

CycleTimeData

Short summary

This class serves as a pure data transfer object and can be used to create a new cycle time data set. An instance of this class can be appended to a production data set list.

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.ObjectCNM_ProductionMetricInterfaces.ICycleTimeData

UML Diagram

Parameters

none

Properties

className

Type: CNM_AbstractObject.ClassName

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

dataset

Type: CNM_ProductionMetricInterfaces.CycleTimeDataStruct

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)
    • data (CNM_ProductionMetricInterfaces.CycleTimeDataStruct): the data set this instance should capsulate
  • Return type: BOOL

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

Code

Declaration

{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK CycleTimeData EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_ProductionMetricInterfaces.ICycleTimeData
VAR
data :CNM_ProductionMetricInterfaces.CycleTimeDataStruct;
END_VAR