Animation of movements on the set of conveyor belts
This preconfiguration can be activated when creating a new object (e.g. by "New object"
in the local object menu or by pressing the Insert
key after selecting the object) and is included in the group: " / Technology / Conveyors"
This preconfiguration can be used with the objects: PmFolder or PmRoot.
- Preconfiguration creates an object of type PmFolder
subobject named "Conveyors
" and additional PmFolder
objects named "Data
" and "EmulComm
". The "Data
" subobject has multiple PmDataTable
subobjects named "Belts
" and "Boxes
". There is also a PmTimer
object named "Timer
". This subobject acts as data and method source for the panel animation. The "EmulComm
" subobject contains PmData
objects also named "EmulComm
". This is not needed for real applications. It is used only for (non-existing) conveyor belt control system data emulation.
- The preconfiguration is created including the panel (PmPanel
object) functionality as a Web panel
Application editor - object description and setup
object in the Data
subobject used for managing the movement of material on the belts. The individual steps are described directly in the script comments. This object does not need to be set up.
In the "Belts
" object on the DataTable
page in the Maxim. number of rows
configurator, the number of conveyors is defined. In the "Boxes
" object, the maximum number of packages travelling on these belts is defined the same way. In the superior object "Data
" on the Events
page in the onStart
event, it is necessary to modify the values of the initial script in the nBoxes
variables. At the end of the script, the initialization state of each belt is defined as described in the comment.
The objects in the EmulComm
subobject are not essential for the animation itself. But these can be used as manual for connecting the data from communication (emulated by the emulované objektem PmSequencer
) to variables
in the PmData
object. These variables then use data binding or method calling in the onItemAfterWrite
event in order to write data into the corresponding PmDataTable
Panel editor - description and setup of graphic items
panel includes the PmiLine
graphic objects named belt0
. These objects have iBelt
parameters set in the Item parameters
configurator. The iBelt
parameter defines the order (index) in the Belt group. The dir
parameter defines the movement direction of "boxes" on the belt with values varuing from 1 to 4. The number of these objects must correspond to the number defined in the "Belts
" object of the application.
There are additional objects PmiInstance
. These objects have the iBox
parameter set in the Item parameters
configurator that defines their order (index). The number of these objects must correspond to the number defined in the "Boxes
" object of the application.
These configurators can be set before the preconfiguration is created:
|The name of created object||Name of the object created in the application object tree. This is a system name and must not contain diacritics, empty string, spaces and the first character must not be a number.|
|Panel title||User name of the panel that is displayed for example in: |
- in the window title bar (if opened outside the workspace)
- in the panel list obtained for example by the FindViewers
This configurator sets the initial value of the property PmPanel.Title and PmiRoot.ViewerTitle.
Macro expression can be used for input ($.text ..) (it is evaluated while the window is opening).
After this preconfiguration is created, the configurator is se to: PmPanel > Panel > Panel title.
|Member of logical groups||The list of the identifiers of the logical groups (the comma ',' is the separator), the object belongs into (it is a group member), see Logical groups. The logical group selection can be done in the Member of logical groups window. |
After this preconfiguration is created, the configurator is se to: PmObject > Object > Member of logical groups.
- All scripts in events of graphic items in this panel will be written in VBScript
language. In such case the Web panels are functional in all standard Web browsers (Chrome
In such case, the Level of integration of panel viewer and the local application configurator is not visible and the "client" mode is set.
|Enable as Web component||It indicates if this object has to be registered as a Web server component |
After this preconfiguration is created, the configurator is se to: PmPanel > Web server > Enable as Web component.
|PmWeb object||Path in the objects tree to the PmWeb, PmWebFolder or PmWebLang object where the registration is carried out. |
Macro expression can be used for input (it is evaluated while the application is launching).
After this preconfiguration is created, the configurator is se to: PmPanel > Web server > PmWeb object.