Wiren BoardDocumentation
Documentation / Dimmers / WB-MAO4-20mA
Device manual · English

WB-MAO4-20mA

Four-channel isolated 0–20 mA and 4–20 mA analog output module

revision 116996
Covered order codes (1)
  • WB-MAO4-20mA — Four-channel isolated current output module

WB-MAO4-20mA is a four-channel analog output module for industrial automation. It controls variable-frequency drives, servo drives, air-damper actuators, valves and other equipment with 0–20 mA or 4–20 mA current-loop inputs. The module can be controlled locally from buttons or remotely over RS-485 using Modbus RTU.

WB-MAO4-20mA four-channel current output module
WB-MAO4-20mA analog output module

Technical specifications

ParameterValue
Power supply
Supply voltage9–28 V DC
Power consumption0.3–2.3 W
Analog outputs
Number of channels4
Output signal0–20 mA or 4–20 mA
IsolationEach output is galvanically isolated from the other outputs and from the module's internal circuitry
Maximum load resistance500 Ω
Accuracy±(2% + 100 µA) at +25 °C; ±(3% + 100 µA) from −40 to +80 °C
Digital inputs
PurposeFour universal, flexibly configurable inputs
Input typeDry contact, non-isolated; approximately 5 V DC and 5 mA when closed
Permissible voltage0–30 V
Control
Interface / protocolNon-isolated RS-485; Modbus RTU; software-configurable address
Factory serial settings9,600 bit/s, 8 data bits, no parity, 2 stop bits (8N2)
Ready time after power-upApproximately 2 seconds
Environmental and mechanical
Operating temperature / humidity−40 to +80 °C; up to 95% RH, non-condensing
Climatic classificationO2.1 under GOST 15150-69
Warranty / service life2 years / 8 years
Recommended ferruled conductor0.35–1 mm² single ferrule; 0.35–0.5 mm² twin ferrule
Ferrule sleeve / tightening torque8 mm / 0.2 N·m
DIN width / dimensions / packaged weight2 modules / 36 × 90 × 58 mm / 80 g

Operating principle

The four outputs are independent, galvanically isolated current-source channels. Each channel uses a transistor controlled by an operational amplifier with feedback from a precision shunt. Every channel has its own internal 15 V supply, so no external loop power supply is required. At 20 mA, the connected load resistance must not exceed 500 Ω.

An output can be controlled directly in microamperes from 0 to 20,480 µA, or as a percentage of the selected 0–20 mA, 4–20 mA or user-defined range. Smooth transitions can be configured separately for increasing and decreasing values.

Indicators and output-current error

The green S indicator lights when low-voltage power is present and flashes during Modbus traffic. It flashes more frequently with Fast Modbus event polling, once per second in the bootloader, and rapidly during firmware upload.

Four channel LEDs show the output condition: off means zero current, on means current above zero, and flashing indicates that the actual loop current is below the configured threshold. This error detects a broken loop, excessive load resistance or another condition that prevents the requested current from being established.

Digital inputs and press recognition

The module recognises short, long, double, and short-then-long presses. The controller can read a counter for every press type, or the module can apply a configured action directly to one or all outputs. Local button actions are disabled by default.

Timing diagram for WB-MAO4-20mA press events
Press-event recognition
WB-MAO4-20mA press counters in the controller interface
Press counters for the first input

Installation

WB-MAO4-20mA wiring example with variable-frequency drive and current-controlled valve
Example: controlling a variable-frequency drive and a current-input valve

Mount the module on a standard 35 mm DIN rail. Connect 9–28 V DC and RS-485 to the 3.5 mm-pitch V+, GND, A and B terminal block. If bus devices use different power supplies, interconnect their GND terminals. Use a terminated daisy-chain bus and keep it separated from mains wiring.

Close a digital input to the minus terminal or GND. The input current is approximately 5 mA, so ordinary momentary buttons and latching switches can be used. Route each input with GND as a twisted pair near power wiring. Connect every 0–20 mA or 4–20 mA output to its actuator using twisted pair.

In the example, two isolated channels control a variable-frequency drive and a valve. The valve can use a separate supply because the WB-MAO4-20mA output has its own isolated current source. The outputs are isolated both from the internal circuit and from one another, so the controlled devices may use different power supplies.

Wiren Board controller interface

WB-MAO4-20mA channels in the Wiren Board controller web interface
Device channels in the controller web interface

Add the device by RS-485 discovery or select the WB-MAO4-20ma template manually. The device card provides output control, input states, press counters, serial number, supply voltage and service channels. Enable only the channels required by the project.

Configuration

Configuration methods

  1. On a Wiren Board controller, open Settings → Configs → Serial devices driver configuration.
  2. Write the configuration registers with the controller's Modbus utilities or another Modbus master.
  3. Without a controller, use the Wiren Board device web configurator and a compatible USB-to-RS-485 adapter.

If a documented setting is missing, update the device firmware and controller software before commissioning.

Analog output configuration

WB-MAO4-20mA output range configuration
Selecting and scaling the operating range

For each output, select 0–20 mA, 4–20 mA or a user-defined range. Set minimum and maximum current for the 0% and 100% points, the rates for increasing and decreasing the level, and the repeat rate used while a long-press action is held.

Debouncing and press counters

Set Debounce Time (ms) independently for each input. A signal must remain stable for this interval before it is accepted. The factory value is 50 ms. Configure the long-press threshold and the second-press waiting time. Double-press detection delays a short-press event by the waiting interval; set the interval to 0 ms if double and short-then-long presses are not needed.

Binding input events to outputs

Selecting the WB-MAO4-20mA output controlled by an input event
Selecting the output controlled by an event
Selecting the WB-MAO4-20mA action triggered by an input event
Selecting the action triggered by an event

Four inputs and four recognised press types provide sixteen events. Each event can target one output, all outputs or no output. Available actions are Off, On, Toggle, Increase level, Decrease level, alternating Increase/Decrease, and Turn on and set level. For a short or double press, the level step is configured per output. Turn on and set level accepts 0.1–100% and uses the configured ramp rates.

Press typeOff / OnToggleIncrease / DecreaseAlternating directionTurn on and set level
ShortOne or all outputsOne outputOne or all outputsNot availableOne or all outputs
LongOne or all outputsOne outputOne or all outputsOne outputOne or all outputs
DoubleOne or all outputsOne outputOne or all outputsNot availableOne or all outputs
Short, then longOne or all outputsOne outputOne or all outputsOne outputOne or all outputs

Latching switches

WB-MAO4-20mA latching switch action configuration
Example configuration for a latching switch

For a latching switch, use the Latching switch input mode. Separate actions are available for the closed and open states: On, Off or Toggle. Each state may target one output, all outputs or none.

Quadrature encoders

Connecting two AB encoders to WB-MAO4-20mA
Connecting an encoder to the module
AB quadrature encoder signals
AB quadrature encoder

Up to two AB incremental encoders can be connected: Encoder 1 uses Inputs 1 and 2, while Encoder 2 uses Inputs 3 and 4. Set debounce to 2–5 ms; use 2 ms for fast rotation. Input frequency must remain below 250 pulses per second at 2 ms debounce. Encoders with up to 25 pulses per revolution provide adequate margin.

Configure pulses per logical step, the controlled output, and the percentage step per encoder step. When rotation decreases the level below its configured minimum, the channel can either switch off or remain at the minimum. The encoder position is readable and writable as a signed 32-bit value. A shaft push switch may use any free input.

Automatic switch-on channels

Each output has an additional automatic switch-on channel. Writing a value above zero turns the output on and sets the value in one operation. Writing zero behaves like the ordinary level channel. This is useful for automation rules and external integrations that should not need a separate coil write.

Safety Mode

WB-MAO4-20mA Safety Mode settings
Output behaviour when controller polling stops

Safety Mode moves selected outputs to predefined states if Modbus communication is lost. The timer restarts after every successfully processed request; its factory value is 10 seconds. Configure the safe state and whether it applies independently for each output. Local input control can remain active, be blocked in Safety Mode, or be enabled only while Safety Mode is active.

Output state after power-up

WB-MAO4-20mA output state after power-up settings
Output behaviour after power-up

Each output can start Off, restore its last stored state, start On, or turn on at a configured level. A level of 0% leaves the channel off; a later change from 0% to a non-zero level switches it on.

Modbus operation

The module supports the standard Modbus RTU commands for reading and writing one or multiple registers. Factory settings are 9,600 bit/s, 8 data bits, no parity and 2 stop bits. Current firmware tolerates a stop-bit setting different from the master. For lower latency, 115,200 bit/s can be used when every device and the master are configured consistently.

Modbus address

Factory Modbus address labels on Wiren Board devices
Factory-assigned Modbus address labels

Every device on one RS-485 line must have a unique address from 1 to 247. The factory address is printed on the enclosure. It can be discovered, changed or reset with the controller tools, the device configurator or compatible Modbus software.

Remote smooth level adjustment

Auto-Change lets the master start a smooth change with one register write instead of continuously sending level values. Action 0 stops; 1 decreases; 2 increases; and 3 alternates the direction. The ramp stops at the minimum non-zero value or 100%, when the output is switched off, or when another command changes the channel. To switch fully off, write 0 to the level register.

Fast Modbus

Fast Modbus adds rapid device discovery and event polling while retaining compatibility with ordinary Modbus masters. A compatible master enables the extension with a special command. Event-capable registers are identified in the device register map.

Register map

The register map includes direct current setpoints, percentage levels, output switches, automatic switch-on channels, input states and counters, encoder positions, ramp commands, serial settings, Safety Mode and power-up behaviour. Use the register names and data types shown by the controller template or device configurator.

Firmware, reset and commissioning

Firmware can be updated over Modbus and stored settings are retained. Do not interrupt power or RS-485 communication during an update. After a factory reset, verify the address, serial parameters, output ranges, input mappings, power-up state and Safety Mode before returning the system to service.

Device photographs and dimensions

WB-MAO4-20mA printed circuit board
Module printed circuit board
WB-MAO4-20mA module and retail box
WB-MAO4-20mA module
Two-module DIN enclosure dimensions
Overall dimensions
Revision 116996.