Attribute Counts Example

Following are the Region configurations.

Region: ELPO_1

Location

Item Class

Engine

Diesel

1

Vehicle

L05

1 Ton

2

Vehicle

L05

1 Ton

3

Vehicle

L05

2 Ton

4

Vehicle

L09

2 Ton

5

Vehicle

L07

½ Ton

6

Vehicle

L08

¾ Ton

Region: ELPO_2

Location

Item Class

Diesel

Color

1

Vehicle

1 Ton

RED

2

Vehicle

1 Ton

BLUE

3

Vehicle

2 Ton

GREEN

4

Vehicle

2 Ton

WHITE

5

Vehicle

½ Ton

WHITE

6

Vehicle

½ Ton

BLUE

Run the new function block with the following Array Point Values.

 

Region ID
Array

Item Class
Array

 

Attribute Name
Array

 

Attribute
Value Array

Count Point ID
Array

ELPO_1

Vehicle

ENGINE

L09,L05

CNT_ENGINE

ELPO_1

Vehicle

DIESEL

1 Ton,1/2 Ton

CNT_SIZE

ELPO_2

Vehicle

COLOR

RED

CNT_RED

ELPO_2

Vehicle

COLOR

WHITE

CNT_WHITE

After the function block completes the point value will be as follows:

Point ID

Value

CNT_ENGINE

4

CNT_SIZE

4

CNT_RED

1

CNT_WHITE

2

More information

Attribute Counts.