Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ECATMap auto-generation bug(?) for IOBuffer defines
#1
I am no wizard in C or delta tau language in general, but I included the ECATMap.h file in my bgcplc that had some nifty pshm pointers that I wanted to use. I had issues when trying to use the unique #defines concerning IOBuffer's, and I kept getting compile errors stating:

Code:
expected ';' before 'pshm'

looking at my ECATMap.h file:
Code:
#define Slave_1003_EL1252_1003_1D09_16_SysTime (x) pshm->ECAT[0].IOBuffer[32 + x]

removing the space before a '(x)' fixed my compile error
Code:
#define Slave_1003_EL1252_1003_1D09_16_SysTime(x) pshm->ECAT[0].IOBuffer[32 + x]

Is this an auto-generation bug? This is similarly occuring in the ECATMap.pmh file as well.
Reply
#2
What is the IDE version?
Reply
#3
PowerPMAC Version 4.4.1.7
Reply
#4
So, is this something I am setting up incorrectly (wrong checkbox or other), or is it a bug?

I am doing some development work, and whenever I change the bus configuration I have to go in and manually fix all of these 'errors' in the auto-generated ecatconfig files so my project can compile correctly.
Reply
#5
It may be a setting in the devices ESI file. Can you send the ESI file to support for review?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)