PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

Resolved E3021

0
Votes
Undo
  1. stijn
  2. PLCnext Engineer
  3. Tuesday, 28 January 2020

Hello,

I have a program which needs to take in a lot of info from an sqlite.db. When I create the program and have my variables as local VARS, no error shows up. From as soon as I make my 2 structs which will contain the information from the sqlite .db via a C++ program IN-PORTS, the plcnext engineer gives the following error for all FBs:

 

E3021: ProConOS_eCLR.HAM1.HAM1 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330552 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.HAM2 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330560 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.MB_HAM1_PLC1 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330568 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.MB_HAM1_PLC2 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330576 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.MB_HAM1_PLC3 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330584 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.MB_HAM2_PLC1 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330592 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.MB_HAM2_PLC2 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330600 exceeds 262140)
E3021: ProConOS_eCLR.HAM1.MB_HAM2_PLC3 : the offset of the referenced member is too large, please move the variable into a front position of the variable list : (offset 330608 exceeds 262140)

 

How can this be resolved?

Best regards,
Stijn Noppe

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Stijn,

Sorry for the delayed response. Here is the answer to your question:

"this is a limitation for all compilers in regards of the executable stack table.
The solution is as simple as written in the error message - Please move the variable into a front position of the variable list

Means: Please move the struct variable to one of the first places/rows in the variable table.

The same limitation was given in PC WORX as well."

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.