Difference between revisions of "Controlling Belimo Valves"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 46: Line 46:
  dec: [ 1, 3, 0, 12, 0, 1, 68, 9 ]
  dec: [ 1, 3, 0, 12, 0, 1, 68, 9 ]
When reading the analogue setpoint, note that analogue values less than 2v will result in unreadable values (65030+).  The valve will still be closed.
When reading the analogue setpoint, note that analogue values less than 2v will result in unreadable values (65030+).  The valve will still be closed.
=== Open Valve 100% ===
dec: [ 1, 6, 0, 0, 39, 16, 147, 246 ]


=== Close Valve ===
=== Close Valve ===


  06 01 00 00
  dec: [ 1, 6, 0, 0, 0, 0, 137, 202 ]
 
=== Open Valve ===


== CRC Calculation ==
== CRC Calculation ==
function crc16(buffer) {
    var crc = 0xFFFF;
    var odd;
    for (var i = 0; i < buffer.length; i++) {
        crc = crc ^ buffer[i];
        for (var j = 0; j < 8; j++) {
            odd = crc & 0x0001;
            crc = crc >> 1;
            if (odd) {
                crc = crc ^ 0xA001;
            }
        }
    }
    crc  = "0000" + crc.toString(16);
    crc = crc.substr(-4);
    return crc;
}


== Analogue Control ==
== Analogue Control ==

Revision as of 20:58, 27 May 2022

PIC EU SR24A-MOD 4C-product.jpg

Belimo valves are one of the most recognised and widely used makes of valve in the HVAC industry. The libraries on this page provide the tools to control and monitor valves using the MQTT open controls protocol and Node-RED.


Modbus Registers

Note that the register number is one more than address.

Operation Registers

Belimo modbus1.png

Service Registers

Belimo modbus2.png

Connecting via FTDI Cable

FTDI -> Actuator

Orange -> Grey

Yellow -> Pink

Black -> Not Connected

Example Commands

Read Modbus Setpoint

As an example, to read the Setpoint requires sending to the device (1 default) a FC3 read command (3) calling for register 1 (0 0), requesting a single value (0 1), ending with the CRC (Cyclic Redundancy Check).

In modbus the following characters would be sent to the valve over RS485 (shown in decimal and hex):

dec: [ 1, 3, 0, 0, 0, 1, 132, 10 ]  hex: [0x01, 0x03, 0x00, 0x00, 0x00, 0x01, 0x84, 0x0a]

Read Analogue Setpoint

The analogue setpoint register (13) is different from the Modbus setpoint (1). Register 119 (Sepoint Selection) choses which is valid.

dec: [ 1, 3, 0, 12, 0, 1, 68, 9 ]

When reading the analogue setpoint, note that analogue values less than 2v will result in unreadable values (65030+). The valve will still be closed.

Open Valve 100%

dec: [ 1, 6, 0, 0, 39, 16, 147, 246 ]

Close Valve

dec: [ 1, 6, 0, 0, 0, 0, 137, 202 ]

CRC Calculation

function crc16(buffer) {
    var crc = 0xFFFF;
    var odd;

    for (var i = 0; i < buffer.length; i++) {
        crc = crc ^ buffer[i];

        for (var j = 0; j < 8; j++) {
            odd = crc & 0x0001;
            crc = crc >> 1;
            if (odd) {
                crc = crc ^ 0xA001;
            }
        }
    }

    crc  = "0000" + crc.toString(16);
    crc = crc.substr(-4);

    return crc;
}

Analogue Control