The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.7 (Linux)
File Line Function
/showthread.php 864 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global P variables in background C-PLCs
#1
We have some established programs running background C-PLCs that reference global P variables in the C code. We reference them using the notation "pshm->P[2]".

These C-plc's have been running fine on other Power Pmacs for a couple of years.

We recently upgraded to FW 2.4.0.180 on one of our 465 UMAC processors. The C code appears to build and download, but none of the expressions that contain global P variables seem to evaluate. No code changes in the project, the only change is new FW in the PMAC.

We've verified that the PLCs are running by adding debug code that modifies a few variables in user shared memory, we then use the watch window and make sure the user shared memory locations update as expected when the C-plcs are running.

Any ideas as to why just the global P-variable expressions will not evaluate? We've tried cleaning the project before build and download, reboot then build, etc.

We're using IDE 3.1.2.2.

Thanks,
kmonroe
Reply


Messages In This Thread
Global P variables in background C-PLCs - kmonroe023 - 01-24-2019, 11:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)