Class DataCollect
Version 1.0
Modified 08-MAR-2026 11:05:32.00
 The DataCollect object expands the number of data attribues that
 can be handled in a DataArithm object.
 The DataCollect has 24 data inputs, which values are stored in an array.
 By connecting the output of the DataCollect object to a Data input of a
 DataArithm object, it is possible to handle the array in the code of the
 DataArithm. This expands the number of data inputs to the DataArithm
 from ordinary 4 to 96, when all four data inputs are connected to DataCollect
 objects.

 Another advantage of DataCollect is that its sometimes convenient to have
 the values arranged in an array, for example to use in a for or
 while loop.

 MaxIndex should be assigned the number of used inputs in the DataCollect
 object.

Example

 This is the code in a DataArithm which has a DataCollect object connected
 to the Da1 input.

     classdef Da1 DataCollect;
     int i;

     OA1 = 0;
     for ( i = 0; i < Da1->MaxIndex; i++)
       if ( ((pwr_sClass_Mtrl *)(Da1->DataP[i].Ptr))->Length > 10.0)
         OA1++;


RtBody attributes pwr_sClass_DataCollect
Pointer to Void DataIn1 Da1 Data input
Pointer to Void DataIn2 Da2
Pointer to Void DataIn3 Da3
Pointer to Void DataIn4 Da4
Pointer to Void DataIn5 Da5
Pointer to Void DataIn6 Da6
Pointer to Void DataIn7 Da7
Pointer to Void DataIn8 Da8
Pointer to Void DataIn9 Da9
Pointer to Void DataIn10 Da10
Pointer to Void DataIn11 Da11
Pointer to Void DataIn12 Da12
Pointer to Void DataIn13 Da13
Pointer to Void DataIn14 Da14
Pointer to Void DataIn15 Da15
Pointer to Void DataIn16 Da16
Pointer to Void DataIn17 Da17
Pointer to Void DataIn18 Da18
Pointer to Void DataIn19 Da19
Pointer to Void DataIn20 Da20
Pointer to Void DataIn21 Da21
Pointer to Void DataIn22 Da22
Pointer to Void DataIn23 Da23
Pointer to Void DataIn24 Da24
Int32 MaxIndex   Number of used inputs.
Array of DataRef DataP   Array that contains pointers to the the data input objects.
DataRef OutDataP Out Data output that can be connected to a DataArithm (or som other Data input).

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 24
parameters[1] 2
parameters[2] 1
parameters[3] 0
subwindows 0
graphmethod 16
graphindex 0
default_mask[0] 3
default_mask[1] 1
segname_annotation 1
compmethod 51
compindex 0
tracemethod 0
traceindex 0
executeordermethod 2
objname DataCollect
graphname DataCollect
debugpar


Template Object
MaxIndex 2


Attributes detail


DataIn1 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da1
Body RtBody
 Data input

DataIn2 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da2
Body RtBody

DataIn3 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da3
Body RtBody

DataIn4 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da4
Body RtBody

DataIn5 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da5
Body RtBody

DataIn6 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da6
Body RtBody

DataIn7 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da7
Body RtBody

DataIn8 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da8
Body RtBody

DataIn9 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da9
Body RtBody

DataIn10 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da10
Body RtBody

DataIn11 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da11
Body RtBody

DataIn12 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da12
Body RtBody

DataIn13 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da13
Body RtBody

DataIn14 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da14
Body RtBody

DataIn15 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da15
Body RtBody

DataIn16 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da16
Body RtBody

DataIn17 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da17
Body RtBody

DataIn18 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da18
Body RtBody

DataIn19 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da19
Body RtBody

DataIn20 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da20
Body RtBody

DataIn21 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da21
Body RtBody

DataIn22 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da22
Body RtBody

DataIn23 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da23
Body RtBody

DataIn24 Input
Class Input
Type Pointer to Void
Flags POINTER
GraphName Da24
Body RtBody

MaxIndex Intern
Class Intern
Type Int32
Flags
Body RtBody
 Number of used inputs.

DataP Intern
Class Intern
Type Array of DataRef
Flags STATE | NOEDIT | ARRAY
Elements 24
Body RtBody
 Array that contains pointers to the the data input objects.

OutDataP Output
Class Output
Type DataRef
Flags STATE | NOEDIT
GraphName Out
Body RtBody
 Data output that can be connected to a DataArithm (or som other Data input).

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody