Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "PmChar - DALI"

Control of the DALI bus by means of the PmChar communication driver with test panel.
 
This preconfiguration can be activated when creating a new object (e.g. by "New object" in the local object menu or after pressing the Insert key after selecting the object) and is included in the group: " / Communication / DALI communication protocol".

This preconfiguration can be used with the objects: PmaFolder or PmaRoot.

 
- Preconfiguration creates an object of the PmaFolder type containing PmaComm object with PmaCommMsg subobjects and following objects: PmaPanel, PmaData and PmaSequencer.
- The preconfiguration is created including the panel (object of the PmaPanel type) is functional also a Web panel.
 
The preconfiguration allows to choose two types of connection with the computer:
- via Ethernet
- via the computer's serial port (RS232)
According to the selected type of converter: Communication in DALI networks.
 
The preconfiguration uses the PmChar communication driver for communication with DALI bus. The communication interface is based on the method of the created PmaFolder object named RunCmd. Two parameters are passed to this method. First parameter addr represents the value of device address (or group of devices) in the network. Second parameter cmd represents the command to be executed.
 
Method DataToSnd of the PmaComm object creates complex message format that is then sent by the PmaSequencer object into the PmaCommMsg object for processing. Individual phases of the communication are processed into the user logging system by the WriteToLog method. In the testing panel it is possible to choose a command or query to the DALI bus and in the right portion of the panel it is possible to watch the records of the logging system.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the tree of Pma objects. The maximum Pma object name length is 31 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.

Default: "Dali"

Communication type
Network TCP/IP communication (default)
Serial communication
Network addressNetwork address to which the communication will be connected. The address can be entered by both IP address (e.g. 192.168.0.15) or by name (e.g. server11).

Macro expression can be used for input (it is evaluated after starting the application).

After this preconfiguration is created, the configurator is se to: PmaComm > Setting the parameters of the Ethernet-client > Network address
Serial portSelection of the communication serial port.

The value can be change by the OpenPort method. The value can be detected by method GetProtParam(""SerPort"").

After this preconfiguration is created, the configurator is se to: PmaComm > Setting the parameters of the serial link > Serial port.

Not set - The object is not connected to any port after starting the application and the serial port can be selected dynamically by the algorithm (by the PmaComm.OpenPort method).
COM1, COM2,..,COM66 - The specified serial port is opened after starting the application. This port must be correctly configured and accessible in the OS Windows (no one can use it).

For serial link each PmaComm object object must have defined another communication port. For example, if one PmaComm object communicates through COM1, then next PmaComm object can communicate for example through COM2 (COM3,..) but it mustn't communicate through COM1.


History:
Pm8.03.13: Control of the DALI bus by means of the PmChar communication driver
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

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