![]() |
ECATMap auto-generation bug(?) for IOBuffer defines - Printable Version +- Delta Tau Forums (http://forums.deltatau.com) +-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1) +--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2) +--- Thread: ECATMap auto-generation bug(?) for IOBuffer defines (/showthread.php?tid=3169) |
ECATMap auto-generation bug(?) for IOBuffer defines - daviddein - 01-08-2021 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. RE: ECATMap auto-generation bug(?) for IOBuffer defines - steve.milici - 01-08-2021 What is the IDE version? RE: ECATMap auto-generation bug(?) for IOBuffer defines - daviddein - 01-11-2021 PowerPMAC Version 4.4.1.7 RE: ECATMap auto-generation bug(?) for IOBuffer defines - daviddein - 01-28-2021 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. RE: ECATMap auto-generation bug(?) for IOBuffer defines - steve.milici - 01-28-2021 It may be a setting in the devices ESI file. Can you send the ESI file to support for review? |