Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bgcplc not running
#1
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:

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


Attached Files
.c   bgcplc.c (Size: 3.75 KB / Downloads: 3)
Reply
#2
This would be a technical support issue.
Please contact ODT's technical support at:
ODT-Support@omron.com
Reply
#3
(10-10-2019, 01:20 PM)steve.milici Wrote: This would be a technical support issue.
Please contact ODT's technical support at:
ODT-Support@omron.com

Thanks Steve for talking on the phone today. I sent an email back to delatau support, but I'm going to continue to post here so that others may benefit as well.

Here is what I’ve done per Steve Millici’s instructions:
-Done a factory reset of CPU using $$$***
-Did a “Clean” of the project
-Went into the project file structure and deleted the files in /bin of the project
-Unloaded the project via the IDE
-Reloaded the project
-Downloaded the config file using the IDE
-Did a save and reboot of the PMAC
-Verified that the configuration is sticking by looking at entries in the Delta Tau->Setup Variables

Still no luck. I've also reloaded the firmware of the PMAC using the IDE. I've confirmed that the kernel is also identical.

Additionally, I've written my own little cplc for cplc3 and tried to run it and it also doesn't run:

Code:
#include <gplib.h>
#include <stdio.h>
#include <dlfcn.h>
#include "../../Include/pp_proj.h"

void user_plcc(){
pshm->P[99]++;
}

The only difference that I see is that one PMAC had a 460EX processor and the other one that doesn't work is a 460EXRev.B
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)