how to print report direct from the button on SCADA.
I have a requirment from the client that that they need to generate report whenever they press a button on scada screen and then automatically print the generated report (may with different button) from the printer. The scada is CHMI 800 v5. How can i do it.
Compact HMI comes with the Scheduler and Data Direct services.
1) Configure your report in Microsoft Excel
2) Use DataDirect functions to retrieve dynamic data, events, trends from the Compact HMI system.
3) Schedule the report using the Scheduler
4) Use the "Expression Schedule" to trigger the execution on an OPC property, e.g. a General Property.
5) Configure a pushbutton in some graphic display that toggles the OPC property for each push.
More information is available in the User's Guides; search for the topics mentioned above and you should find more information. Report configuration has a dedicated chapter in the IM Data Access and Reports User's Guide, 3BUF001094-510 which may not be part of the standard set found in Compact HMI - but you can download it from ABB SolutionsBank or ABB Library (login account required).
Don't hesitate to ask your regional ABB support center for help.
I suggest 2 options.
In the scheduling structure, you can configure a report generation and choose if the report must be printed or saved as a file with the timestamp included in the name. This report generation can be triggered on a scheduled event or on a trigger. Use the trigger event and configure it with a bit that will be set by your button in your graphic display.
If the report you want to print always have the same name, you could create an aspect called Windows Application. This aspect allows you to open a windows program and pass as argument the filename you want to open. Once this aspect is configured, you can use a verb button in your page to open this windows application. You can then print the report from this windows application.