Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations Conveyor belts

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 with PmPanel 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 and PmSequencer 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
 
The Timer 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 and nBelts 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 objects.
 
Panel editor - description and setup of graphic items
 
The Conveyors panel includes the PmiLine graphic objects named belt0 to beltX. These objects have iBelt and dir 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 named box0 to boxX. 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 objectName of the object created in the application object tree. This is a system name and must not contain empty string, diacritics, spaces and the first character must not be a number.

Default: "ConveyorsHall"

Panel titleUser 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 method

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 groupsThe 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.

Scripting language settingsSets the scripting language type (VBScript or JavaScript).
vbscript (obsolete) - All scripts in events of graphic items in this panel will be written in VBScript language. In such case the WEB panels are functional only in Internet Explorer browser.

In such case, the Level of integration of panel viewer and the local application configurator is visible and it is possible to enter both "full" and "client".

javascript - 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, Firefox, Edge ...).

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 componentIt 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 objectPath in the objects tree to the PmWeb, PmWebFolder or PmWebLang object where the registration is carried out.

After this preconfiguration is created, the configurator is se to: PmPanel > Web Server > PmWeb object.

© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice