Step 3 Report generation modes configuration
Each report has 4 elements: Day and time trigger, CreateReport, ReportCreatedAck, Sections with associated tags
Day and Time Trigger
The day and time trigger purpose is to schedule report generations
As an example mentioned previously daily and weekly reports can be generated. In fact the number of previous days worth of data is configurable giving a lot of flexibility on the type of reports that can be generated
CreateReport & ReportCreatedAck
The CreateReport tag Plc Address is what PlcData listens for. When it goes from OFF-To-ON, PlcData generates the requested report by querying the SQL server database.
The CreateReport is optional if the PlcAddress is left blank i.e., PlcAddress=””, then reports will be generated according to the day and time trigger settings
If CreateReport tag has a plc address filled, then the reporting is deemed to be also PLC controlled.
PlcData uses the configured ‘CheckInterval’ to listen for report requests from the PLC.
When PlcData has generated a requested report, it turns OFF the ‘CreateReport’ flag and sends back a signal to the PLC to indicate the requested report has been generated, by turning the ‘ReportCreatedAck’ ON.
Sections and Tags
Each Report has a number of sections to help organise the report.
Each section has a block of tags associated with it.
The Tags element within a section has within it several tags elements.
The tags value are used to generate reports.
The tags description is mandatory and is used for the report headers
PLC - PlcData Handshake
1. Plc sends signal to create a report by turning the CreateReport flag to ON.
2. PlcData turns the ReportCreatedAck to OFF.
3. PlcData generates the report, turns the CreateReport flag to OFF and the ReportCreatedAck to ON
4. PlcData checks the CreateReport flag every CheckInterval time. And the cycle repeats from 1.
|