A SERVICE OF

logo

5-70 Neuron C Compiler Errors (NCC)
NCC# Description
544
The #pragma system_image_extensions nv_length_override
must precede all uses of the 'nv_len' property
Use of the directive #pragma system_image_extensions
nv_length_override selects use of the user-written extension
function get_nv_length_override() when determining the length of
a network variable. Therefore this pragma must be used to select
this method prior to any attempts to get the length of the network
variable. The pragma must appear in the program before any use of
the nv_len property. See How Devices Communicate Using Network
Variables in the Neuron C Programmers Guide for more information.
545
Reading the nv_len property within the
get_nv_length_override function is prohibited
The get_nv_length_override() function is provided by the
application programmer when using the system extension option
nv_length_override. This function is also called by the compiler to
evaluate the nv_len property for a network variable. Therefore, the
function may not contain any such references to the nv_len property,
else there would be an endless loop. See How Devices Communicate
Using Network Variables in the Neuron C Programmers Guide for
more information.
546
The #pragma system_image_extensions nv_length_override
must precede the get_nv_length_override function's definition
Use of the directive #pragma system_image_extensions
nv_length_override selects use of the user-written function
get_nv_length_override() when determining the length of a
network variable. Therefore this pragma must be used to select this
method prior to the function definition, so the compiler can properly
recognize the special nature of this function definition. See How
Devices Communicate Using Network Variables in the Neuron C
Programmers Guide for more information.
547 AUTO initializers not implemented
The Neuron C Compiler syntax does not permit use of initializers for
automatic variables in their declaration. (Automatic variables are
variables declared within a function scope, or a nested scope, or
inside the task body associated with a when clause.) Initialize the
variables with separate statements following the declaration of all
automatic variables in a function.
548
The property '<property-name>' cannot be shared by
changeable_type NVs of differing initial types (<NV-name-1>
and <NV-name-2>)
A configuration property of SCPTnvType that is shared by more
than one changeable_type network variable must be shared only
by network variables with the same initial type. The message lists
two network variables that share the property, but have differing
initial types. See How Devices Communicate Using Network
Variables in the Neuron C Programmers Guide for more information.