Why is the Error 212:...Missing initialisers displayed?

FAQ #101107

This error appears if the first symbol of an array has a "first time data initialisation".

 

Problem
An array is defined in the symbol table:

 Group/SymbolType  address/value
 Symbol0 Register [3]
 Symbol1 Register Symbol0+1         
 Symbol2 Register Symbol0+2








If the first symbol of the array has a "first time data initialisation" the following error appears:
Error 212: Untitled1.sy5: Line 4: Missing initialisers

 Group/SymbolType  address/value
 Symbol0 Register [3] :=0
 Symbol1 Register Symbol0+1 :=1    
 Symbol2 Register Symbol0+2 :=2









Solution
At the moment the only solution is, to define the whole array in the first symbol or to realize the first time data initialisation elsewhere, per example in the XOB 16.

 Group/SymbolType  address/value
 Symbol0 Register [3] :=0,1,2
 Symbol1 Register Symbol0+1   
 Symbol2 Register Symbol0+2         








In future versions of PG5 a better solution is planed.

 

Categories

PG5 1.x

Last update: 30.05.2015 20:55

First release: 14.01.2009 15:50

Views: 1521

The requested software / document is no longer marketed by Saia-Burgess Controls AG and without technical support. It is an older software version which can be operated only on certain now no longer commercially available products.

Download