Configuration property sharing rules – Echelon Neuron C User Manual

Page 109

Advertising
background image

Neuron C Programmer’s Guide

97

static cpMaxSendT // Shared among the array

//

elements

only

};

Although the discussion above concerns instantiation and shared CP family
members, configuration network variables can also be shared using a similar

method. Use the static keyword in the array's property list to share a

configuration network variable among members of a network variable array. Use
the global keyword in the configuration network variable’s property list to share

the property among two or more network variables.

The only difference between the configuration network variable and the CP

family member, in this regard, is that the configuration network variable cannot

appear in two or more property lists

without

the global keyword because there is

only one instance of the network variable (whereas CP families can have multiple

instances).
A configuration property that applies to a device cannot be shared because there
is only one device per application.

Configuration Property Sharing Rules

The following rules apply to configuration property sharing. This list

summarizes the rules described elsewhere in this chapter.

1

A configuration property can only be shared between multiple network

variables, or between multiple functional blocks, but not between a

combination of network variables and functional blocks at the same time.

2

All configuration property types can be shared.

3

A configuration property that applies to the entire device cannot be
shared.

4

Multiple functional blocks or network variables can share a configuration

property. A shared configuration property can apply to multiple singular
functional blocks or network variables, a functional block or network

variable array, a number of functional block or network variable arrays,

or any combination thereof.

5

A configuration property that is shared among the members of a

functional block or network variable array must always be shared among

all members of that array.

6

A configuration property can be shared between network variables on

different functional blocks.

7

A configuration property that inherits its type from a network variable
can only be shared between network variables that are all of the same

type. Therefore, all changeable type network variables that share an
inheriting configuration property must also share an instantiation of

SCPTnvType, so that the set of changeable network variables always

have the same, single, type and so that type changes occur at the same
time.

8

Two (or more) mandatory functional profile template configuration

properties can be implemented using a single, shared, configuration
property provided the shared configuration property meets the

Advertising