Create and Open the Application
New PROMOTIC application can be created and opened several ways:
1st Create and Open the Application
Launch the PROMOTIC system (Promotic.exe
) and click the "New application
" button on the welcome screen. Then choose the desired application location (we recommend different location than the PROMOTIC system installation folder, for example C:/PmProj
), application filename, for the purpose of this coursebook example enter "BoilerPlant.pra
" and confirm.
2nd Create and Open the Application
Launch the PROMOTIC system and in the application editor upper menu (above the toolbar) select the Application > New application
item (or click the
icon in the toolbar), create the desired folder, enter the filename "BoilerPlant.pra
" and confirm.
: Based on practocal experience, we recommend to use short filenames - no diacritics, no spaces, must start with a letter.
New PROMOTIC application is opened now. The system finds out, that the application is empty and therefore opens a window. Based on the information entered here, new preconfigured objects are going to be created in the application.
First of all select the desired application workspace layout. This setting can be modified at any time during the application development.
In the following window it is possible to enter (optional, can be added afterwards):
- Application name: Enter "Boiler room visualization" here
- Insert the "About" window: Check this checkbox in order to add the "About" ("about") window
- Application designer/company name: This text will be used only in the "About" window ("about").
- Application designed for: This text will be used only in the "About" window ("about").
- Enable application for Web
: Check this checkbox in order to allow your application become a Web server offering HTML and XML pages. This selection adds a PmWeb
object into the application and other objects become preconfigured for Web usage.
Leave other configurators unmodified.
Fill in the necessary information and confirm. The system now creates the preconfigured objects (these will be explained in the following chapter). Subsequently the system asks you whether you want to compile all panels - select Yes
. The system then compiles all preconfigured panels and displays the compilation report – confirm OK
By following the previous steps you have created an application, opened it and let the system create some basic preconfigured objects. The following chapters of this coursebook will teach you how to create the content of an application in order to achieve the desired functionality. Creating application content can be formally divided into three parts:
a) Static Part
In this part the designer creates his application by adding and using PROMOTIC objects (e.g. timer, data, communication), modifies the properties of such objects and places them into the hierarchical tree. This way, the internal structure of the application is being created.
b) Visual Part
In this part the designer creates graphic panel, places desired graphic items into the panels and defines the properties of such graphic items. These graphic items are then being connected by data bindings with the objects that have been created in the static part. An outer appearance of the application is created here - graphic interface.
: Fully functional application not having any graphic user interface can also be created.
c) Dynamic Part
In this part the designer defines the main application functionality itself, for example repeated actions of objects in defined time periods, what should happen when the user (the operator) presses a button or key, etc..
: Some very simple applications (e.g. used only for diplaying incoming values) may not need this part.
In fact, these three defined parts of the application development are only formal and very often blend together. In the system itself this division is not strictly defined. But it can help us with the following explanation that is divided into these three parts.