Applies To:
  • CitectSCADA 1.00, 1.01, 1.10, 1.11, 2.00, 2.01

Summary:
If you have a report that calls Cicode functions and the Cicode functions modify PLC variables, the report will not see the changes in the PLC variables. This is because a reports image of the PLC is separate from the Cicode functions images. The reports share one data image, and all the Cicode functions share another. For example, if a report called the function MyFunction() that wrote to the variable PLC_TAG, the value of the PLC_TAG would be the value when the report started.

MyFunction();
Println("Value of PLC_TAG " + PLC_TAG : ###.##);
 


Solution:
Try not to mix reports and functions. If you write a report all as a report or all as functions the PLC data will be correct. Another solution is to do a ReRead(1) after the functions that have modified the variables. This will cause the report to read all the PLC data again from the PLC.

See also Q1073, Q1075, Q1091 


Keywords:
 

Attachments