Passing cell[,] is underlined with a red line inside WorkVisual
DAT-file:
Code
; ...
ENUM XAlign_T left, center, right
ENUM YAlign_T top, center, bottom
STRUC CellConfig_T XAlign_T xalign, YAlign_T yalign, REAL xoffset, yoffset, rot
; ...
SRC-file:
Code
DEF mainProgram() DECL GridConfig_T grid DECL CellConfig_T cell[20,20] ; Declared as runtime variables
setDefaults(grid, cell[,], total) ; <-- ERROR on cell[,]: "The given index is invalid"
; ...
END
DEF setDefaults(grid:OUT, cell[,]:OUT, total:OUT) DECL GridConfig_T grid DECL CellConfig_T cell[,] DECL INT total
;...
END
When trying to pass cell[,] I get the following error inside WorkVisual: "The given index is invalid". I have tried to initialize every element of the array with a FOR-loop as well, but I get the same error.
The System Integrator manual also tells me that arrays may only be transferred as OUT parameters (page 573 in "KSS 8.6 SI en"), but still underlines the parameters with a blue line telling me "The value of this parameter is never changed inside the function. IN modifier would be sufficient"
Any suggestions? Thanks!