WB-MAO4 Modbus Dimmer

Материал из Wiren Board
Версия от 15:52, 19 июля 2019; RomanKulibaba (обсуждение | вклад) (Новая страница: «The module uses pulse width modulation (PWM), bit depth: 12 bit, PWM frequency: 24 kHz. ==== Buttons ====»)

Другие языки:
Диммер WB-MAO4

The page is in development!

Purpose

4-channel lighting control module is designed to control lamps with interfaces 0-10V, PWM, as well as to control arbitrary load with the corresponding inputs.

The type of output signal: 0-10V or PWM c with an amplitude of 10V. Type of output signals is configured (for all channels at once).

The module is controlled from the controller or PC via the RS-485 bus by MODBUS commands, as well as by external buttons.


Technical specifications

  • 4 channels 0-10V or 10V PWM
  • PWM frequency up to 400 Hz.
  • Supply voltage: 11 to 24 V.
  • Power consumption: 0.3 W.
  • Interface: RS485, Modus RTU
  • RS-485 interface parameters are set programmatically (see register Card);
    default: speed — 9600 bit/s; data — 8 bit; parity bit — no (N); stop bits — 2
  • Save state when power is off
  • Inputs for three buttons for channel control
  • Size– 65*35*7 mm.

Operating conditions

  • Air temperature from -40°C to +70°C;
  • Relative humidity up to 95%, without moisture condensation.

Connection

The module is made in the unselfish version - the board is in a shrink tube.

RS-485 and control buttons are connected to the blue terminals:

  • A and B - RS485 signal lines
  • GND - ground RS-485 bus (if any)
  • b1 and GND - color balance control button
  • b2 and GND - brightness control button

Management

Bus parameters

Speed is 9600 bit/s, data - 8 bit, parity – no, stop bit - 2.

Commands supported by device

Command command (dec)
READ_COIL 1
WRITE_SINGLE_COIL 5
WRITE_MULTI_COILS 15
READ_HOLDING_REGISTERS 3
WRITE_SINGLE_REGISTER 6
WRITE_MULTI_REGISTERS 16


Functions

Address change is broadcast (slave_id 0) team record (WRITE_SINGLE_REGISTER) to holding register with address 128 (0x80).

6 bytes signature lies at the address 200. The signature is unique for each device model and allows you to identify the model. To obtain the signatures necessary to fulfill READ_HOLDING_REGISTERS address 200 length 6. Writing to this area of memory is not supported and error 3 is returned when attempting to write to an invalid location.

LED control

The brightness of the channel is set by an 8-bit number (0-255). The physical brightness of the LEDs is set according to the logarithmic dimming curve.

The module uses pulse width modulation (PWM), bit depth: 12 bit, PWM frequency: 24 kHz.

Buttons

Страница находится в разработке!d

Модуль имеет входы для трёх аппаратных кнопок.

Кнопка 1. Короткое нажатие – включение/выключение всех каналов. Длительное нажатие – плавное изменение яркости всех каналов.

Кнопка 2. Длительное нажатие кнопки – плавное изменение цвета.

Отключить управление каналами с помощью кнопок можно, записав число 255(0xFF) в HOLDING_REGISTER по адресу 5.

В любом режиме работы, текущее состояние кнопок можно прочесть из HOLDING_REGISTER по адресу 6 и 7. 0 отпущена, 1 - нажата.

Карта регистров

Регистр / адрес тип чтение/запись значение по-умолчанию формат назначение Примечание
0 holding RW - 0-255 Уровень канала G, логарифмическая кривая
1 holding RW - 0-255 Уровень канала R, логарифмическая кривая
2 holding RW - 0-255 Уровень канала B, логарифмическая кривая
5 holding RW 0 0: стандартный режим, 0xFF: отключить управление режим работы кнопок
6 input R 1 - нажата, 0 - отпущена состояние кнопки 1
7 input R 1 - нажата, 0 - отпущена состояние кнопки 2
9 holding RW 74 (312.5 Hz) freq = 24 kHz / (value + 1) частота ШИМ
13 holding RW 100 x 10ms Время плавного изменения цвета
0 coil RW 0 0: 0-10V

1: PWM 10V

Режим работы выходов
120 (0x78) holding RW 0 отличное от 0 запись в регистр вызывает перезагрузку МК без сохранения состояния не поддерживается
121 (0x79) input R - mV текущее напряжение питания модуля не поддерживается
128 (0x80) holding RW 1 Modbus-адрес устройства все
200-206 input R {'W','B','M','A,'O', 0} сигнатура все
220-241 input R __date__ __time__ дата сборки прошивки все