14
KNX serial card
+030220326- rel. 1.0 - 16.05.2017
ENG
6. CONTROLLER SETTINGS
The Carel KNX card, as already described, acts as gateway between
the KNX bus and the Carel device. The Modbus protocol is used, and
consequently the pCO/c.pCO or e-drofan controller must be configured
to work as a slave using this protocol on the BMS port. The index of
the variable to write in the table must therefore be consistent with the
application loaded on the pCO controller or with supervisor list on the
e-drofan controller. To do this, the .2cf file is used, which contains all the
information relating to the Modbus parameter database.
The configuration procedure for the pCO, c.pCO family and e-drofan
controllers is described below.
6.1 pCO application settings
In order to use the KNX card with the pCO, the application must allow
the Modbus Slave protocol to be configured on the BMS serial port.
The application must also allow at least all of the required KNX variables
(datapoints) to be exported to the supervisor (Modbus).
The Modbus Slave protocol can be configured using the COM_
PROTOCOL_BMS and BMS_EXTENSION system variables. Different
combinations of these settings will create a parameter register of varying
size, as shown in Table. 6.a.
Offset
Crosstable
BMS_EXTENSION = 0
COM_PROTOCOL_BMS = 3
128
D:1-199;A:1-127;I:1-127 ->
D:1-199;A:1-127;I:129-255
BMS_EXTENSION = 1
208
D:1-207;A:1-207;I:1-207 ->
D:1-207;A:1-207;I:209-415
COM_PROTOCOL_BMS = 3
COM_PROTOCOL_BMS = 30
5001
D:1-2048;A:1-5000;I:1-5000 ->
D:1-2048;A:1-5000;I:5002-10001
BMS_EXTENSION = 0
128
D:1-2048;A:1-127;I:1-10000 ->
D:1-2048;A:1-127;I:129-10128
COM_PROTOCOL_BMS = 33
BMS_EXTENSION = 1
5001
D:1-2048;A:1-5000;I:1-10000 ->
D:1-2048;A:1-5000;I:5002-15001
COM_PROTOCOL_BMS = 33
Tab. 6.a
In addition, the address of the Modbus variables is obtained from the
index of the supervisor atoms entered in the pCO application, as follows:
Digital variables
Coil address = Atom index for digital variables
Analogue variables
Register address = Atom index for analogue variables
Integer variables
Register address = Atom index for integer var offset (see Table
6.a).
To complete the configuration, the BMS_ADDRESS variable also needs
to be set with the BMS serial address (in the range 1-247), as well as the
serial line baud rate, using the COM_BAUDRATE_BMS system variable,
according to the following map:
COM_BAUDRATE_BMS
0
1
2
3
4
Baud rate [bps]
1200
2400
4800
9600 19200
The .2cf file for the pCO family controllers is generated when compiling
the application in 1tool, and is automatically saved to the directory
containing the application binary files.
6.2 c.pCO application settings
The Modbus Slave protocol configuration for the c.pCO family controllers
is managed directly using the c.design tool. In this case, the register
addresses do not require an offset and are exactly the same as specified
in the Protocol Editor.
The BMS address and baud rate can also be configured directly in c.design.
The 2cf file can be exported in the line configuration window, as shown
in Fig. 6.a.
Fig. 6.a
6.1 e-drofan controller settings
For the Modbus addresses, see the parameter table shown in the e-drofan
manual.
For correct communication with the KNX card, the e-drofan controller
must be set as follows:
Baud rate
fixed 9600 Baud
Address
P69=1
Modbus protocol
P54=1
Tab. 6.b