Specifications
13 – Configuring Reports
298 R400
Free Format Report Example
This section shows an example of a report definition file and the resulting report
output.
Report Definition File
*
*This is an example free format report
*Get the Point ID
F 1 01IT1LEVEL NAME A10
*
*Get the last 10 history values and store at
*index 20..
F 20 01IT1LEVEL PV F8.3 H1M(1) 10
*Get the maximum and minimum of these values and store at 50,51 respectively
L 50 01IT1LEVEL PV F8.3 H1M(1) 10
*Store these values in user table 254 record 3 words 1,2
W 50 254 3 1 RL
W 51 254 3 4 RL
*Calculate the standard deviation for these history values
D 52 01IT1LEVEL PV F8.3 H1M(1) 10
*Calculate the sum of these history values
T 53 01IT1LEVEL PV F8.3 H1M(1) 10
*Take an average of these values and store it at index 1
C 11 F8.3
P 11 = ($53)/10
P 70 = 1
P 71 = 2
P 72 = 3
P 73 = 4
P 74 = 5
P 75 = 6
P 76 = 7
P 77 = 8
P 78 = 9
P 79 = 10
*Store the result in the SP of a point
G 11 01OT1LEVEL SP
*
*Read some text from a file
M SEQ 501 0 c:\reports\freeformat\ffrdata.in
R 40 254 3 1 F8.3 RL F8.2
*2345678901234567890123456789012345678901234567890
B:
------------------------------------------------------
$C501
------------------------------------------------------
For point ’1 ’ the latest 10 history values are:
$$1001 ’20 ’
plscpcg.book Page 298 Monday, May 28, 2001 10:11 AM