kandauru Posted June 6, 2016 Share Posted June 6, 2016 Hi, I have started with a new project for PowerBrick LV. I have taken the following example and tried to compile it: Default Encoder Conversion Table for quadrature incremental encoders: EncTable[1].type = 1; EncTable[1].pEnc = PowerBrick[0].Chan[0].ServoCapt.a; EncTable[1].pEnc1 = Sys.Pushm; EncTable[1].index1 = 0; EncTable[1].index2 = 0; EncTable[1].index3 = 0; EncTable[1].index4 = 0; EncTable[1].index5 = 0; EncTable[1].ScaleFactor = 1 / 256; Default settings for quadrature incremental encoders: Motor[1].ServoCtrl = 1; // Channel activation Motor[1].pEnc = EncTable[1].a; // Position source data Motor[1].pEnc2 = EncTable[1].a; // Velocity source data PPMAC Suite IDE (2.1.0.107 with the last firmware from 24 may 2016) has given an error #70. I understood that the compiler doesn't know PowerBrick structure. Could you explain me, please, what was wrong? Thank you in advance. Konstantin. Link to comment Share on other sites More sharing options...
kandauru Posted June 9, 2016 Author Share Posted June 9, 2016 Hi, please, look at the attached picture. What is wrong with PowerBrick structure? Why compiler does not recognize it? Link to comment Share on other sites More sharing options...
steve.milici Posted June 9, 2016 Share Posted June 9, 2016 Can you enter this in the terminal window? What is retuned for these structures: Gate3[0].PartNum Gate3[0].PartOpt0 Gate3[0].PartRev Gate3[0].PartType Link to comment Share on other sites More sharing options...
kandauru Posted June 10, 2016 Author Share Posted June 10, 2016 I am going to check it on Sunday and let you know then. Link to comment Share on other sites More sharing options...
kandauru Posted June 13, 2016 Author Share Posted June 13, 2016 Can you enter this in the terminal window? What is retuned for these structures: Gate3[0].PartNum Gate3[0].PartOpt0 Gate3[0].PartRev Gate3[0].PartType Here are returned values: Gate3[0].PartNum = 618089 Gate3[0].PartOpt0 = $ffffffff Gate3[0].PartRev = 15 Gate3[0].PartType = 15 Link to comment Share on other sites More sharing options...
steve.milici Posted June 13, 2016 Share Posted June 13, 2016 This Brick appears to have corrupted programming in the “Auto Recognition” EEPROM. You should be able to use the programming from the Power Brick manual by changing “PowerBrick[x]” with “Gate3[x]” for the gate3 structures references only. I believe I can look up a method to reprogram the Auto Recognition” EEPROM. I will get back to you shortly. Link to comment Share on other sites More sharing options...
kandauru Posted June 14, 2016 Author Share Posted June 14, 2016 OK, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts