| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class  ClassTree | INDEX NO INDEX |
Class DataCollect
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 15-JAN-2025 13:23:36.00 | |
Samlar ihop ett antal dataobjekt (max 24 st), och placerar pekare till objekten i en array. Detta gör det möjligt att komma åt dataobjekten i en DataArithm.

Normalt kan endast 4 dataobjekt hanteras i en DataArithm, men genom att utnyttja DataCollect kan upp till 96 st hanteras. Dessutom är det ofta bekvämt att ha dataobjekten ordnade i en array för att kunna använda loopar i c-koden. I MaxIndex ska antalet dataingångar som används i DataCollect objektet anges. Samtliga dataingångar mellan 1 och MaxIndex måste vara kopplade.
Här följer ett exempel på koden i en DataArithm som har DataCollect objektet
kopplat till Da1 ingången. Ett antal objekt av klassen Mtrl är kopplade till
DataCollect objektet.
classdef Da1 DataCollect
int i;
OA1 = 0;
for ( i = 0; i < Da1->MaxIndex; i++)
if ( ((pwr_sClass_Mtrl *)(Da1->DataP[i]))->Length > 10.0)
OA1++;
| 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 |
| DataIn1 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da1 | |
| Kropp | RtBody | |
Data input
| DataIn2 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da2 | |
| Kropp | RtBody | |
| DataIn3 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da3 | |
| Kropp | RtBody | |
| DataIn4 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da4 | |
| Kropp | RtBody | |
| DataIn5 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da5 | |
| Kropp | RtBody | |
| DataIn6 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da6 | |
| Kropp | RtBody | |
| DataIn7 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da7 | |
| Kropp | RtBody | |
| DataIn8 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da8 | |
| Kropp | RtBody | |
| DataIn9 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da9 | |
| Kropp | RtBody | |
| DataIn10 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da10 | |
| Kropp | RtBody | |
| DataIn11 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da11 | |
| Kropp | RtBody | |
| DataIn12 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da12 | |
| Kropp | RtBody | |
| DataIn13 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da13 | |
| Kropp | RtBody | |
| DataIn14 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da14 | |
| Kropp | RtBody | |
| DataIn15 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da15 | |
| Kropp | RtBody | |
| DataIn16 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da16 | |
| Kropp | RtBody | |
| DataIn17 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da17 | |
| Kropp | RtBody | |
| DataIn18 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da18 | |
| Kropp | RtBody | |
| DataIn19 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da19 | |
| Kropp | RtBody | |
| DataIn20 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da20 | |
| Kropp | RtBody | |
| DataIn21 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da21 | |
| Kropp | RtBody | |
| DataIn22 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da22 | |
| Kropp | RtBody | |
| DataIn23 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da23 | |
| Kropp | RtBody | |
| DataIn24 Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Pointer to Void | |
| Flags | POINTER | |
| GraphName | Da24 | |
| Kropp | RtBody | |
| MaxIndex Intern | ||
|---|---|---|
| Klass | Intern | |
| Typ | Int32 | |
| Flags | ||
| Kropp | RtBody | |
Antal kopplade ingångar. Måste datasättas i attributeeditorn (eller i runtiime).
| DataP Intern | ||
|---|---|---|
| Klass | Intern | |
| Typ | Array of DataRef | |
| Flags | STATE | NOEDIT | ARRAY | |
| Elements | 24 | |
| Kropp | RtBody | |
Array med 24 element som innehåller pekare till de objekt som är kopplade till DataCollekt objektet.
| OutDataP Output | ||
|---|---|---|
| Klass | Output | |
| Typ | DataRef | |
| Flags | STATE | NOEDIT | |
| GraphName | Out | |
| Kropp | RtBody | |
Data output that can be connected to a DataArithm (or som other Data input).
| PlcNode Buffer | ||
|---|---|---|
| Klass | Buffer | |
| Typ | PlcNode | |
| Flags | INVISIBLE | |
| Kropp | DevBody | |