Control of the Dali
bus by 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 by pressing the Insert
key after selecting the object) and is included in the group: " / Communication / Dali PLC"
This preconfiguration can be used with the objects: PmFolder or PmRoot.
- The preconfiguration is created including the panel (PmPanel
object) functionality as 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
driver for communication with DALI
bus. The communication interface is based on the method of the created PmFolder
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.
of the PmComm
object creates complex message format that is then sent by PmSequencer
object into the PmCommMsg
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 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.|
|Communication type| Network TCP/IP communication (default)
|Network address||Network 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 while the application is launching). After this preconfiguration is created, the configurator is se to: PmComm > Settings of the Ethernet parameters > Network address
|Serial port||Selection of the communication serial port. |
Value can be change by OpenPort method. The value can be detected by method GetProtParam(""SerPort"").
After this preconfiguration is created, the configurator is se to: PmComm > Settings of the serial link parameters > Serial port.
- The object is not connected to any port at the start of the application and the serial port can be selected dynamically by the algorithm (by the PmComm.OpenPort
- The object is meant for the data transfer over the dialed phone line (over the PmModem
object). The serial port is assigned by the PmModem.SetPmComm
method or by the PmComm object
configurator of the PmModem
- The specified serial port is opened at the start of the application. This port must be correctly configured and accessible in the OS Windows
(no one can use it).
For serial link each PmComm object must have defined another communication port. For example, when one PmComm object communicates through COM1, then next PmComm object can communicate for example through COM2 (COM3,..) but it mustn't communicate through COM1.