Applies To: |
|
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(); |
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. |
Keywords: |
Related Links
Attachments