I use the following code to configure port for cpp to plcnext.
#define MAXCYCLE 2
#define MAXPROFILE 20
#define MAXTAB 47
#define MAXTABFILEFILE 48
#define MAXPROFILEFILE 49
#define MAXABCFILEFILE 50
#define MAXCYCLEP 51
#define NAME1 9
#define NAME11 10
#define NAME111 11
#define NAMEAB 12
#define NAMEAB1 13
#define XAMLITE 13
bool tabofbool9[NAME1];
//#attributes(Output)
bool tabofbool10[NAME11];
//#attributes(Output)
bool tabofbool11[NAME111];
//#attributes(Output)
bool tabofbool12[NAMEAB];
//#attributes(Output)
bool tabofbool13[NAMEAB1];
//#attributes(Output)
bool tabofbool14[XAMLITE];
//#attributes(Output)
bool tabofbool16[MAXTABFILEFILE];
//#attributes(Output)
bool tabofbool17[MAXPROFILEFILE];
//#attributes(Output)
bool tabofbool18[MAXABCFILEFILE];
//#attributes(Output)
bool tabofbool20[MAXCYCLEP];
The cli processoir is interpretting wrongly some of the #define
Look at the following datatype (.dt)
tabofbool9Array : ARRAY [0..8] OF BOOL;
tabofbool10Array : ARRAY [0..90] OF BOOL;
tabofbool11Array : ARRAY [0..910] OF BOOL;
tabofbool12Array : ARRAY [0..11] OF BOOL;
tabofbool13Array : ARRAY [0..120] OF BOOL;
tabofbool14Array : ARRAY [0..12] OF BOOL;
tabofbool16Array : ARRAY [0..MAXTABFILEFILE] OF BOOL;
tabofbool17Array : ARRAY [0..MAXPROFILEFILE] OF BOOL;
tabofbool18Array : ARRAY [0..49] OF BOOL;
tabofbool20Array : ARRAY [0..MAXCYCLEP] OF BOOL;
regards Alexandre