Hi,
I have two identical PMACs running identical code sets. However, one of them isn't allowing any of my bgcplcs to run. I start the cplc is started by running the following command via my C code:
snprintf(commandString,256,(char*)"UserAlgo.BgCplc[%d]",value);
reply = SetPmacVar(commandString,1); // Enable BGCPLC0 thread
I have 3 bgcplcs that run so in the above code, "value" would assume 0, 1, or 2. I print out the reply and it reads 0. I also type UserAlgo.BgCplc[0]=1 for example in the terminal and then query UserAlgo.BgCplc[0] and it returns 0.
Im a bit confused since both of my setups have the same hardware and are running the same code, yet I can't get any of the cplcs in the second PMAC to stay running. Oh and the config file for them is also the same.
I've attached a copy of one of the cplcs code for reference
thanks,
windell bgcplc.c