Printing a report in Windows NT at normal speed without needing to leave Elipse SCADA.

To print a report in Windows NT at normal speed without needing to leave Elipse SCADA, you must create a RAM tag called Flag and a Chrono tag called Counter, which will work as printing controllers. The Chrono tag must be set up as follows:

  • Preset event: 10 seconds (you can increase this time according to printing time)
  • Increment: 1 second
  • Don’t start the counter when running the application
  • Reset counter when it’s on
  • All other options must remain unchecked

Then, create a script at the Chrono tag’s OnPreset event containing the following command:

Flag = 0

and another script at OnEnabled event with the following command:

Flag = 1

Then go to the screen with this command to print the report (or access the Application item inside the Organizer), create a script at WhileRunning event to be executed every 1000 ms, and type the following command:

If Flag == 1
Sleep(0.2)
endif

Finally, access the printing script (where the report’s Print() command is) and type the following command right after Print():

Counter.enabled = 1

NOTE: Some printers may not be able to print when Elipse SCADA is running (such as Epson Stylus Color, for example). To fix this, you must set up the parallel port (via BIOS) as ECP (Extended Capabilities Port) mode.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *