HJTrost Posted December 11, 2023 Share Posted December 11, 2023 I am pulling this out of my thread "Using CaptCompISR" (https://forums.automation.omron.com/topic/10121-using-captcompisr/) A minimal test version of that function is this: #include "usrcode.h" #define _PPScriptMode_ #include "../Include/pp_proj.h" void CaptCompISR(void) { volatile GateArray3 *MyGate3; int *CompDebug; MyGate3 = GetGate3MemPtr(0); MyGate3->IntCtrl = 0x20; CompDebug = (int *)pushm + 65524; (*CompDebug)++; } It should increase the counter Sys.Idata[65524] by 1 when called and thus prove that it has been called. It does not do this. I do provide a legitimate trigger with script code, which is made visible by a LED. However, the question here is why the Power PMAC IDE flags the declaration of *MyGate3 with a twiddle line under the asterisk and issues the message " syntax error, unexpected '*' ". I have two look-alike motion systems (same hardware, one 15 years old, the other brand new), with the same CK3C controller on each (both brand new out of a delivery of 5 units), with an older Windows 10 laptop assigned to the old system and a new Windows 10 industrial panel PC to the new one. On both, the same version 4.6.0.14 of the IDE is installed, and the firmware reported for the CK3Cs is 2.7.1.0, the cpu is [arm,LS1021A]. Both systems suffer from the same disease. I have found one previous post asking the same question, with no solution reported in the forum. Does anybody have an answer? Jochen Quote Link to comment Share on other sites More sharing options...
HJTrost Posted December 11, 2023 Author Share Posted December 11, 2023 Quick addendum: The error message is issued by Intellisense, not Build. Quote Link to comment Share on other sites More sharing options...
steve.milici Posted December 12, 2023 Share Posted December 12, 2023 The syntax verification of the editor is probably “misled” by other code in the file. If you do not get an error during a “Build” then there is no error from the compiler. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.