Download Unity Pro 2.2

Transcript
Language differences
ANY_ARRAY_WORD parameters
Error Message
For EF/EFB pins that have the type WORD in Concept and have been changed to
ANY_ARRAY_WORD in Unity, "Cannot import variables" will be the reported type.
Such pins usually have a single register address as a formal parameter in Concept,
but it is actually used to point to an array of words for which the size has not been
explicitly declared.
Change of
Parameter Type
In Unity, an array of words has to be declared for this purpose. This is why the
converter changes the type to ARRAY[0..0] OF WORD.
However, the converter cannot determine the required size because a size
declaration is absent in the Concept application. Therefore, the converter defines
one data element, [0..0], as a replacement for the original variable.
It is up to the user to replace this default range of one element with the number of
elements required by the application.
Redefine Back
to a OneDimensional
WORD Array
In case the application defined data structures that are mapped to registers that
describe the data to be worked with, significant work to redefine this back to a onedimensional WORD array is required. However, this is necessary for Unity V1.0, for
example:
{Echanges_CR2 : [MAST]} : (r: 42, c: 7) E1092 data types do
not match ('CREADREG.REG_READ:ANY_ARRAY_WORD'<>'table_rec_cr2:peer_Table')
Example:
The Unity converter V2.0 will change these EFB parameter types to ANY, avoiding
this problem.
50
33002515