Reports generation tutorial, create and test a text report.
Tutorials → Reports | Tutorial | How-to Guide | Reference
We'll create a shift report showing tank status.
ShiftReport
Text
C:/Reports/Shift.txt
It is mandatory that the folder where the Report will be saved, must be created before. The system does not create folders automatically. |
ShiftReport
================================
TANK FARM SHIFT REPORT
Date: {Server.DateTimeInfo.Date}
Time: {Server.DateTimeInfo.Time}
================================
TANK STATUS SUMMARY
-------------------
Tank 1:
Level: {Tag.TankFarm/Tank1/Level} ft
Temperature: {Tag.TankFarm/Tank1/Temp} °F
Pressure: {Tag.TankFarm/Tank1/Pressure} PSI
Status: {Tag.TankFarm/Tank1/Status}
Tank 2:
Level: {Tag.TankFarm/Tank2/Level} ft
Temperature: {Tag.TankFarm/Tank2/Temp} °F
Pressure: {Tag.TankFarm/Tank2/Pressure} PSI
Status: {Tag.TankFarm/Tank2/Status}
PRODUCTION METRICS
------------------
Total Volume: {Tag.TankFarm/Metrics/TotalVolume} gal
Flow Rate: {Tag.TankFarm/Metrics/FlowRate} gpm
Daily Production: {Tag.TankFarm/Metrics/DailyProduction} gal
================================
End of Report
Create scheduled task for shift reports: