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

The Cicode function Report() will start the specified report on the Report server to which the Citect computer is communicating. If you are using the report servers in primary/Standby mode, the report may run on Standby server. If you call Report on the Standby server then the report will definitely run on the Standby server, even if the Primary server is active.

Only reports that are scheduled with a trigger and/or with time/period will run on the Primary server. Reports called with the Report function will run on the attached Report server which may be either the Primary or Standby report server for a Citect Client. Reports called with the Report function on the Standby server will run on the Standby server.

The Report function has been designed to run reports that are scheduled by operators. These reports should either run on the local report server not matter where they run. They will also only run on one server - not both servers. 

If you want to call a report with a Cicode function and ensure that is only runs on the primary server, schedule the report off a trigger and then set the trigger. For example, run the report from a bit in a disk PLC and set that bit to run the report. As the report is scheduled, it will only run on the primary report server.

Note for the report server to operate in Primary/Standby mode you must configure the [REPORT]Primary and [REPORT]RunStandby parameters correctly.